ignore-value: prefer GCC version back through 2.0
[gnulib.git] / ChangeLog
1 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2
3         ignore-value: prefer GCC version back through 2.0
4         The code didn't match the comments, so I did a bit of software
5         archaeology.  GCC 2.0 seems to support __extension__ and
6         __typeof__, so fix both code and comments to use 2.0.
7         * lib/ignore-value.h (ignore_value): Use __extension__ and
8         __typeof__ for GCC 2.0 through 3.3, too.
9
10 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
11
12         pty: Activate the signature wrapper of forkpty.
13         The intended preprocessor macro HAVE_FORKPTY is
14         never defined, yet `lib/forkpty.c' depends on it.
15
16         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
17         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
18         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
19
20 2013-11-18  Jim Meyering  <meyering@fb.com>
21         and Paul Eggert  <eggert@cs.ucla.edu>
22
23         quotearg: don't attempt to store 1 << 31 into an "int"
24         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
25         gcc's new -fsanitize=undefined and running its tests triggered some
26         new test failures due to undefined behavior, all with this diagnostic:
27           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
28             cannot be represented in type int
29         Rather than shifting "1" left to form a mask, shift the bits right and
30         simply use "1" as the mask.
31
32 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33
34         error: depend on stdio
35         Problem reported by Nikos Mavrogiannopoulos in
36         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
37         * modules/error (Depends-on): Add stdio.
38
39 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
40
41         * doc/relocatable-maint.texi (Supporting Relocation): Improve
42         wording.
43         Reported by Reuben Thomas <rrt@sc3d.org>.
44
45 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
46
47         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
48         New function and macro, to work around _DARWIN_C_SOURCE problem.
49         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
50
51 2013-11-11  Pádraig Brady <P@draigBrady.com>
52
53         base64: provide a fast path for encoding well sized buffers
54         Avoid conditionals in the base64 encoding loop,
55         which was seen to give 60% better throughput.
56         * lib/base64.c (base64_encode_fast): A new function to be called
57         when we don't want to NUL terminate, and we have enough space
58         in the output to encode the given input.
59         (base64_encode): Call the _fast() version when appropriate.
60         Also remove a redundant mask with 0x3F on the first encoded byte.
61
62 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63
64         extern-inline: port better to OS X 10.9
65         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
66         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
67         OS X 10.9, except for g++ where the bug is still present.
68         See <http://trac.macports.org/ticket/41033>.
69
70 2013-11-08  Eric Blake  <eblake@redhat.com>
71
72         fpending: fix regression on DragonFly BSD
73         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
74         * lib/fpending.h (__fpending): Don't declare twice.
75         Reported by GW in
76         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
77
78 2013-11-05  Jim Meyering  <meyering@fb.com>
79
80         hash: relax license to LGPLv2+, for libguestfs
81         * modules/hash (License): Change from GPL to LGPLv2+.
82
83 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84
85         intprops: port to Oracle Studio c99
86         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
87         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
88
89 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
90
91         obstack: pacify HP C
92         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
93         warning "conversion from pointer to smaller integer" from HP
94         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
95         C89 or later nowadays, so cast to void instead of int.  Privately
96         reported by H.Merijn Brand.  Also, change header to match glibc's,
97         to make checking against glibc easier.
98
99 2013-10-29  Jim Meyering  <meyering@fb.com>
100
101         maint.mk: prefer gpgv2 over gpgv
102         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
103         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
104         Reported by Gary Vaughan.
105
106 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107
108         isnan: port to VAX
109         Reported by John Klos for NetBSD-5/VAX in
110         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
111         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
112         (FUNC): Use it.
113
114 2013-10-28  Jim Meyering  <meyering@fb.com>
115
116         gnulib-tool: protect against CDPATH
117         * gnulib-tool: Many "cd" built-in functions print a directory name
118         to stdout when CDPATH is set, e.g.,
119           $ bash -c 'CDPATH=/; cd tmp'
120           /tmp
121         Unset it, when possible.  Prompted by a comment from Bruce Korb.
122
123         maint.mk: restore functionality removed by recent change...
124         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
125         the context of a shallow-cloned gnulib repository: "git describe"
126         would fail in such a directory.  However, that change made it so
127         the reported gnulib revision no longer includes the version number
128         or a commit count, even when run from a full clone.
129         * top/maint.mk (gnulib-version): Use the full "git describe"
130         output when possible, e.g., the form above, rather than the
131         abbreviated, no-tag, no-commit-count string, and fall back to
132         using a 10-byte hash, rather than the default minimal-length
133         hash prefix, since while the minimal-length one may be fine today,
134         it is likely not to be unique for very long.
135
136 2013-10-26  Jim Meyering  <meyering@fb.com>
137
138         maint.mk: fix "release" target to build _version
139         This fixes a bug in README-release whereby following the outlined
140         steps, one would publish a tarball whose programs would report
141         --version output not consistent with the package version number.
142         This bug caused grep-2.15 to produce a grep program whose
143         --version option made it print 2.14.56-1e3d rather than 2.15.
144         * top/maint.mk (release): Making this target build "_version"
145         ensures that the new version number is reflected in configure.
146
147 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
148
149         install-reloc: Support multi-binary installation.
150         * build-aux/install-reloc: Support installing multiple programs in
151         one invocation, as done by Automake starting with commit
152         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
153         Haible <bruno@clisp.org>, archived at
154         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
155         Reported by Sylvain <beuc@gnu.org>.
156
157 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
158
159         selinux-h: Really build without selinux when library is missing.
160         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
161         continue without selinux, as already told in the warning message.
162
163 2013-10-21  Jim Meyering  <meyering@fb.com>
164
165         regex: also remove dependency on HAVE_WCSCOLL
166         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
167
168 2013-10-21  Reuben Thomas <rrt@sc3d.org>
169
170         xfreopen: Fix typo. s/frepoen/freopen/
171         * lib/xfreopen.c: Fix description.
172         * modules/xfreopen: Likewise.
173
174 2013-10-21  Jim Meyering  <meyering@fb.com>
175
176         regex: don't depend on wcscoll
177         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
178         It is no longer used.
179
180 2013-10-20  Jim Meyering  <meyering@fb.com>
181
182         error: add the printf attribute to a static function
183         * lib/error.c (error_tail): Add the printf attribute, to placate
184         gcc's -Werror=suggest-attribute=format option.
185
186 2013-09-30  Jim Meyering  <meyering@fb.com>
187
188         fpending, obstack, strerror-override: use pure+const function attrs
189         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
190         * lib/obstack.c (_obstack_allocated_p): Likewise.
191         * lib/obstack.h (_obstack_memory_used): Likewise.
192         (_obstack_memory_used): Likewise.
193         * lib/strerror-override.h (strerror_override): Declare with
194         the "const" attribute.
195
196 2013-10-18  Eric Blake  <eblake@redhat.com>
197
198         extern-inline: make safe for -Wundef usage
199         Reported by Vladimir 'phcoder' Serbinenko in
200         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
201         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
202
203 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
204
205         mkfifo-tests, etc.: allow HP-UX 11.11 bug
206         Problem reported by Daniel Richard G. in
207         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
208         * doc/posix-functions/mkfifo.texi (mkfifo):
209         * doc/posix-functions/mkfifoat.texi (mkfifoat):
210         * doc/posix-functions/mknod.texi (mknod):
211         * doc/posix-functions/mknodat.texi (mknodat):
212         Document the HP-UX 11.11 bug.
213         * tests/test-mkfifo.h (test_mkfifo):
214         Allow the HP-UX 11.11 bug.
215
216 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
217
218         acl: allow cross-compilation to Gentoo
219         Problem reported by Gabriel Marcano in
220         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
221         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
222         test only whether it links.
223
224 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
225
226         mgetgroups: remove dependency on realloc-gnu
227         The dependency violates the comment in realloc-gnu, which
228         says that tests can't depend on realloc-gnu; some tests depend
229         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
230         Problem reported by Daniel Richard G. in
231         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
232         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
233         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
234         not realloc-gnu.
235
236 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
237
238         regex-tests: port to HP-UX 11.11
239         Problem reported by Daniel Richard G. in
240         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
241         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
242
243 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
244
245         verify: document some 'assume' pitfalls
246         * doc/verify.texi (Compile-time Assertions):
247         Mention that 'assume (E)' can sometimes slow things down.
248         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
249
250 2013-10-10  Eric Blake  <eblake@redhat.com>
251
252         strtoumax: fix typo in previous commit.
253         * modules/strtoumax (Depends-on): Fix typo.
254         * modules/strtoimax (Depends-on): Likewise.
255
256 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
257
258         strtoumax: port to Solaris 8
259         This problem was introduced in the recent HP-UX patch.
260         Reported by Tom G. Christensen in
261         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
262         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
263         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
264
265 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
266
267         strtoimax, strtoumax: port to HP-UX 11.11
268         Problem reported by Daniel Richard G. in
269         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
270         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
271         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
272         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
273         REPLACE_STRTOUMAX.
274         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
275         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
276         Replace the function if defined as a macro but not as a function.
277         * modules/inttypes-incomplete (inttypes.h): Substitute
278         REPLACE_STRTOUMAX.
279         * modules/strtoumax (configure.ac): Replace strtoumax if
280         REPLACE_STRTOUMAX.
281
282 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
283
284         strtoimax: port to HP-UX 11.11
285         Problem reported by Daniel Richard G.
286         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
287         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
288         they might clash with inttypes.h.
289
290 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
291
292         New module 'count-trailing-zeros'.
293         * MODULES.html.sh: Mention it.
294         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
295         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
296         * modules/count-trailing-zeros-tests:
297         * tests/test-count-trailing-zeros.c:
298         New files.
299
300         count-leading-zeros: port to MSC; support types wider than 64 bits
301         The ideas behind the MSC port are stolen from Emacs.
302         * lib/count-leading-zeros.h:
303         Don't include verify.h: it's no longer needed, as types wider than
304         64 bits are now supported.
305         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
306         performance with MSC.  All uses changed.  Do not assume that TYPE
307         has at most 64 bits.
308         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
309         All uses changed.  Fold the subtraction from 31 into the table.
310
311         count-one-bits: port to MSC; support types wider than 64 bits
312         The ideas behind the MSC port are stolen from Emacs.
313         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
314         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
315         Don't include verify.h: it's no longer needed, as types wider than
316         64 bits are now supported.
317         (COUNT_ONE_BITS_GENERIC): New macro.
318         (popcount_supported) [_MSC_VER]: New inline function.
319         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
320         performance with MSC.  All uses changed.  Do not assume that TYPE
321         has at most 64 bits.
322         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
323
324 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
325
326         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
327         * lib/mountlist.c (read_file_system_list): fix leak of directory
328         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
329
330 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
331
332         tests: improve diagnostic when an assertion fails
333         * tests/macros.h (ASSERT): Report the assertion that failed.
334
335 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
336
337         verify: new macro 'assume'
338         This is taken from Emacs, and should be generally useful.
339         * doc/verify.texi (assume): Document it.
340         * lib/verify.h (assume): New macro.
341         (__has_builtin): Expand to 0 if not defined.
342
343 2013-09-26  Eric Blake  <eblake@redhat.com>
344
345         dup2, dup3: work around another cygwin crasher
346         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
347         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
348         * tests/test-dup2.c (main): Likewise.
349         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
350         * lib/dup3.c (dup3): Likewise.
351         * doc/posix-functions/dup2.texi (dup2): Document it.
352         * doc/glibc-functions/dup3.texi (dup3): Likewise.
353
354         getdtablesize: work around cygwin issue
355         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
356         * modules/getdtablesize (configure.ac): Build replacement.
357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
358         * modules/unistd (Makefile.am): Expose the witness.
359         * lib/unistd.in.h (getdtablesize): Declare replacement.
360         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
361         * tests/test-getdtablesize.c (main): Test it.
362         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
363
364 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
365
366         pmccabe2html: escaping of special characters
367         Escape all '<', '>', and '&' in HTML output.
368         * build-aux/pmccabe2html (html_fnc): Call gsub()
369         instead of sub() to capture all '<', '>', and '&'.
370         Neither of '<' and '>' is special in a regexp,
371         so first arguments to gsub() are corrected. Also,
372         in replacement strings, ampersand must be escaped.
373         Finally, '&' must be handled first, then '<' and '>'.
374
375 2013-09-24  Eric Blake  <eblake@redhat.com>
376
377         manywarnings: enable nicer gcc warning messages
378         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
379         some -f options for optimal warnings.
380
381 2013-09-21  Jim Meyering  <meyering@fb.com>
382
383         timespec: use the new TIMESPEC_RESOLUTION in a few more places
384         * lib/timespec-add.c (timespec_add): Also replace 999999999
385         with TIMESPEC_RESOLUTION - 1.
386         * lib/timespec-sub.c (timespec_sub): Likewise.
387
388 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
389
390         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
391         Problem reported by Dagobert Michelsen via Eric Blake in
392         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
393         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
394         not AC_COMPILE_IFELSE.
395
396 2013-09-23  Eric Blake  <eblake@redhat.com>
397
398         configmake: support new --runstatedir option
399         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
400         even if autoconf was too old to provide the command line option.
401         * modules/configmake (Makefile.am): Propagate it to .h file.
402
403 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
404
405         ctype, string: depend on extern-inline
406         This is needed to complete the recent OS X fixes.
407         Also, fix related documentation as suggested by Eric Blake.
408         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
409         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
410         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
411         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
412         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
413         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
414         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
415         * doc/posix-functions/toupper.texi:
416         List the 'ctype' gnulib module.
417         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
418         * doc/posix-functions/strncpy.texi:
419         List the 'string' gnulib module.
420         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
421         Add string.
422         * modules/ctype, modules/string (Depends-on): Add extern-inline.
423
424 2013-09-19  Pádraig Brady  <P@draigBrady.com>
425
426         userspec: support optional parameters to parse_user_spec()
427         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
428         then avoid group processing and treat the full spec as a user.
429         (parse_with_separator): Allow the USERNAME and GROUPNAME to
430         be optional params (NULL), in which case they're ignored.
431
432 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
433
434         timespec: new function make_timespec, and new constants
435         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
436         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
437         (make_timespec): New function.
438         * lib/dtotimespec.c (dtotimespec):
439         * lib/timespec-add.c (timespec_add):
440         * lib/timespec-sub.c (timespec_sub):
441         * lib/utimens.c (validate_timespec):
442         * lib/utimensat.c (rpl_utimensat):
443         Use these new constants and functions.
444
445         stdio: OS X port of putc_unlocked + extern inline
446         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
447         * doc/posix-functions/putc_unlocked.texi:
448         * doc/posix-functions/putchar_unlocked.texi:
449         Document this portability problem.
450
451         signal: OS X port of sigaddset etc. + extern inline
452         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
453         (sigismember): #undef on problematic Apple platforms.
454         * doc/posix-functions/sigaddset.texi:
455         * doc/posix-functions/sigdelset.texi:
456         * doc/posix-functions/sigemptyset.texi:
457         * doc/posix-functions/sigfillset.texi:
458         * doc/posix-functions/sigismember.texi:
459         Document this portability problem.
460
461         extern-inline: do not always suppress extern inline on OS X
462         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
463         extern inline on Apple only if the particular compile-time
464         configuration is known to have the problem.
465         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
466         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
467         other Gnulib modules.
468
469         extern-inline: document fixes for ctype and wctype macros
470         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
471         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
472         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
473         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
474         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
475         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
476         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
477         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
478         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
479         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
480         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
481         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
482         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
483         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
484         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
485         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
486         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
487         * doc/posix-functions/strncpy.texi:
488         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
489         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
490         Document that Gnulib fixes portability problems with these
491         functions on OS X 10.8 and earlier when called from plain inline
492         or extern inline functions.
493
494 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
495
496         fflush, freadahead, fseeko: Fix for Android
497         Suggested by Bruno Haible in:
498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
499         * lib/stdio-impl.h: Use local __sfileext definition.
500
501 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
502
503         pmccabe2html: Portability to other awk versions.
504         The functions systime() and strftime() are available
505         in Gawk only.  Properly close two HTML-tags 'style'
506         and 'span'.
507         * build-aux/pmccabe2html (BEGIN): Store timing
508         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
509         systime() in HTML_COMMENT.
510         (html_header): Correctly close tag 'style'.
511         (END): Replace strftime() by CHRONOS_TIME.  Close
512         tag 'span' correctly, not as 'div'.
513
514 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
515
516         getgroups: statement without effect
517         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
518         Change equality conditional to expected assignment.
519
520 2013-09-09  Eric Blake  <eblake@redhat.com>
521
522         glob: fix compilation
523         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
524
525 2013-09-07  Eric Blake  <eblake@redhat.com>
526
527         glob: fix build for platforms without __THROW
528         * lib/glob.in.h (__THROW): Add definition again.
529
530 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
531
532         regex-quote: fix buffer access out of bounds
533         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
534         * lib/regex-quote.c (regex_quote_spec_pcre):
535         Fix typo that resulted in an out-of-bounds read.
536
537 2013-09-04  Eric Blake  <eblake@redhat.com>
538
539         glob: avoid -Wattribute warnings on glibc
540         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
541         __THROWNL, not __THROW, on static functions.
542         * lib/glob.in.h (__THROW): Adjust...
543         (__THROWNL): ...accordingly.
544
545 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
546
547         headers: check that _GL_INLINE_HEADER_BEGIN is defined
548         Suggested by Bruce Korb in:
549         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
550         * doc/extern-inline.texi (extern inline):
551         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
552         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
553         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
554         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
555         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
556         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
557         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
558         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
559         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
560         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
561         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
562         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
563         * lib/xtime.h:
564         Check that _GL_INLINE_HEADER_BEGIN is defined.
565
566 2013-08-29  Pádraig Brady  <P@draigBrady.com>
567
568         bootstrap: remove the --version requirement from ancillary tools
569         * build-aux/bootstrap (check_exists): A new refactored function to
570         determine if a command exists.
571         (find_tool): Use the new function which does not require the
572         --version option to be supported.
573         (check_versions): Use the new function.
574
575 2013-08-26  Simon Josefsson  <simon@josefsson.org>
576
577         gc: support HMAC-SHA256 and HMAC-SHA512.
578         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
579         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
580         functions.
581         (gc_hmac_md5): Use symbolic constant.
582         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
583         (gc_hmac_sha256, gc_hmac_sha512): New functions.
584         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
585         * m4/sha256.m4: Protect against empty expansion.
586         * m4/sha512.m4: Likewise.
587         * lib/hmac-sha256.c: New file.
588         * lib/hmac-sha512.c: Likewise.
589         * m4/gc-hmac-sha256.m4: Likewise.
590         * m4/gc-hmac-sha512.m4: Likewise.
591         * m4/gc-sha256.m4: Likewise.
592         * m4/gc-sha512.m4: Likewise.
593         * modules/crypto/gc-hmac-sha256: Likewise.
594         * modules/crypto/gc-hmac-sha256-tests: Likewise.
595         * modules/crypto/gc-hmac-sha512: Likewise.
596         * modules/crypto/gc-hmac-sha512-tests: Likewise.
597         * modules/crypto/hmac-sha256: Likewise.
598         * modules/crypto/hmac-sha256-tests: Likewise.
599         * modules/crypto/hmac-sha512: Likewise.
600         * modules/crypto/hmac-sha512-tests: Likewise.
601         * tests/test-gc-hmac-sha256.c: Likewise.
602         * tests/test-gc-hmac-sha512.c: Likewise
603         * tests/test-hmac-sha256.c: Likewise.
604         * tests/test-hmac-sha512.c: Likewise
605
606 2013-08-24  Daiki Ueno  <ueno@gnu.org>
607
608         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
609         of AC_CHECK_DECLS.
610
611 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
612
613         selinux-at: omit unnecessary include
614         * lib/selinux-at.c: Don't include dosname.h; not needed, since
615         this source file doesn't use its macros, and subsidiary files that
616         use the macros already include it.
617
618 2013-08-21  Eric Blake  <eblake@redhat.com>
619
620         d-ino: avoid false negative on symlink
621         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
622         Reported by Stephane Chazelas.
623
624 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
625
626         bootstrap: port to OpenBSD sed
627         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
628         does not interpret `-' as a file argument to mean stdin.
629
630 2013-08-15  Eric Blake  <eblake@redhat.com>
631
632         warnings: minor optimization
633         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
634
635         warnings: check -Wfoo rather than -Wno-foo
636         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
637         -Wno-, test if the compiler recognizes the positive form instead.
638
639 2013-08-15  Karl Berry  <karl@gnu.org>
640
641         * config/srclist-update: add option "doclicense" to placate
642         pulling *.texi files from Emacs.  Write terse usage
643         documentation at the top.
644
645 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
646
647         xvasprintf-tests: port to GCC with hardening flags
648         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
649         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
650         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
651
652 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
653
654         fpending: port to recent Cygwin change to stdio_ext.h
655         Reported by LRN in
656         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
657         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
658         just declare __fpending unless it's a macro.
659         A duplicate decl shouldn't hurt.
660         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
661         call compiles and links, instead of separately checking for
662         decl and lib function.
663         * modules/fpending (configure-ac):
664         Adjust to fpending.m4's renaming of shell variable.
665
666 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
667
668         sys_time: port to OpenBSD
669         * lib/sys_time.in.h: Simply delegate to the system's header
670         in the BSDish cases as well.  Problem reported by Mike Miller in
671         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
672         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
673         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
674         wider than time_t.
675
676 2013-08-09  Pádraig Brady <P@draigBrady.com>
677
678         bootstrap: support checksum utils having -c but not --status
679         * build-aux/bootstrap: Only look for sha1sum if updating po files.
680         Add sha1 to the list of supported checksum utils since it's now
681         supported through adjustments below.
682         (update_po_files): Remove the use of --status
683         in a way that will suppress all error messages, but since this is
684         only used to minimize updates, it shouldn't cause an issue.
685         Exit early if there is a problem updating the po file checksums.
686         (find_tool): Remove the check for --version support as this
687         is optional as per commit 86186b17.  Don't even check for the
688         presence of the command as if that is needed, it's supported
689         through configuring prerequisites in bootstrap.conf.
690         Prompt that when a tool isn't found, one can define an environment
691         variable to add to the hardcoded search list.
692
693 2013-08-05  Jim Meyering  <meyering@fb.com>
694
695         regex: port to non-glibc/lock-using systems
696         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
697         system with GNULIB_LOCK would fail due to absence of the
698         included "glthread/lock.h".  This would affect any package
699         for which the "lock" module is used only by the regex module,
700         and not explicitly used.
701         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
702         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
703         Add a dependency on the "lock" module.
704
705 2013-07-20  Daiki Ueno  <ueno@gnu.org>
706
707         localecharset: make locale_charset thread-safe on Mac OS X
708         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
709         instead of MB_CUR_MAX.
710
711 2013-07-20  Daiki Ueno  <ueno@gnu.org>
712
713         gettext: update to version 0.18.3
714         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
715         require AC_PROG_SED to allow user to specify custom sed command when
716         generating en@quot PO file.
717
718 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
719
720         bootstrap: use correct source when copying build-aux files
721         * build-aux/bootstrap (gnulib_extra_files): This variable is
722         relative to upstream gnulib layout, not downstream.
723
724 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
725
726         tmpdir: fix bug in VMS port
727         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
728         See Steven M. Schweda in
729         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
730
731 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
732
733         tmpdir: port to VMS, to // != /, and to long dirs
734         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
735         __secure_getenv, so that we're more like the glibc version.
736         All uses changed.
737         (path_search): Don't put slash after directory if __VMS.
738         Problem reported by Steven M. Schweda in
739         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
740         Simplify code to add slash; no need for a loop.
741         Do not remove trailing slash from "//".
742         Do not assume dlen <= INT_MAX.
743
744 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
745
746         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
747         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
748         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
749         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
750
751         accept4, dup3, pipe2: port to Cygwin
752         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
753         * lib/accept4.c (accept4) [O_BINARY]:
754         * lib/dup3.c (dup3) [O_BINARY]:
755         * lib/pipe2.c (pipe2) [O_BINARY]:
756         Use set_binary_mode, not setmode.
757         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
758         * modules/binary-io (Depends-on): Remove module indicator.
759         These last two bits undo the previous change to pipe2 and binary-io.
760
761 2013-07-09  Pádraig Brady  <P@draigBrady.com>
762
763         mountlist: add support for deallocating returned list entries
764         * lib/mountlist.c (free_mount_entry): A new exported function
765         to deallocate a mount list entry.
766         (read_file_system_list): Refactor to use the new deallocation function.
767         Suggested by Anton Ovchinnikov.
768
769 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
770
771         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
772         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
773         * lib/stdalign.in.h (_Alignas, _Alignof):
774         Port to FreeBSD 9.1, and to C11 and C++11.
775         (_Alignas): Also support ICC.
776         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
777         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
778
779 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
780
781         fnmatch: don't goto over declaration
782         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
783         undefined behavior for goto over a declaration.
784         Problem reported by Charlie Brown in
785         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
786
787         pipe2: decouple from binary-io a bit
788         This is for Emacs, which needs pipe2 but not binary-io.
789         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
790         * modules/binary-io (Depends-on): Add module indicator.
791
792 2013-07-03  Eric Blake  <eblake@redhat.com>
793
794         mgetgroups: relax license to LGPLv2+
795         * modules/getugroups (License): Change from GPLv3+.
796         * modules/mgetgroups (License): Likewise.
797         * modules/getgroups (License): Change from LGPLv3+.
798
799         xalloc-oversized: relax license to LGPLv2+
800         * modules/xalloc-oversized (License): Change from GPLv3+.
801
802         nproc: relax license to LGPLv2+
803         * modules/nproc (License): Change from LGPLv3+.
804
805         bootstrap: honor --no-git
806         * build-aux/bootstrap: Don't even try to use git when user is
807         pointing to a static checkout.
808
809 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
810
811         ignore-value: port to gcc -pedantic
812         * lib/ignore-value.h (ignore_value):
813         Port to gcc -pedantic, by using __extension__.
814         Reindent as per usual gnulib style nowadays.
815         Simplify GCC version check.
816
817 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
818
819         extern-inline: port to gcc -std=c89
820         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
821         Do not use __gnu_inline__ if pedantic and pre-C99.
822
823 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
824
825         doc: document extern-inline
826         * doc/extern-inline.texi: New file.
827         * doc/gnulib.texi (alloca-opt): Include it.
828         * m4/extern-inline.m4: Move some comments to documentation,
829         and others closer to what they describe.
830
831         doc: chatter less
832         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
833         (updated-stamp): Use it.  This causes 'make' to output just
834         one file name rather than zillions.
835
836         fflush, fseeko: port to musl cross-compiles
837         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
838         on some implementation that (1) is not known to be buggy,
839         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
840         cross-compiled to so we can't easily check for lack of
841         conformance.  This is for cross-compiling to musl.
842         Reported by Rich Felker in
843         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
844         * m4/fclose.m4 (gl_FUNC_FCLOSE):
845         * m4/fflush.m4 (gl_FUNC_FFLUSH):
846         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
847         Adjust to above change.
848         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
849         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
850         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
851         known not to work, or unknown.
852
853 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
854
855         msvc-inval: port to mingw-w64
856         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
857         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
858         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
859
860 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
861
862         getcwd-lgpl: port to Tru64
863         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
864         Problem reported by Steven M. Schweda in
865         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
866
867         tests: port large-fd POSIX spawn tests to OS X
868         Problem reported by Daiki Ueno in
869         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
870         * tests/test-posix_spawn_file_actions_addclose.c:
871         * tests/test-posix_spawn_file_actions_adddup2.c:
872         * tests/test-posix_spawn_file_actions_addopen.c:
873         Include <limits.h>, for OPEN_MAX, if available.
874         (big_fd): New static function.
875         (main): Use it.
876
877 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
878
879         tests/nap.h: use an adaptive delay to avoid ctime update issues
880         The recent change in nap.h (5191133e) decreased the probability of lost
881         races to about a third, however such problems could still be observed
882         in virtual machines and openSUSE's OBS.
883         Before, nap() detected the needed time once empirically and then used
884         that delay (together with a small correction multiplier) in further
885         calls.  This problem has been reported and discussed several times,
886         including guesses about possible kernel issues:
887         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
888         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
889         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
890         http://bugs.gnu.org/12820
891         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
892         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
893         Now, nap() avoids the race alltogether by verifying on a reference
894         file whether a timestamp difference has happened.
895         * tests/nap.h (nap_fd): Define file descriptor variable for the
896         witness file.
897         (nap_works): Change return value to bool.  Change passing
898         the old file's status by value instead of by reference as this function
899         does no longer update that timestamp; rename the function argument from
900         st to old_st.  Remove the local variables cdiff and mdiff because that
901         function now returns true/false instead of the precise delay.
902         (guess_delay): Remove function.
903         (clear_tmp_file): Add new function to close and unlink the witness file.
904         (nap): Instead of re-using the delay which has been calculated during
905         the first call, avoid the race by actually verifying that a timestamp
906         difference can be observed on the current file system.  Use an adaptive
907         approach for the delay to minimize execution time.  Assert that the
908         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
909         = 2^31 - 1 = 2.1s.
910         Use atexit to call clear_tmp_file when the process terminates.
911
912 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
913
914         sig2str: port to C++
915         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
916         Reported by Daniel J Sebald in
917         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
918
919 2013-05-30  Eric Blake  <eblake@redhat.com>
920
921         docs: mention cygwin shortcoming in <sys/un.h>
922         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
923
924         vasnprintf: silence mingw compiler warning
925         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
926
927 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
928
929         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
930         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
931         This fixes a porting bug I recently reintroduced in regex, and
932         some other instances that I discovered while testing the fix.
933         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
934         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
935         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
936         with an empty argument if this is a pedantic pre-C99 GCC.
937         * lib/verify.h: Do not use _Static_assert if this is a pedantic
938         pre-C11 GCC.
939
940         regex: adapt to locking regime instead of depending on pthread
941         Instead of depending on pthread, adapt to whatever thread
942         modules are in use.  Problem reported by Ludovic Courtès in
943         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
944         and by Mats Erik Andersson in
945         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
946         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
947         Support either the 'lock' module, or the 'pthread' module, or
948         no module.
949         (lock_lock, lock_unlock): New macros.
950         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
951         * modules/lock, modules/pthread (configure.ac): Add module indicator.
952         * modules/regex (Depends-on): Remove pthread.
953
954 2013-05-22  Eric Blake  <eblake@redhat.com>
955
956         getgroups: document portability issues
957         * doc/glibc-functions/initgroups.texi (initgroups): Mention
958         multithread safety.
959         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
960         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
961         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
962         getugroups.
963         * doc/posix-functions/getgroups.texi (getgroups): Mention
964         multithread safety and mgetgroups.
965
966 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
967
968         test-lchown, test-chown: also skip test if chown fails with EPERM
969         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
970         skip this test, to handle FAT file systems.
971         * tests/test-chown.h (test_chown): Likewise.
972
973 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
974
975         regex: fix dfa race in multithreaded uses
976         Problem reported by Ludovic Courtès in
977         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
978         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
979         New macros.  All uses of __libc_lock_define, __libc_lock_init
980         changed to use the first two of these.
981         (__libc_lock_lock, __libc_lock_unlock): New macros, for
982         non-glibc platforms.
983         (struct re_dfa_t): Define the lock unconditionally.
984         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
985         '#ifdef _LIBC"s.
986         * modules/regex (Depends-on): Add pthread, if we use the
987         included regex.
988
989         * lib/regcomp.c: Do actions that are not needed for glibc,
990         but may be needed elsewhere.
991         (regfree, re_compile_internal): Destroy the lock.
992         (re_compile_internal): Check for lock-initialization failure.
993
994         malloca: port to compilers that reject size-zero arrays
995         This fixes a bug introduced in my previous patch.
996         * lib/malloca.c (struct preliminary_header): Use an int
997         rather than a character array of size int; that's simpler.
998         (struct header): Remove, replacing with ...
999         (union header): New type.  This avoids the need for declaring a
1000         character array of size zero, which is not allowed on some platforms.
1001         All uses changed.
1002
1003 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1004
1005         parse-datetime, tests: don't use "string" + int
1006         Recent versions of 'clang' complain about C source code that
1007         uses expressions of the form '"string literal" + integer',
1008         I guess on the theory that it's confusing for readers who are
1009         used to C++.  On those grounds I suppose it's OK to make this
1010         minor style change.
1011         * lib/parse-datetime.y (parse_datetime):
1012         * tests/test-fchdir.c (main):
1013         * tests/test-snprintf-posix.h (test_function):
1014         * tests/test-snprintf.c (main):
1015         * tests/test-vasnprintf-posix.c (test_function):
1016         * tests/test-vasnprintf.c (test_function):
1017         * tests/test-vsnprintf.c (main):
1018         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1019         Rewrite '"str" + E' to '&"str"[E]'.
1020
1021 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1022
1023         argmatch: port to C++
1024         * lib/argmatch.h [__cplusplus]: Add extern "C".
1025
1026         argp: typo fix
1027         * lib/argp-help.c: Typo in comment.
1028
1029 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1030
1031         manywarnings: update for GCC 4.8.0
1032         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1033         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1034         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1035         -Wmissing-noreturn, as they are duplicates of other warnings.
1036         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1037         was documented to be flaky in earlier versions of GCC.
1038
1039         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1040         * tests/test-spawn.c (main):
1041         * tests/test-sys_socket.c (main):
1042         * tests/test-sys_wait.c (main):
1043         Don't have a switch value that isn't covered by a case.
1044
1045         getaddrinfo-tests: port --enable-gcc-warnings to clang
1046         * tests/test-getaddrinfo.c (simple):
1047         Avoid casts from looser to stricter-aligned pointers.
1048
1049         thread: port --enable-gcc-warnings to clang
1050         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1051         Include <signal.h>, to pacify a warning about pthread_sigmask.
1052
1053         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1054         * lib/stdio.in.h (fwrite):
1055         When working around bug 11959, use __REDIRECT rather than '#define
1056         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1057         fix the -Wunused-value issue with clang, and it works with GCC too.
1058         Problem with targeting reported by Eric Blake in
1059         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1060         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1061         debugging the fwrite issue.
1062
1063         stdio: port --enable-gcc-warnings to clang
1064         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1065         since the GCC workaround for fwrite does not pacify clang.
1066
1067         sig2str: port --enable-gcc-warnings to clang
1068         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1069
1070         obstack: port --enable-gcc-warnings to clang
1071         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1072         Avoid casts from looser to stricter-aligned pointers.
1073
1074         memchr2: port --enable-gcc-warnings to clang
1075         * lib/memchr2.c (memchr2):
1076         Avoid casts from looser to stricter-aligned pointers.
1077
1078         mbsstr: port --enable-gcc-warnings to clang
1079         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1080         Avoid casts from looser to stricter-aligned pointers.
1081
1082         malloca: port --enable-gcc-warnings to clang
1083         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1084         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1085
1086         inttostr: port --enable-gcc-warnings to clang
1087         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1088
1089         warnings: port to clang
1090         Problem reported by Daniel P. Berrange via Eric Blake in
1091         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1092         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1093         (gl_WARN_ADD): Use it.
1094
1095 2013-05-11  Jim Meyering  <meyering@fb.com>
1096
1097         quotearg: do not read beyond end of buffer
1098         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1099         end of an ARG for which no length was specified.  With an N-byte
1100         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1101         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1102         via coreutils' misc/sort-debug-keys.sh test and detected by running
1103         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1104         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1105         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1106         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1107         characters correctly."
1108
1109 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1110
1111         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1112         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1113         compilation target is Mac OS X 10.6.
1114         Problem reported by parafin and Andoni Morales in
1115         <http://savannah.gnu.org/bugs/?37844> and
1116         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1117
1118 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1119
1120         mkdir-p: remove assumptions about umask and mode
1121         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1122         umask is 0, or that MODE is a subset of MODE_BITS.
1123
1124 2013-05-10  Eric Blake  <eblake@redhat.com>
1125
1126         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1127         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1128
1129 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1130
1131         deps: require Automake >= 1.9.6 in generated Makefile fragments
1132
1133         That is the same minimal version required in the DEPENDENCIES file.
1134         Moreover, the old code generated a requirement of Automake >= 1.5,
1135         and that is an insanely outdated version.
1136
1137         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1138         * tests/havelib/rpathlx/Makefile.am: Likewise.
1139         * tests/havelib/rpathly/Makefile.am: Likewise.
1140         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1141         * tests/havelib/rpathlz/Makefile.am: Likewise.
1142         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1143         * tests/havelib/rpathx/Makefile.am: Likewise.
1144         * tests/havelib/rpathy/Makefile.am: Likewise.
1145         * tests/havelib/rpathz/Makefile.am: Likewise.
1146
1147 2013-05-08  Eric Blake  <eblake@redhat.com>
1148
1149         bootstrap: AC_INIT may have more than four parameters
1150         * build-aux/bootstrap (extract_package_name): Correctly extract
1151         non-empty tarname field.  Avoid range in regex.
1152         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1153
1154 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1155
1156         qacl: port to MS-Windows port of GNU Emacs
1157         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1158         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1159         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1160         <http://bugs.gnu.org/14295#14>.
1161
1162 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1163
1164         acl: include quote.h
1165         * lib/copy-acl.c: Include quote.h.
1166         * lib/set-acl.c: Likewise.
1167
1168 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1169
1170         fchownat, renameat, unlinkat: update statat dependencies
1171         These modules use statat and lstatat, not fstatat; so depend on
1172         the statat module, which was split out recently from fstatat.
1173         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1174         * modules/renameat: Likewise.  Also delete fstat.
1175         URL: http://bugs.gentoo.org/468790
1176
1177 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1178
1179         Assume gnulib is checked out from Git, not CVS
1180
1181         In fact, access to the gnulib repository through CVS has been
1182         disabled, or more precisely, got broken and was never restored; see:
1183         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1184
1185         Note that support for CVS is not removed completely and unthinkingly
1186         by this change: only support for CVS checkouts of gnulib itself is
1187         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1188         files and CVS directories, for the benefit of those poor gnulib clients
1189         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1190
1191         * gnulib-tool: Simplify accordingly.
1192         * posix-modules: Likewise.
1193         * MODULES.html.sh: Likewise.
1194         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1195         repository.
1196         * doc/gnulib-intro.texi: Likewise.
1197         * doc/gnulib-readme.texi: Likewise.
1198         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1199         sample '.gitignore' file rather than a sample '.cvsignore'.
1200         * NEWS: Update.
1201         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1202         to "CVS Autoconf" rather than "git Autoconf".
1203
1204 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1205
1206         utimensat-tests, etc.: try to fix some races
1207         Problem reported by Bernhard Voelker in
1208         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1209         I don't know whether this patch fixes that race condition, but it
1210         fixes *some* race conditions, so it should be a win.
1211         * modules/chown-tests (Depends-on):
1212         * modules/fchownat-tests (Depends-on):
1213         * modules/fdutimensat-tests (Depends-on):
1214         * modules/futimens-tests (Depends-on):
1215         * modules/lchown-tests (Depends-on):
1216         * modules/stat-time-tests (Depends-on):
1217         * modules/utimens-tests (Depends-on):
1218         * modules/utimensat-tests (Depends-on):
1219         Depend on nanosleep, not usleep.
1220         * modules/chown-tests (test_chown_LDADD):
1221         * modules/lchown-tests (test_lchown_LDADD):
1222         * modules/stat-time-tests (test_stat_time_LDADD):
1223         New macro.
1224         * modules/fchownat-tests (test_fchownat_LDADD):
1225         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1226         * modules/futimens-tests (test_futimens_LDADD):
1227         * modules/utimens-tests (test_utimens_LDADD):
1228         * modules/utimensat-tests (test_utimensat_LDADD):
1229         Add $(LIB_NANOSLEEP).
1230         * modules/stat-time-tests (Files): Add tests/nap.h.
1231         * tests/nap.h: Include <limits.h>, for INT_MAX.
1232         (lt_mtime): Remove.
1233         (diff_timespec): New function.
1234         (get_stat): Rename from get_mtime.  All callers changed.
1235         (nap_works): Determine the needed delay by inspecting the
1236         file system's timestamp jumps; this should be more reliable.
1237         Look at both mtime and ctime, and take the maximum of the two jumps.
1238         (nap_works, guess_delay):
1239         Return a nanosecond cound, not a microsecond count.
1240         All callers changed.
1241         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1242         failure.
1243         (nap): Multiply the guess by 1.125, to accommodate the case where
1244         the file system's clock is a bit slower than nanosleep's clock.
1245         * tests/test-stat-time.c (BASE): New macro.
1246         Include nap.h.
1247         (nap): Remove; nap.h now defines this.  This removes a duplicate
1248         implementation of 'nap'.
1249
1250         utimens, utimensat: work around Solaris UTIME_OMIT bug
1251         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1252         Linux kernel 2.6.32 does.  Work around it in the same way.
1253         * doc/posix-functions/futimens.texi (futimens):
1254         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1255         * lib/utimens.c (fdutimens, lutimens):
1256         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1257
1258         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1259         Formerly, it was your responsibility to do this for all Makefile.ams
1260         other than Gnulib's.  Now it's your responsibility to do it for
1261         Gnulib's Makefile.am, too.
1262         * NEWS: Document this.
1263         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1264
1265         acl: include errno.h to get errno
1266         Reported by Daiki Ueno in
1267         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1268         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1269
1270 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1271
1272         tests: don't assume getdtablesize () <= 10000000
1273         * modules/cloexec-tests:
1274         * modules/dup2-tests:
1275         * modules/dup3-tests:
1276         * modules/nonblocking-tests:
1277         * modules/posix_spawn_file_actions_addclose-tests:
1278         * modules/posix_spawn_file_actions_adddup2-tests:
1279         * modules/posix_spawn_file_actions_addopen-tests:
1280         * modules/unistd-safer-tests:
1281         Depend on the getdtablesize module.
1282         * tests/test-cloexec.c:
1283         * tests/test-dup-safer.c:
1284         * tests/test-dup2.c:
1285         * tests/test-dup3.c:
1286         * tests/test-fcntl.c:
1287         * tests/test-nonblocking.c:
1288         * tests/test-posix_spawn_file_actions_addclose.c:
1289         * tests/test-posix_spawn_file_actions_adddup2.c:
1290         * tests/test-posix_spawn_file_actions_addopen.c:
1291         Don't assume getdtablesize () <= 10000000.
1292
1293 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1294
1295         extern-inline: work around bug in Sun c99
1296         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1297         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1298
1299 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1300
1301         qacl: new module, broken out from the acl module
1302         This is for GNU Emacs, which wants the acl functions but does
1303         not want 'error' invoked when they fail.
1304         * lib/acl-internal.h: Do not include error.h, quote.h.
1305         (ENOSYS, ENOTSUP): Remove; no longer needed.
1306         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1307         * lib/acl.h: Include <stdbool.h>.
1308         (acl_errno_valid): New function.
1309         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1310         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1311         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1312         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1313         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1314         * lib/file-has-acl.c (file_has_acl):
1315         * lib/qcopy-acl.c (qcopy_acl):
1316         * lib/qset-acl.c (qset_acl):
1317         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1318         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1319         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1320         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1321         Add lib/set-acl.c.
1322         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1323         Add qacl.
1324         (configure.ac): Move gl_FUNC_ACL to qacl module.
1325         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1326         Rename set-mode-acl.c to set-acl.c.
1327         * lib/acl-errno-valid.c: New file.
1328         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1329         copy_acl function remains in copy-acl.c.
1330         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1331         (_): Remove; not needed.
1332         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1333         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1334         * modules/qacl: New file, moved from the old modules/acl.
1335         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1336         Remove set-mode-acl.c, copy-acl.c.
1337         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1338
1339         alignof, intprops, malloca: port better to IBM's C compiler
1340         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1341         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1342         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1343
1344 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1345
1346         wctype-h: fix gettext link error on mingw
1347         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1348         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1349         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1350         rpl_towupper and rpl_towupper.
1351
1352 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1353
1354         regex-tests, regex: allow glibc re_search behavior
1355         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1356         re_search input data to make the multi-character collating element
1357         in it clearly visible, and treat re_search return code 0 as valid.
1358         * m4/regex.m4 (gl_REGEX): Likewise.
1359
1360 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         stdalign: doc fix
1363         * doc/posix-headers/stdalign.texi (stdalign.h):
1364         Gnulib doesn't support '_Alignof expr'.
1365
1366 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1367
1368         stdalign: port to stricter ISO C11
1369         ISO C11 says that _Alignof's operand must be a parenthesized type.
1370         Problem reported by Eli Zaretskii in
1371         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1372         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1373         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1374
1375 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1376
1377         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1378         Problem reported by Marco Atzeri in
1379         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1380         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1381         Simply delegate to the system <sys/select.h> in this case too.
1382         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1383         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1384         be needed on Solaris either.
1385         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1386         Simply delegate to the system <sys/time.h> in this case.
1387
1388 2013-03-19  Karl Berry  <karl@gnu.org>
1389
1390         * build-aux/gnupload: check for erroneous (with gnupload) use of
1391         ftp-upload.gnu.org, tweak help.
1392
1393 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1394
1395         copy-file, rpmatch: fix problems found by cppcheck
1396         Reported by Arno Onken in
1397         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1398         * lib/rpmatch.c (try): Fix memory leak.
1399         * lib/copy-file.c: Include "ignore-value.h".
1400         (qcopy_file_preserving): Ignore chown value.
1401         * modules/copy-file (Depends-on): Add ignore-value.
1402
1403 2013-01-27  Jim Meyering  <jim@meyering.net>
1404
1405         prefix-gnulib-mk: give better diagnostics
1406         * build-aux/prefix-gnulib-mk: Don't just "die".
1407         Give better diagnostics upon failure.
1408
1409 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1410
1411         putenv: port to Solaris 10
1412         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1413         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1414         is not what is wanted here.
1415         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1416         declaration, not for its existence.
1417
1418 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         mktime: fix configure typo
1421         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1422
1423 2013-03-12  Eric Blake  <eblake@redhat.com>
1424
1425         regex-tests: skip UTF-8 test on mingw
1426         * modules/regex-tests (Depends-on): Add localcharset.
1427         * tests/test-regex.c (main): Use it to skip test on mingw.
1428
1429 2013-03-11  Eric Blake  <eblake@redhat.com>
1430
1431         tests: make it easier to bypass alarm time in debugger
1432         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1433         * tests/test-memmem.c (main): Likewise.
1434         * tests/test-passfd.c (main): Likewise.
1435         * tests/test-ptsname.c (main): Likewise.
1436         * tests/test-ptsname_r.c (main): Likewise.
1437         * tests/test-strcasestr.c (main): Likewise.
1438         * tests/test-strstr.c (main): Likewise.
1439
1440         regex: port to mingw's recent addition of undeclared alarm
1441         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1442         exists but still doesn't work in newer mingw.
1443         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1444         not existence.  Ensure SIGALRM is not trapped.
1445         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1446         * m4/regex.m4 (gl_REGEX): Likewise.
1447         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1448         * tests/test-regex.c (main): Use correct probe for alarm.
1449
1450         putenv: avoid compilation warning on mingw
1451         * lib/putenv.c (_unsetenv): Protect variable declaration.
1452         (putenv): Fix indentation.
1453
1454 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1455
1456         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1457         * lib/unistd.in.h: be careful not to include un-needed system
1458         stdlib.h from here, because that prevents gnulib stdlib.h from
1459         defining rpl_strtod correctly.
1460
1461 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1462
1463         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1464         changesets, but for the 'precision 0' test.
1465         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1466         round-to-even, since POSIX says rounding is implementation-defined
1467         and OS X 10.8.2 rounds 1.51 to 1 here.
1468
1469         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1470         changeset.
1471         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1472         round-to-even, since POSIX says rounding is implementation-defined
1473         and OS X 10.8.2 rounds 1.5 to 1 here.
1474
1475 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1476
1477         vasnprintf-posix-tests: allow rounding 1.5 to 1
1478         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1479         round-to-even, since POSIX says rounding is implementation-defined
1480         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1481         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1482
1483         bootstrap: port to FreeBSD
1484         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1485         that treat '--' differently.  Reported by Mats Erik Andersson in
1486         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1487
1488 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1489
1490         regex: rename remaining __attribute calls to __attribute__.
1491         2012-02-25 changed definition of __attribute, but left some uses
1492         unchanged, preventing compilation of regex module on most non-gcc
1493         environments.
1494         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1495         (lookup_collation_sequence_value, build_range_exp)
1496         (build_collating_symbol): Set attributes with newly renamed
1497         __attribute__ decorator.
1498         * lib/regex_internal.c (re_string_peek_byte_case)
1499         (re_node_set_compare, re_node_set_contains): Likewise.
1500         * lib/regexec.c (acquire_init_state_context): Likewise.
1501
1502 2013-03-06  Bruno Haible  <bruno@clisp.org>
1503
1504         execute: Revert last change, but use a different condition.
1505         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1506         on Windows.
1507
1508 2013-03-05  Eric Blake  <eblake@redhat.com>
1509
1510         execute: drop dead code
1511         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1512
1513 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1516         * m4/non-recursive-gnulib-prefix-hack.m4
1517         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1518         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1519         <http://bugs.gnu.org/10305#237>.
1520
1521 2013-03-04  Eric Blake  <eblake@redhat.com>
1522
1523         test-getsockopt: avoid compiler warning
1524         * tests/test-getsockopt.c (includes): Ensure close is declared.
1525
1526 2013-03-02  Bruno Haible  <bruno@clisp.org>
1527
1528         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1529         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1530
1531 2013-03-02  Bruno Haible  <bruno@clisp.org>
1532
1533         gettext: Update to version 0.18.2.
1534         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1535         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1536                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1537
1538 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1539
1540         regex: merge patches from libc
1541
1542         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1543         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1544         All uses changed.
1545         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1546         (re_string_wchar_at, re_string_elem_size_at):
1547         Mark function as possibly unused.
1548
1549         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1550         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1551         elements compare against the byte sequence of it, not its name.
1552
1553 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1554
1555         putenv: port better to native Windows
1556         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1557         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1558         (_unsetenv): Use _putenv if available.
1559         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1560         a bit less likely to cause damage.
1561         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1562         Fix the wrong value with SetEnvironmentVariable.
1563         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1564         code better.
1565
1566 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1567
1568         regex: ignore old-style-definition warnings
1569         * lib/regex.c: Add pragma to ignore these warnings.
1570         Problem reported for GNU tar by Pavel Raiskup.
1571
1572 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1573
1574         getcwd: support coreutils better
1575         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1576         but this might not be correct in coreutils, which disables
1577         the raw decl checks.  Problem reported by Nagendra in
1578         <http://bugs.gnu.org/10305#192>.
1579         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1581         Test the getcwd function, not any macro, since getcwd.c wants the
1582         function.
1583         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1584         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1585         compile, as might happen if there's a macro but no function.
1586
1587         strtod: support coreutils better
1588         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1589         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1590         disables the raw decl checks.  This assumes there is an underlying
1591         strtod, but that's a safe assumption these days.
1592         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1593
1594         mountlist: port to HP NonStop
1595         Reported by Joachim Schmitz in
1596         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1597         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1598         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1599
1600 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1601
1602         extern-inline: avoid compilation error with HP-UX cc
1603         Reported by Richard Lloyd in
1604         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1605         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1606         Suppress extern inline with HP-UX cc.  This should be safe,
1607         though it may hurt performance.  Perhaps someone with some HP-UX
1608         experience can come up with a higher-performance fix.
1609
1610 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1611
1612         putenv: fix heap corruption with mixed putenv/_putenv
1613         Problem reported by Michael Goffioul in
1614         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1615         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1616         Rely on _putenv to allocate the new environment.
1617         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1618         * modules/putenv (configure.ac): Use it.
1619
1620 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         unsetenv etc.: port to Solaris 11 + GNU Emacs
1623         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1624         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1625         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1626         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1627         idea but is too painful to fix right now), and without this gnulib
1628         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1629         compiling unsetenv.c on Solaris 11.  Fix the problem for
1630         unsetenv.c, and fix other similar occurrences.
1631
1632 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1633
1634         secure_getenv: fix C++ declaration typo
1635         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1636         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1637         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1638
1639 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1640
1641         careadlinkat: stop exporting careadlinkatcwd
1642         Only Emacs used it directly, and Emacs no longer needs it.
1643         * NEWS: Document this simplification.
1644         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1645         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1646         for readlink.
1647         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1648         Don't include stdlib.h; no longer needed.
1649         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1650         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1651         * modules/areadlink (Depends-on): Add readlink.
1652         (Maintainer): Add self.
1653         * modules/careadlinkat (Depends-on): Remove readlink.
1654
1655         extensions: port better to HP-UX
1656         This is merged from git Autoconf.
1657         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1658         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1659         so that it's compatible with the value used when compiling.
1660
1661         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1662         Problem reported by Mats Erik Andersson in
1663         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1664         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1665         openpty function exists, not merely when we intend to replace it.
1666         This corrects the 2013-01-31 patch, which mistakenly defined
1667         HAVE_OPENPTY even on hosts that lacked it.
1668
1669 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1670
1671         secure_getenv: fix include typo
1672         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1673
1674         secure_getenv: port better to FreeBSD and Solaris
1675         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1676         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1677         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1678         This works better on BSDish platforms.
1679         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1680         Test for issetugid if __secure_getenv is missing.
1681
1682 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1685         Some of these changes are merged in from git Autoconf.
1686         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1687         When deciding whether to define _XOPEN_SOURCE, inspect the
1688         preprocessor macro __hpux instead of the more-heavyweight
1689         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1690         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1691         as the key for __EXTENSIONS__.
1692
1693         unistd: avoid namespace pollution on non-glibc systems
1694         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1695         This avoids namespace pollution on non-glibc systems, by causing
1696         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1697         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1698         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1699
1700 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1701
1702         tmpdir: use secure_getenv
1703         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1704         Define to secure_getenv, not getenv.
1705         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1706         as that's now secure_getenv's job.
1707         * modules/tmpdir (Depends-on): Add secure_getenv.
1708
1709         tempname: use secure_getenv
1710         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1711         Define to secure_getenv, not getenv.
1712         * modules/tempname (Depends-on):
1713         Add secure_getenv.
1714
1715         secure_getenv: new module
1716         * MODULES.html.sh (Extra functions based on ANSI C 89):
1717         Add secure_getenv.
1718         * doc/glibc-functions/secure_getenv.texi: New file.
1719         * doc/gnulib.texi: Include it.
1720         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1721         New files.
1722         * lib/stdlib.in.h (secure_getenv): New decl.
1723         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1724         * modules/stdlib (stdlib.h):
1725         Add secure_getenv checks.
1726
1727 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1730         Reported for OS X 10.8.2 by Assaf Gordon in
1731         <http://bugs.gnu.org/13516>.
1732         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1733         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1734         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1735         so that they can be kept in sync more easily.  Avoid PATH_MAX
1736         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1737         mkdir or chdir failure.
1738         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1739         lib/getcwd.c.
1740         (test_abort_bug): Do not test for the deep directory bug unless we
1741         have openat support.  Avoid PATH_MAX test on the Hurd.
1742
1743         regex-tests, regex: fix bug: memset undeclared
1744         * tests/test-regex.c: Don't include regex.h twice.  Include
1745         string.h, to declare memset.  Christensen's report also mentioned
1746         this issue.
1747         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1748         test-regex.c, to avoid future problems like this.  Remove
1749         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1750         twice.
1751
1752         regex-tests: fix link errors on older Solaris
1753         These need to link with @LIBINTL@ to get libintl_gettext.
1754         Problem reported by Tom G. Christensen in
1755         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1756         * modules/regex-tests (test_regex_LDADD): New macro.
1757
1758 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1759
1760         regex-tests: new module
1761         * modules/regex-tests, tests/test-regex.c: New files.
1762
1763         regex: fix off-by-one error in configure test
1764         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1765
1766 2013-01-31  Eric Blake  <eblake@redhat.com>
1767
1768         regex: avoid infinite configure test
1769         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1770
1771 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1772
1773         openpty: fix bug where HAVE_OPENPTY wasn't defined
1774         See the thread starting at:
1775         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1776         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1777         openpty function exists, not merely when we intend to replace it.
1778
1779 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1780
1781         sys_time: port to Solaris 2.6
1782         There is a circularity problem on Solaris 2.6, where <time.h> includes
1783         <sys/time.h> for struct timespec.  The include nesting is gnulib
1784         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1785         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1786         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1787         <sys/siginfo.h>; the last, innermost file needs struct
1788         timestruc_t, which is defined in <sys/time.h>, which has not been
1789         fully parsed.  Problem reported by Tom G. Christensen in
1790         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1791         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1792         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1793         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1794         uses split double-inclusion guards.
1795
1796 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1797
1798         regex: test for buffer overrun
1799         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1800         for the just-fixed regex bug.
1801
1802 2013-01-29  Andreas Schwab  <schwab@suse.de>
1803
1804         regex: fix buffer overrun in regexp matcher [BZ #15078]
1805         * lib/regexec.c (extend_buffers): Add parameter min_len.
1806         (check_matching): Pass minimum needed length.
1807         (clean_state_log_if_needed): Likewise.
1808         (get_subexp): Likewise.
1809
1810 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1811
1812         mountlist: don't consider "devtmpfs" as dummy
1813         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1814         as there is storage associcated with it.
1815
1816 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1817
1818         futimens-tests, utimens-tests: Depend on gettext.
1819         This works around a problem introduced in my 2013-01-12 patch,
1820         which added @LIBINTL@ to these modules.
1821         * modules/futimens-tests (Depends-on):
1822         * modules/utimens-tests (Depends-on): Add gettext.
1823
1824 2013-01-26  Eric Blake  <eblake@redhat.com>
1825
1826         test-getpeername: fix typo
1827         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1828
1829 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1830
1831         bootstrap: remove the need for a sorted .gitignore file
1832         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1833         rename to insert_if_absent(), so that we don't need or generate
1834         a sorted .gitignore file.  We do require a .gitignore with no
1835         existing duplicate entries and enforce that.
1836         (sort_patterns): Remove this function as we now use the simpler
1837         technigue of inserting blacklist entries at the top of the file,
1838         assuming gnulib won't be inserting !whitelist entries.
1839
1840 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1841
1842         readlinkat: don't depend on gl_FUNC_OPENAT
1843         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1844         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1845         renameat.m4, symlinkat.m4; but one thing at a time.
1846
1847         statat: new module, split out from fstatat
1848         GNU Emacs needs the POSIX-specified fstatat, but not the
1849         gnulib-specified statat and lstat.  Split the latter two into a
1850         new module 'statat'.
1851         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1852         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1853         Rename from FSTATAT_INLINE. All uses changed.
1854         * modules/fstatat (Files): Remove lib/statat.c.
1855         (gl_MODULE_INDICATOR([fstatat])): Remove.
1856         (lib_SOURCES): Remove.
1857         (Maintainer): Add self.
1858         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1859         * tests/test-fstatat.c (BASE): Don't define if already defined.
1860         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1861
1862 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1863
1864         tests: don't assume fd 99 is closed
1865         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1866         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1867         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1868         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1869         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1870         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1871         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1872         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1873         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1874         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1875         * tests/test-fwrite.c, tests/test-getpeername.c:
1876         * tests/test-getsockname.c, tests/test-getsockopt.c:
1877         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1878         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1879         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1880         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1881         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1882         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1883         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1884         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1885         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1886         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1887         Close file descriptor 99, instead of assuming it's already closed.
1888
1889 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1890
1891         stpncpy: port to OS X 10.8
1892         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1893         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1894
1895 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1896
1897         unistd: port to recent mingw
1898         * lib/unistd.in.h: Remove special invocation convention for mingw,
1899         which breaks for the latest mingw version.  See John W. Eaton in
1900         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1901
1902         largefile: port better to Mac OS X 10.5
1903         This patch is backported from Autoconf git.
1904         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1905         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1906         with ino_t size being different for configuration time versus
1907         build/run time.  Problem reported by PHO in
1908         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1909
1910 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1911
1912         doc: clarify -Werror
1913         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1914         clarify that it's intended for developers, not for ordinary builds,
1915         and mention --enable-gcc-warnings as one possible use.
1916
1917 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1918
1919         stdint: fix build with Android's Bionic fox x86
1920         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1921         was already included as _SSIZE_T_DEFINED_ might also be defined
1922         in include/machine/_types.h, which is included by stdio.h
1923
1924 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         net_if-tests: port to Solaris 7 + GCC 3.4.6
1927         Problem reported by Tom G. Christensen in
1928         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1929         * tests/test-net_if.c (ni): Move to next the code that uses it,
1930         so that it's declared only if needed.
1931
1932 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1933
1934         net_if-tests: port to older Solaris
1935         Problem reported by Tom G. Christensen in
1936         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1937         * modules/net_if-tests (NET_IF_LIB): New substitution.
1938         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1939         (HAVE_IF_NAMEINDEX): New C macro.
1940         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1941
1942         system-quote-tests: port to older Solaris
1943         Problem reported by Tom G. Christensen in
1944         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1945         * tests/test-system-quote-child.c (fopen, fread): Undef.
1946
1947         c-xvasprintf etc.: fix link errors on older Solaris
1948         These need to link with @LIBINTL@ to get libintl_gettext.
1949         Problem reported by Tom G. Christensen in
1950         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1951         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1952         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1953         * modules/futimens-tests (test_futimens_LDADD):
1954         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1955
1956 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1957
1958         locale: port to Solaris 2.6 and 7 + GNU gettext
1959         * lib/locale.in.h: Just include_next <locale.h> when
1960         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1961         when combining the localename module with GNU gettext 0.18.2.
1962         Problem reported by Tom G. Christensen in
1963         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1964
1965 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1966
1967         stdlib: port to Solaris 2.6
1968         Also, the code worked on Solaris 7 through 9 only by accident.
1969         Problem reported by Tom G. Christensen in
1970         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1971         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1972         simply include the system stdlib.h.
1973         * lib/getopt.in.h (__need_system_stdlib_h):
1974         * lib/pthread.in.h (__need_system_stdlib_h):
1975         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1976         Define when including <stdlib.h>, to avoid problems at least for
1977         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1978         with the system stdlib.h.
1979
1980 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1981
1982         doc: update main copyright year
1983         * doc/gnulib.texi: Update copyright date.
1984
1985         doc: improve ISO 8601 discussion
1986         * doc/parse-datetime.texi (Combined date and time of day items):
1987         Specify more carefully what formats are supported and what is
1988         done with excess precision.
1989
1990 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         doc: avoid small caps
1993         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1994         they're more trouble than they're worth.  Suggested by Karl Berry
1995         in <http://bugs.gnu.org/13360>.
1996
1997         regex: conform to strict C
1998         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1999         From Aharon Robbins.
2000
2001         gnulib-tool: fix incompatibility with autopoint 0.18.2
2002         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2003         Problem reported by Tom G. Christensen in
2004         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2005
2006 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2007
2008         fprintftime: bring back and reword fwrite comment
2009         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2010
2011         stdio: remove now-unnecessary stdio.c
2012         Since stdio.in.h no longer uses inline functions, we no longer
2013         need to compile the extern versions.
2014         * lib/stdio.c: Remove.
2015         * modules/stdio (Files): Remove lib/stdio.c.
2016         (lib_SOURCES): Remove.
2017
2018         unicodeio: depend on stdio, not ignore-value
2019         * lib/unicodeio.c: Do not include ignore-value.h.
2020         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2021         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2022
2023         fprintftime: depend on stdio, not ignore-value
2024         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2025         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2026         since the stdio module arranges to silence that warning now.
2027         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2028
2029 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2030
2031         stdint-tests: Fix expanded-before-required-warning.
2032         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2033
2034 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2035
2036         fwrite: silence __wur only for older glibc versions
2037         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2038         This will help us remove this workaround some time in the far future.
2039
2040 2013-01-03  Eric Blake  <eblake@redhat.com>
2041
2042         fwrite: silence __wur without using inline
2043         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2044         just gcc, and in a way that avoids inline issues.
2045         * modules/stdio (Depends-on): Drop extern-inline.
2046
2047 2013-01-03  Jim Meyering  <jim@meyering.net>
2048
2049         update-copyright: avoid copyright notice date corruption
2050         Given a sequence of copyright year numbers in which the final
2051         one was a two-digit number that happened to be a substring of
2052         a preceding four-digit year number, we would mistakenly update
2053         the substring (from two- to four-digit) rather than the two-digit
2054         number at the end, which, combined with the addition of the current
2055         4-digit year number would yield two 5-digit year numbers, e.g.,
2056         here, it would convert the first "99" to "1999, 2013" rather than
2057         the final one:
2058           1991, 99
2059           11999, 20131, 1999
2060         * build-aux/update-copyright: Tighten a regexp.
2061         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2062         Reported by Joseph Myers in
2063         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2064
2065 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         regex: omit needless signed-pointer casts
2068         * lib/regcomp.c (build_charclass, build_charclass_op):
2069         Use char *, not unsigned char *, for class name and extra.
2070         The char values are always nonnegative so there's no need to
2071         insist on unsigned char * here, and using char * removes the need
2072         for casts.  Reported by Aharon Robbins in
2073         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2074
2075         regex: support Gawk, which never uses alloca
2076         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2077         Do not include in this case.  Gawk doesn't supply a substitute
2078         alloca.h and doesn't need one.
2079
2080         regex: port __libc_lock_define usage to C89
2081         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2082         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2083         does not conform to C89, as it has an empty macro argument.
2084         Reported by Aharon Robbins in
2085         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2086
2087 2013-01-01  Eric Blake  <eblake@redhat.com>
2088
2089         maint: update all copyright year number ranges
2090         Run "make update-copyright".
2091
2092         version-etc: bump copyright year reported in --version
2093         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2094
2095 2012-12-31  Eric Blake  <eblake@redhat.com>
2096
2097         sigprocmask-tests: skip test if pid is unexpectedly large
2098         * tests/test-sigprocmask.c (main): Add range check.
2099
2100         git-version-gen: avoid test -z portability glitch
2101         * build-aux/git-version-gen: Prefer portable test spelling, since
2102         git-version-gen is run on more than just developer machines.
2103
2104 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2105
2106         git-version-gen: add --fallback option to use if git is not present
2107         * build-aux/git-version-gen: Add support for the new option --fallback,
2108         which comes into play when there is no $tarball_version_file and
2109         git is not working.
2110         (scriptversion): Update.
2111
2112         maint.mk: handle missing git with more grace
2113         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2114         Quietly proceed if git is not present.
2115
2116 2012-12-31  Eric Blake  <eblake@redhat.com>
2117
2118         dup2: work around cygwin bug
2119         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2120         * lib/dup2.c (rpl_dup2): Work around it.
2121         * doc/posix-functions/dup2.texi (dup2): Document it.
2122
2123 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2124
2125         regex: remove unnecessary dependency on localcharset.h
2126         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2127         hasn't been needed for years.
2128         * modules/regex (Depends-on): Remove localcharset.
2129
2130         regex: revert single-byte change
2131         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2132         to this function.  This was alredy fixed in a different way, at
2133         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2134         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2135         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2136
2137         regex: simplify based on Gawk version
2138         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2139         Reported by Aharon Robbins in
2140         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2141
2142 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2143
2144         regex: check that pattern char is single-byte
2145         Reported by Aharon Robbins in
2146         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2147         * lib/regexec.c (check_node_accept_bytes):
2148         Return 0 if the pattern string has a multibyte character here.
2149
2150         regex: implement rational ranges
2151         Reported by Aharon Robbins in
2152         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2153         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2154         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2155         Implement rational ranges.
2156
2157         regex: avoid redefining __wctype
2158         Reported by Aharon Robbins in
2159         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2160         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2161         #undef before defining.
2162
2163         regex: port to hosts where malloc (0) == NULL
2164         Reported by Aharon Robbins in
2165         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2166         * lib/regex_internal.c (re_node_set_alloc):
2167         Don't assume that malloc (0) yields nonnull.
2168         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2169         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2170         * modules/regex (Files): Add m4/eealloc.m4.
2171
2172         regex: port to C89
2173         Reported by Aharon Robbins in
2174         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2175         * lib/regcomp.c (init_word_char): Declaration before statement.
2176
2177         regex: merge glibc changes
2178         Also, copy the license wording from glibc.  This simplifies
2179         merging changes.  gnulib-tool will change the wording to GPL as
2180         appropriate, when importing it to other packages.  The only
2181         glibc change made since the last merge, which needs merging, is:
2182         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2183         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2184
2185         * users.txt: Add Emacs.
2186
2187         doc: omit mention of version when not needed
2188         * doc/gnulib-intro.texi (Portability and Application Code):
2189         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2190         Don't mention particular dates or versions when not necessary, so
2191         that the documentation won't go out of date so quickly.
2192
2193         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2194
2195 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2196
2197         bootstrap: pass --force to autoreconf.
2198         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2199         Add "--force" so that Automake's ylwrap and other such tools
2200         be updated at each bootstrap invocation.
2201         Use it.
2202
2203 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2206         The earlier patch forgot to update one of the #if conditions, causing
2207         a problem on Debian testing i386 reported by Mats Erik Andersson
2208         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2209         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2210         (__argp_fmtstream_puts, argp_fmtstream_puts)
2211         (__argp_fmtstream_write, argp_fmtstream_write)
2212         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2213
2214         * doc/gnulib-readme.texi: Minor fixups.
2215         (Portability guidelines): Modernize URLs.  Remove some repetition.
2216         (Indent with spaces not TABs): Reword to avoid too-long lines.
2217         Remove some '@ifset standalone' stuff that isn't used.
2218
2219         * doc/gnulib-readme.texi (Portability guidelines):
2220         ctype.h, not ctime.h.
2221
2222         Correct name of POSIX.1-2001.
2223         * doc/posix-functions/fgetc.texi (fgetc):
2224         * doc/posix-functions/fgets.texi (fgets):
2225         * doc/posix-functions/fread.texi (fread):
2226         * doc/posix-functions/fscanf.texi (fscanf):
2227         * doc/posix-functions/getc.texi (getc):
2228         * doc/posix-functions/getchar.texi (getchar):
2229         * doc/posix-functions/scanf.texi (scanf):
2230         POSIX.1-2001, not POSIX-2001.
2231
2232         doc: move README into manual
2233         * README: Move contents to new file doc/gnulib-readme.texi.
2234         Replace with a one-line summary.
2235         * doc/gnulib.texi (Brief Overview): New section,
2236         with old intro preface.  Include gnulib-readme.texi for contents.
2237         (Philosophy): Rename from "Introduction", since this
2238         section no longer introduces the rest.  Write a new preface.
2239         * doc/gnulib-readme.texi: New file, with the old contents of
2240         README texinfo-ized.  This way, the README info appears
2241         in the online and printed manual.
2242
2243 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2244
2245         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2246         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2247         c_vasprintf() prototype.
2248
2249 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2250
2251         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2252         * lib/c-vasprintf.h: Remove stray semicolon.
2253
2254 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2255
2256         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2257         It is obsolete and is planned to be removed from Automake 1.14; see
2258         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2259         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2260         (installdirs-data, installdirs-data-yes):
2261         Use $(MKDIR_P), not $(mkdir_p).
2262         * m4/intl.m4 (AM_INTL_SUBDIR):
2263         * m4/po.m4 (AM_PO_SUBDIRS):
2264         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2265
2266 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2267
2268         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2269         On this platform, we are not optimizing but we are using
2270         the substitute for extern inlines, so compile as if
2271         C99-style extern inline, or a substitute, is available.
2272         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2273         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2274         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2275         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2276         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2277         Declare as ARGP_FS_EI, not as extern.
2278         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2279         (__option_is_short, _option_is_end, __option_is_end)
2280         [!_LIBC && __USE_EXTERN_INLINES]:
2281         Declare as ARGP_EI, not as extern.
2282
2283 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2284
2285         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2286         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2287         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2288         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2289         ...), as the latter is fatal with older Autoconfs.
2290         Problem reported and fix suggested by Eric Blake in thread starting at
2291         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2292
2293 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2294
2295         AC_PROG_MKDIR_P: don't workaround if not buggy
2296         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2297         Define only for Autoconf versions before 2.62.
2298         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2299         undocumented m4_PACKAGE_VERSION, for consistency with the
2300         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2301         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2302         was introduced in 2.62.
2303
2304 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2305
2306         New 'c-*printf' modules for formatted output in C locale.
2307
2308         New module 'c-vasnprintf'.
2309         * modules/c-vasnprintf: New file.
2310         * lib/c-vasnprintf.c: New file.
2311         * lib/c-vasnprintf.h: New file.
2312
2313         New module 'c-snprintf'.
2314         * modules/c-snprintf: New file.
2315         * modules/c-snprintf-tests: New file.
2316         * lib/c-snprintf.c: New file.
2317         * lib/c-snprintf.h: New file.
2318         * tests/test-c-snprintf.c: New file.
2319         * tests/test-c-snprintf.sh: New file.
2320
2321         New module 'c-vsnprintf'.
2322         * modules/c-vsnprintf: New file.
2323         * modules/c-vsnprintf-tests: New file.
2324         * lib/c-vsnprintf.c: New file.
2325         * lib/c-vsnprintf.h: New file.
2326         * tests/test-c-vsnprintf.c: New file.
2327         * tests/test-c-vsnprintf.sh: New file.
2328
2329         New module 'c-vasprintf'.
2330         * modules/c-vasprintf: New file.
2331         * modules/c-vasprintf-tests: New file.
2332         * lib/c-asprintf.c: New file.
2333         * lib/c-vasprintf.c: New file.
2334         * lib/c-vasprintf.h: New file.
2335         * tests/test-c-vasprintf.c  +: New file.
2336         * tests/test-c-vasprintf.sh: New file.
2337
2338         New module 'c-xvasprintf'.
2339         * modules/c-xvasprintf: New file.
2340         * modules/c-xvasprintf-tests: New file.
2341         * lib/c-xasprintf.c: New file.
2342         * lib/c-xvasprintf.c: New file.
2343         * lib/c-xvasprintf.h: New file.
2344         * tests/test-c-xvasprintf.c: New file.
2345         * tests/test-c-xvasprintf.sh: New file.
2346
2347 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2348
2349         argp: better 'inline'
2350         Use extern-inline module to declare extern inline functions.
2351         This avoids some bogus warning diagnostics.  Problem discovered
2352         when modifying GNU tar to use the manywarnings module.
2353         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2354         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2355         Define based on extern-inline.
2356         * modules/argp (Depends-on): Add extern-inline.
2357
2358 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2359
2360         filemode, sys_stat: Handle MPX files a la AIX.
2361         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2362         * lib/sys_stat.in.h (S_ISMPX): New macro.
2363         * tests/test-sys_stat.c: Add tests for MPX files.
2364
2365 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2366
2367         x-to-1: honor $PERL
2368         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2369         a chance to use his preferred version of Perl.  This is typically
2370         required by Darwin users whose default /usr/bin/perl does not have all
2371         the libraries required by help2man, and who need to use their MacPorts
2372         installation of Perl instead.
2373
2374 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2375
2376         gnu-web-doc-update: add all the new files, even in new directories
2377         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2378         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2379         Use it.
2380         (main): Don't use cvsutils to get the list of unknown files,
2381         just add all the existing files and directories.
2382
2383 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2384
2385         gnu-web-doc-update: improve --help
2386         * build-aux/gnu-web-doc-update: Move comments into --help.
2387
2388 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2389
2390         mountlist: recognize more "dummy" file systems
2391         * lib/mountlist.c (ME_DUMMY_0):
2392         Add these dummy FS names to the list:
2393         - "debugfs" virtual filesystem for kernel debugging
2394         - "devpts" PTY slave filesystem
2395         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2396         - "fusectl" control filesystem for FUSE
2397         - "mqueue" enumerates POSIX message queues
2398         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2399         - "sysfs" is for exporting kernel objects
2400         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2401
2402 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2403
2404         extern-inline: avoid incompatibility with Darwin Libc
2405         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2406         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2407         Problem reported by Akim Demaille in
2408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2409
2410 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2411
2412         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2413         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2414         let it handle password prompting.
2415
2416 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2417
2418         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2419         * lib/canonicalize.c (canonicalize_filename_mode):
2420         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2421         fetching the current directory.  Don't overrun the beginning of
2422         rpath if there's no slashes after the MS-Windows drive letter.
2423
2424 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2425
2426         maint.mk: avoid extra forks
2427         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2428         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2429         So use that instead of "$(shell test -f FILE && echo FILE)".
2430
2431 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2432
2433         vasnprintf: fix ASCII_ONLY typo
2434         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2435         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2436         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2437         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2438         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2439
2440 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2441
2442         list, oset, xlist, xoset: fix extern inline issue with C99
2443         This was introduced by my recent changes for 'inline'.
2444         Problem reported for gettext by Daiki Ueno in
2445         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2446         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2447         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2448         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2449         (gl_list_previous_node, gl_list_get_at)
2450         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2451         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2452         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2453         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2454         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2455         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2456         (gl_list_iterator_free, gl_sortedlist_search)
2457         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2458         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2459         (gl_sortedlist_remove):
2460         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2461         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2462         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2463         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2464         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2465         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2466         (gl_list_add_at, gl_sortedlist_add):
2467         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2468         Wrap these extern decls inside "#if 0", because they are implemented
2469         as inline functions, and extern inline is not what's wanted here.
2470         It would simplify these .h files to remove the extern decls entirely,
2471         although a downside would be less-clear separation between
2472         specification and implementation.
2473
2474 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2475
2476         sys_stat: no 'static inline'
2477         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2478         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2479
2480         extern-inline: no 'static inline'
2481         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2482         Do not require AC_C_INLINE.
2483         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2484         'static inline', for older compilers.
2485
2486         snippet/warn-on-use: no 'static inline'
2487         * build-aux/snippet/warn-on-use.h:
2488         Remove unnecessary 'inline' in comment.
2489
2490         rbtree-list, rbtreehash-list: no 'static inline'
2491         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2492         * lib/gl_anytree_list2.h (node_at):
2493         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2494         (gl_oset_first, add_nodes_to_buckets):
2495         Now static, not static inline.
2496
2497         regex: no 'static inline'
2498         * lib/regex_internal.c (calc_state_hash):
2499         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2500         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2501         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2502         Now static, not static inline.
2503         (inline) [__GNUC__ < 3 && _LIBC]:
2504         Remove macro; no longer needed.
2505
2506         xvasprintf: no 'static inline'
2507         * lib/xvasprintf.c (xstrcat):
2508         Now static, not static inline.
2509         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2510         Do not require AC_C_INLINE.
2511
2512         parse-datetime, parse-duration: no 'static inline'
2513         * lib/parse-datetime.y (to_uchar):
2514         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2515         (scale_n_add):
2516         Now static, not static inline.
2517         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2518         * modules/parse-duration (configure.ac):
2519         Do not require AC_C_INLINE.
2520
2521         getaddrinfo: no 'static inline'
2522         * lib/getaddrinfo.c (validate_family):
2523         Now static, not static inline.
2524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2525         Do not require AC_C_INLINE.
2526
2527         ftruncate, fts, lstat, openat, raise: no 'static inline'
2528         * lib/ftruncate.c (chsize_nothrow):
2529         * lib/fts.c (opendirat, diropen):
2530         * lib/lstat.c (orig_lstat):
2531         * lib/openat.c (orig_openat):
2532         * lib/raise.c (raise_nothrow):
2533         Now static, not static inline.
2534         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2535         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2536         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2537         * m4/openat.m4 (gl_PREREQ_OPENAT):
2538         * m4/raise.m4 (gl_PREREQ_RAISE):
2539         Do not require AC_C_INLINE.
2540
2541         fflush, stat: no 'static inline'
2542         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2543         (clear_ungetc_buffer, disable_seek_optimization)
2544         (restore_seek_optimization, update_fpos_cache):
2545         * lib/stat.c (orig_stat):
2546         Now static, not static inline.
2547         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2548         (update_fpos_cache):
2549         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2550         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2551         * m4/stat.m4 (gl_PREREQ_STAT):
2552         Do not require AC_C_INLINE.
2553
2554         error, filevercmp: no 'static inline'
2555         * lib/error.c (is_open, flush_stdout):
2556         * lib/filevercmp.c (order):
2557         Now static, not static inline.
2558         * m4/error.m4 (gl_PREREQ_ERROR):
2559         * modules/filevercmp (configure.ac):
2560         Do not require AC_C_INLINE.
2561
2562         dup, execute, fatal-signal, etc.: no 'static inline'
2563         * lib/dup.c (dup_nothrow):
2564         * lib/execute.c (nonintr_close, nonintr_open):
2565         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2566         * lib/fopen.c (orig_fopen):
2567         * lib/freadseek.c (freadptrinc):
2568         * lib/freopen.c (orig_freopen):
2569         * lib/fstat.c (orig_fstat, fstat_nothrow):
2570         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2571         (get_rusage_as_via_iterator):
2572         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2573         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2574         * lib/isatty.c (_isatty_nothrow):
2575         * lib/open.c (orig_open):
2576         * lib/read.c (read_nothrow):
2577         * lib/sigprocmask.c (signal_nothrow):
2578         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2579         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2580         * lib/wait-process.c (unregister_slave_subprocess):
2581         * lib/write.c (write_nothrow):
2582         Now static, not static inline.
2583         * lib/spawn-pipe.c (nonintr_open): Define only if
2584         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2585         * m4/dup.m4 (gl_PREREQ_DUP):
2586         * m4/execute.m4 (gl_EXECUTE):
2587         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2588         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2589         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2590         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2591         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2592         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2593         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2594         * m4/open.m4 (gl_PREREQ_OPEN):
2595         * m4/read.m4 (gl_PREREQ_READ):
2596         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2597         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2599         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2600         * m4/write.m4 (gl_PREREQ_WRITE):
2601         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2602         Do not require AC_C_INLINE.
2603
2604         c-strtod, memcoll, readutmp: no 'static inline'
2605         * lib/c-strtod.c (c_locale):
2606         * lib/memcoll.c (strcoll_loop):
2607         * lib/readutmp.c (desirable_utmp_entry):
2608         Now static, not static inline.
2609         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2610         * m4/memcoll.m4 (gl_MEMCOLL):
2611         * m4/readutmp.m4 (gl_READUTMP):
2612         Do not require AC_C_INLINE.
2613
2614         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2615         * lib/arctwo.c (to_uchar):
2616         * lib/md4.c (set_uint32):
2617         * lib/md5.c (set_uint32):
2618         * lib/sha1.c (set_uint32):
2619         * lib/sha256.c (set_uint32):
2620         * lib/sha512.c (set_uint64):
2621         Now static, not static inline.  This is a bit simpler, and doesn't
2622         affect performance with GCC and default optimization.
2623         * m4/arctwo.m4 (gl_ARCTWO):
2624         * m4/md4.m4 (gl_MD4):
2625         * m4/md5.m4 (gl_MD5):
2626         * m4/sha1.m4 (gl_SHA1):
2627         * m4/sha256.m4 (gl_SHA256):
2628         * m4/sha512.m4 (gl_SHA512):
2629         Do not require AC_C_INLINE.
2630
2631         cond, lock, thread: better 'inline'
2632         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2633         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2634         New macros.  Use them instead of static inline, for header functions.
2635         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2636         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2637         * lib/glthread/lock.c (gl_waitqueue_init)
2638         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2639         * lib/glthread/thread.c (get_current_thread_handle):
2640         Change 'static inline' to 'inline'.
2641         * lib/glthread/cond.h, lib/glthread/thread.h:
2642         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2643         * m4/cond.m4 (gl_COND):
2644         * m4/lock.m4 (gl_PREREQ_LOCK):
2645         * m4/thread.m4 (gl_THREAD):
2646         Do not require AC_C_INLINE.
2647         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2648
2649         chdir-long, cycle-check, savewd: better 'inline'
2650         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2651         (find_non_slash):
2652         * lib/cycle-check.c (is_zero_or_power_of_two):
2653         * lib/savewd.c (savewd_delegating):
2654         Change 'static inline' to 'inline'.
2655         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2656         Replace all remaining uses of 'static inline' with it.
2657         * lib/savewd.h:
2658         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2659         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2660         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2661         * m4/savewd.m4 (gl_SAVEWD):
2662         Do not require AC_C_INLINE.
2663         * modules/savewd (Depends-on): Add extern-inline.
2664
2665         base32, base64: no need for 'inline'
2666         * lib/base32.c (to_uchar, get_8, decode_8):
2667         * lib/base64.c (to_uchar, get_4, decode_4):
2668         Change 'static inline' to 'inline'.
2669         * m4/base32.m4 (gl_PREREQ_BASE32):
2670         * m4/base64.m4 (gl_PREREQ_BASE64):
2671         Do not require AC_C_INLINE.
2672
2673         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2674         * lib/gl_array_oset.c (gl_array_nx_add_at):
2675         (gl_array_remove_at):
2676         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2677         (add_to_bucket, remove_from_bucket):
2678         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2679         Change 'static inline' to 'static', as it's simpler to omit
2680         'inline' unless there's a significant performance advantage.
2681
2682         list, oset, xlist, xoset, xsublist: simplify via extern inline
2683         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2684         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2685         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2686         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2687         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2688         New macro.  Replace all uses of 'static inline' with it.
2689         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2690         instead of as macros FOO that are defined to static inline
2691         functions FOO_inline.
2692         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2693         * lib/gl_xsublist.c:
2694         Reimplement from scratch, by defining the corresponding *_INLINE
2695         macro and including the corresponding .h file.  This is simpler.
2696         * modules/list, modules/oset, modules/xlist, modules/xoset:
2697         (Files): Remove m4/gl_list.m4.
2698         (configure.ac): Remove gl_LIST.
2699         * m4/gl_list.m4: Remove.
2700         * modules/list, modules/oset, modules/xlist, modules/xoset:
2701         * modules/xsublist:
2702         (Depends-on): Depend on extern-inline, not inline.
2703
2704         xalloc: better 'inline'
2705         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2706         New macro.  Replace all uses of 'static inline' with it.
2707         (static_inline): Remove.
2708         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2709         Let 'extern inline' do the work automatically, instead of doing
2710         it by hand.
2711         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2712         Remove.  All uses removed.
2713         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2714
2715         gethrxtime: better 'inline'
2716         * lib/xtime.c: New file.
2717         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2718         * lib/xtime.h (XTIME_INCLUDE):
2719         New macros.  Replace all uses of 'static inline' with them.
2720         * lib/gethrxtime.c (gethrxtime): Define only if
2721         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2722         this source file is now always compiled, because of the extern inline.
2723         * lib/gethrxtime.h, lib/xtime.h:
2724         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2725         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2726         if gethrtime works, as they're not needed in that case.
2727         (gl_XTIME): Do not require AC_C_INLINE.
2728         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2729         compiled now.  Move the check into gl_GETHRXTIME.
2730         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2731         (Depends-on): Add extern-inline.
2732         (configure.ac): gethrxtime is always compiled now.
2733         (lib_SOURCES): Add gethrxtime.c.
2734
2735         wctype-h: better 'inline'
2736         * lib/wctype-h.c: New file.
2737         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2738         New macro.  Replace all uses of 'static inline' with it.
2739         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2740         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2741         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2742         (Depends-on): Add extern-inline.
2743
2744         unistd: better 'inline'
2745         * lib/unistd.c: New file.
2746         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2747         New macro.  Replace all uses of 'static inline' with it.
2748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2749         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2750         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2751         (Depends-on): Add extern-inline.
2752
2753         sys_socket: better 'inline'
2754         * lib/sys_socket.c: New file.
2755         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2756         New macro.  Replace all uses of 'static inline' with it.
2757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2758         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2759         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2760         (Depends-on): Add extern-inline.
2761
2762         stdio: better 'inline'
2763         * lib/stdio.c: New file.
2764         * lib/stdio.in.h (_GL_STDIO_INLINE):
2765         New macro.  Replace all uses of 'static inline' with it.
2766         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2767         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2768         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2769         (Depends-on): Add extern-inline.
2770
2771         sigaction: better 'inline'
2772         * lib/sig-handler.c: New file.
2773         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2774         New macro.  Replace all uses of 'static inline' with it.
2775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2776         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2777         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2778         (Depends-on): Add extern-inline.
2779
2780         selinux-h: better 'inline'
2781         * lib/se-context.c, lib/se-selinux.c: New files.
2782         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2783         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2784         New macro.  Replace all uses of 'static inline' with it.
2785         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2786         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2787         New macro.  Replace all uses of 'static inline' with it.
2788         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2789         * modules/selinux-h (Files, lib_SOURCES):
2790         Add lib/se-context.c, lib/se-selinux.c.
2791         (Depends-on): Add extern-inline.
2792         (configure.ac): Do not require AC_C_INLINE.
2793
2794         pthread: better 'inline'
2795         * lib/pthread.c: New file.
2796         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2797         New macro.  Replace all uses of 'static inline' with it.
2798         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2799         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2800         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2801         * modules/pthread (Files): Add lib/pthread.c.
2802         (Depends-on): Add extern-inline.
2803
2804         math: better 'inline'
2805         * lib/math.c: New file.
2806         * lib/math.in.h (_GL_MATH_INLINE):
2807         New macro.  Replace all uses of 'static inline' with it.
2808         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2809         * m4/math_h.m4 (gl_MATH_H):
2810         Do not require AC_C_INLINE.
2811         * modules/math (Files, lib_SOURCES):
2812         Add lib/math.c.
2813         (Depends-on): Add extern-inline.
2814
2815         count-one-bits: better 'inline'
2816         * lib/count-one-bits.c: New file.
2817         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2818         New macro.  Replace all uses of 'static inline' with it.
2819         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2820         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2821         Do not require AC_C_INLINE.
2822         * modules/count-one-bits (Files, lib_SOURCES):
2823         Add lib/count-one-bits.c.
2824         (Depends-on): Add extern-inline.
2825
2826         count-leading-zeros: better 'inline'
2827         * lib/count-leading-zeros.c: New file.
2828         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2829         New macro.  Replace all uses of 'static inline' with it.
2830         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2831         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2832         Do not require AC_C_INLINE.
2833         * modules/count-leading-zeros (Files, lib_SOURCES):
2834         Add lib/count-leading-zeros.c.
2835         (Depends-on): Add extern-inline.
2836
2837         bitrotate: better 'inline'
2838         * lib/bitrotate.c: New file.
2839         * lib/bitrotate.h (BITROTATE_INLINE):
2840         New macros.
2841         Replace all uses of 'static inline' with them.
2842         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2843         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2844         (Depends-on): Add extern-inline.
2845         (configure.ac): Do not require AC_C_INLINE.
2846
2847 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2848
2849         maint.mk: avoid gratuitous failure
2850         Reported by Stefano Lattarini in
2851         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2852         * top/maint.mk (public-submodule-commit): Quote more safely.
2853
2854 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2855
2856         canonicalize, canonicalize-lgpl: support MS-Windows file names
2857         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2858         for test cases, which it'd be nice to add at some point.
2859         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2860         * lib/canonicalize.c (canonicalize_filename_mode):
2861         * lib/canonicalize-lgpl.c (__realpath):
2862         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2863         slash is at the beginning of the file name.  Use ISSLASH, instead
2864         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2865         the first character with '/'.  Test for
2866         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2867         with a drive letter.
2868         * lib/canonicalize.c (SLASHES): New macro.
2869         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2870
2871 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2872
2873         fts: introduce FTS_VERBATIM
2874         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2875         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2876         * lib/fts.c (fts_open): Honor it.
2877
2878 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2879
2880         getlogin-tests: allow errno == ENXIO
2881         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2882         with errno == ENXIO (No controlling tty).
2883         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2884         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2885         with errno == ENOENT.  This was reported to happen in various
2886         situations on GNU/Linux.
2887
2888 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2889
2890         getlogin-tests: allow errno == ENOENT
2891         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2892         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2893         when running a test in an Emacs shell buffer.
2894
2895 2012-11-08  Jim Meyering  <jim@meyering.net>
2896
2897         tests/nap.h: avoid warning about unused variable
2898         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2899
2900         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2901         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2902         white space before each of the special-cased file names, to avoid
2903         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2904         in http://bugs.gnu.org/12830.
2905
2906 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2907
2908         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2909         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2910         fails with errno == EBADF when fd is opened with O_PATH.
2911         Reported by Jim Meyering in
2912         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2913         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2914         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2915
2916 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2917
2918         test-utimens: speed up by taking shorter naps
2919         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2920         New functions.
2921         (nap): Use them, to do a better job of guessing the delay.
2922         On Fedora 17 with ext4 atop md atop hard disks, this made
2923         test-utimens run 10x faster, because the test napped for
2924         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2925         <http://bugs.gnu.org/12820#11>.
2926
2927 2012-11-07  Jim Meyering  <jim@meyering.net>
2928
2929         mountlist.c: fix a compilation failure
2930         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2931         I introduced while transforming commit v0.0-7683-g613bcb6
2932
2933 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2934
2935         errno: port to LynxOS 178 2.2.2
2936         Problem reported by Joel Brobecker in
2937         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2938         * doc/posix-headers/errno.texi (errno.h): Document this.
2939         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2940         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2941         Supply a string for EILSEQ.
2942         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2943
2944 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2945
2946         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2947         Linux kernel 2.6.39 introduced O_PATH (see
2948         <http://lwn.net/Articles/433854/>) and this is a better fallback
2949         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2950         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2951         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2952         * lib/fcntl.in.h (O_ACCMODE):
2953         * tests/test-fcntl-h.c (main):
2954         Do not reject O_ACCMODE merely because it has more than the
2955         minimal number of bits, as POSIX allows extensions here.
2956
2957 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2958
2959         mountlist: do not classify a bind-mounted dir entry as "dummy"
2960         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2961         the "none"-testing clause.
2962         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2963         exception for bind-mounted directories.
2964
2965 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2966
2967         quote: provide a means to escape strings with nul characters
2968         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2969         (quote, quote_n): Rename formal arguments for consistency with
2970         quotearg.
2971
2972 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         test-raise: don't assume 199 is an invalid signal
2975         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2976
2977         sh-quote-tests: port to Solaris 9
2978         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2979         Problem reported by Dagobert Michelsen in
2980         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2981
2982 2012-10-28  Jim Meyering  <jim@meyering.net>
2983
2984         maint.mk: rename a new configurable variable
2985         * top/maint.mk (_gl_translatable_string_re): Rename from
2986         translation-markers: _gl_ prefix to insulate from user Makefile code,
2987         and the _re suffix to inform that it's a regular expression.
2988
2989 2012-10-26  Eric Blake  <eblake@redhat.com>
2990
2991         maint.mk: let packages tweak sc_po_check pattern
2992         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2993         finding files with other translation markers.
2994
2995 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2996
2997         euidaccess: speed up 'configure' on GNU hosts
2998         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2999         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3000         it's needed only in this case.  Use AC_CHECK_DECLS, not
3001         AC_CHECK_DECLS_ONCE.
3002         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3003         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3004
3005         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3006
3007 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3008
3009         fchmodat, fchownat, fstatat: port to non-inlining compilers
3010         Problem reported for FreeBSD 9 by Jim Meyering in
3011         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3012         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3013         New files, which define FCHMODAT_INLINE etc.
3014         * lib/fchmodat.c (FCHMODAT_INLINE):
3015         * lib/fchownat.c (FCHOWNAT_INLINE):
3016         * lib/fstatat.c (FSTATAT_INLINE):
3017         Remove, as chmodat.c etc. now do this.
3018         * modules/fchmodat (Files): Add lib/chmodat.c.
3019         * modules/fchownat (Files): Add lib/chownat.c.
3020         * modules/fstatat (Files): Add lib/statat.c.
3021
3022 2012-10-15  Jim Meyering  <jim@meyering.net>
3023
3024         fchmodat.c, fchownat.c: compile-impeding typos
3025         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3026         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3027         Introduced in commit v0.0-7636-gd202279.
3028
3029 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3030
3031         fcntl-h: support GNU flags like O_IGNORE_CTTY
3032         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3033         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3034         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3035         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3036         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3037         Define to 0 if not already defined.
3038         * tests/test-fcntl-h.c: Test these new flags.
3039
3040 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3041
3042         faccessat, etc.: support AT_FDCWD-only use
3043         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3044         this function only if its first argument is AT_FDCWD.
3045         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3046         values other than AT_FDCWD, so it doesn't want all the openat
3047         machinery with fchdir etc.
3048         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3049         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3050         * modules/unlinkat (Files):
3051         Remove lib/openat-priv.h, as at-internal supplies this file.
3052         Removing this file here allows us to support programs like Emacs
3053         that avoid at-internal.
3054
3055         faccessat: speed up 'configure' on mainstream hosts
3056         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3057         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3058         since it's only on unusual platforms that we need to check for
3059         'access', and it's better not to slow 'configure' down on all
3060         platforms.
3061
3062         faccessat: port to Solaris 10
3063         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3064         Needed on Solaris 10, which doesn't have AT_EACCESS,
3065         so we need the Gnulib fcntl.h, which defines it.
3066
3067 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3068         canonicalize: fix C89 compilation
3069         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3070         declarations so C89 is supported.  Also remove the comment
3071         referencing memorty allocation as the suggested feature could
3072         not be implemented as suggested.
3073         Reported by Michael Goffioul.
3074
3075 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3076
3077         group-member: omit unnecessary dependencies
3078         This is for Emacs, which has its own allocator and where we
3079         don't want to use xalloc.
3080         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3081         since we no longer use xmalloc.  Do not include stdbool.h, since
3082         the changes below happen to remove the only use of bool.
3083         (GROUPBUF_SIZE): New constant.
3084         (struct group_info): Remove n_groups member.  Add groupbuf member.
3085         This lets us get the groups without using malloc, usually.
3086         (free_group_info, get_group_info): Adjust to this.
3087         (get_group_info): Return the number of groups found, or -1 on error.
3088         Use plain malloc not xmalloc, and treat its failure as if there
3089         are no groups, as the user already loses in case of error.
3090         (group_member): Simplify, based on changes to get_group_info.
3091         * modules/group-member (Depends-on): Remove dependencies on
3092         xalloc and stdbool.  Add dependency on xalloc-oversized.
3093
3094 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3095
3096         gethrxtime: port to C++
3097         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3098
3099 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3100
3101         ptsname: fix macro-name typo
3102         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3103
3104 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3105
3106         inttostr: Relax license.
3107         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3108
3109 2012-10-03  Eric Blake  <eblake@redhat.com>
3110
3111         ptsname_r: support ptys returned by FreeBSD posix_openpt
3112         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3113         lives in /dev/pts/.
3114
3115 2012-10-02  Eric Blake  <eblake@redhat.com>
3116
3117         pselect: reject invalid file descriptors
3118         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3119         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3120         * modules/pselect (Depends-on): Add dup2.
3121         * doc/posix-functions/pselect.texi (pselect): Document this.
3122
3123         select: reject invalid file descriptors
3124         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3125         * lib/select.c (rpl_select) [!win32]: Work around it.
3126         * modules/select (Depends-on): Add dup2.
3127         * doc/posix-functions/select.texi (select): Document this.
3128
3129         select: enhance test
3130         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3131         New functions.
3132         (test_function): Enhance test.
3133         (do_select_bad_fd): Avoid any stale errno values.
3134
3135         ptsname: reject invalid file descriptors
3136         http://www.austingroupbugs.net/view.php?id=503
3137         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3139         * modules/stdlib (Makefile.am): Replace witness.
3140         * lib/stdlib.in.h (ptsname): Allow for replacement.
3141         * modules/ptsname (configure.ac): Trigger replacement.
3142         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3143
3144 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3145
3146         hash-pjw-bare: new module
3147         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3148         * lib/hash-pjw-bare.h: Likewise.
3149         * modules/hash-pjw-bare: New file.
3150         * MODULES.html.sh (Misc): Add it.
3151
3152 2012-10-02  Eric Blake  <eblake@redhat.com>
3153
3154         manywarnings: cater to more gcc infelicities
3155         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3156         -Wuninitialized without -O.
3157
3158 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3159
3160         select, poll tests: Make setsockopt invocation effective.
3161         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3162         the bind() call.
3163         * tests/test-select.h (open_server_socket): Likewise.
3164
3165 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3166
3167         sockets, sys_stat: restore AC_C_INLINE
3168         This undoes the 2012-09-22 patch.
3169         * m4/sockets.m4 (gl_SOCKETS):
3170         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3171         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3172         and does not support plain 'inline'.  Reported by Bruno Haible in
3173         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3174
3175 2012-09-30  Bruno Haible  <bruno@clisp.org>
3176
3177         localeconv tests: Avoid test failure on OpenIndiana.
3178         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3179         skip the 'grouping' and 'mon_grouping' tests.
3180         Reported by Jim Meyering.
3181
3182 2012-09-30  Bruno Haible  <bruno@clisp.org>
3183
3184         havelib: Follow libtool developments.
3185         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3186         Suggested by Simon Josefsson.
3187
3188 2012-09-29  Jim Meyering  <meyering@redhat.com>
3189
3190         fstatat.c: fix a compile-impeding typo
3191         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3192         Introduced in commit v0.0-7636-gd202279.
3193         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3194
3195 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3196
3197         extern-inline: provide a -Wundef safe config.h
3198         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3199         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3200         to produce a -Wundef warning free config.h.
3201
3202 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3203
3204         hash-pjw: relax license to LGPLv2+
3205         * modules/hash-pjw (License): Relax, with consent of author.
3206
3207 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3208
3209         maint.mk: fix strict vs. lazy variable issues with RELEASE
3210         * top/maint.mk (_equal): New function.
3211         (member_check): Strip the result to avoid spurious spaces.
3212         (url_dir_list): Do not use ifeq, which is strict, as it will
3213         require RELEASE_TYPE to be defined.
3214         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3215         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3216         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3217         (announcement_Cc_beta,announcement_mail_headers_beta)
3218         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3219         (release): Do not depend on $(release-type), as it forces its
3220         evaluation.  Bounce to it.
3221
3222 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3223
3224         maint.mk: formatting changes
3225         * top/maint.mk: Indent bodies of if's.
3226
3227 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3228
3229         maint.mk: factor the validation of RELEASE_TYPE
3230         With help from Jim Meyering.
3231         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3232         * top/maint.mk (_empty, _sp): Move their definition earlier.
3233         (member-check, release-type): New.
3234         Use the latter instead of $(RELEASE_TYPE).
3235         Remove now useless local checks.
3236
3237 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3238
3239         maint.mk: provide "make upload" to ease uploading
3240         See
3241         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3242         Do not depend simply on the current $(VERSION), as there may have been
3243         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3244         as "make release-commit" already does.
3245
3246         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3247         "make TYPE".
3248
3249         * top/maint.mk (upload_command, upload, release): New.
3250         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3251         (VERSION): first word of $(RELEASE) is always right.
3252         (emit_upload_commands): Adjust.
3253         * top/README-release: Update.
3254
3255 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3256
3257         maint.mk: silent rules
3258         With help from Stefano Lattarini.
3259         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3260         (announcement): Use $(AM_V_at).
3261
3262 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         localename: port gl_locale_name_thread_unsafe to FreeBSD
3265         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3266         and use the simpler FreeBSD implementation on Mac OS X as well.
3267         Original idea suggested by Ed Maste in
3268         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3269
3270 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3273         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3274         * lib/mbuiter.c, lib/xsize.c: New files.
3275         * lib/binary-io.h (BINARY_IO_INLINE):
3276         * lib/eealloc.h (EEALLOC_INLINE):
3277         * lib/mbfile.h (MBFILE_INLINE):
3278         * lib/mbiter.h (MBITER_INLINE):
3279         * lib/mbuiter.h (MBUITER_INLINE):
3280         * lib/xsize.h (XSIZE_INLINE):
3281         New macros.
3282         Replace all uses of 'static inline' with them.
3283         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3284         * m4/eealloc.m4 (gl_EEALLOC):
3285         * m4/mbfile.m4 (gl_MBFILE):
3286         * m4/mbiter.m4 (gl_MBITER):
3287         * m4/xsize.m4 (gl_XSIZE):
3288         Do not require AC_C_INLINE.
3289         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3290         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3291         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3292         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3293         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3294         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3295         * modules/binary-io, modules/eealloc, modules/mbfile:
3296         * modules/mbiter, modules/mbuiter:
3297         (Depends-on): Add extern-inline.
3298
3299         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3300         * lib/pipe-filter-aux.c: New file.
3301         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3302         Replace all uses of 'static inline' with it.
3303         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3304         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3305         (filter_retcode): No real need for inline here.
3306         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3307         (Files): Add lib/pipe-filter-aux.c.
3308         (Depends-on): Add extern-inline.
3309         (configure.ac): Do not require AC_C_INLINE.
3310         (lib_SOURCES): Add pipe-filter-aux.c.
3311
3312         fdutimensat: omit unnecessary AC_C_INLINE
3313         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3314
3315         fchmodat, fchownat, fstatat: use extern-inline
3316         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3317         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3318         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3319         New macros.
3320         * lib/openat.h:
3321         Replace all uses of 'static inline' with them.
3322         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3323         * modules/fchmodat, modules/fchownat, modules/fstatat:
3324         * modules/openat-h:
3325         (Depends-on):
3326         Add extern-inline.
3327         (configure.ac): Remove AC_C_INLINE.
3328
3329         acl, mbchar, priv-set: use extern-inline
3330         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3331         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3332         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3333         New macros.
3334         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3335         Replace all uses of 'static inline' with it.
3336         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3337         * m4/acl.m4 (gl_FUNC_ACL):
3338         * m4/mbchar.m4 (gl_MBCHAR):
3339         * m4/priv-set.m4 (gl_PRIV_SET):
3340         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3341         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3342         Add extern-inline.
3343
3344         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3345         * m4/sockets.m4 (gl_SOCKETS):
3346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3347         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3348         environments where it's already guaranteed to work, so we needn't
3349         check for it at 'configure'-time.
3350
3351         tls-tests: omit unnecessary 'inline'
3352         * tests/test-tls.c (perhaps_yield): No longer inline.
3353         Simplicity and portability trump efficiency in test cases.
3354
3355         utimens-tests: avoid unnecessary 'inline'
3356         * modules/fdutimensat-tests (configure.ac):
3357         * modules/futimens-tests (configure.ac):
3358         * modules/utimens-tests (configure.ac):
3359         * modules/utimensat-tests (configure.ac):
3360         Remove AC_C_INLINE.
3361         * tests/test-utimens-common.h (ctime_compare):
3362         No longer inline.  Simplicity and portability trump efficiency here.
3363
3364         misc: don't limit commentary to inline functions
3365         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3366         * lib/xalloc-oversized.h, lib/xsize.h:
3367         Contrast macros to functions in general, not just to inline functions,
3368         when the commentary does not apply only to inline functions.
3369
3370 2012-09-20  Jim Meyering  <meyering@redhat.com>
3371
3372         non-recursive-gnulib-prefix-hack: new module
3373         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3374         the file that originated in Bison.
3375         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3376         largely copied from a snippet that resided in bison's configure.ac.
3377         * modules/non-recursive-gnulib-prefix-hack: New file.
3378         * MODULES.html.sh (Support for maintaining and releasing projects):
3379         Add it.
3380
3381 2012-09-18  Jim Meyering  <meyering@redhat.com>
3382
3383         maint.mk: generalize _gl_tight_scope for non-recursive make
3384         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3385         that *.h would describe additional .h files in the directory
3386         specified by $(_gl_TS_dir).  I.e., add this...
3387         (_gl_TS_other_headers): New variable.
3388
3389         maint.mk: exempt trailing blanks found in "binary" files
3390         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3391         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3392         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3393
3394 2012-09-17  Jim Meyering  <meyering@redhat.com>
3395
3396         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3397         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3398         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3399         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3400
3401 2012-09-17  Jim Meyering  <meyering@redhat.com>
3402
3403         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3404         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3405         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3406         It is not in the same category as "exit (0)" or "exit (1)", and
3407         besides, I know of no symbolic name for that 77.  Reported by
3408         Richard W.M. Jones in
3409         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3410
3411 2012-09-17  Jim Meyering  <meyering@redhat.com>
3412
3413         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3414         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3415         all uses of #define, not just those that start in column 1.
3416         Richard W.M. Jones reported a false positive in
3417         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3418
3419 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3420
3421         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3422         * lib/localcharset.c (locale_charset) [DARWIN7]:
3423         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3424         as these two values are incompatible.  Problem reported by Max Horn.
3425         For more discussion, please see
3426         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3427
3428         doc: document sticky-EOF issue
3429         * doc/posix-functions/fgetc.texi (fgetc):
3430         * doc/posix-functions/fgets.texi (fgets):
3431         * doc/posix-functions/fread.texi (fread):
3432         * doc/posix-functions/fscanf.texi (fscanf):
3433         * doc/posix-functions/getc.texi (getc):
3434         * doc/posix-functions/getchar.texi (getchar):
3435         * doc/posix-functions/scanf.texi (scanf):
3436         Mention that glibc and default Solaris do not conform to
3437         C99 and POSIX-2001 or later, with respect to how getchar
3438         etc. behave when feof reports nonzero.
3439
3440 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3441
3442         poll: fix poll(0, NULL, msec)
3443         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3444         but nfd is 0.  In that case poll should behave like select.
3445
3446 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3447             Paolo Bonzini <bonzini@gnu.org>
3448
3449         poll: fix for systems that can't recv() on a non-socket
3450         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3451         is readable.  In this case POLLHUP will not be supported.
3452         * doc/posix-functions/poll.texi: Document this.
3453
3454 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3455
3456         poll/select: document portability problems not fixed by Gnulib.
3457         * doc/posix-functions/poll.texi: poll does not work well on
3458         pipes under Windows.  It has the same limitations as select on
3459         BeOS.
3460         * doc/posix-functions/select.texi: select does not work well
3461         on pipes under Windows.
3462
3463 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3464
3465         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3466         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3467         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3468         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3469
3470 2012-09-06  Eric Blake  <eblake@redhat.com>
3471
3472         net_if: give more details about the bug being fixed
3473         * doc/posix-headers/net_if.texi: Add clarification.
3474
3475 2012-09-05  Eric Blake  <eblake@redhat.com>
3476
3477         net_if: new module
3478         * modules/net_if: New module, borrowing ideas from netinet_in.
3479         * m4/net_if_h.m4: New file.
3480         * lib/net_if.in.h: Likewise.
3481         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3482         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3483         * tests/test-net_if.c: Make function checks conditional.
3484         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3485
3486 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3487
3488         readutmp: fix non-portable UT_PID use
3489         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3490         Use `UT_PID (u) > 0' as absolute condition.
3491
3492 2012-09-04  Jim Meyering  <meyering@redhat.com>
3493
3494         fts: reduce two or more trailing spaces to just one, usually
3495         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3496         or more slashes, trim all but the final one.  But if a name consists
3497         solely of two slashes, don't modify it.  If it consists solely of
3498         three or more slashes, strip all but one.
3499
3500         This is part of the solution to a minor problem with rm:
3501         it would print a bogus ELOOP diagnostic when failing to remove
3502         the slash-decorated name of a symlink-to-directory:
3503
3504             $ mkdir d && ln -s d s && env rm -r s/
3505             rm: cannot remove 's': Too many levels of symbolic links
3506
3507         With the change below and a trivial don't-trim-trailing-slashes
3508         adjustment to remove.c, it does this:
3509
3510             $ env rm -r s/
3511             rm: cannot remove 's/': Not a directory
3512
3513         Improved by: Eric Blake
3514
3515         fts: when there is no risk of overlap, use memcpy, not memmove
3516         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3517
3518 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3519
3520         stdbool: be more compatible with mixed C/C++ compiles
3521         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3522         Define to bool, true, false, respectively, as GCC's builtin
3523         stdbool.h does.  Problem reported by Michael Goffioul in
3524         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3525
3526 2012-08-28  Jim Meyering  <meyering@redhat.com>
3527
3528         revert last change: it was not needed
3529         * tests/test-vc-list-files-git.sh: There's already a test for
3530         a working git, just below.
3531
3532 2012-08-28  Jim Meyering  <meyering@redhat.com>
3533
3534         tests: test-vc-list-files-git.sh: skip if git is not available
3535         * tests/test-vc-list-files-git.sh: Skip this test when git is
3536         not available.
3537
3538 2012-08-26  Bruno Haible  <bruno@clisp.org>
3539
3540         gnulib-tool: Remove no-op option --no-changelog.
3541         * gnulib-tool (func_usage): Don't mention --no-changelog.
3542         (do_changelog): Remove variable.
3543         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3544
3545 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3546
3547         doc: remove fdl-1.2.texi
3548         It is no longer used or maintained, and its use of @acronym
3549         is problematic.  See the thread containing
3550         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3551         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3552         * doc/old-licenses/fdl-1.2.texi: Remove.
3553
3554         execinfo: port to FreeBSD
3555         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3556         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3557         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3558         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3559
3560 2012-08-23  Jim Meyering  <meyering@redhat.com>
3561
3562         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3563         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3564         to placate gcc's -Wold-style-declaration.
3565
3566 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3567
3568         doc: do not use @acronym
3569         * doc/inet_ntoa.texi (inet_ntoa):
3570         * doc/parse-datetime.texi (Seconds since the Epoch)
3571         (Specifying time zone rules):
3572         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3573         Don't use @acronym.  Problem reported by John Darlington in
3574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3575
3576 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3577
3578         stdnoreturn: port to newer GCCs
3579         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3580         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3581         Problem reported by Jim Meyering in
3582         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3583         Also, rename the 'test' function to a void a clash with the
3584         already-supplied 'main' function; this fixes a bug that incorrectly
3585         rejected GCC 4.7.1's <stdnoreturn.h>.
3586         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3587         Document GCC problem.
3588
3589 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3590
3591         pipe-filter: fix comment typo
3592         * lib/pipe-filter.h: Mention correct function.
3593
3594 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3595
3596         execinfo: new module
3597         This is for Emacs.  Currently, it provides a no-effect stub
3598         on all platforms where it does not already work.
3599         It already works on glibc-based systems, and on Solaris 11.
3600         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3601         New files.
3602         * doc/glibc-headers/execinfo.texi (execinfo.h):
3603         * MODULES.html.sh (Misc): Document it.
3604
3605 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3606
3607         extern-inline: support old GCC 'inline'
3608         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3609         if available.  This applies to GCC versions 2.7 through 4.2, or
3610         when newer GCC is using -fgnu89-inline.  The goal is to address
3611         some of the performance issues mentioned by Bruno Haible in
3612         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3613
3614 2012-08-20  Eric Blake  <eblake@redhat.com>
3615
3616         maint.mk: avoid redundant file name in message
3617         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3618         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3619         (sc_makefile_path_separator_check): Remove bogus $(ME).
3620
3621 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3622
3623         timer-time: fix link order when static linking on glibc
3624         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3625         _after_ -lrt so that it's significant.
3626
3627 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3628
3629         timespec: omit unnecessary AC_C_INLINE
3630         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3631
3632         stat-time: omit unnecessary AC_C_INLINE
3633         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3634         Do not require AC_C_INLINE.
3635
3636         ignore-value: omit unnecessary AC_C_INLINE
3637         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3638
3639         sys_select: avoid 'static inline'
3640         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3641
3642         mktime: avoid 'static inline'
3643         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3644         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3645
3646 2012-08-19  Bruno Haible  <bruno@clisp.org>
3647
3648         gnulib-tool: Improve coding style.
3649         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3650         func_emit_lib_Makefile_am.
3651         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3652
3653 2012-08-19  Bruno Haible  <bruno@clisp.org>
3654
3655         gnulib-tool: Fix indentation.
3656         * gnulib-tool (func_import): Fix indentation.
3657
3658 2012-08-19  Bruno Haible  <bruno@clisp.org>
3659
3660         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3661         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3662         on the list of removed files.
3663
3664 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3665
3666         test-parse-datetime: avoid glibc leap-second glitch
3667         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3668         with the 2012 rules.  Problem reported by Bruce Dubbs in
3669         <http://bugs.gnu.org/12206>.
3670
3671 2012-08-14  Bruno Haible  <bruno@clisp.org>
3672
3673         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3674         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3675         from argument.
3676         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3677
3678 2012-08-14  Eric Blake  <eblake@redhat.com>
3679
3680         ldexp: relax license
3681         * modules/ldexp (License): Trivial relax, since the module only
3682         provides a permissively licensed m4 file.
3683
3684 2012-08-13  Bruno Haible  <bruno@clisp.org>
3685
3686         gnulib-tool: Fix persistence of --witness-c-macro option.
3687         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3688         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3689
3690 2012-08-11  Eric Blake  <eblake@redhat.com>
3691
3692         count-leading-zeros: use a lookup table on non-gcc compilers
3693         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3694         alternate implementation, suggested by Jim Meyering.
3695
3696 2012-08-10  Eric Blake  <eblake@redhat.com>
3697
3698         count-leading-zeros: new module
3699         * modules/count-leading-zeros: New module.
3700         * m4/count-leading-zeros.m4: New file.
3701         * lib/count-leading-zeros.h: Likewise.
3702         * modules/count-leading-zeros-tests: New test.
3703         * tests/test-count-leading-zeros.c: New file.
3704         * MODULES.html.sh (Integer arithmetic functions): Document it.
3705
3706 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3707             Jim Meyering  <meyering@redhat.com>
3708
3709         maintainer-makefile: Fix syntax error with dash.
3710         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3711         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3712
3713 2012-08-05  Jim Meyering  <meyering@redhat.com>
3714
3715         extern-inline: also ignore -Wmissing-declarations
3716         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3717         required with gcc-4.8.0-to-be.
3718
3719         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3720         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3721         for /error ?([^,]*)/.  This avoids false-positives for strings like
3722         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3723
3724 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3725
3726         gnumakefile: better interaction with Automake-NG
3727         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3728         Automake-NG always contain a definition of VPATH, even in non-VPATH
3729         builds (its value being simply '.' in that case).  So, in the
3730         'clean-GNUmakefile' rule, to determine whether running under a
3731         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3732         '$(VPATH)' expands to the empty string.
3733
3734 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3735
3736         base64: Use extern C scope in header file, for C++.
3737         * lib/base64.h: Add C++ namespace protection.
3738
3739 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3740
3741         stat-time, timespec, u64: support naive out-of-dir builds
3742         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3743         Use '#include "foo.h"', not '#include <foo.h>', when including
3744         one's own interface.  This works better when configuring with
3745         out-of-directory builds, since packages need not add an
3746         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3747
3748 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3749
3750         utimens: use extern-inline
3751         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3752         * lib/utimens.h: Add copyright notice, since this is now large enough
3753         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3754         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3755         * modules/utimens (Depends-on): Add extern-inline.
3756
3757         u64: use extern-inline
3758         * lib/u64.c: New file.
3759         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3760         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3761         * modules/u64 (Files): Add lib/u64.c.
3762         (Depends-on): Add extern-inline.
3763         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3764         does that now.
3765         (lib_SOURCES): Add u64.c.
3766
3767         timespec: use extern-inline
3768         * lib/timespec.c: New file.
3769         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3770         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3771         * modules/timespec (Files): Add lib/timespec.c.
3772         (Depends-on): Add extern-inline.
3773         (lib_SOURCES): Add timespec.c.
3774
3775         stat-time: use extern-inline
3776         * lib/stat-time.c: New file.
3777         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3778         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3779         * modules/stat-time (Files): Add lib/stat-time.c.
3780         (Depends-on): Add extern-inline.
3781         (lib_SOURCES): Add stat-time.c.
3782
3783         extern-inline: new module
3784         * modules/extern-inline, m4/extern-inline.m4: New files.
3785         This is for better support of 'extern inline' a la ISO C99,
3786         with a portable alternative on compilers that do not support
3787         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3788         of the Emacs executable, when compiled with debugging disabled,
3789         which is a typical way that Emacs is built while developing.
3790
3791 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3792
3793         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3794         * build-aux/do-release-commit-and-tag: Move variable definitions
3795         together.
3796         ($branch): Instead of defaulting to "master", default to the current
3797         branch (as gnu-web-doc-update does).
3798         (help): Display the current values of the option arguments.
3799         * top/maint.mk (release-commit): New.
3800         * top/README-release: Simplify the corresponding step.
3801
3802 2012-07-30  Eric Blake  <eblake@redhat.com>
3803
3804         passfd: fix comment on recvfd
3805         * lib/passfd.c (recvfd): Fix comment.
3806         Reported by Jann Horn <jannhorn@googlemail.com>.
3807
3808 2012-07-30  Jim Meyering  <meyering@redhat.com>
3809
3810         maint.mk: avoid a sub-shell
3811         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3812
3813 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3814
3815         maint.mk: use silent-rules support from Automake
3816         * top/maint.mk (news-check, vc-diff-check, announcement)
3817         (no-submodule-changes, alpha beta stable, release-prep)
3818         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3819
3820 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3821
3822         maint.mk: provide a web-manual-update target
3823         * top/maint.mk: here.
3824         * top/README-release: Use it to simplify the web manual update step.
3825
3826 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3827
3828         README-release: shorten the circuit to post a news
3829         * top/README-release: Point directly to the news submission form.
3830
3831 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3832
3833         gnu-web-doc-update: fix --help
3834         * build-aux/gnu-web-doc-update: The information "top level" was written
3835         twice.
3836
3837 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3838
3839         maint.mk: absolute VPATH issue
3840         * top/maint.mk (release-prep): Help Git find .git/.
3841         From Jim Meyering.
3842
3843 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3844
3845         gitlog-to-changelog: fix previous change
3846         * build-aux/gitlog-to-changelog: Fix condition.
3847         Add missing ";".
3848
3849 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3850
3851         gitlog-to-changelog: don't expect .git to be in $srcdir
3852         Reported by Bruno Haible.
3853         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3854         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3855         Use it.
3856
3857 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3858
3859         maint.mk: absolute VPATH build fix
3860         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3861         $(srcdir) is not a parent of $(builddir).
3862
3863 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3864
3865         clean-temp: Fix memory leak.
3866         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3867         'files' members of tmpdir.
3868
3869 2012-07-27  Jim Meyering  <meyering@redhat.com>
3870
3871         maint.mk: new rule: refresh-gnulib-patches
3872         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3873         Use this rule to refresh them.
3874         * top/maint.mk (refresh-gnulib-patches): New rule.
3875
3876 2012-07-24  Bruno Haible  <bruno@clisp.org>
3877
3878         gnulib-tool: Fix handling of inctests variable.
3879         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3880         Reported by Nick Bowler <nbowler@elliptictech.com>.
3881
3882 2012-07-22  Bruno Haible  <bruno@clisp.org>
3883
3884         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3885         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3886         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3887         Remove exemption for getpass.h.
3888         Suggested by Eric Blake.
3889
3890 2012-07-20  Eric Blake  <eblake@redhat.com>
3891
3892         verify: document conflict with -Wnested-externs
3893         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3894
3895         maint.mk: forbid exit(-1)
3896         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3897
3898 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3899
3900         fsusage: port back to Solaris
3901         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3902         error (fsd not declared) on Solaris 10.  Reported privately by
3903         Andrew Borodin.
3904
3905 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3906
3907         gnu-web-doc-update: fix error messages
3908         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3909
3910         gnu-web-doc-update: check the requirements.
3911         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3912         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3913         * build-aux/bootstrap (find_tool): Comment change.
3914
3915 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3916
3917         maint.mk: minor simplication.
3918         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3919         for default values.
3920
3921 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3922
3923         gitlog-to-changelog: VPATH build issues
3924         If builddir is not a subdirectory of srcdir, running git from it will
3925         fail.
3926         * build-aux/gitlog-to-changelog (--srcdir): New option.
3927
3928 2012-07-15  Bruno Haible  <bruno@clisp.org>
3929
3930         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3931         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3932         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3933         Remove exemption for fpending.h.
3934         Suggested by Eric Blake.
3935
3936 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3937
3938         pthread_sigmask: fix bug on FreeBSD 9
3939         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3940         Include string.h.
3941         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3942         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3943         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3944         but pthread_sigmask (1729, NULL, NULL) returns zero.
3945         See <http://bugs.gnu.org/11884>.
3946         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3947         by inspecting whether the main call changed the old mask.
3948
3949 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3950
3951         README-release: make it more legible
3952         * top/README-release: Improve typography slightly.
3953
3954 2012-07-15  Jim Meyering  <meyering@redhat.com>
3955
3956         maint: require that each sc_... command start with "@"
3957         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3958         "make sc_maint" helps us avoid this nit.
3959
3960 2012-07-15  Jim Meyering  <meyering@redhat.com>
3961
3962         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3963         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3964
3965 2012-07-13  Eric Blake  <eblake@redhat.com>
3966
3967         maint.mk: new syntax check for HAVE_DECL checks
3968         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3969         * cfg.mk
3970         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3971         Exempt some false positives.
3972         Based on a report by Karel Zak.
3973
3974         argp: make HAVE_DECL usage consistent
3975         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3976         macros, not whether they are defined.
3977         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3978         convention with other declaration checks.
3979         Reported by Karel Zak, with suggestions from Paul Eggert.
3980
3981         stat-time: relax license to LGPLv2+
3982         * modules/stat-time (License): Relax, with consent of all authors.
3983
3984         strndup: fix m4 usage error
3985         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3986         defined, to either 0 or 1.
3987         Reported by Karel Zak.
3988
3989 2012-07-11  Jim Meyering  <meyering@redhat.com>
3990
3991         maint: enable the sc_avoid_if_before_free syntax-check rule
3992         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3993         (if_before_free_offenders_): Define.
3994         (if_before_free_basename_re_): Define.
3995         Exempt current files with useless if-before-free.
3996
3997 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         gettext: do not assume '#define ... defined ...' behavior
4000         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4001         Do not use '#define FOO ... defined BAR ...', as the C standard says
4002         it's not portable to expect that this works after macro expansion.
4003         Problem reported for gzip by Steven M. Schweda in
4004         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4005
4006 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4007
4008         getloadavg: clean out old Emacs and Autoconf cruft
4009         See Glenn Morris in <http://bugs.gnu.org/11905>.
4010         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4011         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4012         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4013         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4014
4015 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4016
4017         bootstrap: let warn be like tests/init.sh's warn_
4018         Reported by Jim Meyering.
4019         * build-aux/bootstrap (warn): Remove, replaced by...
4020         (warnf_, warn_): these.
4021         Adjust callers.
4022         Shorten messages that no longer fit in 80 columns.
4023
4024 2012-07-09  Bruno Haible  <bruno@clisp.org>
4025
4026         getopt: Simplify after Emacs changed.
4027         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4028         (gl_GETOPT_IFELSE): Remove macro.
4029
4030 2012-07-09  Jim Meyering  <meyering@redhat.com>
4031
4032         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4033         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4034
4035         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4036         Bugs in both of those conspired to make the
4037         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4038         _sc_search_regexp's handling of non-empty $in_files would filter
4039         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4040         choice of in_files value meant there would be no match in most
4041         projects, due to the presence of two or more Makefile.in files.
4042         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4043         Fix a bug in how a non-empty $$in_files was processed:
4044         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4045         in spite of the name, it's a regexp, not a list of file names.
4046
4047 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4048
4049         getloadavg, getopt: fix commentary re configure.in
4050         Autoconf is deprecating the name 'configure.in', so change it to
4051         to the new name 'configure.ac' in a couple of places.
4052         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4053         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4054         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4055         Emacs has renamed it to configure.ac, and it no longer refers
4056         to these macros anyway.
4057
4058         timespec: mark functions with const attributes
4059         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4060         Mark with _GL_ATTRIBUTE_CONST.
4061
4062 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4063
4064         canonicalize[-lgpl]: handle "guessing" values when cross-building
4065         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4066         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4067         matches "*yes" instead of just "yes".  Regression introduced in commit
4068         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4069
4070 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4071             Bruno Haible  <bruno@clisp.org>
4072
4073         canonicalize: make the right guess when cross-compiling to GNU
4074         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4075         determine whether cross-compiling to glibc systems, so as to
4076         include GNU/Hurd.
4077
4078 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4079
4080         timespec-sub: avoid duplicate include
4081         * lib/timespec-sub.c: Do not include <config.h> twice.
4082         Reported by Juanma Barranquero.
4083
4084 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4085
4086         bootstrap: use a more consistent error reporting scheme
4087         * build-aux/bootstrap (warn, die): New.
4088         Use them.
4089
4090 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4091
4092         sys_time: allow too-wide tv_sec
4093         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4094         timeval even if tv_sec is wider than time_t.  This allows
4095         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4096         as without this patch gnulib replaces struct timeval
4097         and OpenBSD futimes therefore has a type mismatch.
4098         * doc/posix-headers/sys_time.texi: Mention this.
4099
4100         pthread: check for both pthread_create and pthread_join
4101         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4102         alter the check so that it tests for both pthread_create and
4103         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4104         Suggested by Bruno Haible and Richard Yao in
4105         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4106
4107         parse-datetime: doc tuneup
4108         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4109         spacing issues.
4110
4111 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4112
4113         do-release-commit-and-tag: fix the previous commit
4114         * build-aux/do-release-commit-and-tag: Actually the test was right,
4115         but the comment and the error message were misleading.
4116         Fix comment, and improve error message.
4117         Perform check first, so that NEWS is not modified uselessly.
4118
4119         do-release-commit-and-tag: fix typo
4120         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4121         _not_ start with a stub.
4122
4123 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4124
4125         pthread: check for pthread_create, not pthread_join
4126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4127         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4128         pthread_join in libc.  I hope this removes the need for all the
4129         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4130         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4131
4132 2012-07-04  Jim Meyering  <meyering@redhat.com>
4133
4134         parse-datetime: fix failure to diagnose invalid input
4135         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4136         rather than diagnosing the invalid input.  Now it reports this:
4137         date: invalid date '\260'
4138         * lib/parse-datetime.y (to_uchar): Define.
4139         (yylex): Don't sign-extend "other" bytes.
4140         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4141         Thanks to Bruno Haible for the patch to this file.
4142         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4143         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4144
4145 2012-07-03  Jim Meyering  <meyering@redhat.com>
4146
4147         bootstrap: do not require now-removed build-aux/missing
4148         Now that build-aux/missing is, er, missing, bootstrap would
4149         silently fail.
4150         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4151         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4152         no longer part of gnulib.
4153         Diagnose the failure.
4154
4155 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4156
4157         alloca: add support for HP NonStop TNS/E native
4158         * lib/alloca.in.h (alloca): Support the new host.
4159         From a suggestion by Joachim Schmitz in
4160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4161
4162 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4163
4164         fsusage: remove code not needed on non GNU/Linux systems.
4165
4166         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4167         Don't include headers no longer needed in this case.
4168         * lib/fsusage.c [STAT_STATVFS &&
4169         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4170         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4171
4172 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4173
4174         fsusage: include files needed for glibc 2.6 fallback
4175         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4176         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4177         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4178         Problem reported by Ludovic Courtès in
4179         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4180
4181         fsusage: avoid needless check on GNU/Linux
4182         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4183         on GNU/Linux systems, since it can't possibly work.
4184
4185 2012-07-01  Bruno Haible  <bruno@clisp.org>
4186
4187         log: Fix an autoconf >= 2.64 warning.
4188         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4189         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4190
4191 2012-06-28  Bruno Haible  <bruno@clisp.org>
4192
4193         log10f: Fix possible configuration problem.
4194         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4195         $LOGF_LIBM.
4196         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4197
4198 2012-06-28  Bruno Haible  <bruno@clisp.org>
4199
4200         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4201         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4202         not gl_cv_func_unlink_works.
4203         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4204
4205 2012-06-27  Eric Blake  <eblake@redhat.com>
4206
4207         config: drop scripts that automake says are not independent
4208         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4209         * build-aux/elisp-comp: Delete.
4210         * build-aux/missing: Likewise.
4211         * build-aux/ylwrap: Likewise.
4212         * modules/elisp-comp: Likewise.
4213         * MODULES.html.sh: Drop mention of elisp-comp.
4214         * NEWS: Mention this.
4215
4216 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4217
4218         root-uid: new module
4219         This is for portability to Tandem's NonStop Kernel.
4220         * lib/root-uid.h, modules/root-uid: New files.
4221         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4222         * lib/write-any-file.c, tests/test-sethostname2.c:
4223         Include "root-uid.h".
4224         * lib/euidaccess.c (euidaccess):
4225         * lib/pt_chown.c (main):
4226         * lib/unlinkdir.c (cannot_unlink_dir):
4227         * lib/write-any-file.c (can_write_any_file):
4228         * m4/mknod.m4 (gl_FUNC_MKNOD):
4229         * tests/test-sethostname2.c (geteuid, main):
4230         Don't assume ROOT_UID == 0.
4231         * modules/euidaccess (Depends-on):
4232         * modules/pt_chown (Depends-on):
4233         * modules/sethostname-tests (Depends-on):
4234         * modules/unlinkdir (Depends-on):
4235         * modules/write-any-file (Depends-on):
4236         Add root-uid.
4237
4238         regex: use locale-independent comparison for codeset name
4239         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4240         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4241         for codeset name.
4242         * lib/regex_internal.h: Do not include <strings.h>, since we
4243         no longer use strcasecmp.
4244         * modules/regex (Depends-on): Remove strcase.
4245
4246 2012-06-23  Bruno Haible  <bruno@clisp.org>
4247
4248         getopt-posix: No longer guarantee that option processing is resettable.
4249         * doc/posix-functions/getopt.texi: Drop description of problem with
4250         internal state. Fix info about mingw and msvc9.
4251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4252         option processing by getopt(). Run three test programs instead of one.
4253         Simplify cross-compilation guess.
4254         * NEWS: Mention the change.
4255         Reported by Rich Felker <dalias@aerifal.cx>.
4256
4257 2012-06-26  Bruno Haible  <bruno@clisp.org>
4258
4259         argp, regex: Ensure strcasecmp gets declared.
4260         * lib/argp-help.c: Include <strings.h>.
4261         * lib/regex_internal.h: Likewise.
4262         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4263
4264 2012-06-24  Bruno Haible  <bruno@clisp.org>
4265
4266         ptsname_r: Make it consistent with ptsname on AIX.
4267         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4268         implementation as for OSF/1.
4269         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4270         a pty master.
4271
4272         ptsname_r: Make it consistent with ptsname on OSF/1.
4273         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4274         OSF/1.
4275
4276 2012-06-24  Bruno Haible  <bruno@clisp.org>
4277
4278         ttyname_r: Fix result on OSF/1, Solaris.
4279         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4280
4281 2012-06-24  Bruno Haible  <bruno@clisp.org>
4282
4283         ptsname_r: Add support for Solaris.
4284         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4285         Solaris.
4286
4287         ptsname_r: Fix test failure on native Windows.
4288         * modules/ptsname_r (Depends-on): Add isatty.
4289
4290         ptsname_r: Fix test failures on IRIX, Solaris.
4291         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4292         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4293         accordingly.
4294         * lib/ptsname_r.c: Include <fcntl.h>.
4295         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4296         set errno if fd is invalid.
4297         * tests/test-isatty.c (main): Update comments.
4298
4299 2012-06-24  Bruno Haible  <bruno@clisp.org>
4300
4301         ptsname test: Extend test.
4302         * tests/test-ptsname.c: Include <errno.h>.
4303         (main): Test behaviour with invalid file descriptor.
4304
4305 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4306
4307         time: fix obsolete comment
4308         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4309         reference to HAVE_STRUCT_TIMESPEC in comment.
4310
4311 2012-06-23  Bruno Haible  <bruno@clisp.org>
4312
4313         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4315         does not handle abbreviated long options with equivalent
4316         disambiguations, set gl_replace_getopt to yes.
4317         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4318
4319 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4320
4321         time_r: fix typo that always overrode localtime_r decl
4322         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4323         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4324         not in a standard include.
4325
4326 2012-06-22  Bruno Haible  <bruno@clisp.org>
4327
4328         Write "Mac OS X" instead of "MacOS X".
4329         * README: Write "Mac OS X" instead of "MacOS X".
4330         * build-aux/bootstrap: Likewise.
4331         * build-aux/install-reloc: Likewise.
4332         * lib/acl-internal.h: Likewise.
4333         * lib/acl_entries.c: Likewise.
4334         * lib/argp-ba.c: Likewise.
4335         * lib/argp-pv.c: Likewise.
4336         * lib/config.charset: Likewise.
4337         * lib/copy-acl.c: Likewise.
4338         * lib/csharpexec.c: Likewise.
4339         * lib/euidaccess.c: Likewise.
4340         * lib/fbufmode.c: Likewise.
4341         * lib/fflush.c: Likewise.
4342         * lib/file-has-acl.c: Likewise.
4343         * lib/filemode.h: Likewise.
4344         * lib/fpurge.c: Likewise.
4345         * lib/freadable.c: Likewise.
4346         * lib/freadahead.c: Likewise.
4347         * lib/freading.c: Likewise.
4348         * lib/freadptr.c: Likewise.
4349         * lib/freadseek.c: Likewise.
4350         * lib/fseeko.c: Likewise.
4351         * lib/fseterr.c: Likewise.
4352         * lib/fsusage.c: Likewise.
4353         * lib/fwritable.c: Likewise.
4354         * lib/fwriting.c: Likewise.
4355         * lib/get-rusage-as.c: Likewise.
4356         * lib/get-rusage-data.c: Likewise.
4357         * lib/getdomainname.c: Likewise.
4358         * lib/idpriv-drop.c: Likewise.
4359         * lib/idpriv-droptemp.c: Likewise.
4360         * lib/localcharset.c: Likewise.
4361         * lib/locale.in.h: Likewise.
4362         * lib/localename.c: Likewise.
4363         * lib/mbsrtowcs-state.c: Likewise.
4364         * lib/nproc.c: Likewise.
4365         * lib/passfd.c: Likewise.
4366         * lib/posix_openpt.c: Likewise.
4367         * lib/printf-parse.c: Likewise.
4368         * lib/progreloc.c: Likewise.
4369         * lib/safe-read.h: Likewise.
4370         * lib/safe-write.h: Likewise.
4371         * lib/sched.in.h: Likewise.
4372         * lib/set-mode-acl.c: Likewise.
4373         * lib/signal.in.h: Likewise.
4374         * lib/stdint.in.h: Likewise.
4375         * lib/stdio-impl.h: Likewise.
4376         * lib/stdlib.in.h: Likewise.
4377         * lib/strtod.c: Likewise.
4378         * lib/sys_select.in.h: Likewise.
4379         * lib/tcgetsid.c: Likewise.
4380         * lib/unistd.in.h: Likewise.
4381         * lib/unlockpt.c: Likewise.
4382         * lib/vasnprintf.c: Likewise.
4383         * lib/vma-iter.c: Likewise.
4384         * lib/wcsrtombs-state.c: Likewise.
4385         * m4/acl.m4: Likewise.
4386         * m4/acosl.m4: Likewise.
4387         * m4/asinl.m4: Likewise.
4388         * m4/atanl.m4: Likewise.
4389         * m4/c-stack.m4: Likewise.
4390         * m4/cosl.m4: Likewise.
4391         * m4/expl.m4: Likewise.
4392         * m4/extensions.m4: Likewise.
4393         * m4/fdatasync.m4: Likewise.
4394         * m4/fmal.m4: Likewise.
4395         * m4/frexp.m4: Likewise.
4396         * m4/frexpf.m4: Likewise.
4397         * m4/frexpl.m4: Likewise.
4398         * m4/fsusage.m4: Likewise.
4399         * m4/getdomainname.m4: Likewise.
4400         * m4/getloadavg.m4: Likewise.
4401         * m4/getopt.m4: Likewise.
4402         * m4/gettext.m4: Likewise.
4403         * m4/gnulib-common.m4: Likewise.
4404         * m4/intdiv0.m4: Likewise.
4405         * m4/intlmacosx.m4: Likewise.
4406         * m4/largefile.m4: Likewise.
4407         * m4/ldexpl.m4: Likewise.
4408         * m4/link-follow.m4: Likewise.
4409         * m4/locale-ar.m4: Likewise.
4410         * m4/locale-fr.m4: Likewise.
4411         * m4/locale-ja.m4: Likewise.
4412         * m4/locale-tr.m4: Likewise.
4413         * m4/locale-zh.m4: Likewise.
4414         * m4/locale_h.m4: Likewise.
4415         * m4/lock.m4: Likewise.
4416         * m4/logl.m4: Likewise.
4417         * m4/mathfunc.m4: Likewise.
4418         * m4/minus-zero.m4: Likewise.
4419         * m4/mktime.m4: Likewise.
4420         * m4/mmap-anon.m4: Likewise.
4421         * m4/multiarch.m4: Likewise.
4422         * m4/nanosleep.m4: Likewise.
4423         * m4/nocrash.m4: Likewise.
4424         * m4/poll.m4: Likewise.
4425         * m4/printf-frexpl.m4: Likewise.
4426         * m4/printf.m4: Likewise.
4427         * m4/signbit.m4: Likewise.
4428         * m4/sinl.m4: Likewise.
4429         * m4/sqrtl.m4: Likewise.
4430         * m4/strerror_r.m4: Likewise.
4431         * m4/tanl.m4: Likewise.
4432         * m4/threadlib.m4: Likewise.
4433         * m4/ttyname_r.m4: Likewise.
4434         * m4/unlink.m4: Likewise.
4435         * m4/visibility.m4: Likewise.
4436         * m4/wcwidth.m4: Likewise.
4437         * tests/minus-zero.h: Likewise.
4438         * tests/test-alloca-opt.c: Likewise.
4439         * tests/test-copy-acl.sh: Likewise.
4440         * tests/test-copy-file.sh: Likewise.
4441         * tests/test-fdatasync.c: Likewise.
4442         * tests/test-file-has-acl.sh: Likewise.
4443         * tests/test-flock.c: Likewise.
4444         * tests/test-fsync.c: Likewise.
4445         * tests/test-localename.c: Likewise.
4446         * tests/test-malloca.c: Likewise.
4447         * tests/test-nonblocking-pipe.h: Likewise.
4448         * tests/test-nonblocking-socket.h: Likewise.
4449         * tests/test-openpty.c: Likewise.
4450         * tests/test-posix_openpt.c: Likewise.
4451         * tests/test-ptsname.c: Likewise.
4452         * tests/test-ptsname_r.c: Likewise.
4453         * tests/test-sameacls.c: Likewise.
4454         * tests/test-select.h: Likewise.
4455         * tests/test-set-mode-acl.sh: Likewise.
4456         * tests/test-snprintf-posix.h: Likewise.
4457         * tests/test-sprintf-posix.h: Likewise.
4458         * tests/test-strtod.c: Likewise.
4459         * tests/test-time.c: Likewise.
4460         * tests/test-vasnprintf-posix.c: Likewise.
4461         * tests/test-vasprintf-posix.c: Likewise.
4462         * doc/acl-resources.txt: Likewise.
4463         * doc/**/*.texi: Likewise.
4464         Reported by Max Horn <max@quendi.de>.
4465
4466 2012-06-22  Bruno Haible  <bruno@clisp.org>
4467
4468         grantpt: Relax requirement regarding invalid file descriptors.
4469         * lib/grantpt.c: Don't include <fcntl.h>.
4470         (grantpt): Don't verify the validity of the file descriptor.
4471         * modules/grantpt (Depends-on): Remove fcntl-h.
4472         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4473         file descriptors.
4474         * doc/posix-functions/grantpt.texi: Document more platforms on which
4475         grantpt succeeds for invalid file descriptors.
4476         Reported by Rich Felker <dalias@aerifal.cx>.
4477
4478 2012-06-22  Bruno Haible  <bruno@clisp.org>
4479
4480         fbufmode test: Don't test unportable behaviour.
4481         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4482         (main): Invoke it three times.
4483         Reported by Szabolcs Nagy <nsz@port70.net>
4484         and Rich Felker <dalias@aerifal.cx>.
4485
4486 2012-06-21  Bruno Haible  <bruno@clisp.org>
4487
4488         gnulib-tool: Refactor inctests variable.
4489         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4490         (func_modules_transitive_closure,
4491         func_modules_transitive_closure_separately,
4492         func_import, func_create_testdir): Update.
4493
4494         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4495         * gnulib-tool: Accept option --without-tests.
4496         (func_usage): Document --without-tests option. Rearrange.
4497         (inctests): Normalize according to the mode.
4498         * NEWS: Mention the change.
4499         Suggested by Simon Josefsson.
4500
4501 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4502
4503         parse-duration test: Avoid spurious output.
4504         * tests/test-parse-duration.sh: Reindent with leading tabs.
4505
4506 2012-06-21  Jim Meyering  <meyering@redhat.com>
4507
4508         maint: disable the strncpy prohibition
4509         * cfg.mk: Do not prohibit strncpy here.
4510
4511 2012-06-21  Bruno Haible  <bruno@clisp.org>
4512
4513         nonblocking: Avoid compilation error on mingw64.
4514         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4515         fscanf.
4516         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4517         * modules/vfscanf (configure.ac): Likewise.
4518         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4519         definition only if stdio.h has prepared it.
4520         Reported by Daniel P. Berrange <berrange@redhat.com>.
4521
4522 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4523
4524         gnulib-tool: Use readlink if it is available.
4525         * gnulib-tool (func_readlink): Choose function more appropriately.
4526
4527 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4528
4529         posixtm-tests: port to buggy compiler
4530         Problem reported by Simon Josefsson in
4531         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4532         * modules/posixtm-tests (Depends-on): Add stdint.
4533         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4534         Now of type int_least64_t, not int64_t, both because that's
4535         what INT64_C returns and because int_least64_t works even
4536         on 72-bit hosts.
4537         (T): Use INT64_C on constants outside the traditional int range,
4538         to work around compiler bug noted by Simon.
4539
4540         mktime: fix integer overflow in 'configure'-time test
4541         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4542         after integer overflow.  Problem reported by Rich Felker in
4543         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4544         Also, don't look for further instances of a bug if we've already
4545         found one instance; this helps 'configure' run faster.
4546
4547 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4548
4549         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4550         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4551         GetVersionEx correctly.
4552         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4553
4554 2012-06-20  Bruno Haible  <bruno@clisp.org>
4555
4556         fdopen: Allow implementations that don't reject invalid fd arguments.
4557         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4558         succeeds.
4559         Reported by Rich Felker <dalias@aerifal.cx>.
4560
4561 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4562
4563         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4564         bring in LIBINTL.
4565
4566 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4567
4568         init.sh: do not rely on autoupated PWD
4569         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4570         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4571         Although Nelson's bug was not necessarily fixed by this patch,
4572         it seems wise to make the change for safety.
4573         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4574         automagically after 'cd'; this is not reliable on older shells.
4575         (setup_): Fail if we cannot cd to temporary directory.
4576
4577 2012-06-19  Bruno Haible  <bruno@clisp.org>
4578
4579         stat, fstat: Avoid warnings on mingw64.
4580         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4581         redefining.
4582         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4583         Reported by Daniel P. Berrange <berrange@redhat.com>.
4584
4585 2012-06-19  Bruno Haible  <bruno@clisp.org>
4586
4587         stdioext: Add support for musl libc.
4588
4589         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4590         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4591
4592         * m4/fseterr.m4: New file.
4593         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4594         function exists.
4595         * modules/fseterr (Files): Add m4/fseterr.m4.
4596         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4597         __fseterr does not exist.
4598         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4599
4600         * lib/freadable.h: Update comment.
4601
4602         * lib/fwritable.h: Update comment.
4603
4604         * lib/freading.h: Update comment.
4605
4606         * lib/fwriting.h: Update comment.
4607
4608         * m4/freadahead.m4: New file.
4609         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4610         that function exists.
4611         * modules/freadahead (Files): Add m4/freadahead.m4.
4612         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4613         __freadahead does not exist.
4614         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4615
4616         * m4/freadptr.m4: New file.
4617         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4618         function exists.
4619         * modules/freadptr (Files): Add m4/freadptr.m4.
4620         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4621         __freadptr does not exist.
4622         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4623
4624         * m4/freadseek.m4: New file.
4625         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4626         exists.
4627         * modules/freadseek (Files): Add m4/freadseek.m4.
4628         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4629
4630         * lib/fpurge.c (fpurge): Update comment.
4631
4632         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4633
4634 2012-06-19  Bruno Haible  <bruno@clisp.org>
4635
4636         *printf-posix: Put more info into config.log.
4637         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4638         exit code into config.log.
4639
4640 2012-06-19  Bruno Haible  <bruno@clisp.org>
4641
4642         getopt-gnu: Fix exit code overflow in autoconf test.
4643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4644         to keep them below < 128.
4645
4646 2012-06-17  Jim Meyering  <meyering@redhat.com>
4647
4648         maint.mk: fix typo in code to derive GPG key at release time
4649         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4650
4651 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4652
4653         regex: avoid warning when pointers are not long
4654         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4655         and uintptr_t, not long, for portability to hosts where pointers and
4656         long have different sizes.  Issue noted by Daniel P. Berrange in
4657         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4658         and fix suggested by Bruno Haible in
4659         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4660
4661 2012-06-17  Bruno Haible  <bruno@clisp.org>
4662
4663         dummy: Relicense into the public domain.
4664         * modules/dummy (License): Set to "public domain".
4665         Suggested by Reuben Thomas.
4666
4667 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4668
4669         announce-gen: VPATH issues
4670         * build-aux/announce-gen (--srcdir): New option, used to trim the
4671         $srcdir part of the path from $builddir to NEWS.
4672         * top/maint.mk (announcement): Adjust.
4673
4674 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4675
4676         gnu-web-doc-update: VPATH builds
4677         * build-aux/gnu-web-doc-update (--builddir): New option.
4678         Revamp the handling of options.
4679         Prefer $(...) to `...`.
4680         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4681         the template, and it is GNU mktemp specific.
4682         Prefer set -e to long series of &&.
4683         Restore the initial git branch, not "master".
4684         Properly initialize submodules (don't rely only on bootstrap).
4685         Do not reconfigure blindly, use config.status.
4686         * top/README-release: Update instructions for gnu-web-doc-update.
4687
4688 2012-06-11  Jim Meyering  <meyering@redhat.com>
4689
4690         maint.mk: revert most of the previous change re "all these"
4691         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4692         For rationale, see the discussion at
4693         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4694
4695 2012-06-10  Karl Berry  <karl@gnu.org>
4696
4697         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4698
4699         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4700
4701 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4702
4703         parse-duration: Relicense under LGPLv2+.
4704         * modules/parse-duration (License): Change to LGPLv2+.
4705
4706 2012-06-10  Jim Meyering  <meyering@redhat.com>
4707
4708         maint.mk: prohibit common grammar error: "all these"
4709         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4710         the list of prohibited word sequences.  It should be "all of these".
4711         * lib/tempname.c (__gen_tempname): Fix one of them.
4712
4713 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4714
4715         do-release-commit-and-tag: support VPATH builds
4716         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4717         (noteworthy): Defined earlier to factor its value.
4718         (noteworthy_stub): New.
4719         Use it to factor.
4720         (help_version): Split into...
4721         (help, version): these.
4722         Adjust the option processing part.
4723         Support "--option=value" in addition to "--option value".
4724         (builddir): New.
4725         (--builddir): New option.
4726         * top/README-release: Document this.
4727         Reword slightly so that the reader cannot understand that he
4728         has to do these steps before calling do-release-commit-and-tag.
4729
4730 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4731
4732         readme-release: also require announce-gen and maintainer-makefile
4733         * modules/readme-release (Depends-on): here.
4734         * modules/announce-gen, modules/do-release-commit-and-tag,
4735         modules/gnu-web-doc-update, modules/maintainer-makefile
4736         (Description): Point to readme-release.
4737
4738 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4739
4740         maint.mk: fix VPATH issues.
4741         * top/maint.mk (news-check): GNU Make understand $< very well.
4742         (release-prep): NEWS is in $(srcdir).
4743
4744 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4745
4746         readme-release: require the promoted modules.
4747         * modules/readme-release (Depends-on): Add
4748         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4749         in this text.
4750
4751 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4752             Bruno Haible  <bruno@clisp.org>
4753
4754         error, strerror-override: Support mingw64 from Fedora 17.
4755         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4756         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4757         EINPROGRESS.
4758         * lib/strerror-override.h (strerror_override): Test it.
4759         * lib/strerror-override.c (strerror_override): Likewise.
4760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4761
4762 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4763             Bruno Haible  <bruno@clisp.org>
4764
4765         error, strerror-override: Support mingw64 from Fedora 17.
4766         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4767         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4768         * lib/strerror-override.h (strerror_override): Test it.
4769         * lib/strerror-override.c (strerror_override): Likewise.
4770
4771 2012-06-03  Bruno Haible  <bruno@clisp.org>
4772
4773         error, strerror-override: Support new errno values from POSIX:2008.
4774         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4775         ENOTRECOVERABLE.
4776         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4777         platforms.
4778         * lib/strerror-override.c (strerror_override): Conditionalize the
4779         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4780         * lib/strerror-override.h (strerror_override): Declare also if
4781         GNULIB_defined_EOWNERDEAD is defined.
4782         * tests/test-errno.c (e130, e131): New variables.
4783         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4784         ENOTRECOVERABLE.
4785         Reported by Paolo Bonzini.
4786
4787 2012-05-31  Jim Meyering  <meyering@redhat.com>
4788
4789         savewd: add missing dependency on sys_wait module
4790         * modules/savewd (Depends-on): Add sys_wait, needed at least
4791         for MSVC.  Report and suggested change by Michael Goffioul.
4792
4793 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4794
4795         system-quote-tests: port to CentOS 5
4796         Problem reported by Tom G. Christensen in
4797         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4798         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4799
4800 2012-05-29  Jim Meyering  <meyering@redhat.com>
4801
4802         maint: fix typos in comments and ChangeLog
4803         Culprits identified and fixed mostly automatically using these commands:
4804         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4805         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4806         using http://github.com/lyda/misspell-check
4807         * ChangeLog: Fix typos.
4808         * doc/solaris-versions: Likewise.
4809         * lib/regexec.c (re_search_stub): Likewise.
4810         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4811
4812 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4813
4814         manywarnings: remove duplicate -Wmultichar entry
4815         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4816         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4817         so keep the entry marked as documented.
4818
4819 2012-05-27  Karl Berry  <karl@gnu.org>
4820
4821         * config/srclist.txt (mktime.c): remove last libc sync,
4822         perhaps just temporarily.
4823
4824 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4825
4826         regex: don't assume uint64_t or uint32_t
4827         * lib/regcomp.c (init_word_char): Don't assume that the types
4828         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4829         them, and on some 32-bit compilers there is no uint64_t.
4830         Problem reported by Gianluigi Tiesi in
4831         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4832
4833 2012-05-25  Jim Meyering  <meyering@redhat.com>
4834
4835         maint.mk: add strncpy-prohibiting syntax-check rule
4836         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4837
4838 2012-05-24  Jim Meyering  <meyering@redhat.com>
4839
4840         maint.mk: compute $(gpg_key_ID) more portably
4841         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4842         That use of sed is not portable to some fringe systems.
4843         Reported by Paul Eggert in
4844         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4845
4846 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4847
4848         mktime: sync from glibc
4849         * config/srclist.txt: Uncomment mktime.c.
4850         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4851         First, indent with tabs, since glibc uses tabs and doesn't want to
4852         change and we'd rather be identical to glibc.  Also, two small
4853         coding changes:
4854         (isdst_differ): Use &&, not &, as && is the usual style.
4855         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4856         for clarity.
4857
4858 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4859
4860         announce-gen: du -h is more portable than du --human
4861         * build-aux/announce-gen (sizes): Invoke du with -h instead
4862         of --human.  Accept leading white space in its output.
4863
4864 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4865
4866         announce-gen: Improve diagnostics.
4867         * build-aux/announce-gen: When parsing command line options,
4868         prefer "announce-gen: option --release-type requires an argument"
4869         to "Option release-type requires an argument".
4870
4871 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4872
4873         maint.mk: gpg_key_ID: use sed more portably
4874         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4875         the closing brace.
4876         (refresh-po): Fuse two sed invocations into one.
4877
4878 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4879
4880         gitlog-to-changelog: support the log message format used in Bison.
4881         * build-aux/gitlog-to-changelog: Support --strip-tab and
4882         --strip-cherry-picked.
4883
4884 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4885
4886         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4887         the rest of the current time slice to another thread in the current
4888         process. So if the thread that feeds the file decscriptor we're
4889         polling is not in the current process, we get busy-waiting.
4890         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4891         Patch from Theodore Leblond.
4892         * lib/select.c: Split polling out of the loop that sets the output
4893         fd_sets.  Check for zero result and loop if the wait timeout is
4894         infinite.
4895
4896 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4897
4898         select: Fix build error on IRIX 6.5.
4899         * lib/select.c: Include stddef.h for NULL.
4900
4901 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4902
4903         gc: fix libgcrypt detection on older machines.
4904         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4905         copyright years because the file has been distributed every year
4906         since it was created.
4907
4908 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4909
4910         crypto: fix bug in large buffer handling
4911         Problem reported by Serge Belyshev for glibc in
4912         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4913         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4914         * lib/md4.c (md4_process_block):
4915         * lib/md5.c (md5_process_block):
4916         * lib/sha1.c (sha1_process_block):
4917         * lib/sha256.c (sha256_process_block):
4918         Don't assume the buffer length is less than 2**32.
4919         * lib/sha512.c (sha512_process_block): Likewise.
4920         Here, the bug is present only in the rare case where the host does
4921         not support uint64_t or where size_t is wider than 64 bits.
4922         Use u64size to work around the problems.
4923         * lib/u64.h (u64size): New macro.
4924
4925 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4926
4927         fsusage: fix block size returned on older Linux 2.6
4928
4929         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4930         which is available since Linux 2.6.
4931         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4932         when the member is available so it can be used as a fallback.
4933         * doc/posix-functions/statvfs.texi: Mention the hang issue
4934         on Linux < 2.6.36.
4935
4936 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4937
4938         bootstrap: suppress stderr chatter
4939         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4940         Omit unnecessary chatter to stderr.  The main program chatter
4941         was there only inadvertantly.
4942
4943         bootstrap: .gitignore files created by autopoint, libtool
4944         I ran into this problem when bootstrapping the latest diffutils.
4945         After './bootstrap', 'git status' reported lots of untracked files
4946         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4947         autopoint and do not need to be version-controlled.
4948         * build-aux/bootstrap: Put into .gitignore the files that
4949         autopoint and libtool create, by keeping track of files that exist
4950         after but not before these programs are run.
4951         (version_controlled_file): Move up.  2nd arg is now full file
4952         name, not base name; this is more convenient.  Put CVS at the end,
4953         as it's now somewhat deprecated.
4954
4955 2012-05-14  Jim Meyering  <meyering@redhat.com>
4956
4957         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4958         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4959         definition.  Reported by Bruno Haible.
4960
4961 2012-05-13  Bruno Haible  <bruno@clisp.org>
4962             Paul Eggert  <eggert@cs.ucla.edu>
4963
4964         binary-io: Define set_binary_mode function.
4965         * lib/binary-io.h (set_binary_mode): New function.
4966         (SET_BINARY): Define in terms of set_binary_mode.
4967         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4968         * tests/test-binary-io.c (main): Accept an argument, and test either
4969         set_binary_mode or SET_BINARY depending on the argument.
4970         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4971         argument. Clean up also t-bin-out0.tmp.
4972
4973 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4974
4975         bootstrap: take advantage of POSIX shell features
4976
4977         The 'bootstrap' script offered by Gnulib script already uses POSIX
4978         shell features (like $((...)) arithmetic expansions) that are not
4979         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4980         means that bootstrap must already be run using a proper POSIX shell,
4981         which will thus provide more features, like ${var#pattern} parameter
4982         expansion or inversion of a command exit status with '!'.  We can
4983         thus use these features to improve the clarity and the performances
4984         of the bootstrap script.
4985
4986         Suggested by Eric Blake.
4987
4988         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4989         of sed/expr plus command substitutions, to save some forks.  While
4990         we are at it, prefer the POSIX $(...) form of command substitution,
4991         rather than the legacy form `...` (since the former is visually
4992         clearer and interacts better with quoting), and prefer the idiom:
4993           "if ! CMD; then ACTION ..."
4994         over the idiom:
4995           "if CMD; then :; else ACTION ..."
4996         which was required by legacy Bourne shells not supporting '!'.
4997
4998 2012-05-12  Bruno Haible  <bruno@clisp.org>
4999
5000         system-quote: Add more comments.
5001         * lib/system-quote.h: Add more comments about wilcards and limitations.
5002         Suggested by Eli Zaretskii <eliz@gnu.org>.
5003
5004         sh-quote, system-quote: Add comments about wildcards.
5005         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5006         * lib/system-quote.h: Likewise.
5007         Reported by Eli Zaretskii <eliz@gnu.org>.
5008
5009 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5010
5011         fsusage: check for GNU/Linux statvfs problem dynamically
5012         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5013         Define STAT_STATFS2_BSIZE too, since in this case the code now
5014         checks dynamically whether statvfs is reliable, falling back on
5015         Linux-style statfs otherwise.
5016         (statvfs_works): New function, for dynamically testing statvfs.
5017         (get_fs_usage) [STAT_STATVFS]: Use it.
5018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5019         statvfs on GNU/Linux hosts, since it's now done dynamically.
5020
5021 2012-05-10  Bruno Haible  <bruno@clisp.org>
5022
5023         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5024         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5025         '?' character.
5026         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5027         * tests/test-system-quote-main.c (check_all): Check also strings like
5028         "??????????".
5029         Reported by Eli Zaretskii <eliz@gnu.org>.
5030
5031 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5032
5033         _Noreturn: port config.h to gcc -Wundef
5034         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5035         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5036         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5037
5038 2012-05-10  Bruno Haible  <bruno@clisp.org>
5039
5040         system-quote: Refactor.
5041         * lib/system-quote.h (system_quote_copy): Fix comment.
5042         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5043         New functions, extracted from system_quote_copy.
5044         (system_quote_length, system_quote_copy): Use these functions.
5045         Reported by Paul Eggert.
5046
5047 2012-05-08  Bruno Haible  <bruno@clisp.org>
5048
5049         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5050         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5051
5052 2012-05-08  Bruno Haible  <bruno@clisp.org>
5053
5054         Tests for module 'system-quote'.
5055         * modules/system-quote-tests: New file.
5056         * tests/test-system-quote.sh: New file.
5057         * tests/test-system-quote-main.c: New file.
5058         * tests/test-system-quote-child.c: New file.
5059
5060         New module 'system-quote'.
5061         * lib/system-quote.h: New file.
5062         * lib/system-quote.c: New file.
5063         * modules/system-quote: New file.
5064
5065 2012-05-08  Bruno Haible  <bruno@clisp.org>
5066
5067         sh-quote: Make C++ safe and allow multiple inclusion.
5068         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5069         declarations in extern "C".
5070
5071 2012-05-08  Bruno Haible  <bruno@clisp.org>
5072
5073         sh-quote tests: Make tests stricter.
5074         * tests/test-sh-quote.c (check_one): Check the return value of
5075         shell_quote_copy.
5076         (main): Check a string with a CR character. Check a string that
5077         contains UCHAR_MAX.
5078
5079 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5080
5081         warnings.m4: provide a means to specify the program to compile.
5082         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5083         (gl_WARN_ADD): here.
5084         Use gl_AS_VAR_APPEND.
5085         Support an argument to specify the program to compile.
5086         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5087         AC_SUBST the WARN_CFLAGS when they are used.
5088         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5089         leave this to gl_WARN_ADD.
5090
5091 2012-05-08  Eric Blake  <eblake@redhat.com>
5092
5093         doc: recommendations on gettext version
5094         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5095         choice between versions.
5096         * DEPENDENCIES (gettext): Cover both approaches.
5097
5098 2012-05-08  Jim Meyering  <meyering@redhat.com>
5099
5100         init.sh: explain why EXEEXT support uses aliases rather than functions
5101         * tests/init.sh: Add a comment.
5102
5103         init.sh: don't let bash aliases interfere with tests
5104         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5105         is bash.  This avoids problems for those who alias standard commands to
5106         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5107         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5108
5109 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5110
5111         stdint: be more consistent with glibc, SunOS libc
5112         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5113         (gl_int_fast16_t, gl_uint_fast16_t)
5114         (gl_int_fast32_t, gl_uint_fast32_t)
5115         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5116         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5117         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5118         Be consistent with glibc by default, and with SunOS 5.10 and later
5119         if __sun is defined.  This lessens the likelihood of clashes if
5120         code compiled for older hosts is combined with code compiled for
5121         newer ones.  Problem reported by Niels Möller in
5122         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5123
5124 2012-05-07  Eric Blake  <eblake@redhat.com>
5125
5126         isatty: relax license to LGPLv2+
5127         * modules/isatty (License): Relax license.
5128
5129 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5130
5131         stat-size: comment fix
5132         * lib/stat-size.h: Remove obsolete comment about indenting.
5133
5134 2012-05-06  Bruno Haible  <bruno@clisp.org>
5135
5136         Tests for module 'sh-quote'.
5137         * modules/sh-quote-tests: New file.
5138         * tests/test-sh-quote.c: New file.
5139
5140 2012-05-06  Bruno Haible  <bruno@clisp.org>
5141
5142         sh-quote: Improve shell_quote_argv's signature.
5143         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5144         * lib/sh-quote.c (shell_quote_argv): Likewise.
5145
5146 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5147
5148         stdint: document issues with int_fast8_t etc.
5149         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5150         stdint.h substitutes may define these types differently.  See
5151         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5152
5153 2012-05-05  Bruno Haible  <bruno@clisp.org>
5154
5155         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5157         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5158         or 'guessing no (mishandles large arguments)'.
5159
5160 2012-05-05  Bruno Haible  <bruno@clisp.org>
5161
5162         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5163         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5164         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5165         set gl_cv_func_link_follows_symlink to "guessing no".
5166
5167 2012-05-05  Bruno Haible  <bruno@clisp.org>
5168
5169         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5170         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5171         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5172         "guessing no".
5173         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5174
5175 2012-05-05  Bruno Haible  <bruno@clisp.org>
5176
5177         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5178         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5179         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5180         set gl_cv_struct_dirent_d_ino to "guessing yes".
5181
5182 2012-05-05  Bruno Haible  <bruno@clisp.org>
5183
5184         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5185         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5186         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5187         "guessing yes".
5188
5189 2012-05-05  Bruno Haible  <bruno@clisp.org>
5190
5191         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5192         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5193         compiling to a glibc system, set gl_cv_func_signbit and
5194         gl_cv_func_signbit_gcc to "guessing yes".
5195
5196 2012-05-05  Bruno Haible  <bruno@clisp.org>
5197
5198         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5199         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5200         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5201         to "guessing yes".
5202         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5203         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5204
5205 2012-05-05  Bruno Haible  <bruno@clisp.org>
5206
5207         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5208         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5209         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5210         gl_cv_func_realpath_works to "guessing yes".
5211
5212 2012-05-05  Bruno Haible  <bruno@clisp.org>
5213
5214         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5215         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5216         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5217
5218 2012-05-04  Bruno Haible  <bruno@clisp.org>
5219
5220         Tweak last commit.
5221         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5222         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5223
5224 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5225
5226         unistd_h: make it easier to avoid sys_types_h
5227         This is useful for Emacs, which has its own method of porting to
5228         Windows, and which therefore does not need the sys_types_h module.
5229         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5230         code moved here from gl_SYS_TYPES_H.
5231         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5232         using the code directly.
5233         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5234         gl_SYS_TYPES_H.
5235         * modules/sys_types (Files):
5236         * modules/unistd (Files): Add m4/off_t.m4.
5237
5238 2012-05-03  Bruno Haible  <bruno@clisp.org>
5239
5240         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5241         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5242         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5243         "guessing yes" or "guessing no".
5244         (gl_FUNC_LSTAT): Update.
5245         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5246         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5247         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5248
5249 2012-05-03  Bruno Haible  <bruno@clisp.org>
5250
5251         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5252         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5253         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5254         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5255         cross-compiling, choose the first alternative on glibc systems.
5256         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5257
5258 2012-05-03  Bruno Haible  <bruno@clisp.org>
5259
5260         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5261         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5262         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5263
5264 2012-05-03  Bruno Haible  <bruno@clisp.org>
5265
5266         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5267         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5268
5269 2012-05-03  Bruno Haible  <bruno@clisp.org>
5270
5271         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5272         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5273         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5274         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5275         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5276         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5277         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5278         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5279         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5280         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5281         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5282         gl_cv_func_chown_ctime_works to "guessing yes".
5283         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5284         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5285         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5286         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5287         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5289         compiling to glibc systems, set gl_cv_func_open_directory_works to
5290         "guessing yes".
5291         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5293         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5294         "guessing yes".
5295         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5296         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5297         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5298         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5299         "guessing yes".
5300         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5301         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5302         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5303         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5304         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5305         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5306         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5307         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5308         "guessing yes".
5309         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5310         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5311         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5312         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5313         "guessing yes".
5314         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5315         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5316         "guessing yes".
5317         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5318         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5319         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5320         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5321         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5322         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5323         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5324         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5325         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5326         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5327         "guessing yes".
5328         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5329         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5330         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5331         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5332         "guessing yes".
5333         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5334         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5335         "guessing yes".
5336         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5337         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5338         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5339         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5340         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5341         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5342         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5343         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5344         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5345         "guessing yes".
5346         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5347         compiling to glibc systems, set gl_cv_func_mknod_works to
5348         "guessing yes".
5349         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5350         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5351         "guessing yes".
5352         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5353         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5354         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5355         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5356         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5357         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5358         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5359         compiling to glibc systems, set gl_cv_func_svid_putenv to
5360         "guessing yes".
5361         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5362         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5363         "guessing yes".
5364         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5365         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5366         "guessing yes".
5367         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5368         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5369         to "guessing yes".
5370         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5371         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5372         to "guessing yes".
5373         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5374         compiling to glibc systems, set gl_cv_func_rmdir_works to
5375         "guessing yes".
5376         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5377         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5378         gl_cv_func_unlink_parent_fails to "guessing yes".
5379         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5380         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5381         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5382         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5383         gl_cv_func_rename_dest_works to "guessing yes".
5384         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5385         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5386         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5387         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5388         "guessing yes".
5389         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5390         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5391         "guessing yes".
5392         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5393         compiling to glibc systems, set gl_cv_func_setenv_works to
5394         "guessing yes".
5395         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5396         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5397         "guessing yes".
5398         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5399         compiling to glibc systems, set gl_cv_func_sleep_works to
5400         "guessing yes".
5401         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5402         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5403         "guessing yes".
5404         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5405         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5406         "guessing yes".
5407         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5408         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5409         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5410         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5411         "guessing yes".
5412         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5413         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5414         "guessing yes".
5415         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5416         compiling to glibc systems, set gl_cv_func_usleep_works to
5417         "guessing yes".
5418         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5419         compiling to glibc systems, set gl_cv_func_futimesat_works to
5420         "guessing yes".
5421
5422 2012-05-03  Bruno Haible  <bruno@clisp.org>
5423
5424         Say "guessing yes" or "guessing no" when cross-compiling.
5425         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5426         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5427         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5428         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5429         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5430         am_cv_func_working_getline to "guessing yes" or "guessing no".
5431         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5432         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5433         (gl_FUNC_MEMMEM): When cross-compiling, set
5434         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5436         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5438         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5439         "guessing no".
5440         (gl_FUNC_STRCASESTR): When cross-compiling, set
5441         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5442         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5443         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5444         (gl_FUNC_STRSTR): When cross-compiling, set
5445         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5446         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5447         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5448         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5449         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5450
5451 2012-05-01  Bruno Haible  <bruno@clisp.org>
5452
5453         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5454         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5455         * build-aux/reloc-ldflags: Likewise.
5456         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5457
5458 2012-05-01  Bruno Haible  <bruno@clisp.org>
5459
5460         gnulib-tool: Remove transitional code.
5461         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5462         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5463
5464 2012-05-01  Bruno Haible  <bruno@clisp.org>
5465
5466         getcwd: Fix misindentation.
5467         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5468
5469 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5470
5471         exclude: process exclude and include directives in order
5472         This restores the pre-2009 behavior, and is part of a fix of a
5473         grep bug reported by Quentin Arce in
5474         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5475         * lib/exclude.c (struct exclude): Remove 'tail' member.
5476         (new_exclude_segment): Prepend the new segment instead of appending.
5477         Return void, since that's now more convenient.
5478         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5479         (file_name_matches): Renamed from excluded_file_name_p.
5480         (file_pattern_matches, file_name_matches):
5481         Return true if the pattern matches, not if it excludes.
5482         All callers changed.
5483         (excluded_file_name): Process the list in reverse order;
5484         since the list is now reversed this restores the pre-2009 behavior.
5485         (add_exclude): Adjust to new reversed-order list.  Use local var
5486         rather than macro, for clarity.
5487         * tests/test-exclude7.sh: Adjust to corrected behavior.
5488
5489         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5490         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5491         it's not possible here.  Handle the case of \ at end of pattern
5492         without dumping core.
5493         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5494
5495         _Noreturn: future-proof non-GNU and non-MSVC compilers
5496         * build-aux/snippet/_Noreturn.h (_Noreturn):
5497         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5498         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5499         C11 or later.  This is more likely to work with random future C
5500         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5501         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5502
5503         exclude: handle wildcards with FNM_EXTMATCH
5504         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5505         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5506         comment that "has wildcards" really means "has or may have
5507         wildcards".  Simplify by avoiding the need to call strcspn.
5508
5509 2012-04-29  Bruno Haible  <bruno@clisp.org>
5510
5511         gnulib-tool: Fix list of authors.
5512         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5513
5514 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5515
5516         bootstrap: support Automake-NG in $buildreq
5517         * bootstrap (check_versions): Handle automake and aclocal from
5518         Automake-NG specially.  They can be specified as respectively
5519         the "automake-ng" and "aclocal-ng" requirements.
5520
5521 2012-04-25  Eric Blake  <eblake@redhat.com>
5522
5523         bootstrap: only force latest Makefile.in.in for gettext module
5524         * build-aux/bootstrap (with_gettext): Only install latest
5525         Makefile.in.in for projects requesting bleeding edge gettext.
5526
5527 2012-04-22  Bruno Haible  <bruno@clisp.org>
5528
5529         doc: Mention reason for replacement on glibc/Linux systems.
5530         * doc/posix-functions/dprintf.texi: Mention the problem with special
5531         'long double' values.
5532         * doc/posix-functions/fprintf.texi: Likewise.
5533         * doc/posix-functions/printf.texi: Likewise.
5534         * doc/posix-functions/snprintf.texi: Likewise.
5535         * doc/posix-functions/sprintf.texi: Likewise.
5536         * doc/posix-functions/vdprintf.texi: Likewise.
5537         * doc/posix-functions/vfprintf.texi: Likewise.
5538         * doc/posix-functions/vprintf.texi: Likewise.
5539         * doc/posix-functions/vsnprintf.texi: Likewise.
5540         * doc/posix-functions/vsprintf.texi: Likewise.
5541         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5542         platforms with F_DUPFD_CLOEXEC problems.
5543         * doc/posix-functions/glob.texi: Mention which platforms are affected
5544         by the problem with symbolic links.
5545         * doc/posix-functions/linkat.texi: Mention the problem with
5546         AT_SYMLINK_FOLLOW on Linux.
5547
5548 2012-04-22  Bruno Haible  <bruno@clisp.org>
5549
5550         pwrite: Don't replace on all platforms.
5551         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5552
5553 2012-04-22  Bruno Haible  <bruno@clisp.org>
5554
5555         rint* tests: Avoid gcc warnings.
5556         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5557         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5558         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5559
5560 2012-04-21  Bruno Haible  <bruno@clisp.org>
5561
5562         users.txt: Update.
5563         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5564         switched from CVS to git, bzr, or svn.
5565
5566 2012-04-21  Bruno Haible  <bruno@clisp.org>
5567
5568         Large File Support for native Windows platforms.
5569
5570         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5571         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5572
5573         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5574         type.
5575         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5576         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5577         * doc/posix-headers/sys_types.texi: Mention the effect of the
5578         'largefile' module.
5579
5580         * lib/fcntl.in.h: Add comments about off_t.
5581         * modules/fcntl-h (Depends-on): Add sys_types.
5582
5583         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5584         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5585         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5586         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5587         * modules/unistd (Depends-on): Add sys_types.
5588         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5589
5590         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5591         instead of lseek.
5592         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5593         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5594         * modules/lseek (Depends-on): Add sys_types.
5595
5596         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5597         msvc-nothrow.h.
5598         (SetFileSize): New function.
5599         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5600         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5601         if Large File Support is requested.
5602         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5603         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5604
5605         * lib/stdio.in.h: Add comments about off_t.
5606         * modules/stdio (Depends-on): Add sys_types.
5607
5608         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5609         instead of ftello.
5610         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5611         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5612         (gl_PREREQ_FTELLO): New macro.
5613         * modules/ftello (Depends-on): Add sys_types.
5614         (configure.ac): Incoke gl_PREREQ_FTELLO.
5615
5616         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5617         instead of fseeko.
5618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5619         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5620         (gl_PREREQ_FSEEKO): New macro.
5621         * modules/fseeko (Depends-on): Add sys_types.
5622         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5623
5624         * lib/sys_stat.in.h: Add comments about off_t.
5625         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5626         64-bit integer for st_size in 'struct stat'.
5627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5628         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5629         * modules/sys_stat (Depends-on): Add sys_types.
5630         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5631
5632         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5633         instead of stat or _stat.
5634
5635         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5636         'struct _stati64' instead of fstat and 'struct stat'.
5637         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5638         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5639
5640         Reported by Ray Satiro <raysatiro@yahoo.com>.
5641
5642 2012-04-19  Eric Blake  <eblake@redhat.com>
5643
5644         bootstrap: accommodate older libtool
5645         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5646         Reported by Daniel P. Berrange.
5647
5648 2012-04-19  Jim Meyering  <meyering@redhat.com>
5649
5650         announce-gen: avoid failure due to lack of Digest::SHA1
5651         Even with the preferred Digest::SHA available, this script
5652         would fail when the backup module, Digest::SHA1, was not installed.
5653         * build-aux/announce-gen: Quote the conditional use of "use".
5654         Reported by Reuben Thomas in:
5655         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5656
5657         bootstrap: don't let a user's CDPATH setting affect this script
5658         When CDPATH is set, cd will sometimes generate output.
5659         When "cd" is run in a subshell whose output matters, that
5660         surprising-to-some output can cause malfunction.
5661         Unsetting CDPATH turns off this shell "feature."
5662         * build-aux/bootstrap (CDPATH): Unset.
5663         Reported by Reuben Thomas in:
5664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5665         and inspired by his patch here:
5666         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5667
5668 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5669         and Jim Meyering  <meyering@redhat.com>
5670
5671         maint.mk: catch "see @xref{}" and similar
5672         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5673         prohibit "See also @xref{", "Also see @pxref{", and similar.
5674
5675 2012-04-16  Jim Meyering  <meyering@redhat.com>
5676
5677         bootstrap: really use gnulib's po/Makefile.in.in
5678         * build-aux/bootstrap: Correct the source file name in previous change.
5679         Reported by Akim Demaille.
5680
5681         configmake: correct minor inconsistency in Makefile rule
5682         * modules/configmake (Makefile.am): All other rules like this one
5683         run the final "mv -f ..." in the same backslash-continued command
5684         as the one that does everything else.  This one put the mv -f ...
5685         command on a separate, non-backslash-continued line.
5686         Make it like the others.
5687
5688         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5689         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5690         the one from gettext.  Reported by Akim Demaille.
5691
5692 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5693
5694         Fix recursion of install-* into po directories.
5695         Bison's install-pdf bug reported by Hans Aberg at
5696         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5697         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5698         (install-info, install-pdf, install-ps): New targets.
5699
5700 2012-04-16  Jim Meyering  <meyering@redhat.com>
5701
5702         maint: avoid spurious "make sc_maint" failure
5703         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5704         exempt all *.class file names, for lib/javaversion.class.
5705
5706 2012-04-15  Bruno Haible  <bruno@clisp.org>
5707
5708         lseek: Make configure test independent of environment.
5709         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5710         Windows, we know that lseek() on pipes is broken; skip the runtime
5711         test.
5712
5713 2012-04-14  Bruno Haible  <bruno@clisp.org>
5714
5715         stat: Bypass buggy override in mingw64.
5716         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5717         * lib/stat.c (stat) [mingw64]: Define to _stat.
5718         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5719
5720 2012-04-14  Bruno Haible  <bruno@clisp.org>
5721
5722         pathmax: Fix compilation error on MSVC 9.
5723         * modules/pathmax (Depends-on): Add unistd.
5724
5725 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5726
5727         README: document pointer comparison assumption
5728         * README (Portability guidelines): Document assumption about
5729         pointer comparisons, in response to a recent bug-gnulib comment by
5730         Jeffrey Kegler.
5731
5732 2012-04-12  Bruno Haible  <bruno@clisp.org>
5733
5734         Tests for module 'getrusage'.
5735         * modules/getrusage-tests: New file.
5736         * tests/test-getrusage.c: New file.
5737
5738         New module 'getrusage'.
5739         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5740         warn-on-use.h.
5741         (getrusage): New declaration.
5742         * lib/getrusage.c: New file.
5743         * m4/getrusage.m4: New file.
5744         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5745         is declared.
5746         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5747         HAVE_GETRUSAGE.
5748         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5749         snippet/c++defs, snippet/warn-on-use.
5750         (Makefile.am): Update generation of sys/resource.h. Substitute
5751         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5752         * modules/getrusage: New file.
5753         * doc/posix-functions/getrusage.texi: Mention the new module.
5754
5755 2012-04-12  Bruno Haible  <bruno@clisp.org>
5756
5757         Tests for module 'sys_resource'.
5758         * modules/sys_resource-tests: New file.
5759         * tests/test-sys_resource.c: New file.
5760
5761         New module 'sys_resource'.
5762         * lib/sys_resource.in.h: New file.
5763         * m4/sys_resource_h.m4: New file.
5764         * modules/sys_resource: New file.
5765         * doc/posix-headers/sys_resource.texi: Mention the new module.
5766
5767 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5768
5769         ioctl: Fix compilation error on mingw.
5770         * lib/ioctl.c: Include <windows.h>.
5771         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5772
5773 2012-04-04  Jim Meyering  <meyering@redhat.com>
5774
5775         regex: correct #pragma guard expression
5776         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5777         not 4.3.  Correct its cpp guard expression.
5778
5779 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5780
5781         regex: remove unnecessary type punning
5782         Problem reported by Vladimir Serbinenko in
5783         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5784         * lib/regex.h (struct re_pattern_buffer): Change the type of
5785         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5786         Fix comment to match code.
5787         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5788         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5789         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5790         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5791         (set_regs):
5792         Omit no-longer-necessary casts.
5793
5794 2012-04-03  Bruno Haible  <bruno@clisp.org>
5795
5796         Tests for module 'ilogbl'.
5797         * modules/ilogbl-tests: New file.
5798         * tests/test-ilogbl.c: New file.
5799
5800         New module 'ilogbl'.
5801         * lib/math.in.h (ilogbl): New declaration.
5802         * lib/ilogbl.c: New file.
5803         * m4/ilogbl.m4: New file.
5804         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5806         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5807         Split sed invocation, to avoid the limit of 100 substitutions of
5808         HP-UX 'sed'.
5809         * modules/ilogbl: New file.
5810         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5811         * doc/posix-functions/ilogbl.texi: Mention the new module.
5812
5813 2012-04-03  Bruno Haible  <bruno@clisp.org>
5814
5815         Tests for module 'ilogbf'.
5816         * modules/ilogbf-tests: New file.
5817         * tests/test-ilogbf.c: New file.
5818
5819         New module 'ilogbf'.
5820         * lib/math.in.h (ilogbf): New declaration.
5821         * lib/ilogbf.c: New file.
5822         * m4/ilogbf.m4: New file.
5823         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5825         REPLACE_ILOGBF.
5826         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5827         REPLACE_ILOGBF.
5828         * modules/ilogbf: New file.
5829         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5830         * doc/posix-functions/ilogbf.texi: Mention the new module.
5831
5832 2012-04-03  Bruno Haible  <bruno@clisp.org>
5833
5834         Tests for module 'ilogb'.
5835         * modules/ilogb-tests: New file.
5836         * tests/test-ilogb.c: New file.
5837         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5838         tests/test-logb-ieee.h.
5839
5840         New module 'ilogb'.
5841         * lib/math.in.h (ilogb): New declaration.
5842         * lib/ilogb.c: New file.
5843         * m4/ilogb.m4: New file.
5844         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5846         REPLACE_ILOGB.
5847         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5848         REPLACE_ILOGB.
5849         * modules/ilogb: New file.
5850         * tests/test-math-c++.cc: Check the declaration of ilogb.
5851         * doc/posix-functions/ilogb.texi: Mention the new module.
5852
5853 2012-04-03  Bruno Haible  <bruno@clisp.org>
5854
5855         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5856         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5857         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5858         (main): Check their values.
5859         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5860         problem.
5861
5862 2012-04-03  Bruno Haible  <bruno@clisp.org>
5863
5864         Tests for module 'logbl-ieee'.
5865         * modules/logbl-ieee-tests: New file.
5866         * tests/test-logbl-ieee.c: New file.
5867
5868         New module 'logbl-ieee'.
5869         * modules/logbl-ieee: New file.
5870
5871         Tests for module 'logb-ieee'.
5872         * modules/logb-ieee-tests: New file.
5873         * tests/test-logb-ieee.c: New file.
5874
5875         New module 'logb-ieee'.
5876         * modules/logb-ieee: New file.
5877
5878         Tests for module 'logbf-ieee'.
5879         * modules/logbf-ieee-tests: New file.
5880         * tests/test-logbf-ieee.c: New file.
5881         * tests/test-logb-ieee.h: New file.
5882
5883         New module 'logbf-ieee'.
5884         * modules/logbf-ieee: New file.
5885
5886 2012-04-03  Bruno Haible  <bruno@clisp.org>
5887
5888         Tests for module 'logbl'.
5889         * modules/logbl-tests: New file.
5890         * tests/test-logbl.c: New file.
5891
5892         New module 'logbl'.
5893         * lib/math.in.h (logbl): New declaration.
5894         * lib/logbl.c: New file.
5895         * m4/logbl.m4: New file.
5896         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5898         REPLACE_LOGBL.
5899         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5900         REPLACE_LOGBL.
5901         * modules/logbl: New file.
5902         * tests/test-math-c++.cc: Check the declaration of logbl.
5903         * doc/posix-functions/logbl.texi: Mention the new module.
5904
5905 2012-04-02  Bruno Haible  <bruno@clisp.org>
5906
5907         Tests for module 'logbf'.
5908         * modules/logbf-tests: New file.
5909         * tests/test-logbf.c: New file.
5910
5911         New module 'logbf'.
5912         * lib/math.in.h (logbf): New declaration.
5913         * lib/logbf.c: New file.
5914         * m4/logbf.m4: New file.
5915         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5917         REPLACE_LOGBF.
5918         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5919         REPLACE_LOGBF.
5920         * modules/logbf: New file.
5921         * tests/test-math-c++.cc: Check the declaration of logbf.
5922         * doc/posix-functions/logbf.texi: Mention the new module.
5923
5924 2012-04-02  Bruno Haible  <bruno@clisp.org>
5925
5926         logb tests: More tests.
5927         * tests/test-logb.h: New file, based on tests/test-logb.c and
5928         tests/test-frexp.h.
5929         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5930         (main): Just invoke test_function.
5931         * modules/logb-tests (Files): Add tests/test-logb.h,
5932         tests/minus-zero.h, tests/randomd.c.
5933         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5934
5935         logb: Provide replacement and workarounds.
5936         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5937         is 1.
5938         * lib/logb.c: New file.
5939         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5940         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5942         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5943         * modules/logb (Files): Add lib/logb.c.
5944         (Depends-on): Add isfinite, frexp, isnand.
5945         (configure.ac): Compile the replacement code logb.c if needed.
5946         * tests/test-math-c++.cc: Check the declaration of logb.
5947         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5948         with subnormal numbers.
5949
5950 2012-04-02  Bruno Haible  <bruno@clisp.org>
5951
5952         log10* tests: Speed up.
5953         * tests/test-log10.h (test_function): Reduce amount of random numbers
5954         to test.
5955
5956 2012-04-01  Bruno Haible  <bruno@clisp.org>
5957
5958         logf-ieee: Fix test whether logf works.
5959         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5960
5961 2012-04-01  Bruno Haible  <bruno@clisp.org>
5962
5963         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5964         * lib/log10l.c: Include <float.h>
5965         (log10l): On IRIX, normalize the +Infinity value.
5966         * modules/log10l (Depends-on): Add 'float'.
5967         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5968         +Infinity.
5969
5970         log10f-ieee: Work around test failure on NetBSD 5.1.
5971         * m4/log10f-ieee.m4: New file.
5972         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5973         test whether log10f works with a negative argument. Replace it if not.
5974         * lib/log10f.c (log10f): For negative arguments, return NaN.
5975         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5976         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5977         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5978
5979         log10f-ieee: Work around test failure on Solaris 9.
5980         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5981         (configure.ac): Require gl_FUNC_LOG10F.
5982
5983         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5984         * m4/log10-ieee.m4: New file.
5985         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5986         whether log10 works with a negative argument. Replace it if not.
5987         * lib/log10.c (log10): For negative arguments, return NaN.
5988         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5989         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5990         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5991
5992         Tests for module 'log10l-ieee'.
5993         * modules/log10l-ieee-tests: New file.
5994         * tests/test-log10l-ieee.c: New file.
5995
5996         New module 'log10l-ieee'.
5997         * modules/log10l-ieee: New file.
5998
5999         Tests for module 'log10-ieee'.
6000         * modules/log10-ieee-tests: New file.
6001         * tests/test-log10-ieee.c: New file.
6002
6003         New module 'log10-ieee'.
6004         * modules/log10-ieee: New file.
6005
6006         Tests for module 'log10f-ieee'.
6007         * modules/log10f-ieee-tests: New file.
6008         * tests/test-log10f-ieee.c: New file.
6009         * tests/test-log10-ieee.h: New file.
6010
6011         New module 'log10f-ieee'.
6012         * modules/log10f-ieee: New file.
6013
6014 2012-04-01  Bruno Haible  <bruno@clisp.org>
6015
6016         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6017         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6018         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6019         workaround.
6020         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6021         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6023         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6024         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6025         (Depends-on): Update conditions.
6026         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6027         IRIX 6.5, OSF/1 5.1 problems.
6028
6029 2012-04-01  Bruno Haible  <bruno@clisp.org>
6030
6031         log10f: Work around OSF/1 5.1 bug.
6032         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6033         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6034         workaround.
6035         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6036         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6038         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6039         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6040         (Depends-on): Update conditions.
6041         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6042
6043 2012-04-01  Bruno Haible  <bruno@clisp.org>
6044
6045         log10: Work around OSF/1 5.1 bug.
6046         * lib/math.in.h (log10): New declaration.
6047         * lib/log10.c: New file.
6048         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6049         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6050         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6052         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6053         * modules/log10 (Files): Add lib/log10.c.
6054         (Depends-on): Add math.
6055         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6056         * tests/test-math-c++.cc: Check the declaration of log10.
6057         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6058
6059 2012-03-31  Bruno Haible  <bruno@clisp.org>
6060
6061         log10l tests: More tests.
6062         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6063         tests/minus-zero.h, tests/randoml.c.
6064         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6065         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6066         (main): Invoke test_function.
6067
6068         log10f tests: More tests.
6069         * modules/log10f-tests (Files): Add tests/test-log10.h,
6070         tests/minus-zero.h, tests/randomf.c.
6071         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6072         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6073         (main): Invoke test_function.
6074
6075         log10 tests: More tests.
6076         * tests/test-log10.h: New file.
6077         * modules/log10-tests (Files): Add tests/test-log10.h,
6078         tests/minus-zero.h, tests/randomd.c.
6079         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6080         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6081         (main): Invoke test_function.
6082
6083 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6084
6085         fflush: Fix syntax error.
6086         * lib/fflush.c: Include unused-parameter.h, needed for
6087         _GL_UNUSED_PARAMETER.
6088         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6089
6090 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6091
6092         regex: pacify GCC when compiling GRUB
6093         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6094         a diagnostic.  Reported by Vladimir Serbinenko in
6095         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6096
6097 2012-03-29  Eric Blake  <eblake@redhat.com>
6098
6099         stdio: don't assume gets any more
6100         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6101         support.
6102         * modules/stdio (Makefile.am): Likewise.
6103         * lib/stdio-read.c (gets): Likewise.
6104         * tests/test-stdio-c++.cc: Likewise.
6105         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6106         * lib/stdio.in.h (gets): Make warning occur in more places.
6107         * doc/posix-functions/gets.texi (gets): Update documentation.
6108         Reported by Christer Solskogen.
6109
6110         maint.mk: fix syntax checks without exclusions
6111         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6112         Reported by Daniel P. Berrange.
6113
6114         strerror_r: avoid compiler warning
6115         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6116         level.
6117
6118         fflush: avoid compiler warning
6119         * lib/fflush.c (update_fpos_cache): Mark variables that are
6120         potentially unused.
6121
6122 2012-03-25  Bruno Haible  <bruno@clisp.org>
6123
6124         Tests for module 'localeconv'.
6125         * modules/localeconv-tests: New file.
6126         * tests/test-localeconv.c: New file.
6127
6128         New module 'localeconv'.
6129         * lib/locale.in.h (localeconv): New declaration.
6130         * lib/localeconv.c: New file.
6131         * m4/localeconv.m4: New file.
6132         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6133         REPLACE_LOCALECONV.
6134         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6135         REPLACE_LOCALECONV.
6136         * modules/localeconv: New file.
6137         * modules/nl_langinfo (Depends-on): Add localeconv.
6138         * modules/human (Depends-on): Likewise.
6139         * doc/posix-functions/localeconv.texi: Mention the new module.
6140
6141 2012-03-25  Bruno Haible  <bruno@clisp.org>
6142
6143         locale: Provide a complete 'struct lconv'.
6144         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6145         'struct lconv' does not contain int_p_cs_precedes.
6146         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6147         * doc/posix-headers/locale.texi: Update.
6148
6149         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6150         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6151         * doc/posix-headers/locale.texi: Update.
6152
6153         locale: Provide a working 'struct lconv'.
6154         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6155         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6156         'struct lconv' does not even contain decimal_point.
6157         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6158         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6159         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6160         * doc/posix-headers/locale.texi: Mention the problems with
6161         'struct lconv'.
6162         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6163
6164 2012-03-24  Bruno Haible  <bruno@clisp.org>
6165
6166         Enable common subexpression optimization in GCC.
6167         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6168         macros.
6169         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6170         GCC attribute 'const'.
6171         (uc_locale_language): Declare with GCC attribute 'pure'.
6172         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6173         with GCC attribute 'const'.
6174         * lib/unictype.in.h (uc_is_general_category_withtable,
6175         uc_combining_class, uc_combining_class_name,
6176         uc_combining_class_long_name, uc_bidi_class_name,
6177         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6178         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6179         uc_decimal_value, uc_digit_value, uc_numeric_value,
6180         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6181         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6182         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6183         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6184         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6185         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6186         Declare with GCC attribute 'const'.
6187         (uc_general_category_name, uc_general_category_long_name,
6188         uc_general_category_byname, uc_general_category,
6189         uc_is_general_category, uc_combining_class_byname,
6190         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6191         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6192         Declare with GCC attribute 'pure'.
6193         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6194         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6195         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6196         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6197         with GCC attribute 'pure'.
6198         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6199         'const'.
6200         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6201         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6202         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6203         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6204         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6205         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6206         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6207         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6208         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6209         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6210         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6211         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6212         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6213         GCC attribute 'pure'.
6214         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6215         'const'.
6216         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6217         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6218         u32_strwidth): Declare with GCC attribute 'pure'.
6219
6220         Enable common subexpression optimization in GCC.
6221         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6222         (alphasort): Declare with GCC attribute 'pure'.
6223         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6224         (atoll): Declare with GCC attribute 'pure'.
6225         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6226         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6227         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6228         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6229         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6230         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6231         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6232
6233 2012-03-24  Bruno Haible  <bruno@clisp.org>
6234
6235         gnulib-tool: Avoid unintended error output from 'cmp'.
6236         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6237         "cmp -s", not "cmp > /dev/null".
6238
6239 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6240
6241         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6242
6243         It's not just Automake versions < 1.9b that creates an empty
6244         pkgdatadir at installation time if pkgdata_DATA is specified
6245         to empty; modern automake versions do this as well, at least
6246         until automake 1.11.4 (not yet released at the moment of writing,
6247         but soon to appear).  That behaviour was generally considered a
6248         feature rather than a bug, at least until this discussion:
6249         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6250
6251         See also automake bugs #10997 and #11030.
6252
6253         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6254         reference to relevant automake bug numbers.
6255         (func_emit_tests_Makefile_am): Likewise.
6256
6257 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6258
6259         announce-gen: use Digest::SHA when possible
6260         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6261         back to Digest::SHA1 if necessary.
6262
6263 2012-03-20  Jim Meyering  <meyering@redhat.com>
6264
6265         tests: avoid gcc warnings about argv vs. const initializers
6266         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6267         warnings about discarding 'const' qualifier from pointer target type.
6268         * tests/test-posix_spawn2.c (main): Likewise.
6269
6270 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6271
6272         README-release: simplify slightly
6273         * top/README-release: Run "git checkout master" only once.
6274
6275 2012-03-15  Mark Wielaard  <mark@klomp.org>
6276
6277         git-merge-changelog: add specific example on how to use with hg.
6278         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6279
6280 2012-03-18  Mark Wielaard  <mark@klomp.org>
6281
6282         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6283
6284 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6285
6286         git-version-gen: don't let "prefix" envvar cause trouble
6287         * build-aux/git-version-gen (prefix): Initialize properly,
6288         so as not to use a value specified via the environment.
6289         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6290
6291 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6292
6293         regex: diagnose too-large repeat counts in EREs
6294         Previously, the code did not diagnose the too-large repeat count
6295         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6296         as if it were 'b\{1000000000}', which is unexpected.
6297         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6298         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6299         is a reasonable one for this problem.  Another option would be to
6300         create a new REG_OVERFLOW error for repeat counts that are too large.
6301         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6302         count is too large, so that the caller can distinguish the two cases.
6303         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6304         "Too large" return code, and that repeat counts are one example of this.
6305
6306 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6307
6308         doc: some glibc x32 integer width issues
6309         * doc/posix-headers/sys_types.texi (sys/types.h):
6310         * doc/posix-headers/time.texi (time.h):
6311         Mention that glibc x32 does not conform to POSIX in a couple of
6312         areas related to integer widths.
6313
6314 2012-03-15  Bruno Haible  <bruno@clisp.org>
6315
6316         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6317         * lib/fma.c (VOLATILE): New macro.
6318         (FUNC): Use it to work around a GCC compiler bug.
6319
6320 2012-03-13  Bruno Haible  <bruno@clisp.org>
6321
6322         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6323         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6324         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6325         REPLACE_HYPOTL to 1.
6326         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6327
6328 2012-03-13  Bruno Haible  <bruno@clisp.org>
6329
6330         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6331         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6332         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6333         REPLACE_REMAINDERL to 1.
6334         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6335         bug.
6336
6337 2012-03-13  Bruno Haible  <bruno@clisp.org>
6338
6339         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6340         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6341         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6342         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6343         too big rounding errors.
6344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6345         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6346         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6347         (Depends-on): Update conditions.
6348         * tests/test-sqrtl.c (my_ldexpl): New function.
6349         (main): Add test of a particular value.
6350         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6351
6352 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6353
6354         doc: Update timer_* platform portability notes.
6355         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6356         that always return ENOSYS.
6357         * doc/posix-functions/timer_delete.texi: Likewise.
6358         * doc/posix-functions/timer_gettime.texi: Likewise.
6359         * doc/posix-functions/timer_settime.texi: Likewise.
6360
6361 2012-03-13  Bruno Haible  <bruno@clisp.org>
6362
6363         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6364         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6365         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6366         REPLACE_CBRTL to 1.
6367         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6368
6369 2012-03-13  Bruno Haible  <bruno@clisp.org>
6370
6371         remainderl: Avoid compilation error on AIX >= 5.2.
6372         * lib/math.in.h (remainderl): Undefine macro from the system header.
6373
6374 2012-03-13  Bruno Haible  <bruno@clisp.org>
6375
6376         Avoid compilation errors with MSVC option -fp:strict.
6377         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6378         * lib/cbrtf.c: Likewise.
6379         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6380
6381 2012-03-12  Bruno Haible  <bruno@clisp.org>
6382
6383         uninorm: Don't crash in out-of-memory conditions.
6384         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6385         gracefully.
6386         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6387         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6388
6389 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6390
6391         quote: fix syntax-check
6392         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6393         also exports quote_quoting_options.
6394
6395 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6396
6397         Collapse list of copyright years to ranges.  See
6398         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6399         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6400         build-aux/csharpexec.sh.in, build-aux/gnupload,
6401         build-aux/install-reloc, build-aux/javacomp.sh.in,
6402         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6403         build-aux/move-if-change, build-aux/reloc-ldflags,
6404         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6405
6406 2012-03-11  Bruno Haible  <bruno@clisp.org>
6407
6408         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6409         * m4/log2f-ieee.m4: New file.
6410         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6411         whether log2f works with a minus zero argument. Replace it if not.
6412         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6413         (Depends-on): Add log2-ieee.
6414         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6415         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6416
6417         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6418         * m4/log2-ieee.m4: New file.
6419         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6420         whether log2 works with a minus zero argument. Replace it if not.
6421         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6422         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6423         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6424
6425         Tests for module 'log2l-ieee'.
6426         * modules/log2l-ieee-tests: New file.
6427         * tests/test-log2l-ieee.c: New file.
6428
6429         New module 'log2l-ieee'.
6430         * modules/log2l-ieee: New file.
6431
6432         Tests for module 'log2-ieee'.
6433         * modules/log2-ieee-tests: New file.
6434         * tests/test-log2-ieee.c: New file.
6435
6436         New module 'log2-ieee'.
6437         * modules/log2-ieee: New file.
6438
6439         Tests for module 'log2f-ieee'.
6440         * modules/log2f-ieee-tests: New file.
6441         * tests/test-log2f-ieee.c: New file.
6442         * tests/test-log2-ieee.h: New file.
6443
6444         New module 'log2f-ieee'.
6445         * modules/log2f-ieee: New file.
6446
6447 2012-03-11  Bruno Haible  <bruno@clisp.org>
6448
6449         Tests for module 'log2l'.
6450         * modules/log2l-tests: New file.
6451         * tests/test-log2l.c: New file.
6452
6453         New module 'log2l'.
6454         * lib/math.in.h (log2l): New declaration.
6455         * lib/log2l.c: New file.
6456         * m4/log2l.m4: New file.
6457         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6459         REPLACE_LOG2L.
6460         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6461         REPLACE_LOG2L.
6462         * modules/log2l: New file.
6463         * tests/test-math-c++.cc: Check the declaration of log2l.
6464         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6465         and OSF/1 problems.
6466
6467 2012-03-11  Bruno Haible  <bruno@clisp.org>
6468
6469         Tests for module 'log2f'.
6470         * modules/log2f-tests: New file.
6471         * tests/test-log2f.c: New file.
6472
6473         New module 'log2f'.
6474         * lib/math.in.h (log2f): New declaration.
6475         * lib/log2f.c: New file.
6476         * m4/log2f.m4: New file.
6477         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6479         REPLACE_LOG2F.
6480         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6481         REPLACE_LOG2F.
6482         * modules/log2f: New file.
6483         * tests/test-math-c++.cc: Check the declaration of log2f.
6484         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6485         and OSF/1 and Cygwin problems.
6486
6487 2012-03-11  Bruno Haible  <bruno@clisp.org>
6488
6489         Tests for module 'log2'.
6490         * modules/log2-tests: New file.
6491         * tests/test-log2.c: New file.
6492         * tests/test-log2.h: New file.
6493
6494         New module 'log2'.
6495         * lib/math.in.h (log2): New declaration.
6496         * lib/log2.c: New file.
6497         * m4/log2.m4: New file.
6498         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6500         REPLACE_LOG2.
6501         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6502         REPLACE_LOG2.
6503         * modules/log2: New file.
6504         * tests/test-math-c++.cc: Check the declaration of log2.
6505         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6506         and OSF/1 and Cygwin problems.
6507
6508 2012-03-11  Bruno Haible  <bruno@clisp.org>
6509
6510         exp2* tests: More tests.
6511         * tests/test-exp2.h (test_function): Test all integral arguments that
6512         don't need to overflow or denormalized numbers.
6513         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6514         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6515         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6516
6517 2012-03-10  Bruno Haible  <bruno@clisp.org>
6518
6519         log1pl-ieee: Work around test failure on AIX 7.1.
6520         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6521
6522         log1pl-ieee: Work around test failure on IRIX 6.5.
6523         * m4/log1pl-ieee.m4: New file.
6524         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6525         test whether log1pl works with a minus zero argument. Replace it if
6526         not.
6527         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6529         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6530         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6531         (Depends-on): Update conditions.
6532         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6533         m4/signbit.m4.
6534         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6535         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6536
6537         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6538         * m4/log1pf-ieee.m4: New file.
6539         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6540         test whether log1pf works with a minus zero argument. Replace it if
6541         not.
6542         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6543         m4/signbit.m4.
6544         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6545         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6546
6547         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6548         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6549         (configure.ac): Require gl_FUNC_LOG1PF.
6550
6551         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6552         * m4/log1p-ieee.m4: New file.
6553         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6554         whether log1p works with a minus zero argument. Replace it if not.
6555         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6557         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6558         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6559         (Depends-on): Update conditions.
6560         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6561         m4/signbit.m4.
6562         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6563         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6564
6565         Tests for module 'log1pl-ieee'.
6566         * modules/log1pl-ieee-tests: New file.
6567         * tests/test-log1pl-ieee.c: New file.
6568
6569         New module 'log1pl-ieee'.
6570         * modules/log1pl-ieee: New file.
6571
6572         Tests for module 'log1p-ieee'.
6573         * modules/log1p-ieee-tests: New file.
6574         * tests/test-log1p-ieee.c: New file.
6575
6576         New module 'log1p-ieee'.
6577         * modules/log1p-ieee: New file.
6578
6579         Tests for module 'log1pf-ieee'.
6580         * modules/log1pf-ieee-tests: New file.
6581         * tests/test-log1pf-ieee.c: New file.
6582         * tests/test-log1p-ieee.h: New file.
6583
6584         New module 'log1pf-ieee'.
6585         * modules/log1pf-ieee: New file.
6586
6587 2012-03-10  Bruno Haible  <bruno@clisp.org>
6588
6589         Tests for module 'log1pl'.
6590         * modules/log1pl-tests: New file.
6591         * tests/test-log1pl.c: New file.
6592
6593         New module 'log1pl'.
6594         * lib/math.in.h (log1pl): New declaration.
6595         * lib/log1pl.c: New file.
6596         * m4/log1pl.m4: New file.
6597         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6599         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6600         * modules/log1pl: New file.
6601         * tests/test-math-c++.cc: Check the declaration of log1pl.
6602         * doc/posix-functions/log1pl.texi: Mention the new module.
6603
6604 2012-03-10  Bruno Haible  <bruno@clisp.org>
6605
6606         Tests for module 'log1pf'.
6607         * modules/log1pf-tests: New file.
6608         * tests/test-log1pf.c: New file.
6609
6610         New module 'log1pf'.
6611         * lib/math.in.h (log1pf): New declaration.
6612         * lib/log1pf.c: New file.
6613         * m4/log1pf.m4: New file.
6614         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6616         REPLACE_LOG1PF.
6617         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6618         REPLACE_LOG1PF.
6619         * modules/log1pf: New file.
6620         * tests/test-math-c++.cc: Check the declaration of log1pf.
6621         * doc/posix-functions/log1pf.texi: Mention the new module.
6622
6623 2012-03-10  Bruno Haible  <bruno@clisp.org>
6624
6625         log1p tests: More tests.
6626         * tests/test-log1p.h: New file.
6627         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6628         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6629         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6630         (main): Invoke test_function.
6631
6632         log1p: Provide replacement for Minix and MSVC.
6633         * lib/math.in.h (log1p): New declaration.
6634         * lib/log1p.c: New file.
6635         * m4/log1p.m4: New file.
6636         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6638         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6639         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6640         (Depends-on): Add math, isnand, log, round.
6641         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6642         HAVE_LOG1P is 0.
6643         * tests/test-math-c++.cc: Check the declaration of log1p.
6644         * doc/posix-functions/log1p.texi: Mention the replacement.
6645
6646 2012-03-10  Bruno Haible  <bruno@clisp.org>
6647
6648         math tests: Small simplification.
6649         * tests/test-exp.h (test_function): Use the same err_bound for
6650         'double' on platforms with sizeof (long double) == sizeof (double)
6651         than on platforms with sizeof (long double) > sizeof (double).
6652         * tests/test-exp2.h (test_function): Likewise.
6653         * tests/test-expm1.h (test_function): Likewise.
6654         * tests/test-log.h (test_function): Likewise.
6655
6656 2012-03-10  Bruno Haible  <bruno@clisp.org>
6657
6658         Fix some comments.
6659         * lib/expl.c: Fix an ambiguous comment.
6660         * lib/expm1.c: Likewise.
6661         * lib/expm1l.c: Likewise.
6662         * lib/exp2.c: Likewise.
6663         * lib/exp2l.c: Likewise.
6664
6665 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6666
6667         regex: allow inclusion of <regex.h> before <limits.h>
6668         Without this patch, portable programs had to include <limits.h> before
6669         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6670         I ran into this problem with a test version of GNU grep on Solaris 8.
6671         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6672         This is done conditionally so that this change can be merged
6673         back to glibc.
6674         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6675         using the included regex.
6676
6677         fts: depend on fdopendir
6678         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6679         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6680         problem was introduced when fdopendir was split out.
6681
6682 2012-03-10  Bruno Haible  <bruno@clisp.org>
6683
6684         Remove unused variables.
6685         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6686         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6687
6688 2012-03-10  Bruno Haible  <bruno@clisp.org>
6689
6690         isnanf-nolibm: Fix last commit.
6691         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6692
6693         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6694         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6695
6696 2012-03-10  Bruno Haible  <bruno@clisp.org>
6697
6698         logf-ieee: Work around test failure on NetBSD 5.1.
6699         * m4/logf-ieee.m4: New file.
6700         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6701         whether logf works with a negative argument. Replace it if not.
6702         * lib/logf.c (logf): For negative arguments, return NaN.
6703         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6704         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6705         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6706
6707         logf-ieee: Work around test failure on Solaris 9.
6708         * modules/logf-ieee (Depends-on): Add log-ieee.
6709         (configure.ac): Require gl_FUNC_LOGF.
6710
6711         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6712         * m4/log-ieee.m4: New file.
6713         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6714         log works with a negative argument. Replace it if not.
6715         * lib/log.c (log): For negative arguments, return NaN.
6716         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6717         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6718         * doc/posix-functions/log.texi: Mention the log-ieee module.
6719
6720         Tests for module 'logl-ieee'.
6721         * modules/logl-ieee-tests: New file.
6722         * tests/test-logl-ieee.c: New file.
6723
6724         New module 'logl-ieee'.
6725         * modules/logl-ieee: New file.
6726
6727         Tests for module 'log-ieee'.
6728         * modules/log-ieee-tests: New file.
6729         * tests/test-log-ieee.c: New file.
6730
6731         New module 'log-ieee'.
6732         * modules/log-ieee: New file.
6733
6734         Tests for module 'logf-ieee'.
6735         * modules/logf-ieee-tests: New file.
6736         * tests/test-logf-ieee.c: New file.
6737         * tests/test-log-ieee.h: New file.
6738
6739         New module 'logf-ieee'.
6740         * modules/logf-ieee: New file.
6741
6742 2012-03-10  Bruno Haible  <bruno@clisp.org>
6743
6744         log: Fix bug introduced on 2012-03-09.
6745         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6746
6747 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6748
6749         timer-time: link explicitly with pthreads on glibc
6750         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6751         to support static linking, when newer glibc is
6752         detected, as that contains pthread emulation of
6753         POSIX timer functions where required.
6754         * modules/timer-time: Depend on threadlib to
6755         pull in the appropriate library to link.
6756
6757 2012-03-10  Bruno Haible  <bruno@clisp.org>
6758
6759         log* tests: More tests.
6760         * tests/test-log.h: New file.
6761         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6762         (main): Invoke test_function.
6763         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6764         (main): Invoke test_function.
6765         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6766         (main): Invoke test_function.
6767         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6768         tests/randomd.c.
6769         (Makefile.am): Add randomd.c to test_log_SOURCES.
6770         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6771         tests/randomf.c.
6772         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6773         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6774         tests/randoml.c.
6775         (Depends-on): Add 'float'.
6776         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6777
6778 2012-03-09  Bruno Haible  <bruno@clisp.org>
6779
6780         logl: Work around OSF/1 5.1 bug.
6781         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6782         * lib/logl.c (logl): If logl exists, use it and provide just the
6783         workaround.
6784         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6785         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6787         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6788         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6789         (Depends-on): Update conditions.
6790         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6791
6792 2012-03-09  Bruno Haible  <bruno@clisp.org>
6793
6794         logf: Work around OSF/1 5.1 bug.
6795         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6796         * lib/logf.c (logf): If logf exists, use it and provide just the
6797         workaround.
6798         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6799         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6801         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6802         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6803         (Depends-on): Update conditions.
6804         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6805
6806 2012-03-09  Bruno Haible  <bruno@clisp.org>
6807
6808         log: Work around OSF/1 5.1 bug.
6809         * lib/math.in.h (log): New declaration.
6810         * lib/log.c: New file.
6811         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6812         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6813         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6815         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6816         * modules/log (Files): Add lib/log.c.
6817         (Depends-on): Add math.
6818         (configure.ac): If REPLACE_LOG is 1, compile an override.
6819         * tests/test-math-c++.cc: Check the declaration of log.
6820         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6821
6822 2012-03-09  Jim Meyering  <meyering@redhat.com>
6823
6824         readtokens.c: adjust wording in a comment
6825         * lib/readtokens.c: Insert omitted "that" in a comment.
6826
6827 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6828
6829         modechange: add notations +40, 00440, etc.
6830         * lib/modechange.c (mode_compile): Support new notations
6831         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6832
6833 2012-03-08  Bruno Haible  <bruno@clisp.org>
6834
6835         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6836         * m4/exp2l-ieee.m4: New file.
6837         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6838         test whether exp2l works with a NaN argument and with a negative
6839         infinity argument. Replace it if not.
6840         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6842         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6843         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6844         (Depends-on): Update conditions.
6845         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6846         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6847         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6848
6849         Tests for module 'exp2l-ieee'.
6850         * modules/exp2l-ieee-tests: New file.
6851         * tests/test-exp2l-ieee.c: New file.
6852
6853         New module 'exp2l-ieee'.
6854         * modules/exp2l-ieee: New file.
6855
6856         Tests for module 'exp2-ieee'.
6857         * modules/exp2-ieee-tests: New file.
6858         * tests/test-exp2-ieee.c: New file.
6859
6860         New module 'exp2-ieee'.
6861         * modules/exp2-ieee: New file.
6862
6863         Tests for module 'exp2f-ieee'.
6864         * modules/exp2f-ieee-tests: New file.
6865         * tests/test-exp2f-ieee.c: New file.
6866         * tests/test-exp2-ieee.h: New file.
6867
6868         New module 'exp2f-ieee'.
6869         * modules/exp2f-ieee: New file.
6870
6871 2012-03-08  Bruno Haible  <bruno@clisp.org>
6872
6873         Tests for module 'exp2l'.
6874         * modules/exp2l-tests: New file.
6875         * tests/test-exp2l.c: New file.
6876
6877         New module 'exp2l'.
6878         * lib/math.in.h (exp2l): New declaration.
6879         * lib/exp2l.c: New file.
6880         * lib/expl-table.c: New file, extracted from lib/expl.c.
6881         * lib/expl.c (gl_expl_table): New declaration.
6882         (expl): Remove expl_table. Update reference.
6883         * m4/exp2l.m4: New file.
6884         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6886         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6887         * modules/exp2l: New file.
6888         * modules/expl (Files): Add lib/expl-table.c.
6889         (configure.ac): Compile also expl-table.c.
6890         * tests/test-math-c++.cc: Check the declaration of exp2l.
6891         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6892         problem.
6893
6894 2012-03-08  Bruno Haible  <bruno@clisp.org>
6895
6896         Tests for module 'exp2f'.
6897         * modules/exp2f-tests: New file.
6898         * tests/test-exp2f.c: New file.
6899
6900         New module 'exp2f'.
6901         * lib/math.in.h (exp2f): New declaration.
6902         * lib/exp2f.c: New file.
6903         * m4/exp2f.m4: New file.
6904         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6906         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6907         * modules/exp2f: New file.
6908         * tests/test-math-c++.cc: Check the declaration of exp2f.
6909         * doc/posix-functions/exp2f.texi: Mention the new module and the
6910         IRIX problem.
6911
6912 2012-03-08  Bruno Haible  <bruno@clisp.org>
6913
6914         Tests for module 'exp2'.
6915         * modules/exp2-tests: New file.
6916         * tests/test-exp2.c: New file.
6917         * tests/test-exp2.h: New file.
6918
6919         New module 'exp2'.
6920         * lib/math.in.h (exp2): New declaration.
6921         * lib/exp2.c: New file.
6922         * m4/exp2.m4: New file.
6923         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6925         REPLACE_EXP2.
6926         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6927         REPLACE_EXP2.
6928         * modules/exp2: New file.
6929         * tests/test-math-c++.cc: Check the declaration of exp2.
6930         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6931         and OpenBSD problems.
6932
6933 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6934
6935         savedir: fix comment typo
6936         * lib/savedir.c (savedirstream): Fix typo in comment.
6937
6938 2012-03-08  Bruno Haible  <bruno@clisp.org>
6939
6940         test-readtokens.c: use const; remove unwarranted cast
6941         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6942
6943 2012-03-08  Bruno Haible  <bruno@clisp.org>
6944
6945         fmal: Avoid compilation error on AIX.
6946         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6947         AIX 5.2..7.1.
6948
6949 2012-03-08  Bruno Haible  <bruno@clisp.org>
6950
6951         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6952         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6953         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6954         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6955         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6956         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6957         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6958
6959 2012-03-08  Bruno Haible  <bruno@clisp.org>
6960
6961         remainderf: Override buggy system function on IRIX 6.5.
6962         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6963         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6964         when it exists.
6965         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6966
6967 2012-03-08  Jim Meyering  <meyering@redhat.com>
6968
6969         test-readtokens.c: avoid const-related compilation warnings
6970         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6971
6972 2012-03-07  Jim Meyering  <meyering@redhat.com>
6973             Bruno Haible  <bruno@clisp.org>
6974
6975         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6976         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6977         tests/randomd.c.
6978         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6979         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6980         tests/randoml.c.
6981         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6982
6983 2012-03-07  Bruno Haible  <bruno@clisp.org>
6984
6985         expm1l: Avoid compilation error on AIX.
6986         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6987         AIX 5.2..7.1.
6988
6989 2012-03-07  Bruno Haible  <bruno@clisp.org>
6990
6991         expm1l: Don't override undeclared system function on IRIX 6.5.
6992         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6993         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6994         it exists. Set HAVE_DECL_EXPM1L.
6995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6996         HAVE_EXPM1L.
6997         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6998         HAVE_EXPM1L.
6999         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7000
7001 2012-03-07  Bruno Haible  <bruno@clisp.org>
7002
7003         remainderl: Don't override undeclared system function on IRIX 6.5.
7004         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7005         HAVE_REMAINDERL.
7006         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7007         declared when it exists. Set HAVE_DECL_REMAINDERL.
7008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7009         not HAVE_REMAINDERL.
7010         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7011         HAVE_REMAINDERL.
7012         * doc/posix-functions/remainderl.texi: Mention missing declaration
7013         problem.
7014
7015 2012-03-07  Bruno Haible  <bruno@clisp.org>
7016
7017         rintf: Don't override undeclared system function on IRIX 6.5.
7018         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7019         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7020         exists. Set HAVE_DECL_RINTF.
7021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7022         HAVE_RINTF.
7023         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7024         HAVE_RINTF.
7025         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7026
7027 2012-03-07  Bruno Haible  <bruno@clisp.org>
7028
7029         roundl: Avoid compilation error on AIX.
7030         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7031         AIX 5.2..7.1.
7032
7033 2012-03-07  Bruno Haible  <bruno@clisp.org>
7034
7035         roundl: Don't override undeclared system function on IRIX 6.5.
7036         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7037         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7038         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7039         * modules/roundl (configure.ac): For replacement code, test
7040         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7041         (Depends-on): Update conditions.
7042         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7043
7044 2012-03-07  Bruno Haible  <bruno@clisp.org>
7045
7046         roundf: Don't override undeclared system function on IRIX 6.5.
7047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7048         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7049         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7050         * modules/roundf (configure.ac): For replacement code, test
7051         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7052         (Depends-on): Update conditions.
7053         * modules/roundf-ieee (Depends-on): Update conditions.
7054         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7055
7056 2012-03-07  Bruno Haible  <bruno@clisp.org>
7057
7058         round: Don't override undeclared system function on IRIX 6.5.
7059         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7060         argument.
7061         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7062         also when it is not declared. Set HAVE_ROUND. For replacement code,
7063         test HAVE_ROUND, not HAVE_DECL_ROUND.
7064         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7065         not HAVE_DECL_ROUND.
7066         (Depends-on): Update conditions.
7067         * modules/round-ieee (Depends-on): Update conditions.
7068         * doc/posix-functions/round.texi: Mention the IRIX problem.
7069
7070 2012-03-07  Bruno Haible  <bruno@clisp.org>
7071
7072         copysignf: Don't override undeclared system function on IRIX 6.5.
7073         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7074         HAVE_COPYSIGNF.
7075         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7076         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7078         not HAVE_COPYSIGNF.
7079         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7080         HAVE_COPYSIGNF.
7081         * doc/posix-functions/copysignf.texi: Mention missing declaration
7082         problem.
7083
7084 2012-03-07  Jim Meyering  <meyering@redhat.com>
7085
7086         readtokens: add tests
7087         * modules/readtokens-tests: New file.
7088         * tests/test-readtokens.c: New file.
7089
7090 2012-03-07  Jim Meyering  <meyering@redhat.com>
7091
7092         quotearg: the module must now include quote.h
7093         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7094         So must the module.
7095         * modules/quotearg (Files): Add quote.h.
7096
7097 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7098
7099         readtokens: avoid core dumps with unusual calling patterns
7100         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7101         * lib/readtokens.c: Include limits.h.
7102         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7103         (readtoken): Don't cache the delimiters; the cache code was buggy
7104         if !delim && saved_delim, or if the new n_delim differs from the old.
7105         Also, it wasn't thread-safe.
7106
7107 2012-03-07  Bruno Haible  <bruno@clisp.org>
7108
7109         quote: Adhere to common module description layout.
7110         * modules/quote (Makefile.am): Add back empty section.
7111
7112 2012-03-06  Akim Demaille  <demaille@gostai.com>
7113
7114         quote: fuse into quotearg
7115         This patch is made for the benefit of Bison.
7116         quote does not leave the choice of the quoting style to the user.
7117         quoting_style provides poor customizability, yet quoting_options,
7118         which is very rich, is hidden inside quotearg.c.  So in order to
7119         allow quote customization, move its implementation to quotearg.c.
7120         * lib/quote.c: Remove.
7121         * modules/quote: Adjust.
7122         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7123         warning: provide all the members of literal structs.
7124         (quote_quoting_options): New.
7125         (quote, quote_n): Import implementation from quote.c.
7126         * lib/quote.h: Import the comments from quote.c.
7127         (quote_quoting_options): New.
7128
7129 2012-03-06  Bruno Haible  <bruno@clisp.org>
7130
7131         Tests for module 'expm1l-ieee'.
7132         * modules/expm1l-ieee-tests: New file.
7133         * tests/test-expm1l-ieee.c: New file.
7134
7135         New module 'expm1l-ieee'.
7136         * modules/expm1l-ieee: New file.
7137
7138         Tests for module 'expm1f-ieee'.
7139         * modules/expm1f-ieee-tests: New file.
7140         * tests/test-expm1f-ieee.c: New file.
7141
7142         New module 'expm1f-ieee'.
7143         * modules/expm1f-ieee: New file.
7144
7145         Tests for module 'expm1-ieee'.
7146         * modules/expm1-ieee-tests: New file.
7147         * tests/test-expm1-ieee.c: New file.
7148         * tests/test-expm1-ieee.h: New file.
7149
7150         New module 'expm1-ieee'.
7151         * modules/expm1-ieee: New file.
7152         * m4/expm1-ieee.m4: New file.
7153         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7154         whether expm1 works with a minus zero argument. Replace it if not.
7155         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7157         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7158         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7159         (Depends-on): Update conditions.
7160         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7161         AIX problem.
7162
7163 2012-03-06  Bruno Haible  <bruno@clisp.org>
7164
7165         Work around expm1f bug on IRIX 6.5.
7166         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7167         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7168         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7169         not work.
7170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7171         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7172         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7173         (Depends-on): Update conditions.
7174         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7175
7176 2012-03-06  Bruno Haible  <bruno@clisp.org>
7177
7178         Tests for module 'expm1l'.
7179         * modules/expm1l-tests: New file.
7180         * tests/test-expm1l.c: New file.
7181
7182         New module 'expm1l'.
7183         * lib/math.in.h (expm1l): New declaration.
7184         * lib/expm1l.c: New file.
7185         * m4/expm1l.m4: New file.
7186         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7188         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7189         * modules/expm1l: New file.
7190         * tests/test-math-c++.cc: Check the declaration of expm1l.
7191         * doc/posix-functions/expm1l.texi: Mention the new module.
7192
7193 2012-03-06  Bruno Haible  <bruno@clisp.org>
7194
7195         Tests for module 'expm1f'.
7196         * modules/expm1f-tests: New file.
7197         * tests/test-expm1f.c: New file.
7198
7199         New module 'expm1f'.
7200         * lib/math.in.h (expm1f): New declaration.
7201         * lib/expm1f.c: New file.
7202         * m4/expm1f.m4: New file.
7203         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7205         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7206         * modules/expm1f: New file.
7207         * tests/test-math-c++.cc: Check the declaration of expm1f.
7208         * doc/posix-functions/expm1f.texi: Mention the new module.
7209
7210 2012-03-06  Bruno Haible  <bruno@clisp.org>
7211
7212         Tests for module 'expm1'.
7213         * modules/expm1-tests: New file.
7214         * tests/test-expm1.c: New file.
7215         * tests/test-expm1.h: New file.
7216
7217         New module 'expm1'.
7218         * lib/math.in.h (expm1): New declaration.
7219         * lib/expm1.c: New file.
7220         * m4/expm1.m4: New file.
7221         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7223         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7224         * modules/expm1: New file.
7225         * tests/test-math-c++.cc: Check the declaration of expm1.
7226         * doc/posix-functions/expm1.texi: Mention the new module.
7227
7228 2012-03-06  Bruno Haible  <bruno@clisp.org>
7229
7230         math: Ensure declarations of math functions.
7231         * modules/acosf (Depends-on): Add 'extensions'.
7232         * modules/asinf (Depends-on): Likewise.
7233         * modules/atan2f (Depends-on): Likewise.
7234         * modules/atanf (Depends-on): Likewise.
7235         * modules/cbrt (Depends-on): Likewise.
7236         * modules/cbrtf (Depends-on): Likewise.
7237         * modules/cbrtl (Depends-on): Likewise.
7238         * modules/copysignf (Depends-on): Likewise.
7239         * modules/copysignl (Depends-on): Likewise.
7240         * modules/cosf (Depends-on): Likewise.
7241         * modules/coshf (Depends-on): Likewise.
7242         * modules/expf (Depends-on): Likewise.
7243         * modules/fabsf (Depends-on): Likewise.
7244         * modules/fabsl (Depends-on): Likewise.
7245         * modules/fmaf (Depends-on): Likewise.
7246         * modules/fmal (Depends-on): Likewise.
7247         * modules/fmodf (Depends-on): Likewise.
7248         * modules/fmodl (Depends-on): Likewise.
7249         * modules/frexpf (Depends-on): Likewise.
7250         * modules/frexpl (Depends-on): Likewise.
7251         * modules/hypot (Depends-on): Likewise.
7252         * modules/hypotf (Depends-on): Likewise.
7253         * modules/hypotl (Depends-on): Likewise.
7254         * modules/ldexpf (Depends-on): Likewise.
7255         * modules/ldexpl (Depends-on): Likewise.
7256         * modules/log10f (Depends-on): Likewise.
7257         * modules/log10l (Depends-on): Likewise.
7258         * modules/log1p (Depends-on): Likewise.
7259         * modules/logb (Depends-on): Likewise.
7260         * modules/logf (Depends-on): Likewise.
7261         * modules/modff (Depends-on): Likewise.
7262         * modules/modfl (Depends-on): Likewise.
7263         * modules/powf (Depends-on): Likewise.
7264         * modules/remainderf (Depends-on): Likewise.
7265         * modules/remainderl (Depends-on): Likewise.
7266         * modules/rintf (Depends-on): Likewise.
7267         * modules/rintl (Depends-on): Likewise.
7268         * modules/sinf (Depends-on): Likewise.
7269         * modules/sinhf (Depends-on): Likewise.
7270         * modules/sqrtf (Depends-on): Likewise.
7271         * modules/tanf (Depends-on): Likewise.
7272         * modules/tanhf (Depends-on): Likewise.
7273         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7274         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7275         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7276         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7277         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7278         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7279         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7280         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7281         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7282         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7283         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7284         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7285         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7286         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7287         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7288         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7289         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7290         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7291         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7292         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7293         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7294         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7295         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7296         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7297         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7298         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7299         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7300         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7301         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7302         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7303         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7304         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7305         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7306         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7307         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7308         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7309         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7310         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7311         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7312         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7313         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7314
7315 2012-03-06  Bruno Haible  <bruno@clisp.org>
7316
7317         math: Update module names in warnings.
7318         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7319         tanl): Use specific module name in warn-on-use warning.
7320
7321 2012-03-06  Bruno Haible  <bruno@clisp.org>
7322
7323         expl: Simplify computation.
7324         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7325
7326 2012-03-05  Bruno Haible  <bruno@clisp.org>
7327
7328         exp* tests: More tests.
7329         * tests/test-exp.h: New file.
7330         * tests/test-exp.c: Include <float.h> and test-exp.h.
7331         (main): Invoke test_function.
7332         * tests/test-expf.c: Include <float.h> and test-exp.h.
7333         (main): Invoke test_function.
7334         * tests/test-expl.c: Include <float.h> and test-exp.h.
7335         (main): Invoke test_function.
7336         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7337         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7338         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7339         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7340         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7341         (Depends-on): Add 'float'.
7342         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7343
7344         expl: Fix precision of computed result.
7345         * lib/expl.c: Completely rewritten.
7346         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7347         (Maintainer): Add me.
7348         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7349
7350 2012-03-05  Bruno Haible  <bruno@clisp.org>
7351
7352         cbrt* tests: More tests.
7353         * tests/test-cbrt.h: New file.
7354         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7355         (main): Invoke test_function.
7356         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7357         (main): Invoke test_function.
7358         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7359         (main): Invoke test_function.
7360         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7361         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7362         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7363         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7364         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7365         (Depends-on): Add 'float'.
7366         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7367
7368 2012-03-05  Bruno Haible  <bruno@clisp.org>
7369
7370         hypot* tests: More tests.
7371         * tests/test-hypot.h: New file, partially extracted from
7372         tests/test-hypotl.c.
7373         * tests/test-hypot.c: Include test-hypot.h.
7374         (main): Invoke test_function.
7375         * tests/test-hypotf.c: Include test-hypot.h.
7376         (main): Invoke test_function.
7377         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7378         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7379         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7380         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7381         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7382         tests/randomf.c.
7383         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7384         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7385         tests/randoml.c.
7386         (Depends-on): Add 'fpucw', 'float'.
7387         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7388
7389 2012-03-05  Bruno Haible  <bruno@clisp.org>
7390
7391         fpucw: Doc about FreeBSD.
7392         * lib/fpucw.h: Mention FreeBSD in comments.
7393
7394 2012-03-04  Bruno Haible  <bruno@clisp.org>
7395
7396         sqrt* tests: More tests.
7397         * tests/test-sqrt.h: New file.
7398         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7399         (main): Invoke test_function.
7400         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7401         (main): Invoke test_function.
7402         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7403         (main): Invoke test_function.
7404         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7405         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7406         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7407         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7408         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7409         (Depends-on): Add 'float'.
7410         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7411
7412 2012-03-04  Bruno Haible  <bruno@clisp.org>
7413
7414         remainder* tests: More tests.
7415         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7416         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7417         (main): Invoke test_function.
7418         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7419         (main): Invoke test_function.
7420         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7421         (main): Invoke test_function.
7422         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7423         tests/randomd.c.
7424         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7425         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7426         tests/randomf.c.
7427         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7428         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7429         tests/randoml.c.
7430         (Depends-on): Add 'float'.
7431         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7432
7433 2012-03-04  Bruno Haible  <bruno@clisp.org>
7434
7435         remainder, remainderf, remainderl: Fix computation for large quotients.
7436         * lib/remainder.c: Completely rewritten.
7437         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7438         USE_FLOAT.
7439         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7440         USE_LONG_DOUBLE.
7441         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7442         isnand, isinf. Remove round, fma.
7443         * modules/remainderf (Files): Add lib/remainder.c.
7444         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7445         Remove roundf, fmaf.
7446         * modules/remainderl (Files): Add lib/remainder.c.
7447         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7448         isinf. Remove roundl, fmal.
7449         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7450         REMAINDER_LIBM.
7451         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7452         REMAINDERF_LIBM.
7453         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7454         REMAINDERL_LIBM.
7455
7456 2012-03-04  Bruno Haible  <bruno@clisp.org>
7457
7458         fmod* tests: More tests.
7459         * tests/test-fmod.h (my_ldexp): New function.
7460         (test_function): Reduce amount of random numbers to test. Add tests
7461         of very large quotients x / y.
7462         * tests/test-fmod.c (MAX_EXP): New macro.
7463         * tests/test-fmodf.c (MAX_EXP): Likewise.
7464         * tests/test-fmodl.c (MAX_EXP): Likewise.
7465
7466 2012-03-04  Bruno Haible  <bruno@clisp.org>
7467
7468         fmod, fmodl: Fix computation for large quotients x / y.
7469         * lib/fmod.c: Completely rewritten.
7470         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7471         USE_LONG_DOUBLE.
7472         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7473         isnand. Remove fma.
7474         * modules/fmodl (Files): Add lib/fmod.c.
7475         (Depends-on): Add float, isfinite, signbit, fabsl,
7476         frexpl, ldexpl, isnanl. Remove fma.
7477         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7478         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7479
7480 2012-03-03  Bruno Haible  <bruno@clisp.org>
7481
7482         fmod* tests: More tests.
7483         * tests/test-fmod.h: New file.
7484         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7485         (main): Invoke test_function.
7486         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7487         (main): Invoke test_function.
7488         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7489         (main): Invoke test_function.
7490         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7491         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7492         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7493         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7494         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7495         (Depends-on): Add 'float'.
7496         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7497
7498 2012-03-03  Bruno Haible  <bruno@clisp.org>
7499
7500         rint* tests: More tests.
7501         * tests/test-rint.h: New file, partially extracted from
7502         tests/test-rintl.c.
7503         * tests/test-rint.c: Include test-rint.h.
7504         (main): Invoke test_function.
7505         * tests/test-rintf.c: Include test-rint.h.
7506         (main): Invoke test_function.
7507         * tests/test-rintl.c: Include test-rint.h.
7508         (main): Invoke test_function.
7509         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7510         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7511         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7512         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7513         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7514         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7515
7516 2012-03-03  Bruno Haible  <bruno@clisp.org>
7517
7518         modf* tests: More tests.
7519         * tests/test-modf.h: New file.
7520         * tests/test-modf.c: Include <float.h> and test-modf.h.
7521         (main): Invoke test_function.
7522         * tests/test-modff.c: Include <float.h> and test-modf.h.
7523         (main): Invoke test_function.
7524         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7525         (main): Invoke test_function.
7526         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7527         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7528         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7529         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7530         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7531         (Depends-on): Add 'float'.
7532         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7533
7534 2012-03-03  Bruno Haible  <bruno@clisp.org>
7535
7536         fabs* tests: More tests.
7537         * tests/test-fabs.h: New file, partially extracted from
7538         tests/test-fabsl.c.
7539         * tests/test-fabs.c (RANDOM): New macro.
7540         * tests/test-fabsf.c (RANDOM): New macro.
7541         * tests/test-fabsl.c (RANDOM): New macro.
7542         * modules/fabs-tests (Files): Add tests/randomd.c.
7543         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7544         * modules/fabsf-tests (Files): Add tests/randomf.c.
7545         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7546         * modules/fabsl-tests (Files): Add tests/randoml.c.
7547         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7548
7549 2012-03-03  Bruno Haible  <bruno@clisp.org>
7550
7551         ldexp* tests: More tests.
7552         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7553         * tests/test-ldexp.c (RANDOM): New macro.
7554         * tests/test-ldexpf.c (RANDOM): New macro.
7555         * tests/test-ldexpl.c (RANDOM): New macro.
7556         * modules/ldexp-tests (Files): Add tests/randomd.c.
7557         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7558         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7559         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7560         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7561         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7562
7563 2012-03-03  Bruno Haible  <bruno@clisp.org>
7564
7565         frexp* tests: More tests.
7566         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7567         * tests/test-frexp.c (RANDOM): New macro.
7568         * tests/test-frexpf.c (RANDOM): New macro.
7569         * tests/test-frexpl.c (RANDOM): New macro.
7570         * modules/frexp-tests (Files): Add tests/randomd.c.
7571         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7572         * modules/frexpf-tests (Files): Add tests/randomf.c.
7573         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7574         * modules/frexpl-tests (Files): Add tests/randoml.c.
7575         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7576
7577 2012-03-03  Bruno Haible  <bruno@clisp.org>
7578
7579         Support for pseudo-random numbers in tests.
7580         * tests/randomf.c: New file.
7581         * tests/randomd.c: New file.
7582         * tests/randoml.c: New file.
7583         * tests/macros.h (randomf, randomd, randoml): New declarations.
7584
7585 2012-03-03  Bruno Haible  <bruno@clisp.org>
7586
7587         frexp* tests: Refactor.
7588         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7589         * tests/test-frexp.c: Include and use it.
7590         * tests/test-frexpf.c: Likewise.
7591         * tests/test-frexpl.c: Likewise.
7592         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7593         * modules/frexpf-tests (Files): Likewise.
7594         * modules/frexpl-tests (Files): Likewise.
7595
7596 2012-03-02  Jim Meyering  <meyering@redhat.com>
7597
7598         maint: don't specify XZ_OPT=-9ev in dist-related rule
7599         Using xz's -9 option is warranted only if you have a very large
7600         tarball (see xz's documentation for the sizes vs. presets), and
7601         requires 64MiB of memory at decompression time.
7602         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7603         Automake's default of just "-e" is fine.  Override on a
7604         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7605
7606 2012-03-01  Eric Blake  <eblake@redhat.com>
7607
7608         maint.mk: allow announcement for non-gnulib project
7609         * maint.mk (announcement): Skip gnulib version if not used.
7610
7611 2012-03-01  Jim Meyering  <meyering@redhat.com>
7612
7613         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7614         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7615         envvar settings cannot interfere.  Otherwise, setting envvars like
7616         prohibit=foo require=bar, etc. would cause spurious test failures.
7617
7618 2012-03-01  Eric Blake  <eblake@redhat.com>
7619
7620         maint.mk: add per-line exclusions to prohibitions
7621         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7622         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7623         (sc_const_long_option): Use it.
7624
7625 2012-03-01  Bruno Haible  <bruno@clisp.org>
7626
7627         Tests for module 'expl-ieee'.
7628         * modules/expl-ieee-tests: New file.
7629         * tests/test-expl-ieee.c: New file.
7630
7631         New module 'expl-ieee'.
7632         * modules/expl-ieee: New file.
7633
7634         Tests for module 'exp-ieee'.
7635         * modules/exp-ieee-tests: New file.
7636         * tests/test-exp-ieee.c: New file.
7637
7638         New module 'exp-ieee'.
7639         * modules/exp-ieee: New file.
7640
7641         Tests for module 'expf-ieee'.
7642         * modules/expf-ieee-tests: New file.
7643         * tests/test-expf-ieee.c: New file.
7644         * tests/test-exp-ieee.h: New file.
7645
7646         New module 'expf-ieee'.
7647         * modules/expf-ieee: New file.
7648
7649 2012-02-29  Bruno Haible  <bruno@clisp.org>
7650
7651         cbrtl-ieee: Work around test failure on IRIX 6.5.
7652         * m4/cbrtl-ieee.m4: New file.
7653         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7654         test whether cbrtl works with a minus zero argument. Replace it if not.
7655         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7657         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7658         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7659         (Depends-on): Update conditions.
7660         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7661         m4/signbit.m4.
7662         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7663         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7664         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7665
7666         Tests for module 'cbrtl-ieee'.
7667         * modules/cbrtl-ieee-tests: New file.
7668         * tests/test-cbrtl-ieee.c: New file.
7669
7670         New module 'cbrtl-ieee'.
7671         * modules/cbrtl-ieee: New file.
7672
7673         Tests for module 'cbrt-ieee'.
7674         * modules/cbrt-ieee-tests: New file.
7675         * tests/test-cbrt-ieee.c: New file.
7676
7677         New module 'cbrt-ieee'.
7678         * modules/cbrt-ieee: New file.
7679
7680         Tests for module 'cbrtf-ieee'.
7681         * modules/cbrtf-ieee-tests: New file.
7682         * tests/test-cbrtf-ieee.c: New file.
7683         * tests/test-cbrt-ieee.h: New file.
7684
7685         New module 'cbrtf-ieee'.
7686         * modules/cbrtf-ieee: New file.
7687
7688 2012-02-29  Bruno Haible  <bruno@clisp.org>
7689
7690         cbrtf: Work around bug in IRIX 6.5 system function.
7691         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7692         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7693         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7694         work.
7695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7696         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7697         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7698         (Depends-on): Update conditions.
7699         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7700
7701 2012-02-29  Bruno Haible  <bruno@clisp.org>
7702
7703         Tests for module 'cbrtl'.
7704         * modules/cbrtl-tests: New file.
7705         * tests/test-cbrtl.c: New file.
7706
7707         New module 'cbrtl'.
7708         * lib/math.in.h (cbrtl): New declaration.
7709         * lib/cbrtl.c: New file.
7710         * m4/cbrtl.m4: New file.
7711         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7713         HAVE_DECL_CBRTL.
7714         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7715         HAVE_DECL_CBRTL.
7716         * modules/cbrtl: New file.
7717         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7718         * doc/posix-functions/cbrtl.texi: Mention the new module.
7719
7720 2012-02-29  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'cbrtf'.
7723         * modules/cbrtf-tests: New file.
7724         * tests/test-cbrtf.c: New file.
7725
7726         New module 'cbrtf'.
7727         * lib/math.in.h (cbrtf): New declaration.
7728         * lib/cbrtf.c: New file.
7729         * m4/cbrtf.m4: New file.
7730         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7732         HAVE_DECL_CBRTF.
7733         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7734         HAVE_DECL_CBRTF.
7735         * modules/cbrtf: New file.
7736         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7737         * doc/posix-functions/cbrtf.texi: Mention the new module.
7738
7739 2012-02-29  Bruno Haible  <bruno@clisp.org>
7740
7741         cbrt: Provide replacement on MSVC and Minix.
7742         * lib/math.in.h (cbrt): New declaration.
7743         * lib/cbrt.c: New file.
7744         * m4/cbrt.m4: New file.
7745         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7747         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7748         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7749         (Depends-on): Add dependencies.
7750         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7751         * tests/test-math-c++.cc: Check the declaration of cbrt.
7752         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7753         replacement.
7754
7755 2012-02-29  Bruno Haible  <bruno@clisp.org>
7756
7757         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7758         * m4/hypotl-ieee.m4: New file.
7759         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7760         test whether hypotl works with mixed NaN and Infinity arguments.
7761         Replace it if not.
7762         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7764         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7765         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7766         (Depends-on): Update conditions.
7767         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7768         (Depends-on): Add hypot-ieee.
7769         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7770         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7771
7772         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7773         * m4/hypotf-ieee.m4: New file.
7774         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7775         test whether hypotf works with mixed NaN and Infinity arguments.
7776         Replace it if not.
7777         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7778         (Depends-on): Add hypot-ieee.
7779         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7780         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7781
7782         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7783         * lib/math.in.h (hypot): New declaration.
7784         * lib/hypot.c: New file.
7785         * m4/hypot-ieee.m4: New file.
7786         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7787         whether hypot works with mixed NaN and Infinity arguments. Replace it
7788         if not.
7789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7790         REPLACE_HYPOT.
7791         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7792         * modules/hypot (Files): Add lib/hypot.c.
7793         (Depends-on): Add dependencies.
7794         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7795         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7796         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7797         * tests/test-math-c++.cc: Check the declaration of hypot.
7798         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7799
7800         Tests for module 'hypotl-ieee'.
7801         * modules/hypotl-ieee-tests: New file.
7802         * tests/test-hypotl-ieee.c: New file.
7803
7804         New module 'hypotl-ieee'.
7805         * modules/hypotl-ieee: New file.
7806
7807         Tests for module 'hypot-ieee'.
7808         * modules/hypot-ieee-tests: New file.
7809         * tests/test-hypot-ieee.c: New file.
7810
7811         New module 'hypot-ieee'.
7812         * modules/hypot-ieee: New file.
7813
7814         Tests for module 'hypotf-ieee'.
7815         * modules/hypotf-ieee-tests: New file.
7816         * tests/test-hypotf-ieee.c: New file.
7817         * tests/test-hypot-ieee.h: New file.
7818
7819         New module 'hypotf-ieee'.
7820         * modules/hypotf-ieee: New file.
7821
7822 2012-02-29  Bruno Haible  <bruno@clisp.org>
7823
7824         Remove unused variables.
7825         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7826         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7827         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7828         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7829
7830 2012-02-29  Eric Blake  <eblake@redhat.com>
7831
7832         termios: fix pid_t always, not just for tcgetsid
7833         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7834         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7835         just when building tcgetsid.
7836
7837 2012-02-29  Bruno Haible  <bruno@clisp.org>
7838
7839         Tests for module 'hypotl'.
7840         * modules/hypotl-tests: New file.
7841         * tests/test-hypotl.c: New file.
7842
7843         New module 'hypotl'.
7844         * lib/math.in.h (hypotl): New declaration.
7845         * lib/hypotl.c: New file.
7846         * m4/hypotl.m4: New file.
7847         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7849         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7850         * modules/hypotl: New file.
7851         * tests/test-math-c++.cc: Check the hypotl declaration.
7852         * doc/posix-functions/hypotl.texi: Mention the new module.
7853
7854 2012-02-29  Eric Blake  <eblake@redhat.com>
7855
7856         tcgetsid: fix cygwin header bug
7857         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7858
7859         docs: update cygwin progress
7860         * doc/posix-functions/llround.texi (llround): Added in cygwin
7861         1.7.8.
7862         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7863         * doc/glibc-functions/program_invocation_name.texi
7864         (program_invocation_name): Likewise.
7865         * doc/glibc-functions/program_invocation_short_name.texi
7866         (program_invocation_short_name): Likewise.
7867         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7868         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7869         Likewise.
7870         * doc/posix-functions/pthread_spin_destroy.texi
7871         (pthread_spin_destroy): Added in cygwin 1.7.10.
7872         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7873         Likewise.
7874         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7875         Likewise.
7876         * doc/posix-functions/pthread_spin_trylock.texi
7877         (pthread_spin_trylock): Likewise.
7878         * doc/posix-functions/pthread_spin_unlock.texi
7879         (pthread_spin_unlock): Likewise.
7880         * doc/posix-functions/pthread_setschedprio.texi
7881         (pthread_setschedprio): Likewise.
7882         * doc/posix-functions/pthread_attr_getstack.texi
7883         (pthread_attr_getstack): Likewise.
7884         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7885         (pthread_attr_getstackaddr): Likewise.
7886         * doc/glibc-functions/pthread_getattr_np.texi
7887         (pthread_getattr_np): Likewise.
7888         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7889         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7890         * doc/posix-functions/clock_settime.texi (clock_settime):
7891         Likewise.
7892         * doc/posix-functions/pthread_attr_getguardsize.texi
7893         (pthread_attr_getguardsize): Likewise.
7894         * doc/posix-functions/pthread_attr_setguardsize.texi
7895         (pthread_attr_setguardsize): Likewise.
7896         * doc/posix-functions/pthread_attr_setstack.texi
7897         (pthread_attr_setstack): Likewise.
7898         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7899         (pthread_attr_setstackaddr): Likewise.
7900         * doc/posix-functions/clock_getcpuclockid.texi
7901         (clock_getcpuclockid): Likewise.
7902         * doc/posix-functions/pthread_getcpuclockid.texi
7903         (pthread_getcpuclockid): Likewise.
7904         * doc/glibc-functions/error.texi (error): Likewise.
7905         * doc/glibc-functions/error_at_line.texi (error_at_line):
7906         Likewise.
7907         * doc/glibc-functions/error_message_count.texi
7908         (error_message_count): Likewise.
7909         * doc/glibc-functions/error_one_per_line.texi
7910         (error_one_per_line): Likewise.
7911         * doc/glibc-functions/error_print_progname.texi
7912         (error_print_progname): Likewise.
7913         * doc/posix-functions/pthread_condattr_getclock.texi
7914         (pthread_condattr_getclock): Likewise.
7915         * doc/posix-functions/pthread_condattr_setclock.texi
7916         (pthread_condattr_setclock): Likewise.
7917         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7918         Likewise.
7919         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7920         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7921         * doc/glibc-functions/get_current_dir_name.texi
7922         (get_current_dir_name): Likewise.
7923         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7924         Likewise.
7925         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7926         wrong return type.
7927         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7928         1.7.11.
7929
7930 2012-02-29  Bruno Haible  <bruno@clisp.org>
7931
7932         Tests for module 'hypotf'.
7933         * modules/hypotf-tests: New file.
7934         * tests/test-hypotf.c: New file.
7935
7936         New module 'hypotf'.
7937         * lib/math.in.h (hypotf): New declaration.
7938         * lib/hypotf.c: New file.
7939         * m4/hypotf.m4: New file.
7940         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7942         REPLACE_HYPOTF.
7943         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7944         REPLACE_HYPOTF.
7945         * modules/hypotf: New file.
7946         * tests/test-math-c++.cc: Check the hypotf declaration.
7947         * doc/posix-functions/hypotf.texi: Mention the new module.
7948
7949         hypot: Prepare for hypotf module.
7950         * m4/hypot.m4: New file.
7951         * modules/hypot (Files): Add m4/hypot.m4.
7952         (configure.ac): Invoke gl_FUNC_HYPOT.
7953
7954 2012-02-29  Bruno Haible  <bruno@clisp.org>
7955
7956         hypot tests: More tests.
7957         * tests/test-hypot.c: Include <float.h>.
7958         (main): Add tests about overflow and underflow.
7959
7960 2012-02-29  Bruno Haible  <bruno@clisp.org>
7961
7962         math code: Add comments.
7963         * lib/acosl.c: Add comment about related glibc source files.
7964         * lib/asinl.c: Likewise.
7965         * lib/atanl.c: Likewise.
7966         * lib/expl.c: Likewise.
7967         * lib/logl.c: Likewise.
7968         * lib/sincosl.c: Likewise.
7969         * lib/sinl.c: Likewise.
7970         * lib/tanl.c: Likewise.
7971         * lib/trigl.c: Likewise.
7972         * lib/cosl.c: Likewise. Fix comments.
7973
7974 2012-02-28  Bruno Haible  <bruno@clisp.org>
7975
7976         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7977         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7978         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7979         HUGE_VALL are defined.
7980         (numeric_equald): Renamed from numeric_equal.
7981         (numeric_equalf, numeric_equall): New functions.
7982         (main): Check also HUGE_VALF, HUGE_VALL.
7983         * modules/math-tests (Files): Add tests/macros.h.
7984         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7985         HUGE_VALL.
7986
7987 2012-02-28  Bruno Haible  <bruno@clisp.org>
7988
7989         doc: Move ISO C11 feature notes into POSIX chapters.
7990         * doc/posix-functions/aligned_alloc.texi: Renamed from
7991         doc/glibc-functions/aligned_alloc.texi.
7992         * doc/posix-functions/quick_exit.texi: Renamed from
7993         doc/glibc-functions/quick_exit.texi.
7994         * doc/posix-headers/uchar.texi: Renamed from
7995         doc/glibc-headers/uchar.texi.
7996         * doc/posix-functions/c16rtomb.texi: Renamed from
7997         doc/glibc-functions/c16rtomb.texi.
7998         * doc/posix-functions/c32rtomb.texi: Renamed from
7999         doc/glibc-functions/c32rtomb.texi.
8000         * doc/posix-functions/mbrtoc16.texi: Renamed from
8001         doc/glibc-functions/mbrtoc16.texi.
8002         * doc/posix-functions/mbrtoc32.texi: Renamed from
8003         doc/glibc-functions/mbrtoc32.texi.
8004         * doc/gnulib.texi: Update.
8005         (Glibc uchar.h): Remove section.
8006         Suggested by Eric Blake.
8007
8008 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8009
8010         stdnoreturn: port to MSVC better
8011         MSVC standard headers use __declspec(noreturn), so #define noreturn
8012         to empty on that platform.  Reported by Bruno Haible in
8013         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8014         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8015         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8016
8017 2012-02-28  Bruno Haible  <bruno@clisp.org>
8018
8019         doc: Mention new glibc headers and functions.
8020         * doc/glibc-headers/uchar.texi: New file.
8021         * doc/glibc-functions/aligned_alloc.texi: New file.
8022         * doc/glibc-functions/c16rtomb.texi: New file.
8023         * doc/glibc-functions/c32rtomb.texi: New file.
8024         * doc/glibc-functions/clock_adjtime.texi: New file.
8025         * doc/glibc-functions/fanotify_init.texi: New file.
8026         * doc/glibc-functions/fanotify_mark.texi: New file.
8027         * doc/glibc-functions/inet6_opt_append.texi: New file.
8028         * doc/glibc-functions/inet6_opt_find.texi: New file.
8029         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8030         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8031         * doc/glibc-functions/inet6_opt_init.texi: New file.
8032         * doc/glibc-functions/inet6_opt_next.texi: New file.
8033         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8034         * doc/glibc-functions/inet6_rth_add.texi: New file.
8035         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8036         * doc/glibc-functions/inet6_rth_init.texi: New file.
8037         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8038         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8039         * doc/glibc-functions/inet6_rth_space.texi: New file.
8040         * doc/glibc-functions/login.texi: New file.
8041         * doc/glibc-functions/mbrtoc16.texi: New file.
8042         * doc/glibc-functions/mbrtoc32.texi: New file.
8043         * doc/glibc-functions/name_to_handle_at.texi: New file.
8044         * doc/glibc-functions/ntp_gettimex.texi: New file.
8045         * doc/glibc-functions/open_by_handle_at.texi: New file.
8046         * doc/glibc-functions/prlimit.texi: New file.
8047         * doc/glibc-functions/process_vm_readv.texi: New file.
8048         * doc/glibc-functions/process_vm_writev.texi: New file.
8049         * doc/glibc-functions/recvmmsg.texi: New file.
8050         * doc/glibc-functions/scandirat.texi: New file.
8051         * doc/glibc-functions/sendmmsg.texi: New file.
8052         * doc/glibc-functions/setns.texi: New file.
8053         * doc/glibc-functions/timespec_get.texi: New file.
8054         * doc/gnulib.texi: Include them.
8055         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8056         sections.
8057         Reported by Eric Blake.
8058
8059 2012-02-28  Bruno Haible  <bruno@clisp.org>
8060
8061         Avoid compilation errors with MSVC option -fp:strict.
8062         * lib/floor.c: Use MSVC specific pragma fenv_access.
8063         * lib/ceil.c: Likewise.
8064         * lib/trunc.c: Likewise.
8065         * lib/round.c: Likewise.
8066         * lib/rint.c: Likewise.
8067         * lib/fma.c: Likewise.
8068         * lib/integer_length.c: Likewise.
8069         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8071         * tests/test-floor2.c: Likewise.
8072         * tests/test-floorf2.c: Likewise.
8073         * tests/test-ceil2.c: Likewise.
8074         * tests/test-ceilf2.c: Likewise.
8075         * tests/test-trunc2.c: Likewise.
8076         * tests/test-truncf2.c: Likewise.
8077         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8078
8079 2012-02-27  Bruno Haible  <bruno@clisp.org>
8080
8081         Tests for module 'sqrtl-ieee'.
8082         * modules/sqrtl-ieee-tests: New file.
8083         * tests/test-sqrtl-ieee.c: New file.
8084
8085         New module 'sqrtl-ieee'.
8086         * modules/sqrtl-ieee: New file.
8087
8088         Tests for module 'sqrt-ieee'.
8089         * modules/sqrt-ieee-tests: New file.
8090         * tests/test-sqrt-ieee.c: New file.
8091
8092         New module 'sqrt-ieee'.
8093         * modules/sqrt-ieee: New file.
8094
8095         Tests for module 'sqrtf-ieee'.
8096         * modules/sqrtf-ieee-tests: New file.
8097         * tests/test-sqrtf-ieee.c: New file.
8098         * tests/test-sqrt-ieee.h: New file.
8099
8100         New module 'sqrtf-ieee'.
8101         * modules/sqrtf-ieee: New file.
8102
8103 2012-02-27  Bruno Haible  <bruno@clisp.org>
8104
8105         remainderl-ieee: Work around test failure on OSF/1.
8106         * m4/remainderl-ieee.m4: New file.
8107         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8108         present, test whether remainderl works with a zero second argument.
8109         Replace it if not.
8110         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8112         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8113         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8114         (Depends-on): Update conditions.
8115         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8116         (Depends-on): Add remainder-ieee.
8117         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8118         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8119         module.
8120
8121         remainderf-ieee: Work around test failure on OSF/1.
8122         * m4/remainderf-ieee.m4: New file.
8123         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8124         present, test whether remainderf works with a zero second argument.
8125         Replace it if not.
8126         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8128         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8129         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8130         (Depends-on): Update conditions.
8131         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8132         (Depends-on): Add remainder-ieee.
8133         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8134         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8135         module.
8136
8137         remainder-ieee: Work around test failure on OSF/1.
8138         * m4/remainder-ieee.m4: New file.
8139         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8140         present, test whether remainder works with a zero second argument.
8141         Replace it if not.
8142         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8144         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8145         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8146         (Depends-on): Update dependencies.
8147         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8148         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8149         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8150
8151         Tests for module 'remainderl-ieee'.
8152         * modules/remainderl-ieee-tests: New file.
8153         * tests/test-remainderl-ieee.c: New file.
8154
8155         New module 'remainderl-ieee'.
8156         * modules/remainderl-ieee: New file.
8157
8158         Tests for module 'remainder-ieee'.
8159         * modules/remainder-ieee-tests: New file.
8160         * tests/test-remainder-ieee.c: New file.
8161
8162         New module 'remainder-ieee'.
8163         * modules/remainder-ieee: New file.
8164
8165         Tests for module 'remainderf-ieee'.
8166         * modules/remainderf-ieee-tests: New file.
8167         * tests/test-remainderf-ieee.c: New file.
8168         * tests/test-remainder-ieee.h: New file.
8169
8170         New module 'remainderf-ieee'.
8171         * modules/remainderf-ieee: New file.
8172
8173 2012-02-27  Bruno Haible  <bruno@clisp.org>
8174
8175         modff, modfl: Fix configure syntax error.
8176         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8177         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8178
8179 2012-02-27  Bruno Haible  <bruno@clisp.org>
8180
8181         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8182         * m4/fmodl-ieee.m4: New file.
8183         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8184         whether fmodl works with zero arguments. Replace it if not.
8185         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8186         (Depends-on): Add fmod-ieee.
8187         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8188         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8189
8190         fmodf-ieee: Work around test failure on OSF/1.
8191         * m4/fmodf-ieee.m4: New file.
8192         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8193         whether fmodf works with zero arguments. Replace it if not.
8194         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8196         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8197         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8198         (Depends-on): Update dependencies.
8199         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8200         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8201         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8202
8203         fmodf-ieee: Work around test failure on MSVC 9.
8204         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8205         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8206
8207         fmod-ieee: Work around test failures on OSF/1, mingw.
8208         * m4/fmod-ieee.m4: New file.
8209         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8210         whether fmod works with zero arguments. Replace it if not.
8211         * lib/math.in.h (fmod): New declaration.
8212         * lib/fmod.c: New file.
8213         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8215         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8216         * modules/fmod (Files): Add lib/fmod.c.
8217         (Depends-on): Add math, isinf, trunc, fma.
8218         (configure.ac): Arrange to compile lib/fmod.c if needed.
8219         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8220         m4/signbit.m4.
8221         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8222         * tests/test-math-c++.cc: Check the declaration of fmod.
8223         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8224
8225         fmodl-ieee: Fix test failures.
8226         * lib/fmodl.c (fmodl): Treat Inf specially.
8227         * modules/fmodl (Depends-on): Add isinf.
8228
8229         Tests for module 'fmodl-ieee'.
8230         * modules/fmodl-ieee-tests: New file.
8231         * tests/test-fmodl-ieee.c: New file.
8232
8233         New module 'fmodl-ieee'.
8234         * modules/fmodl-ieee: New file.
8235
8236         Tests for module 'fmod-ieee'.
8237         * modules/fmod-ieee-tests: New file.
8238         * tests/test-fmod-ieee.c: New file.
8239
8240         New module 'fmod-ieee'.
8241         * modules/fmod-ieee: New file.
8242
8243         Tests for module 'fmodf-ieee'.
8244         * modules/fmodf-ieee-tests: New file.
8245         * tests/test-fmodf-ieee.c: New file.
8246         * tests/test-fmod-ieee.h: New file.
8247
8248         New module 'fmodf-ieee'.
8249         * modules/fmodf-ieee: New file.
8250
8251 2012-02-27  Bruno Haible  <bruno@clisp.org>
8252
8253         Tests for module 'rintl-ieee'.
8254         * modules/rintl-ieee-tests: New file.
8255         * tests/test-rintl-ieee.c: New file.
8256
8257         New module 'rintl-ieee'.
8258         * modules/rintl-ieee: New file.
8259
8260         Tests for module 'rint-ieee'.
8261         * modules/rint-ieee-tests: New file.
8262         * tests/test-rint-ieee.c: New file.
8263
8264         New module 'rint-ieee'.
8265         * modules/rint-ieee: New file.
8266
8267         Tests for module 'rintf-ieee'.
8268         * modules/rintf-ieee-tests: New file.
8269         * tests/test-rintf-ieee.c: New file.
8270         * tests/test-rint-ieee.h: New file.
8271
8272         New module 'rintf-ieee'.
8273         * modules/rintf-ieee: New file.
8274
8275 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8276
8277         regex: re_search etc. should return -2 when memory exhausted
8278         This bug was uncovered when testing 'grep'.  Without the fix,
8279         re_search and friends return -1 when memory is exhausted, but -1
8280         means no match, and this causes grep to falsely report no-match
8281         instead of memory-exhaustion.  See
8282         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8283         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8284         trouble; this can occur if re_search_internal ran out of memory.
8285
8286 2012-02-26  Bruno Haible  <bruno@clisp.org>
8287
8288         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8289         * m4/modfl-ieee.m4: New file.
8290         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8291         whether modfl works with Inf. Replace it if not.
8292         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8294         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8295         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8296         (Depends-on): Update dependencies.
8297         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8298         m4/signbit.m4.
8299         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8300         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8301
8302         modfl-ieee: Fix dependencies.
8303         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8304
8305         modfl-ieee: Fix test failures.
8306         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8307         * modules/modfl (Depends-on): Add isfinite, isinf.
8308
8309         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8310         * m4/modff-ieee.m4: New file.
8311         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8312         whether modff works with NaN and Inf. Replace it if not.
8313         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8315         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8316         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8317         (Depends-on): Update dependencies.
8318         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8319         m4/signbit.m4.
8320         (Depends-on): Add modf-ieee.
8321         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8322         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8323
8324         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8325         * m4/modf-ieee.m4: New file.
8326         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8327         whether modf works with NaN and Inf. Replace it if not.
8328         * lib/math.in.h (modf): New declaration.
8329         * lib/modf.c: New file.
8330         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8332         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8333         * modules/modf (Files): Add lib/modf.c.
8334         (Depends-on): Add math, isfinite, trunc, isinf.
8335         (configure.ac): Addrange to compile lib/modf.c if needed.
8336         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8337         m4/signbit.m4.
8338         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8339         * tests/test-math-c++.cc: Check the declaration of modf.
8340         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8341
8342         Tests for module 'modfl-ieee'.
8343         * modules/modfl-ieee-tests: New file.
8344         * tests/test-modfl-ieee.c: New file.
8345
8346         New module 'modfl-ieee'.
8347         * modules/modfl-ieee: New file.
8348
8349         Tests for module 'modf-ieee'.
8350         * modules/modf-ieee-tests: New file.
8351         * tests/test-modf-ieee.c: New file.
8352
8353         New module 'modf-ieee'.
8354         * modules/modf-ieee: New file.
8355
8356         Tests for module 'modff-ieee'.
8357         * modules/modff-ieee-tests: New file.
8358         * tests/test-modff-ieee.c: New file.
8359         * tests/test-modf-ieee.h: New file.
8360
8361         New module 'modff-ieee'.
8362         * modules/modff-ieee: New file.
8363
8364 2012-02-26  Bruno Haible  <bruno@clisp.org>
8365
8366         Tests for module 'fabsl-ieee'.
8367         * modules/fabsl-ieee-tests: New file.
8368         * tests/test-fabsl-ieee.c: New file.
8369
8370         New module 'fabsl-ieee'.
8371         * modules/fabsl-ieee: New file.
8372
8373         Tests for module 'fabs-ieee'.
8374         * modules/fabs-ieee-tests: New file.
8375         * tests/test-fabs-ieee.c: New file.
8376
8377         New module 'fabs-ieee'.
8378         * modules/fabs-ieee: New file.
8379
8380         Tests for module 'fabsf-ieee'.
8381         * modules/fabsf-ieee-tests: New file.
8382         * tests/test-fabsf-ieee.c: New file.
8383         * tests/test-fabs-ieee.h: New file.
8384
8385         New module 'fabsf-ieee'.
8386         * modules/fabsf-ieee: New file.
8387
8388 2012-02-26  Bruno Haible  <bruno@clisp.org>
8389
8390         Tests for module 'fmal-ieee'.
8391         * modules/fmal-ieee-tests: New file.
8392         * tests/test-fmal-ieee.c: New file.
8393
8394         New module 'fmal-ieee'.
8395         * modules/fmal-ieee: New file.
8396
8397         Tests for module 'fma-ieee'.
8398         * modules/fma-ieee-tests: New file.
8399         * tests/test-fma-ieee.c: New file.
8400
8401         New module 'fma-ieee'.
8402         * modules/fma-ieee: New file.
8403
8404         Tests for module 'fmaf-ieee'.
8405         * modules/fmaf-ieee-tests: New file.
8406         * tests/test-fmaf-ieee.c: New file.
8407         * tests/test-fma-ieee.h: New file.
8408
8409         New module 'fmaf-ieee'.
8410         * modules/fmaf-ieee: New file.
8411
8412 2012-02-26  Bruno Haible  <bruno@clisp.org>
8413
8414         Tests for module 'ldexpl-ieee'.
8415         * modules/ldexpl-ieee-tests: New file.
8416         * tests/test-ldexpl-ieee.c: New file.
8417
8418         New module 'ldexpl-ieee'.
8419         * modules/ldexpl-ieee: New file.
8420
8421         Tests for module 'ldexp-ieee'.
8422         * modules/ldexp-ieee-tests: New file.
8423         * tests/test-ldexp-ieee.c: New file.
8424
8425         New module 'ldexp-ieee'.
8426         * modules/ldexp-ieee: New file.
8427
8428         Tests for module 'ldexpf-ieee'.
8429         * modules/ldexpf-ieee-tests: New file.
8430         * tests/test-ldexpf-ieee.c: New file.
8431         * tests/test-ldexp-ieee.h: New file.
8432
8433         New module 'ldexpf-ieee'.
8434         * modules/ldexpf-ieee: New file.
8435
8436 2012-02-26  Bruno Haible  <bruno@clisp.org>
8437
8438         Refactor frexp*-ieee tests.
8439         * tests/test-frexp-ieee.h: New file.
8440         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8441         (main): Just call test_function.
8442         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8443         (main): Just call test_function.
8444         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8445         (main): Just call test_function.
8446         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8447         * modules/frexp-ieee-tests (Files): Likewise.
8448         * modules/frexpl-ieee-tests (Files): Likewise.
8449
8450         Tests for module 'frexpl-ieee'.
8451         * modules/frexpl-ieee-tests: New file.
8452         * tests/test-frexpl-ieee.c: New file.
8453
8454         New module 'frexpl-ieee'.
8455         * modules/frexpl-ieee: New file.
8456
8457         Tests for module 'frexp-ieee'.
8458         * modules/frexp-ieee-tests: New file.
8459         * tests/test-frexp-ieee.c: New file.
8460
8461         New module 'frexp-ieee'.
8462         * modules/frexp-ieee: New file.
8463
8464         Tests for module 'frexpf-ieee'.
8465         * modules/frexpf-ieee-tests: New file.
8466         * tests/test-frexpf-ieee.c: New file.
8467
8468         New module 'frexpf-ieee'.
8469         * modules/frexpf-ieee: New file.
8470
8471 2012-02-26  Bruno Haible  <bruno@clisp.org>
8472
8473         roundl-ieee tests: More tests.
8474         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8475         (main): Add tests for [MX] shaded specification in POSIX.
8476         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8477         (Depends-on): Add isnanl-nolibm.
8478
8479         round-ieee tests: More tests.
8480         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8481         (main): Add tests for [MX] shaded specification in POSIX.
8482         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8483         (Depends-on): Add isnand-nolibm.
8484
8485         roundf-ieee tests: More tests.
8486         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8487         (main): Add tests for [MX] shaded specification in POSIX.
8488         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8489         (Depends-on): Add isnanf-nolibm.
8490
8491         truncl-ieee tests: More tests.
8492         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8493         (main): Add tests for [MX] shaded specification in POSIX.
8494         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8495         (Depends-on): Add isnanl-nolibm.
8496
8497         trunc-ieee tests: More tests.
8498         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8499         (main): Add tests for [MX] shaded specification in POSIX.
8500         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8501         (Depends-on): Add isnand-nolibm.
8502
8503         truncf-ieee tests: More tests.
8504         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8505         (main): Add tests for [MX] shaded specification in POSIX.
8506         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8507         (Depends-on): Add isnanf-nolibm.
8508
8509         ceill-ieee tests: More tests.
8510         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8511         (main): Add tests for [MX] shaded specification in POSIX.
8512         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8513         (Depends-on): Add isnanl-nolibm.
8514
8515         ceil-ieee tests: More tests.
8516         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8517         (main): Add tests for [MX] shaded specification in POSIX.
8518         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8519         (Depends-on): Add isnand-nolibm.
8520
8521         ceilf-ieee tests: More tests.
8522         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8523         (main): Add tests for [MX] shaded specification in POSIX.
8524         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8525         (Depends-on): Add isnanf-nolibm.
8526
8527         floorl-ieee tests: More tests.
8528         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8529         (main): Add tests for [MX] shaded specification in POSIX.
8530         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8531         (Depends-on): Add isnanl-nolibm.
8532
8533         floor-ieee tests: More tests.
8534         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8535         (main): Add tests for [MX] shaded specification in POSIX.
8536         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8537         (Depends-on): Add isnand-nolibm.
8538
8539         floorf-ieee tests: More tests.
8540         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8541         (main): Add tests for [MX] shaded specification in POSIX.
8542         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8543         (Depends-on): Add isnanf-nolibm.
8544
8545 2012-02-26  Bruno Haible  <bruno@clisp.org>
8546
8547         fpieee: More comments.
8548         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8549
8550 2012-02-25  Bruno Haible  <bruno@clisp.org>
8551
8552         Tests for module 'log10l'.
8553         * modules/log10l-tests: New file.
8554         * tests/test-log10l.c: New file.
8555         * tests/test-math-c++.cc: Check the declaration of log10l.
8556
8557         New module 'log10l'.
8558         * lib/math.in.h (log10l): New declaration.
8559         * lib/log10l.c: New file.
8560         * m4/log10l.m4: New file.
8561         * modules/log10l: New file.
8562         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8564         HAVE_DECL_LOG10L.
8565         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8566         HAVE_DECL_LOG10L.
8567         * doc/posix-functions/log10l.texi: Mention the new module.
8568
8569 2012-02-25  Bruno Haible  <bruno@clisp.org>
8570
8571         fmodl, remainder*: Avoid wrong results due to rounding errors.
8572         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8573         expected bounds.
8574         * lib/remainderf.c (remainderf): Likewise.
8575         * lib/remainder.c (remainder): Likewise.
8576         * lib/remainderl.c (remainderl): Likewise.
8577
8578 2012-02-25  Bruno Haible  <bruno@clisp.org>
8579
8580         Tests for module 'remainderl'.
8581         * modules/remainderl-tests: New file.
8582         * tests/test-remainderl.c: New file.
8583         * tests/test-math-c++.cc: Check the declaration of remainderl.
8584
8585         New module 'remainderl'.
8586         * lib/math.in.h (remainderl): New declaration.
8587         * lib/remainderl.c: New file.
8588         * m4/remainderl.m4: New file.
8589         * modules/remainderl: New file.
8590         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8592         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8593         HAVE_REMAINDERL.
8594         * doc/posix-functions/remainderl.texi: Mention the new module.
8595
8596 2012-02-25  Bruno Haible  <bruno@clisp.org>
8597
8598         Tests for module 'remainderf'.
8599         * modules/remainderf-tests: New file.
8600         * tests/test-remainderf.c: New file.
8601         * tests/test-math-c++.cc: Check the declaration of remainderf.
8602
8603         New module 'remainderf'.
8604         * lib/math.in.h (remainderf): New declaration.
8605         * lib/remainderf.c: New file.
8606         * m4/remainderf.m4: New file.
8607         * modules/remainderf: New file.
8608         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8610         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8611         HAVE_REMAINDERF.
8612         * doc/posix-functions/remainderf.texi: Mention the new module.
8613
8614 2012-02-25  Bruno Haible  <bruno@clisp.org>
8615
8616         remainder: Support for MSVC.
8617         * lib/math.in.h (remainder): New declaration.
8618         * lib/remainder.c: New file.
8619         * m4/remainder.m4: New file.
8620         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8621         (Depends-on): Add math, round, fma.
8622         (configure.ac): Use results of gl_FUNC_REMAINDER.
8623         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8625         HAVE_DECL_REMAINDER.
8626         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8627         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8628         * tests/test-math-c++.cc: Check the declaration of remainder.
8629         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8630         problems are fixed.
8631
8632 2012-02-25  Bruno Haible  <bruno@clisp.org>
8633
8634         Tests for module 'fmodl'.
8635         * modules/fmodl-tests: New file.
8636         * tests/test-fmodl.c: New file.
8637         * tests/test-math-c++.cc: Check the declaration of fmodl.
8638
8639         New module 'fmodl'.
8640         * lib/math.in.h (fmodl): New declaration.
8641         * lib/fmodl.c: New file.
8642         * m4/fmodl.m4: New file.
8643         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8645         REPLACE_FMODL.
8646         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8647         REPLACE_FMODL.
8648         * modules/fmodl: New file.
8649         * doc/posix-functions/fmodl.texi: Mention the new module.
8650
8651 2012-02-25  Bruno Haible  <bruno@clisp.org>
8652
8653         Tests for module 'modfl'.
8654         * modules/modfl-tests: New file.
8655         * tests/test-modfl.c: New file.
8656         * tests/test-math-c++.cc: Check the declaration of modfl.
8657
8658         New module 'modfl'.
8659         * lib/math.in.h (modfl): New declaration.
8660         * lib/modfl.c: New file.
8661         * m4/modfl.m4: New file.
8662         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8664         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8665         * modules/modfl: New file.
8666         * doc/posix-functions/modfl.texi: Mention the new module.
8667
8668 2012-02-25  Bruno Haible  <bruno@clisp.org>
8669
8670         Tests for module 'fabsl'.
8671         * modules/fabsl-tests: New file.
8672         * tests/test-fabsl.c: New file.
8673         * tests/test-math-c++.cc: Check the declaration of fabsl.
8674
8675         New module 'fabsl'.
8676         * lib/math.in.h (fabsl): New declaration.
8677         * lib/fabsl.c: New file.
8678         * m4/fabsl.m4: New file.
8679         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8681         REPLACE_FABSL.
8682         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8683         REPLACE_FABSL.
8684         * modules/fabsl: New file.
8685         * doc/posix-functions/fabsl.texi: Mention the new module.
8686
8687 2012-02-25  Bruno Haible  <bruno@clisp.org>
8688
8689         fabs tests: More tests.
8690         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8691         (zero): New variable.
8692         (main): Add tests for signed zero.
8693         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8694
8695         fabsf tests: More tests.
8696         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8697         (zero): New variable.
8698         (main): Add tests for signed zero.
8699         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8700
8701 2012-02-24  Bruno Haible  <bruno@clisp.org>
8702
8703         atanl: Provide function definition on MSVC.
8704         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8705         function pointer.
8706         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8707
8708 2012-02-24  Bruno Haible  <bruno@clisp.org>
8709
8710         acosl: Provide function definition on MSVC.
8711         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8712         function pointer.
8713         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8714
8715 2012-02-24  Bruno Haible  <bruno@clisp.org>
8716
8717         asinl: Provide function definition on MSVC.
8718         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8719         function pointer.
8720         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8721
8722 2012-02-24  Bruno Haible  <bruno@clisp.org>
8723
8724         tanl: Provide function definition on MSVC.
8725         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8726         function pointer.
8727         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8728
8729 2012-02-24  Bruno Haible  <bruno@clisp.org>
8730
8731         cosl: Provide function definition on MSVC.
8732         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8733         function pointer.
8734         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8735
8736 2012-02-24  Bruno Haible  <bruno@clisp.org>
8737
8738         sinl: Provide function definition on MSVC.
8739         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8740         function pointer.
8741         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8742
8743 2012-02-24  Bruno Haible  <bruno@clisp.org>
8744
8745         logl: Provide function definition on MSVC.
8746         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8747         function pointer.
8748         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8749
8750 2012-02-24  Bruno Haible  <bruno@clisp.org>
8751
8752         expl: Provide function definition on MSVC.
8753         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8754         function pointer.
8755         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8756
8757 2012-02-24  Bruno Haible  <bruno@clisp.org>
8758
8759         sqrtl: Provide function definition on MSVC.
8760         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8761         a function pointer.
8762         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8763
8764 2012-02-24  Bruno Haible  <bruno@clisp.org>
8765
8766         ceill: Provide function definition on MSVC.
8767         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8768         used as a function pointer.
8769         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8770
8771 2012-02-24  Bruno Haible  <bruno@clisp.org>
8772
8773         floorl: Provide function definition on MSVC.
8774         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8775         used as a function pointer.
8776         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8777
8778 2012-02-24  Bruno Haible  <bruno@clisp.org>
8779
8780         ceilf: Provide function definition on MSVC.
8781         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8782         used as a function pointer.
8783         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8784
8785 2012-02-24  Bruno Haible  <bruno@clisp.org>
8786
8787         floorf: Provide function definition on MSVC.
8788         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8789         used as a function pointer.
8790         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8791
8792 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8793
8794         stdnoreturn: new module
8795         This implements a replacement for C11's <stdnoreturn.h>.
8796         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8797         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8798         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8799         * tests/test-stdnoreturn.c: New files.
8800
8801 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8802
8803         regex: fix false multibyte matches in some regular expressions
8804         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8805         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8806         * lib/regex_internal.c (re_string_skip_chars):
8807         Fix miscomputation of remain_len that may cause incomplete
8808         multi-byte character and false match.
8809
8810 2012-02-24  Jim Meyering  <meyering@redhat.com>
8811
8812         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8813         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8814         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8815         Remove now-unnecessary str''cmp obfuscation.
8816         Suggested by Akim Demaille.
8817
8818 2012-02-24  Bruno Haible  <bruno@clisp.org>
8819
8820         streq: Rename macro.
8821         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8822         * NEWS: Mention the change.
8823         * lib/mbrtowc.c (mbrtowc): Update.
8824         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8825         * lib/wcwidth.c (wcwidth): Update.
8826         Suggested by Akim Demaille and Jim Meyering.
8827
8828 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8829
8830         regex: fix typo in definition of MIN
8831         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8832         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8833
8834 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8835             Bruno Haible  <bruno@clisp.org>
8836
8837         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8838         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8839         entries into a stack-allocated buffer directly.
8840         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8841
8842 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8843             Bruno Haible  <bruno@clisp.org>
8844
8845         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8846
8847          - There were several instances of this pattern:
8848
8849              for (;;) {
8850                n = acl (f, GETACLCNT, 0, NULL);
8851                [ allocate an array A of size N ]
8852                if (acl (f, GETACL, n, a) == n)
8853                  break;
8854              }
8855
8856            This loop might never terminate if some other process is constantly
8857            manipulating the file's ACL.  The loop should be rewritten to
8858            terminate.
8859
8860          - The acl (... GETACLNT ...) call is merely an optimization; its value
8861            is merely a hint as to how big to make the array.  A better
8862            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8863            and just guess a reasonably-big size, growing the size and trying
8864            again if it's not large enough.  This guarantees termination, and
8865            saves a system call.
8866
8867         * lib/acl-internal.h: Include <limits.h>.
8868         (MIN, SIZE_MAX): New macros.
8869         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8870         a stack-allocated buffer, and use malloc if it does not fit. Don't
8871         use GETACLCNT.
8872         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8873
8874 2012-02-19  Bruno Haible  <bruno@clisp.org>
8875
8876         acl: Fix endless loop on Solaris with vxfs.
8877         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8878         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8879         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8880         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8881         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8882         Reported by Bill Jones in
8883         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8884
8885 2012-02-19  Bruno Haible  <bruno@clisp.org>
8886
8887         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8888         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8889         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8890         that this function returns 0 in some more cases.
8891
8892 2012-02-19  Bruno Haible  <bruno@clisp.org>
8893
8894         acl: Update doc references.
8895         * doc/acl-resources.txt: Update links to Solaris documentation.
8896
8897 2012-02-19  Bruno Haible  <bruno@clisp.org>
8898
8899         Fix test failure in many locales on Solaris 11.
8900         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8901         'tr' arguments.
8902         * tests/test-pipe-filter-ii1.c (main): Likewise.
8903         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8904         expressions in the C locale.
8905         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8906         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8907
8908 2012-02-19  Bruno Haible  <bruno@clisp.org>
8909
8910         gnulib-tool: Improve usage message.
8911         * gnulib-tool (func_usage): Move doc of --help and --version to the
8912         section "Operation modes".
8913
8914 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8915
8916         README-release: make it easier to execute commands
8917         * top/README-release: break commands out on to separate lines.
8918
8919 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8920
8921         GNUmakefile: simplify detection of unconfigured trees
8922         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8923         whether the tree make is being run from is already configured or
8924         not.  Related simplifications.
8925
8926 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8927
8928         * gnulib-tool (func_usage): Document --help and --version.
8929
8930 2012-02-11  Jim Meyering  <meyering@redhat.com>
8931
8932         bootstrap: don't exit 0 upon gnulib-tool failure
8933         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8934         its exit status, not 0.
8935
8936 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8937
8938         README-release: various improvements
8939         * top/README-release: Give a command to push changes for the
8940         release.  Add "distcheck" to list of other pre-release checks.
8941         Fix instance of "make stable" which should be "make TYPE".
8942
8943 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8944
8945         maint: replace FSF snail-mail addresses with URLs
8946         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8947         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8948         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8949         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8950         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8951         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8952         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8953         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8954         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8955         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8956         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8957         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8958         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8959         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8960         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8961         * lib/glthread/thread.c, lib/glthread/thread.h:
8962         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8963         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8964         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8965         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8966         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8967         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8968         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8969         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8970         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8971         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8972         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8973         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8974         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8975         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8976         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8977         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8978         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8979         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8980         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8981         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8982         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8983         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8984         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8985         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8986         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8987         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8988         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8989         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8990         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8991         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8992         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8993         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8994         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8995         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8996         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8997         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8998         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8999         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9000         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9001         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9002         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9003         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9004         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9005         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9006         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9007         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9008         * tests/test-poll.c, tests/test-quotearg-simple.c:
9009         * tests/test-quotearg.c, tests/test-quotearg.h:
9010         * tests/test-round-ieee.c, tests/test-round1.c:
9011         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9012         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9013         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9014         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9015         * tests/test-strerror.c, tests/test-strerror_r.c:
9016         * tests/test-strsignal.c, tests/test-strverscmp.c:
9017         * tests/test-xmemdup0.c:
9018         Replace FSF snail mail addresses with URLs, as per GNU coding
9019         standards.  See glibc bug
9020         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9021
9022 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9023
9024         README-release: capitalize a word and split a line
9025         * top/README-release: Fix punctuation and spacing.
9026
9027 2012-02-08  Akim Demaille  <demaille@gostai.com>
9028
9029         fatal-signal: use C prototypes (with explicit void).
9030         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9031         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9032
9033 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9034
9035         regex: spelling fix
9036         * lib/regexec.c: spelling fix
9037
9038         regex: rely on stdint.h for SIZE_MAX
9039         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9040
9041 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9042
9043         regex: merge glibc changes
9044
9045         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9046         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9047         (init_word_char): Work even if bitset words are not exactly 32 or
9048         64 bits wide.  Don't assume there are no padding bits.
9049         * lib/regex.c [_LIBC]: Do not include <config.h>.
9050         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9051         and -Wtype-limits.
9052         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9053         needless disagreement with glibc.  All uses changed.  Define it to
9054         1 only if _GNU_SOURCE, to match glibc.
9055         (_REG_RM_NAME): Remove; no longer needed, since the names in
9056         question are now all protected by __USE_GNU.
9057         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9058         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9059         * lib/regex_internal.h (MIN): New macro.
9060
9061         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9062         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9063
9064         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9065         * lib/regex_internal.c (re_string_fetch_byte_case):
9066         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9067         is miscompiled, and it turns out it is because of an incorrect
9068         attribute on re_string_fetch_byte_case.  Unlike
9069         re_string_peek_byte_case, this one is really not pure, it modifies
9070         memory (increments pstr->cur_idx), and with the pure attribute GCC
9071         assumed it doesn't and it cached the presumed value of
9072         regexp->cur_idx in a variable across the
9073          for (;; ++i)
9074            {
9075              if (i >= BRACKET_NAME_BUF_SIZE)
9076                return REG_EBRACK;
9077              if (token->type == OP_OPEN_CHAR_CLASS)
9078                ch = re_string_fetch_byte_case (regexp);
9079              else
9080                ch = re_string_fetch_byte (regexp);
9081              if (re_string_eoi(regexp))
9082                return REG_EBRACK;
9083              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9084                break;
9085              elem->opr.name[i] = ch;
9086            }
9087
9088         2011-11-29 Andreas Schwab <schwab@redhat.com>
9089         * lib/regcomp.c (build_equiv_class):
9090         Fix access after end of search string in regex matcher.
9091
9092         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9093         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9094
9095         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9096         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9097
9098         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9099         * lib/regcomp.c (parse_branch, parse_sub_exp):
9100         More regex memory leak fixes and tests.
9101         (parse_sub_exp, parse_bracket_exp):
9102         Fix memory leak for some invalid regular expressions.
9103
9104         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9105         * lib/regex_internal.c, lib/regexec.c:
9106         Fix unnecessary overallocation due to incomplete character.  When
9107         incomplete characters are found at the end of a string the code
9108         ran amok and allocated lots of memory.  Stricter limits are now in
9109         place.
9110
9111         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9112         * lib/regex.h: Update documentation.
9113
9114         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9115         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9116
9117         2010-05-05 Andreas Schwab <schwab@redhat.com>
9118         * lib/regexec.c (find_collation_sequence_value):
9119         Fix lookup of collation sequence value during regexp matching.
9120
9121         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9122         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9123
9124         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9125         * lib/regex.h: Cleanup namespace.
9126
9127         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9128         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9129
9130         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9131         * lib/regex_internal.h: Prevent some declarations and definitions
9132         to be seen when used in tests.
9133
9134         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9135         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9136         __libc_lock_* macros if not _LIBC.
9137         (struct re_dfa_t): Add lock.
9138
9139 2012-02-07  Eric Blake  <eblake@redhat.com>
9140
9141         maint.mk: also prohibit lower-case @var@
9142         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9143         lower case, like @top_srcdir@.
9144
9145 2012-02-04  Eric Blake  <eblake@redhat.com>
9146
9147         canonicalize: avoid uninitialized memory use
9148         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9149         random '/' left in dest.
9150         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9151
9152 2012-02-04  Bruno Haible  <bruno@clisp.org>
9153
9154         isatty: Fix test failure of ptsname_r on native Windows.
9155         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9156         and don't set errno.
9157         (isatty): Test first whether fd is valid. Set errno when returning 0.
9158
9159 2012-02-04  Bruno Haible  <bruno@clisp.org>
9160
9161         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9162         * tests/test-spawn-pipe-main.c: Include progname.h.
9163         (main): Invoke set_program_name.
9164         * modules/spawn-pipe-tests (Depends-on): Add progname.
9165
9166         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9167         * tests/test-nonblocking-socket-main.c: Include progname.h.
9168         (main): Invoke set_program_name.
9169         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9170
9171         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9172         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9173         (main): Invoke set_program_name.
9174         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9175
9176 2012-02-04  Eric Blake  <eblake@redhat.com>
9177
9178         canonicalize-lgpl: fix // handling
9179         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9180
9181         canonicalize: fix // handling
9182         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9183         /// to //, since only // is special.
9184
9185 2012-02-04  Bruno Haible  <bruno@clisp.org>
9186
9187         ioctl: Fix test failure on native Windows.
9188         * lib/ioctl.c: Include msvc-nothrow.h.
9189         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9190
9191 2012-02-04  Bruno Haible  <bruno@clisp.org>
9192
9193         fsync: Avoid test failure on native Windows.
9194         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9195         read-only.
9196
9197 2012-02-04  Bruno Haible  <bruno@clisp.org>
9198
9199         sys_select: Avoid syntax error on OpenBSD 5.0.
9200         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9201         currently being included, just include the system's <sys/select.h>.
9202
9203 2012-02-04  Bruno Haible  <bruno@clisp.org>
9204
9205         sys_select: Avoid syntax error on OpenBSD 5.0.
9206         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9207         <sys/select.h>, not before.
9208         Reported by Jiri B <jirib@devio.us>.
9209
9210 2012-02-04  Bruno Haible  <bruno@clisp.org>
9211
9212         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9213         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9214         global variables.
9215         * tests/test-get-rusage-data.c (main): Likewise.
9216         Reported by Jim Meyering.
9217
9218 2012-02-04  Bruno Haible  <bruno@clisp.org>
9219
9220         stdioext: Fix last commit.
9221         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9222
9223 2012-02-03  Bruno Haible  <bruno@clisp.org>
9224
9225         stdioext: Add tentative support for Plan9.
9226         * lib/stdio-impl.h: Include <errno.h>.
9227         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9228         * lib/freadable.c (freadable): Likewise.
9229         * lib/fwritable.c (fwritable): Likewise.
9230         * lib/fbufmode.c (fbufmode): Likewise.
9231         * lib/freading.c (freading): Likewise.
9232         * lib/fwriting.c (fwriting): Likewise.
9233         * lib/freadptr.c (freadptr): Likewise.
9234         * lib/freadseek.c (freadptrinc): Likewise.
9235         * lib/freadahead.c (freadahead): Likewise.
9236         * lib/fpurge.c (fpurge): Likewise.
9237         * lib/fseeko.c (rpl_fseeko): Likewise.
9238         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9239         Reported by Jens Staal <staal1978@gmail.com>.
9240
9241 2012-02-02  Jim Meyering  <meyering@redhat.com>
9242
9243         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9244         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9245         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9246         not even to try to add the attribute.  Instead, add a pragma to suppress
9247         the suggestion/warning.
9248
9249 2012-01-31  Karl Berry  <karl@gnu.org>
9250
9251         setstate doc: typo.
9252         * doc/posix-functions/setstate.texi (setstate): { not (.
9253
9254 2012-01-31  Bruno Haible  <bruno@clisp.org>
9255
9256         popen: Make more robust on Windows.
9257         * lib/popen.c: On native Windows, use the _popen based code even if
9258         HAVE_POPEN is set.
9259         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9260         environment variable on native Windows.
9261
9262 2012-01-30  Bruno Haible  <bruno@clisp.org>
9263
9264         pclose: Fix typo.
9265         * lib/stdio.in.h (pclose): Fix typo in warning message.
9266
9267 2012-01-30  Bruno Haible  <bruno@clisp.org>
9268
9269         doc about getlogin_r, setstate.
9270         * doc/posix-functions/getlogin_r.texi: List the incompatible
9271         declaration problem under "not fixed by gnulib".
9272         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9273         problem on Solaris 11 and other platforms.
9274
9275 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9276             Bruno Haible  <bruno@clisp.org>
9277
9278         poll tests: Make test more robust.
9279         * tests/test-poll.c: Include macros.h.
9280         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9281         return value of various I/O operations.
9282         * modules/poll-tests (Files): Add tests/macros.h.
9283
9284 2012-01-30  Bruno Haible  <bruno@clisp.org>
9285
9286         sys_stat: Fix support for mingw64 and MSVC.
9287         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9288         header files already do it.
9289         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9290         stat itself.
9291         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9292
9293 2012-01-30  Bruno Haible  <bruno@clisp.org>
9294
9295         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9297         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9298
9299 2012-01-29  Bruno Haible  <bruno@clisp.org>
9300
9301         quotearg: Fix test failure on MacOS X 10.5.
9302         * tests/test-quotearg-simple.c: Include localcharset.h.
9303         (main): If the locale encoding is not ASCII, bypass the tests of
9304         locale_quoting_style and clocale_quoting_style.
9305         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9306
9307 2012-01-29  Jim Meyering  <meyering@redhat.com>
9308
9309         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9310         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9311         detect uses of canonicalize_file_name.
9312
9313 2012-01-28  Bruno Haible  <bruno@clisp.org>
9314
9315         test-framework-sh: Fix test failure with AIX 7.1 diff.
9316         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9317         in column 1, like 'diff -c' does.
9318         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9319         whether 'diff -u' is used. Instead, test whether the output contains
9320         some '@' character.
9321
9322 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9323
9324         strtoimax: eliminate need for stdint.h, inttypes.h checks
9325         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9326         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9327         the prerequisites for a recently-introduced strtoimax test.
9328         I guess this might cause strtoimax to be replaced when not
9329         strictly necessary on older hosts, but this shouldn't introduce
9330         any bugs and it should make Emacs 'configure' faster on typical
9331         modern hosts.  Problem discovered when importing the latest gnulib
9332         to an Emacs test version.
9333         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9334
9335 2012-01-28  Bruno Haible  <bruno@clisp.org>
9336
9337         sys_time: Override 'struct timeval' on some native Windows platforms.
9338         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9339         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9340         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9341         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9342         needs to be overridden.
9343         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9344         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9345         * tests/test-sys_select.c: Check that the tv_sec member has the same
9346         size as a 'time_t'.
9347         * tests/test-sys_time.c: Likewise.
9348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9349         is set, set also REPLACE_GETTIMEOFDAY.
9350         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9351         convert the resulting 'struct timeval' before returning.
9352         * lib/select.c: Include <sys/time.h>.
9353         (select, timeval): Undefine at the right place.
9354         * modules/select (Depends-on): Add sys_time.
9355         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9356         some Windows platforms.
9357         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9358
9359 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9360
9361         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9362         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9363         an integer.
9364         * lib/fcntl.c (dupfd): Likewise.
9365         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9366
9367 2012-01-28  Bruno Haible  <bruno@clisp.org>
9368
9369         fcntl: Avoid compilation error on native Windows.
9370         * modules/fcntl (Depends-on): Add 'close'.
9371
9372 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9373
9374         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9375         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9376         pointer to an integer.
9377         * lib/poll.c (IsConsoleHandle): Likewise.
9378         * lib/isatty.c (IsConsoleHandle): Likewise.
9379
9380 2012-01-28  Jim Meyering  <meyering@redhat.com>
9381
9382         doc: clarify README-release
9383         * top/README-release: Clarify: you should make a point to have
9384         the latest stable versions of build tools in your PATH, and the
9385         reference to buildreq is solely for its list of tool names, not
9386         for its minimal-functional version numbers.
9387         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9388
9389         maint.mk: use more readable (yet functionally equivalent) quoting
9390         It is common to quote a single quote in a single quoted string like
9391         this:  '...'\''...'.  Unless you know the idiom, that looks like
9392         gibberish, so prefer to double-quote the string when possible.
9393         Then you can use a more readable, lone single quote: "...'..."
9394         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9395         "don't" is more readable than the equivalent 'don'\''t'.
9396         (sc_cast_of_x_alloc_return_value): Likewise.
9397         (sc_cast_of_alloca_return_value): Likewise.
9398         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9399         rather than '\'':'\''.
9400
9401 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9402
9403         stdalign: relax _Alignof and tighten _Alignas test
9404         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9405         as it was too strict: alignof must divide offsetof, but it need
9406         not equal offsetof.  Inspired by Joseph S. Myers's comment
9407         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9408         Conversely, tighten the _Alignas test a bit, as the resulting
9409         alignment must be exactly 8.
9410
9411 2012-01-27  Bruno Haible  <bruno@clisp.org>
9412
9413         stdalign: Document the last change.
9414         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9415
9416 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9417
9418         stdalign: check that alignof and offsetof are consistent
9419         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9420         Problem reported for gnulib by Richard W.M. Jones in
9421         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9422
9423 2012-01-27  Jim Meyering  <meyering@redhat.com>
9424
9425         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9426         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9427         convert a sequence with gaps to the minimal containing range.
9428         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9429         * tests/test-update-copyright.sh: Test for this.
9430         The FSF confirmed it is ok to do this, assuming there is at
9431         least one significant change per year in the affected range:
9432         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9433
9434 2012-01-26  Bruno Haible  <bruno@clisp.org>
9435
9436         pipe2: refine doc about thread-safety
9437         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9438         multithread-safety problem.
9439         * doc/glibc-functions/accept4.texi: Likewise.
9440
9441 2012-01-26  Bruno Haible  <bruno@clisp.org>
9442
9443         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9444         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9445         In the test program, include <fcntl.h>, for O_RDONLY.
9446
9447 2012-01-26  Eric Blake  <eblake@redhat.com>
9448
9449         pipe2: document lack of thread-safety in replacement
9450         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9451         issue in replacement.
9452         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9453         Based on a report by Eric Wong.
9454
9455 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9456             Bruno Haible  <bruno@clisp.org>
9457
9458         malloca: Avoid warnings on x86_64 mingw64.
9459         * lib/malloca.c: Include <stdint.h>.
9460         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9461         * modules/malloca (Depends-on): Add stdint.
9462         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9463
9464 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9465
9466         obstack: remove __STDC__ conditionals
9467         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9468         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9469         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9470         m4/include_next.m4 as the only gnulib-maintained places that still
9471         refer to __STDC__.
9472
9473 2012-01-24  Bruno Haible  <bruno@clisp.org>
9474
9475         havelib: Modern quoting.
9476         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9477         the recent change to the GNU coding standards.
9478
9479 2012-01-24  Bruno Haible  <bruno@clisp.org>
9480
9481         stdint: Improve support for Android.
9482         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9483         Reported by Simon Josefsson <simon@josefsson.org>.
9484
9485 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9486
9487         doc: omit trailing empty lines from INSTALL etc.
9488         * doc/Makefile (INSTALL): Omit trailing empty lines.
9489         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9490         omit trailing empty lines.  This simplifies the build procedure.
9491
9492 2012-01-23  Jim Meyering  <meyering@redhat.com>
9493
9494         tests: avoid spurious warnings about gl_sockets_startup
9495         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9496         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9497         reporting a "statement with no effect".
9498         * tests/test-accept.c (main): Mark as "(void)".
9499         * tests/test-accept4.c (main): Likewise.
9500         * tests/test-bind.c (main): Likewise.
9501         * tests/test-connect.c (main): Likewise.
9502         * tests/test-getpeername.c (main): Likewise.
9503         * tests/test-getsockname.c (main): Likewise.
9504         * tests/test-getsockopt.c (main): Likewise.
9505         * tests/test-listen.c (main): Likewise.
9506         * tests/test-recv.c (main): Likewise.
9507         * tests/test-recvfrom.c (main): Likewise.
9508         * tests/test-send.c (main): Likewise.
9509         * tests/test-sendto.c (main): Likewise.
9510         * tests/test-setsockopt.c (main): Likewise.
9511         * tests/test-shutdown.c (main): Likewise.
9512
9513 2012-01-21  Bruno Haible  <bruno@clisp.org>
9514
9515         locale-fr.m4: Fix for Android.
9516         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9517         failure of the test program on Bionic libc.
9518
9519 2012-01-21  Jim Meyering  <meyering@redhat.com>
9520
9521         bootstrap: fail when bootstrap_post_import_hook fails
9522         Otherwise, it's far too easy to miss diagnostics emitted
9523         between gnulib-tool's output and that of running configure.
9524         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9525
9526 2012-01-17  Jim Meyering  <meyering@redhat.com>
9527
9528         maint: enable sc_trailing_blank
9529         * build-aux/pmccabe.css: Remove trailing blanks.
9530         * doc/acl-cygwin.txt: Likewise.
9531         * doc/gnu-oids.texi: Likewise
9532         * cfg.mk: Enable sc_trailing_blank.
9533         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9534
9535 2012-01-17  Jim Meyering  <meyering@redhat.com>
9536
9537         maint: enable sc_prohibit_openat_without_use
9538         * cfg.mk: Enable sc_prohibit_openat_without_use.
9539         Exempt lib/selinux-at.c.
9540
9541 2012-01-17  Jim Meyering  <meyering@redhat.com>
9542
9543         maint: enable sc_prohibit_cloexec_without_use
9544         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9545         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9546
9547 2012-01-17  Jim Meyering  <meyering@redhat.com>
9548
9549         maint: enable sc_prohibit_intprops_without_use
9550         * cfg.mk: Enable sc_prohibit_intprops_without_use
9551         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9552
9553 2012-01-17  Jim Meyering  <meyering@redhat.com>
9554
9555         maint: enable sc_prohibit_hash_pjw_without_use
9556         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9557         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9558         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9559         following " (".
9560
9561 2012-01-17  Jim Meyering  <meyering@redhat.com>
9562
9563         maint: enable double-word-prohibiting rule
9564         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9565         Exempt three files.
9566
9567 2012-01-17  Jim Meyering  <meyering@redhat.com>
9568
9569         maint: remove empty lines at EOF, but excluding modules/*
9570         Apply syntax rules at home as well as abroad.  Most changes
9571         were induced by running this:
9572           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9573             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9574             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9575         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9576         Exempt modules/* and two binary files.
9577         Also exempt doc/INSTALL*, per request from Bruno Haible.
9578         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9579         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9580         * doc/Copyright/request-assign.future: Likewise.
9581         * doc/Copyright/request-disclaim.changes: Likewise.
9582         * doc/INSTALL: Likewise.
9583         * doc/INSTALL.ISO: Likewise.
9584         * doc/INSTALL.UTF-8: Likewise.
9585         * doc/acl-cygwin.txt: Likewise.
9586         * doc/acl-resources.txt: Likewise.
9587         * doc/fdl-1.2.texi: Likewise.
9588         * doc/fdl-1.3.texi: Likewise.
9589         * doc/fdl.texi: Likewise.
9590         * lib/argp-pin.c: Likewise.
9591         * lib/round.c: Likewise.
9592         * lib/unicase/u16-totitle.c: Likewise.
9593         * lib/unictype/block_test.c: Likewise.
9594         * lib/uninorm/canonical-decomposition.c: Likewise.
9595         * m4/README: Likewise.
9596         * m4/relocatable-lib.m4: Likewise.
9597         * tests/test-isnand-nolibm.c: Likewise.
9598         * tests/test-isnand.c: Likewise.
9599         * tests/uninorm/NormalizationTest.txt: Likewise.
9600
9601 2012-01-17  Jim Meyering  <meyering@redhat.com>
9602
9603         maint: add framework to run syntax-check rules against gnulib sources
9604         * cfg.mk: New file, to disable all currently-failing tests.
9605         We'll enable them one by one, as they are made to pass.
9606         * Makefile (sc_maint): New rule.
9607
9608 2012-01-21  Bruno Haible  <bruno@clisp.org>
9609
9610         stdint: Add support for Android.
9611         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9612         include the system's <stdint.h>.
9613         Reported by Simon Josefsson <simon@josefsson.org>.
9614
9615 2012-01-19  Jim Meyering  <meyering@redhat.com>
9616
9617         bootstrap: add bootstrap_post_import_hook
9618         Bison does still need something like the gnulib_mk_hook whose
9619         invocation I had to remove along with slurp in commit 767ccd40.
9620         Technically, we could get along without it, but doing so would
9621         have required living with a warning and a mandatory post-bootstrap
9622         automake rerun.
9623         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9624         (bootstrap_post_import_hook): New function.
9625         Invoke it after gnulib-tool --import and before autoreconf.
9626
9627 2012-01-18  Jim Meyering  <meyering@redhat.com>
9628
9629         gitlog-to-changelog: don't use "no_"-prefixed variable name
9630         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9631         to enable both --cluster and --no-cluster.  Change variable name,
9632         s/\$no_cluster/$cluster/, and reverse usage to match.
9633
9634         gitlog-to-changelog: use "||", not "or" in expressions
9635         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9636         expressions.
9637
9638 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9639
9640         gitlog-to-changelog: new option --no-cluster
9641         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9642         clustering of adjacent commit messages.
9643
9644 2012-01-17  Jim Meyering  <meyering@redhat.com>
9645
9646         maint: spell file systems with two words, not one
9647         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9648         two words, not one.
9649
9650 2012-01-16  Jim Meyering  <meyering@redhat.com>
9651
9652         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9653         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9654
9655 2012-01-16  Eric Blake  <eblake@redhat.com>
9656
9657         bootstrap: cater to autoconf 2.59
9658         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9659         is not available.
9660
9661         bootstrap: properly check for libtool
9662         * build-aux/bootstrap (libtoolize): Also run libtool when older
9663         usage is detected.
9664
9665 2012-01-15  Bruno Haible  <bruno@clisp.org>
9666
9667         Improve support for MSVC 9.
9668         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9669         clashes on MSVC.
9670         * lib/fcntl.in.h: Likewise.
9671         * lib/stdlib.in.h: Likewise.
9672         * lib/sys_stat.in.h: Likewise.
9673
9674 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9675
9676         gnupload: we hold the master copy of this script now
9677         For motivation and more information, see:
9678         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9679         * build-aux/gnupload: Make it clear in the heading comments that the
9680         master copy of this file is maintained by gnulib.  Since we are at
9681         it, bump its copyright year and ...
9682         ($scriptversion): ... the date in its version.
9683         ($usage): Patches and bug reports should be sent to the gnulib list,
9684         not the automake one.
9685         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9686         anymore.
9687
9688 2012-01-15  Bruno Haible  <bruno@clisp.org>
9689
9690         Fix module 'random'.
9691         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9692         initstate, setstate are declared.
9693
9694 2012-01-14  Bruno Haible  <bruno@clisp.org>
9695
9696         Tests for module 'random'.
9697         * modules/random-tests: New file.
9698         * tests/test-random.c: New file, based on tests/test-random_r.c.
9699
9700         New module 'random'.
9701         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9702         declarations.
9703         * lib/random.c: New file, based on glibc/stdlib/random.c.
9704         * m4/random.m4: New file.
9705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9706         HAVE_RANDOM.
9707         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9708         * modules/random: New file.
9709         * config/srclist.txt: Add an entry for random.c.
9710         * doc/posix-functions/random.texi: Mention the 'random' module.
9711         * doc/posix-functions/initstate.texi: Likewise.
9712         * doc/posix-functions/setstate.texi: Likewise.
9713         * doc/posix-functions/srandom.texi: Likewise.
9714
9715 2012-01-12  Bruno Haible  <bruno@clisp.org>
9716
9717         random_r: Use common idioms.
9718         * lib/random_r.c: Include <stdlib.h> first.
9719
9720         random_r: Override incompatible API on AIX, OSF/1.
9721         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9722         Override the system function if REPLACE_RANDOM_R is 1.
9723         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9724         and OSF/1, set REPLACE_RANDOM_R.
9725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9726         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9727         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9728         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9729         * doc/glibc-functions/random_r.texi: Likewise.
9730         * doc/glibc-functions/setstate_r.texi: Likewise.
9731
9732         random_r: Support for MSVC 9.
9733         * lib/random_r.c: Include stdint.h, not inttypes.h.
9734
9735 2012-01-12  Eric Blake  <eblake@redhat.com>
9736
9737         inet_ntop: guard extra work by IF_LINT
9738         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9739         better code generation when not checking for warnings.
9740         Suggested by Paul Eggert and Jim Meyering.
9741
9742         strptime: fix regression on mingw
9743         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9744         Fix regression.  Reported by Bruno Haible.
9745
9746 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9747             Bruno Haible  <bruno@clisp.org>
9748
9749         copy-file: add error-code-returning variant.
9750         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9751         (qcopy_file_preserving): New declaration.
9752         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9753         copy_file_preserving. Change return type to 'int'. Don't emit an error
9754         message here.
9755         (copy_file_preserving): New function.
9756         * tests/test-copy-file.c: Include <stdlib.h>.
9757         (main): Test qcopy_file_preserving if the environment variable
9758         NO_STDERR_OUTPUT is set.
9759         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9760         with NO_STDERR_OUTPUT
9761         * tests/test-copy-file-2.sh: Likewise.
9762
9763 2012-01-10  Bruno Haible  <bruno@clisp.org>
9764
9765         copy-file: Use 'quote' module consistently.
9766         * lib/copy-file.c (copy_file_preserving): Use quote().
9767
9768         copy-file: Refactor.
9769         * lib/copy-file.c: Include quote.h.
9770         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9771         message here.
9772         * modules/copy-file (Depends-on): Add quote.
9773
9774         acl: Export qcopy_acl.
9775         * lib/acl.h (qcopy_acl): New declaration.
9776         * lib/copy-acl.c (qcopy_acl): Make non-static.
9777
9778         acl: Rename a local variable.
9779         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9780
9781         acl: Align return values of copy_acl and qcopy_acl.
9782         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9783         maybe < -1.
9784
9785 2012-01-11  Eric Blake  <eblake@redhat.com>
9786
9787         strptime: silence gcc warnings
9788         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9789         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9790         Reported by Daniel P. Berrange.
9791
9792         inet_ntop: silence gcc warning
9793         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9794         Reported by Daniel P. Berrange.
9795
9796 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9797
9798         getloadavg test: skip the test on GNU/Linux without /proc mounted
9799         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9800         file.  When /proc is not mounted, it always fails with ENOENT.
9801         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9802         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9803
9804 2012-01-10  Bruno Haible  <bruno@clisp.org>
9805
9806         regex: Avoid link error on MSVC 9.
9807         * modules/regex (Depends-on): Add wctype.
9808
9809 2012-01-10  Bruno Haible  <bruno@clisp.org>
9810
9811         doc: Mention --with-tests option.
9812         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9813         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9814         --with-tests.
9815         Reported by Reuben Thomas.
9816
9817 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9818
9819         users.txt: order package names lexicographically.
9820         * users.txt: Order package names lexicographically.
9821
9822 2012-01-10  Jim Meyering  <meyering@redhat.com>
9823
9824         maint.mk: fix description in comment
9825         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9826
9827         ignore-value: remove deprecated ignore_ptr function
9828         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9829         * NEWS: Note this.
9830
9831 2012-01-09  Jim Meyering  <meyering@redhat.com>
9832
9833         test-init.sh: avoid a subshell
9834         * tests/test-init.sh: Remove protective subshell.
9835         Suggested by Bernhard Voelker.  While a subshell is normally
9836         required to protect against older shells (Solaris, FreeBSD) that
9837         warn about a missing program before performing redirection, the
9838         shell-selection tests performed by init.sh probably exclude any
9839         offending shell.
9840
9841 2012-01-08  Bruno Haible  <bruno@clisp.org>
9842
9843         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9844         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9845         variable.
9846
9847 2012-01-08  Bruno Haible  <bruno@clisp.org>
9848
9849         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9850         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9851         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9852         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9853         macro.
9854         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9855         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9856         * lib/spawn_faction_addopen.c: Add workaround implementation if
9857         HAVE_WORKING_POSIX_SPAWN.
9858         * modules/spawn (Makefile): Substitute
9859         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9860         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9861         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9862         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9863         (Depends-on): Update conditions.
9864         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9865         the Solaris 11 bug.
9866
9867 2012-01-08  Bruno Haible  <bruno@clisp.org>
9868
9869         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9870         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9871         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9872         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9873         macro.
9874         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9875         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9876         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9877         HAVE_WORKING_POSIX_SPAWN.
9878         * modules/spawn (Makefile): Substitute
9879         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9880         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9881         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9882         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9883         (Depends-on): Update conditions.
9884         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9885         the Solaris 11 bug.
9886
9887 2012-01-08  Bruno Haible  <bruno@clisp.org>
9888
9889         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9890         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9891         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9892         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9893         HAVE_WORKING_POSIX_SPAWN.
9894         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9895         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9896         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9897         * lib/spawn_faction_addclose.c: Add workaround implementation if
9898         HAVE_WORKING_POSIX_SPAWN.
9899         * modules/spawn (Makefile): Substitute
9900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9901         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9902         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9903         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9904         (Depends-on): Update conditions.
9905         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9906         the Solaris 11 bug.
9907
9908 2012-01-08  Bruno Haible  <bruno@clisp.org>
9909
9910         doc: Update for Solaris 11 2011-11.
9911         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9912         * m4/printf.m4: Update comments.
9913
9914 2012-01-08  Bruno Haible  <bruno@clisp.org>
9915
9916         mktime: Avoid compilation error on Solaris 11.
9917         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9918
9919 2012-01-08  Bruno Haible  <bruno@clisp.org>
9920
9921         doc: Small fix.
9922         * doc/posix-headers/nl_types.texi: Correct platforms list.
9923
9924 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9925
9926         Add lgpl-3.0 module.
9927         * MODULES.html.sh (Support for building documentation): Add
9928         lgpl-3.0.
9929         * modules/lgpl-3.0: New file.
9930
9931 2012-01-08  Jim Meyering  <meyering@redhat.com>
9932
9933         select.c: indent with spaces, not TABs
9934         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9935
9936 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9937
9938         quotearg: do not use grave accent for left quote
9939         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9940         locale_quoting_style.
9941         (quotearg_buffer_restyled): Fix example.
9942         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9943
9944 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9945
9946         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9947         Most programs do not have translation catalogs for English and much
9948         less separate catalogs for British and American English.  Drop the
9949         suggestion to translators about these two, and provide it
9950         automatically for Unicode locales.  Like most programs, even those
9951         using American English, we use single quotation marks.  This conflicts
9952         with the American typographic convention, but works better when you
9953         cite the entire error message within double quotes.  It also tries not
9954         to clash with established practice and with what non-gnulib programs
9955         will usually do.
9956         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9957         using an UTF-8 or GB-18030 locale.  The list of other locales with
9958         quotes was provided by Bruno Haible.
9959         (quotearg_buffer_restyled): Adjust instructions to translators.
9960         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9961         text, since this would be wrong when using Unicode.
9962         * modules/quotearg: Depend on c-strcaseeq.
9963
9964 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9965
9966         quotearg: fix Wikipedia link
9967         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9968
9969 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9970
9971         Fix for mingw with MSVC9.
9972         * m4/ld-version-script.m4: Check that compiler rejects version
9973         scripts with syntax errors.  Reported by Bruno Haible
9974         <bruno@clisp.org>.
9975
9976 2012-01-06  Bruno Haible  <bruno@clisp.org>
9977
9978         Talk about "native Windows API", not "Woe32".
9979         * lib/accept4.c: Update comments to mention native Windows.
9980         * lib/execute.c: Likewise.
9981         * lib/fatal-signal.c: Likewise.
9982         * lib/localcharset.c: Likewise.
9983         * lib/nanosleep.c: Likewise.
9984         * lib/nl_langinfo.c: Likewise.
9985         * lib/pclose.c: Likewise.
9986         * lib/pipe-filter-gi.c: Likewise.
9987         * lib/pipe-filter-ii.c: Likewise.
9988         * lib/pipe.c: Likewise.
9989         * lib/pipe2.c: Likewise.
9990         * lib/popen.c: Likewise.
9991         * lib/progreloc.c: Likewise.
9992         * lib/relocatable.c: Likewise.
9993         * lib/sigaction.c: Likewise.
9994         * lib/sigprocmask.c: Likewise.
9995         * lib/spawn-pipe.h: Likewise.
9996         * lib/spawn-pipe.c: Likewise.
9997         * lib/spawni.c: Likewise.
9998         * lib/stat-time.h: Likewise.
9999         * lib/w32spawn.h: Likewise.
10000         * tests/test-isatty.c: Likewise.
10001         * lib/config.charset: More comments.
10002         * doc/gnulib-intro.texi: Mention native Windows.
10003         * doc/posix-functions/_Exit_C99.texi: Likewise.
10004         * doc/posix-headers/fcntl.texi: Likewise.
10005
10006 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10007
10008         argp: Avoid crash if translator uses % characters in a translation.
10009         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10010         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10011
10012 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10013
10014         doc: C11 and C++11 are now official
10015         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10016         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10017         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10018         * modules/stdalign:
10019         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10020
10021 2012-01-06  Bruno Haible  <bruno@clisp.org>
10022
10023         uc-is-grapheme-break tests: Tweak.
10024         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10025         message.
10026
10027 2012-01-06  Bruno Haible  <bruno@clisp.org>
10028
10029         test-init.sh: correct the test for diff -u
10030         * tests/test-init.sh: Also redirect stdout to /dev/null.
10031
10032 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10033
10034         Use ', not `, for quoting output.
10035         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10036         (print_changelog_deltas, get_tool_versions, main program):
10037         * build-aux/git-version-gen:
10038         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10039         * build-aux/move-if-change (help):
10040         * build-aux/useless-if-before-free (usage, main program):
10041         * check-module (parse_module_file, usage)
10042         (find_included_lib_files, check_module):
10043         * lib/argmatch.c (main) [TEST]:
10044         * lib/argp-help.c (_help):
10045         * lib/getopt1.c (main) [TEST]:
10046         * lib/git-merge-changelog.c (usage):
10047         * lib/xstrtol-error.c (xstrtol_error):
10048         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10049         * m4/argz.m4 (gl_FUNC_ARGZ):
10050         * m4/bison.m4 (gl_BISON):
10051         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10052         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10053         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10054         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10055         * m4/gc-random.m4 (gl_GC_RANDOM):
10056         * m4/intl.m4 (gt_CHECK_DECL):
10057         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10058         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10059         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10060         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10061         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10062         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10063         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10064         * tests/test-dirname.c (main):
10065         * tests/test-getpass.c (main):
10066         * tests/test-iconvme.c (main):
10067         * tests/test-parse-datetime.c (LOG):
10068         * tests/test-xstrtoimax.sh:
10069         * tests/test-xstrtol.sh:
10070         * tests/test-xstrtoll.sh:
10071         * tests/test-xstrtoumax.sh:
10072         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10073         * top/GNUmakefile (abort-due-to-no-makefile):
10074         Quote 'like this', not `like this', as per the recent change to
10075         the GNU coding standards.
10076
10077 2012-01-05  Bruno Haible  <bruno@clisp.org>
10078
10079         strtoimax: Don't force a replacement on systems where intmax_t is int.
10080         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10081         'intmax_t' is not larger than 'int'.
10082         Reported by Pádraig Brady <P@draigBrady.com>.
10083
10084 2012-01-05  Bruno Haible  <bruno@clisp.org>
10085
10086         doc: Mention NetBSD bugs.
10087         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10088         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10089
10090 2012-01-05  Bruno Haible  <bruno@clisp.org>
10091
10092         strtoumax tests: Enhance tests.
10093         * tests/test-strtoumax.c (main): Add tests for large values.
10094
10095 2012-01-05  Bruno Haible  <bruno@clisp.org>
10096
10097         strtoimax: Work around AIX 5.1 bug.
10098         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10099         definition.
10100         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10101         Set HAVE_STRTOIMAX.
10102         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10103         REPLACE_STRTOIMAX.
10104         * modules/inttypes-incomplete (Makefile.am): Substitute
10105         REPLACE_STRTOIMAX.
10106         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10107         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10108         (Depends-on): Update conditions.
10109         * tests/test-strtoimax.c (main): Add tests for large values.
10110         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10111
10112 2012-01-05  Bruno Haible  <bruno@clisp.org>
10113
10114         inttypes: Modernize.
10115         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10116         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10117         (Makefile.am): Update inttypes.h rule.
10118
10119 2012-01-05  Jim Meyering  <meyering@redhat.com>
10120
10121         init.sh: don't waste a subshell just to redirect stderr
10122         * tests/init.sh: In testing for diff -u and diff -c, use a
10123         stderr-redirecting exec inside `...` rather than a subshell.
10124
10125         test-init.sh: avoid failure on HP-UX 11.00
10126         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10127         resolves to diff -c or cmp.  Reported by Bruno Haible.
10128
10129 2012-01-05  Bruno Haible  <bruno@clisp.org>
10130
10131         Tests for module 'strtoull'.
10132         * modules/strtoull-tests: New file.
10133         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10134
10135 2012-01-05  Bruno Haible  <bruno@clisp.org>
10136
10137         Tests for module 'strtoll'.
10138         * modules/strtoll-tests: New file.
10139         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10140
10141 2012-01-05  Bruno Haible  <bruno@clisp.org>
10142
10143         Tests for module 'strtoul'.
10144         * modules/strtoul-tests: New file.
10145         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10146
10147 2012-01-05  Bruno Haible  <bruno@clisp.org>
10148
10149         Tests for module 'strtol'.
10150         * modules/strtol-tests: New file.
10151         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10152
10153 2012-01-04  Jim Meyering  <meyering@redhat.com>
10154
10155         test-init.sh: accommodate Solaris 5.10's different diff -u output
10156         * tests/test-init.sh: Also exempt @@ lines from the comparison
10157         of diff output, since Solaris 5.10 and GNU diff formats differ.
10158         Reported by Stefano Lattarini.
10159
10160 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10161
10162         test-posixtm: don't assume signed integer wraparound
10163         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10164         after signed integer overflow.  Inspired by (though it may not
10165         fix) Bruno Haible's bug report in
10166         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10167
10168         Spell out "Windows 9x" and "Windows XP".
10169         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10170         "Windows 9x" and "WinXP" with "Windows XP".
10171
10172 2012-01-04  Jim Meyering  <meyering@redhat.com>
10173
10174         test-vc-list-files-cvs.sh: remove obsolete comment
10175         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10176         double exit.  Now that's all encapsulated via skip_ and Exit.
10177
10178 2012-01-04  Bruno Haible  <bruno@clisp.org>
10179
10180         Talk about "native Windows API", not "Win32".
10181         * lib/classpath.c: Update comments to mention native Windows.
10182         * lib/csharpexec.c: Likewise.
10183         * lib/dup2.c: Likewise.
10184         * lib/error.c: Likewise.
10185         * lib/fcntl.c: Likewise.
10186         * lib/filename.h: Likewise.
10187         * lib/findprog.c: Likewise.
10188         * lib/get-rusage-as.c: Likewise.
10189         * lib/get-rusage-data.c: Likewise.
10190         * lib/getpagesize.c: Likewise.
10191         * lib/javaexec.c: Likewise.
10192         * lib/msvc-inval.c: Likewise.
10193         * lib/msvc-nothrow.c: Likewise.
10194         * lib/nanosleep.c: Likewise.
10195         * lib/nonblocking.c: Likewise.
10196         * lib/printf-parse.c: Likewise.
10197         * lib/setlocale.c: Likewise.
10198         * lib/sigaction.c: Likewise.
10199         * lib/strerror_r.c: Likewise.
10200         * lib/tmpdir.c: Likewise.
10201         * lib/vasnprintf.c: Likewise.
10202         * lib/w32spawn.h: Likewise.
10203         * lib/waitpid.c: Likewise.
10204         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10205         * m4/locale-ar.m4: Likewise.
10206         * m4/locale-fr.m4: Likewise.
10207         * m4/locale-ja.m4: Likewise.
10208         * m4/locale-tr.m4: Likewise.
10209         * m4/locale-zh.m4: Likewise.
10210         * m4/printf.m4: Likewise.
10211         * tests/test-cloexec.c: Likewise.
10212         * tests/test-copy-acl.sh: Likewise.
10213         * tests/test-copy-file.sh: Likewise.
10214         * tests/test-file-has-acl.sh: Likewise.
10215         * tests/test-set-mode-acl.sh: Likewise.
10216         * tests/test-dup-safer.c: Likewise.
10217         * tests/test-dup2.c: Likewise.
10218         * tests/test-dup3.c: Likewise.
10219         * tests/test-fcntl.c: Likewise.
10220         * tests/test-nonblocking-pipe.h: Likewise.
10221         * tests/test-nonblocking-socket.h: Likewise.
10222         * tests/test-pipe.c: Likewise.
10223         * tests/test-pipe2.c: Likewise.
10224         * tests/test-spawn-pipe-child.c: Likewise.
10225         * doc/acl-resources.txt: Likewise.
10226         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10227         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10228         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10229         * lib/localcharset.c: Update comments to mention native Windows.
10230         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10231         * lib/localename.c: Likewise.
10232         * lib/progreloc.c: Likewise.
10233         * lib/relocatable.c: Likewise.
10234         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10235         (windows_compute_revents): Renamed from win32_compute_revents.
10236         (windows_compute_revents_socket): Renamed from
10237         win32_compute_revents_socket.
10238         * lib/select.c: Update comments to mention native Windows.
10239         (windows_poll_handle): Renamed from win32_poll_handle.
10240         * m4/threadlib.m4: Update comments to mention native Windows.
10241         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10242         --enable-threads=windows instead of --enable-threads=win32. Set
10243         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10244         * lib/glthread/lock.h: Update comments to mention native Windows.
10245         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10246         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10247         USE_WIN32_THREADS.
10248         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10249         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10250         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10251         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10252         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10253         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10254         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10255         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10256         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10257         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10258         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10259         * tests/test-tls.c: Likewise.
10260         Rationale:
10261         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10262         on both 32-bit and 64-bit Windows systems.
10263         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10264         line of distinction is between "native Windows" on one side and Unix/
10265         POSIX systems on the other side. More details in
10266         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10267         Suggested by Paul Eggert.
10268
10269 2012-01-03  Bruno Haible  <bruno@clisp.org>
10270
10271         isatty: Support for MSVC 9.
10272         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10273         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10274         (_isatty_nothrow): New function.
10275         (isatty): Use it instead of _isatty.
10276         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10277         * lib/poll.c (IsConsoleHandle): Likewise.
10278         * lib/select.c (IsConsoleHandle): Likewise.
10279         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10280         (gl_PREREQ_ISATTY): New macro.
10281         * modules/isatty (Depends-on): Add msvc-inval.
10282         (configure.ac): Invoke gl_PREREQ_ISATTY.
10283
10284 2012-01-03  Jim Meyering  <meyering@redhat.com>
10285
10286         maint.mk: remove temporary transition aid from over 1.5 years ago
10287         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10288         purpose was to aid in the transition (avoiding silent malfunction)
10289         from that old name to the new _sc_search_regexp.  This shim was
10290         added by commit 219c504b.
10291
10292         init.sh: do not try to accommodate compare arguments starting with "-"
10293         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10294         compare arguments that start with "-".  Besides, we do not worry
10295         about this when invoking diff or cmp; why start now with sed?
10296         Using "--" to separate options from argument would trigger sed
10297         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10298         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10299
10300 2012-01-02  Bruno Haible  <bruno@clisp.org>
10301
10302         Enhance tests for module 'isatty'.
10303         * modules/isatty-tests (Depends-on): Add pipe-posix.
10304         * tests/test-isatty.c: Include <fcntl.h>.
10305         (DEV_NULL): New macro.
10306         (main): Test the resut of isatty() also on regular files, pipes, and
10307         /dev/null.
10308
10309         New module 'isatty'.
10310         * lib/unistd.in.h (isatty): New declaration.
10311         * lib/isatty.c: New file, based on an idea of
10312         Bastien Roucariès <roucaries.bastien@gmail.com>.
10313         * m4/isatty.m4: New file.
10314         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10315         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10316         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10317         REPLACE_ISATTY.
10318         * modules/isatty: New file.
10319         * doc/posix-functions/isatty.texi: Mention the new module.
10320         Suggested by Paolo Bonzini.
10321
10322 2012-01-02  Bruno Haible  <bruno@clisp.org>
10323
10324         canonicalize: Tweak 2011-12-29 commit.
10325         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10326         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10327
10328 2012-01-02  Jim Meyering  <meyering@redhat.com>
10329
10330         gitlog-to-changelog: describe input syntax in --help output
10331         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10332
10333         gitlog-to-changelog: fix typo in --help: show backslash before email @
10334         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10335         in sources, but not in actual output.
10336
10337 2011-12-30  Jim Meyering  <meyering@redhat.com>
10338
10339         gitlog-to-changelog: don't malfunction when name contains %-directive
10340         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10341         in a name string cause trouble.  E.g., with a user name of "%s",
10342         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10343
10344 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10345
10346         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10347         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10348         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10349         the "  (tiny change)" notation that is appended to the standard
10350         ChangeLog "date  name  email" header line.
10351
10352 2012-01-01  Jim Meyering  <meyering@redhat.com>
10353
10354         test-framework-sh: init.sh: fix "make dist" failure
10355         When using gnulib-tool's --with-tests option and any module that
10356         depends on test-framework-sh, "make dist" would fail due to the
10357         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10358         in the gltests directory, and not in the gllib/ directory.
10359         One way to work around that is to move the EXTRA_DIST += init.sh
10360         from the primary module to the -tests one:
10361         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10362         * modules/test-framework-sh (Makefile.am): ...not here.
10363         Reported by Tom G. Christensen in
10364         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10365
10366         version-etc: update copyright year reported by --version
10367         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10368
10369 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10370
10371         canonicalize: only stat() if required
10372         * lib/canonicalize.c (canonicalize_filename_mode):
10373         Avoid calling l?stat() when both CAN_MISSING,
10374         and CAN_NOLINKS are set, as we neither need
10375         to resolve symlinks or test component existence.
10376
10377 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10378
10379         doc: cover st_ino issues once; add OpenVMS etc.
10380         * doc/posix-functions/stat.texi (stat):
10381         * doc/posix-functions/lstat.texi (lstat):
10382         * doc/posix-functions/fstatat.texi (fstatat):
10383         * doc/posix-functions/fstat.texi (fstat):
10384         Move general 'struct stat' stuff to sys_stat.texi,
10385         leaving behind a pointer.
10386         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10387         Merge duplicate info about 'struct stat' problems into here.
10388         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10389         and suggest partial workarounds.
10390
10391         same-inode: port to OpenVMS
10392         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10393         three st_ino values.
10394
10395 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10396
10397         canonicalize: fix references to stat() and lstat()
10398         * lib/canonicalize.c (canonicalize_filename_mode):
10399         Ensure references always resolve to a replacement
10400         function if required (even via a macro).
10401
10402 2011-12-30  Jim Meyering  <meyering@redhat.com>
10403
10404         gitlog-to-changelog: remove a little duplication
10405         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10406         rather than twice.
10407
10408 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10409
10410         canonicalize: add support for not resolving symlinks
10411         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10412         indicate we don't want to follow symlinks.  Also
10413         provide CAN_MODE_MASK to aid setting these existing
10414         mutually exclusive values.
10415         * lib/canonicalize.c (canonicalize_filename_mode):
10416         Extract the flags from can_mode parameter, which
10417         are currently just used to select between stat()
10418         and lstat().  Also ensure that mutually exclusive
10419         values are flagged immediately as invalid.
10420         * tests/test-canonicalize.c: Verify symlinks are
10421         not followed, and that invalid flag combinations
10422         are diagnosed.
10423
10424 2011-12-25  Jim Meyering  <meyering@redhat.com>
10425
10426         gitlog-to-changelog: do not clump multi-paragraph entries
10427         Identical header lines (date,name,email+coauthors) are suppressed,
10428         thus putting all entries with those same characteristics under
10429         a single header.  However, when a log entry consists of two or
10430         more paragraphs, it may not be clear where it starts and ends.
10431         This change makes it so that such an entry is always separated
10432         from others by a header line, even when that header would
10433         otherwise be suppressed.
10434         * build-aux/gitlog-to-changelog: Implement the above.
10435         Inspired by a related request from Stefano Lattarini in
10436         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10437
10438 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10439
10440         announce-gen: fix `cmd' typo in diagnostic
10441         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10442         diagnostic: a missing '$' meant that the command was not output.
10443
10444 2011-12-23  Jim Meyering  <meyering@redhat.com>
10445
10446         test-framework-sh: distribute init.sh
10447         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10448         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10449         fail due to the lack of init.sh.
10450
10451         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10452         * modules/atexit-tests: Rather than listing tests/init.sh,
10453         now that there's a module for it, simply depend on that new module.
10454         * modules/closein-tests: Likewise.
10455         * modules/exclude-tests: Likewise.
10456         * modules/getcwd-tests: Likewise.
10457         * modules/perror-tests: Likewise.
10458         * modules/pread-tests: Likewise.
10459         * modules/pwrite-tests: Likewise.
10460         * modules/vc-list-files-tests: Likewise.
10461         * modules/verify-tests: Likewise.
10462         * modules/xalloc-die-tests: Likewise.
10463         * modules/xstrtoimax-tests: Likewise.
10464         * modules/xstrtol-tests: Likewise.
10465         * modules/xstrtoll-tests: Likewise.
10466         * modules/xstrtoumax-tests: Likewise.
10467         * modules/yesno-tests: Likewise.
10468
10469 2011-12-22  Jim Meyering  <meyering@redhat.com>
10470
10471         test-framework-sh: add minimal tests of init.sh's compare function
10472         * modules/test-framework-sh-tests: New file.
10473         * tests/test-init.sh: New file.
10474
10475         test-framework-sh: new module
10476         * modules/test-framework-sh: New file.
10477         * MODULES.html.sh (Support for maintaining and releasing projects):
10478         List it.
10479
10480         init.sh: do not emit simulated diff output to stderr
10481         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10482
10483 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10484
10485         .gitignore: ignore gnulib.dvi and regex.info
10486         * doc/.gitignore:add gnulib.dvi and regex.info
10487
10488 2011-12-22  Jim Meyering  <meyering@redhat.com>
10489
10490         init.sh: correct previous change
10491         * tests/init.sh (compare): My previous change was wrong.
10492         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10493
10494         init.sh: avoid unwarranted test failure when using "set -e"
10495         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10496         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10497         a use like "compare exp out" would get evoke an unconditional failure.
10498
10499 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10500
10501         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10502         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10503         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10504         autoreconf that did not.
10505         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10506         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10507
10508 2011-12-17  Jim Meyering  <meyering@redhat.com>
10509
10510         bootstrap: remove some now-unneeded code
10511         This script arose back when gnulib-tool was young.
10512         Since then, it has seen improvements that render much of this
10513         script unnecessary.  In particular, it can now make symlinks
10514         to the files it uses.  Also, I no longer see as much value in
10515         marking files as read-only via comments.
10516         If you relied on the symlink-creation feature of the preceding
10517         version of this script, you can get most of that functionality
10518         by adding the --symlink option to the definition of
10519         gnulib_tool_option_extras in your bootstrap.conf file.
10520         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10521         Run autopoint and libtoolize *before* gnulib-tool.
10522         After it, run an abbreviated autoreconf, rather than a loop around
10523         all tools.
10524         (slirp, bt_mark_as_generated): Remove functions.
10525
10526 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10527
10528         ftoastr: fix typo
10529         * lib/ftoastr.h: Fix misspelling in comment.
10530
10531 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10532
10533         * top/README-release: fix punctuation.
10534
10535 2011-12-17  Jim Meyering  <meyering@redhat.com>
10536
10537         bootstrap: correct the recent buildreq change
10538         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10539         had no effect.
10540         * build-aux/bootstrap (buildreq): Bracket each search term with
10541         "*...*", so that the shell "case" statement works as intended.
10542         Add comments.
10543
10544 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10545
10546         build: let bootstrap resort to wget when downloading .po files
10547         * build-aux/bootstrap (download_po_files): Fallback to wget when
10548         downloading the .po files via rsync fails.  This is necessary to
10549         bootstrap from behind a strict firewall.
10550
10551 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         stdint: don't assume C++11 when compiling with g++
10554         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10556         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10557         work also in C++ before C++11, as that improperly inhibits
10558         generating a substitute stdint.h for that case.
10559
10560 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10561
10562         alloca: protect comment from gnulib-tool
10563         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10564         that gnulib-tool doesn't think it's a license, and munge it to
10565         say "GCC version 3".
10566
10567 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10568
10569         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10570         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10571         $(abs_top_builddir) instead of $(top_builddir).
10572
10573 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10574
10575         strftime-tests: also test nanoseconds
10576         * tests/test-strftime.c (T): Add a test of %N.
10577
10578 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10579
10580         inttypes, stdint: add C++11 support
10581         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10582         when including inttypes.h and stdint.h.  Support this change to
10583         the standard.
10584         * doc/posix-headers/inttypes.texi (inttypes.h):
10585         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10586         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10587         Define if not defined already, for the benefit of pre-C++11 hosts.
10588         Define the standard format macros (e.g., PRId8) always.
10589         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10590         Likewise, if __cpluspus.  Define the standard constant and limit
10591         macros (e.g., INT8_C, INT8_MAX) always.
10592         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10593         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10594         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10595         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10596         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10597         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10598         Likewise.
10599
10600 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10601
10602         nonblocking tests: Fix test failure on Linux/PPC.
10603         Suggested by Prerna Saxena in
10604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10605         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10606         Set to 1100000.
10607
10608 2011-12-12  Jim Meyering  <meyering@redhat.com>
10609
10610         argmatch: don't hard-code `' when listing valid option arguments
10611         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10612         use the quote function to add quotes.  Use fputs rather than
10613         fprintf for the format string with no format directive.
10614
10615 2011-12-07  Eric Blake  <eblake@redhat.com>
10616
10617         bootstrap: detect tools required by gnulib-tool
10618         * build-aux/bootstrap (buildreq): Provide minimum implicit
10619         dependencies.
10620         * DEPENDENCIES: Mention patch as a prereq.
10621
10622 2011-12-04  Bruno Haible  <bruno@clisp.org>
10623
10624         sethostname: Port to Windows platforms.
10625         * lib/sethostname.c: Provide an alternate implementation for Windows
10626         platforms.
10627         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10628         (main): Skip the test if sethostname() fails with EPERM. On Windows
10629         platforms, don't check the result of gethostname().
10630
10631 2011-12-04  Bruno Haible  <bruno@clisp.org>
10632             Jim Meyering  <meyering@redhat.com>
10633
10634         tests: Avoid spurious error message on platforms without mktemp program.
10635         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10636
10637 2011-12-04  Bruno Haible  <bruno@clisp.org>
10638
10639         sethostname: Fix documentation.
10640         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10641         "not fixed" section.
10642
10643 2011-12-03  Bruno Haible  <bruno@clisp.org>
10644
10645         gnulib-tool: Verify that the License field is present and non-empty.
10646         * gnulib-tool (func_get_license_raw): New function, extracted from
10647         func_get_license.
10648         (func_get_license): Use it. Warn if the module is not a test module and
10649         has no license.
10650         Suggested by Jim Meyering.
10651
10652 2011-12-03  Bruno Haible  <bruno@clisp.org>
10653
10654         sethostname tests: Fix link error on mingw.
10655         * tests/test-sethostname1.c: New file, extracted from
10656         tests/test-sethostname.c.
10657         * tests/test-sethostname2.c: New file, extracted from
10658         tests/test-sethostname.c.
10659         * tests/test-sethostname.c: Remove file.
10660         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10661         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10662         (Depends-on): Add gethostname.
10663         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10664         Link the latter with $(GETHOSTNAME_LIB).
10665
10666         sethostname tests: Fix compilation error on mingw.
10667         * tests/test-sethostname.c: Don't include <sys/types.h>.
10668         (geteuid): Use a dummy value without uid_t.
10669         * modules/sethostname-tests (Depends-on): Remove sys_types.
10670
10671         sethostname tests: Avoid a gcc warning.
10672         * tests/test-sethostname.c (main): Remove an unused variable.
10673
10674         Tweak last commit.
10675         * modules/sethostname-tests (Files): Sort by decreasing importance.
10676         (configure.ac): Check for geteuid.
10677         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10678         the test when there's nothing to test. Drop an unnecessary cast.
10679         Improve an error message. Verify that the final sethostname() call
10680         succeeds.
10681
10682 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10683
10684         Add a test suite for the sethostname module.
10685         * modules/sethostname-tests: New file.  A test program
10686         for the sethostname module.
10687         * tests/test-sethostname.c: Likewise.
10688
10689 2011-12-03  Bruno Haible  <bruno@clisp.org>
10690
10691         Tweak last commit.
10692         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10693         Fix preprocessor directives indentation. Fix typos.
10694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10695         * modules/unistd (Makefile): Likewise.
10696
10697 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10698
10699         Integrate the sethostname module into unistd.
10700         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10701         into the unistd.h header.
10702         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10703         preprocessor directives.
10704         * modules/unistd: Setup the Makefile substitutions of the
10705         SETHOSTNAME preprocessor directives.
10706
10707 2011-12-03  Bruno Haible  <bruno@clisp.org>
10708
10709         Tweak last commit.
10710         * lib/sethostname.c: Don't include <string.h>.
10711         (sethostname): No need to copy the argument string to the stack. Don't
10712         call clearerr. Preserve errno when fprintf failed.
10713         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10714         Don't invoke AC_REPLACE_FUNCS.
10715         * modules/sethostname (Link): Remove empty section.
10716         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10717         failure problem.
10718
10719 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10720
10721         New module 'sethostname'.
10722         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10723         for systems that lack it.
10724         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10725         sethostname declaration and function.
10726         * modules/sethostname: New file.  Define the sethostname module.
10727
10728 2011-12-03  Bruno Haible  <bruno@clisp.org>
10729
10730         Tweak last commit.
10731         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10732
10733 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10734
10735         Split the HOST_NAME_MAX detection into a separate m4 macro.
10736         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10737         macro so it can be used by the pending sethostname module.
10738
10739 2011-12-03  Bruno Haible  <bruno@clisp.org>
10740
10741         Fix module descriptions syntax.
10742         * modules/argv-iter (License): Fix syntax.
10743         * modules/di-set (License): Likewise.
10744         * modules/ino-map (License): Likewise.
10745         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10746
10747 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10748
10749         stdalign: port to Clang 3.0
10750         Problem reported by Simon Josefsson in
10751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10752         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10753         which has <stdalign.h> but which does not define alignof.
10754         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10755
10756 2011-12-01  Eric Blake  <eblake@redhat.com>
10757
10758         mktempd: silence dd usage
10759         * build-aux/mktempd (rand_bytes): Silence dd.
10760
10761 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10762
10763         manywarnings: Don't mention gcc version in docstring.
10764         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10765         Jim Meyering <meyering@redhat.com>.
10766
10767 2011-11-30  Jim Meyering  <meyering@redhat.com>
10768
10769         hash: mark a few floating point constants with "f" suffix
10770         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10771         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10772         floating point constants with "f", since they're destined to be
10773         saved/used as "float"s.
10774
10775 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10776
10777         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10778         * tests/test-float.c (test_long_double): Correct and re-enable the
10779         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10780
10781 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10782
10783         Avoid subtracting two pointers that don't point into the same block.
10784         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10785         only pointers into the same memory block are subtracted. We cannot
10786         assume that sizeof (ptrdiff_t) == sizeof (void *).
10787
10788 2011-11-29  Eric Blake  <eblake@redhat.com>
10789
10790         maint.mk: add syntax check for use of compare from init.sh
10791         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10792         moved here from coreutils.
10793
10794         manywarnings: drop -Wunsuffixed-float-constants
10795         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10796         '1.0D', which is the only way to silence this warning for 'double'.
10797
10798 2011-11-29  Jim Meyering  <meyering@redhat.com>
10799
10800         hash: mark compute_bucket_size with the pure attribute
10801         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10802
10803         quotearg, propername: correct pragma guard expression
10804         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10805         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10806
10807 2011-11-28  Jim Meyering  <meyering@redhat.com>
10808
10809         propername: do not mark proper_name with the const attribute
10810         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10811         since it examines data pointed to by its parameter.
10812         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10813         the suggestion from -Wsuggest-attribute=const.
10814
10815         propername: mark one more function as const
10816         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10817
10818 2011-11-27  Jim Meyering  <meyering@redhat.com>
10819
10820         mark functions with const and pure attributes
10821
10822         Mark functions per suggestions from gcc-4.6 when using these options:
10823         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10824         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10825         Follow these guidelines: when possible, apply the attribute to
10826         an extern declaration, not to its definition.  Apply it to the
10827         definition only when the definition is static.
10828         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10829         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10830         * lib/base64.h (isbase64): Likewise.
10831         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10832         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10833         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10834         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10835         (c_tolower, c_toupper): Likewise.
10836         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10837         * lib/chdir-long.c (find_non_slash): Likewise.
10838         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10839         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10840         * lib/file-type.h (file_type): Likewise.
10841         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10842         * lib/filevercmp.c (verrevcmp): Likewise.
10843         * lib/freadahead.h (freadahead): Likewise.
10844         * lib/fts.c (fts_maxarglen): Likewise.
10845         * lib/hash-pjw.h (hash_pjw): Likewise.
10846         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10847         * lib/hash.c (is_prime, next_prime): Likewise.
10848         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10849         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10850         (hash_table_ok, hash_get_first, hash_string): Likewise.
10851         (compute_bucket_size): Likewise.
10852         * lib/i-ring.h (i_ring_empty): Likewise.
10853         * lib/isnan.c (isnanl): Likewise.
10854         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10855         * lib/memcasecmp.h (memcasecmp): Likewise.
10856         * lib/memchr2.h (memchr2): Likewise.
10857         * lib/memcmp2.h (memcmp2): Likewise.
10858         * lib/parse-datetime.y (lookup_zone): Likewise.
10859         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10860         [!WINDOWS_SOCKETS]: Likewise.
10861         * lib/strnlen1.h (strnlen1): Likewise.
10862         * lib/uniwidth.in.h (uc_width): Likewise.
10863         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10864         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10865         (quoting_options_from_style): Add a comment.
10866         * lib/propername.h (proper_name): Add a comment.
10867
10868 2011-11-27  Bruno Haible  <bruno@clisp.org>
10869
10870         Remove unused macros from !_LIBC code in glibc-borrowed files.
10871         * lib/fnmatch.c (STRCOLL): Remove macro.
10872         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10873         * lib/glob.c (__stat, __readdir64): Remove macros.
10874         * lib/tempname.c (__open64, __xstat64): Remove macros.
10875         Suggested by Paul Eggert.
10876
10877 2011-11-27  Bruno Haible  <bruno@clisp.org>
10878
10879         getcwd: Fix link error on MSVC 9.
10880         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10881
10882 2011-11-27  Bruno Haible  <bruno@clisp.org>
10883
10884         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10885         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10886         HAVE_OPENDIR is 0.
10887         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10888         HAVE_CLOSEDIR is 0.
10889         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10890         is 0.
10891         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10892
10893 2011-11-27  Bruno Haible  <bruno@clisp.org>
10894
10895         getcwd: Fix bug from 2011-08-17.
10896         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10897         platforms that need it.
10898         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10899         code of 4 to be a failure, not a success. This ensures that
10900         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10901
10902 2011-11-27  Bruno Haible  <bruno@clisp.org>
10903
10904         binary-io tests: Avoid test failure on mingw when libtool is used.
10905         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10906         Don't verify the size of t-bin-out1.tmp here.
10907         * tests/test-binary-io.sh: Verify it here.
10908         Reported by Simon Josefsson.
10909
10910 2011-11-26  Bruno Haible  <bruno@clisp.org>
10911
10912         Fix conflict between two instantiations of module 'unistd'.
10913         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10914         ${include_guard_prefix} also in the autoconf snippet.
10915         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10917         GNULIB_UNISTD_H_GETOPT.
10918         * modules/getopt-posix (configure.ac): Set the
10919         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10920         * modules/getopt-gnu (configure.ac): Likewise.
10921         * modules/unistd (Makefile.am): Change the substitution value of
10922         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10923         Reported by Simon Josefsson.
10924
10925 2011-11-25  Bruno Haible  <bruno@clisp.org>
10926
10927         pagealign_alloc: Doc and comments.
10928         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10929         module.
10930         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10931
10932 2011-11-25  Jim Meyering  <meyering@redhat.com>
10933
10934         test-update-copyright.sh: avoid false-positive failure
10935         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10936         around false positive failure on Cygwin/Windows.  The latter was
10937         matching erroneously-created files with names like
10938         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10939
10940 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10941
10942         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10943         * m4/valgrind-tests.m4: Check that the parameters that will be
10944         used works, not just a subset of them.  Reported by Bruno Haible
10945         <bruno@clisp.org>.
10946
10947 2011-11-24  Jim Meyering  <meyering@redhat.com>
10948
10949         test-stdalign.c: comment out long double tests
10950         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10951         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10952         error: '_Alignas' specifiers cannot reduce alignment of \
10953         'static_longdouble_alignas'.
10954
10955 2011-11-22  Jim Meyering  <meyering@redhat.com>
10956
10957         init.sh: make "compare /dev/null FILE" output more readable
10958         * tests/init.sh (compare_): Document the preferred order of arguments.
10959         (emit_diff_u_header_): New function.
10960         (compare_dev_null_): Emit a simulated diff, rather than just the
10961         contents of the unexpected file.  Suggestion from Bruno Haible.
10962
10963 2011-11-21  Jim Meyering  <meyering@redhat.com>
10964             Eric Blake  <eblake@redhat.com>
10965
10966         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10967         * tests/init.sh: Make our compare function slightly more portable.
10968         Reported by Bruno Haible in
10969         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10970
10971 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10972
10973         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10974         before using it, in code that ends up in config.h.
10975
10976 2011-11-20  Bruno Haible  <bruno@clisp.org>
10977
10978         getcwd: Work around getcwd bug on AIX 5..7.
10979         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10980         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10981         Use a different value for gl_cv_func_getcwd_path_max. Move the
10982         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10983         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10984         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10985         Define HAVE_MINIMALLY_WORKING_GETCWD.
10986         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10987         where it is not even minimally working, that is, on AIX.
10988         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10989         m4/getcwd-path-max.m4.
10990         (main): Update exit code computation.
10991         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10992         getcwd does not handle long file names.
10993
10994 2011-11-20  Bruno Haible  <bruno@clisp.org>
10995
10996         getcwd: Fix bug from 2009-09-10.
10997         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10998         like "no".
10999
11000 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11001
11002         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11003
11004 2011-11-20  Bruno Haible  <bruno@clisp.org>
11005
11006         fma tests: Avoid shadowing local variables.
11007         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11008         expected.
11009
11010 2011-11-20  Bruno Haible  <bruno@clisp.org>
11011
11012         copysignf tests: Fix.
11013         * tests/test-copysignf.c: Fix signature check.
11014
11015 2011-11-20  Bruno Haible  <bruno@clisp.org>
11016
11017         fma: Remove unused code.
11018         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11019         unused macros.
11020
11021 2011-11-20  Bruno Haible  <bruno@clisp.org>
11022
11023         sethostname: Fix doc about AIX.
11024         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11025         sethostname; it has it.
11026
11027         sethostname: Mention more portability problems.
11028         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11029         problem.
11030         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11031
11032 2011-11-19  Bruno Haible  <bruno@clisp.org>
11033
11034         Depend on module fcntl-h when AT_FDCWD is used.
11035         * modules/utimens (Depends-on): Add fcntl-h.
11036         * modules/areadlinkat (Depends-on): Likewise.
11037         * modules/areadlinkat-with-size (Depends-on): Likewise.
11038         * modules/faccessat (Depends-on): Likewise.
11039         * modules/fchmodat (Depends-on): Likewise.
11040         * modules/fchownat (Depends-on): Likewise.
11041         * modules/getcwd (Depends-on): Likewise.
11042         * modules/mkdirat (Depends-on): Likewise.
11043         * modules/mkfifoat (Depends-on): Likewise.
11044         * modules/readlinkat (Depends-on): Likewise.
11045         * modules/symlinkat (Depends-on): Likewise.
11046         * modules/dup2-tests (Depends-on): Likewise.
11047         * modules/fdutimensat-tests (Depends-on): Likewise.
11048         * modules/futimens-tests (Depends-on): Likewise.
11049
11050 2011-11-19  Bruno Haible  <bruno@clisp.org>
11051
11052         euidaccess: Update a comment.
11053         * lib/euidaccess.c: Update comment about platforms with faccessat.
11054
11055 2011-11-19  Bruno Haible  <bruno@clisp.org>
11056
11057         openat: Fix file list.
11058         * modules/openat (Files): Remove lib/at-func.c.
11059
11060 2011-11-19  Bruno Haible  <bruno@clisp.org>
11061
11062         fstatat: Simplify.
11063         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11064         gnulib should define rpl_fstatat, there is a
11065         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11066
11067 2011-11-19  Bruno Haible  <bruno@clisp.org>
11068
11069         Ensure 'inline' can be used in tests/test-utimens-common.h.
11070         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11071         * modules/futimens-tests (configure.ac): Likewise.
11072         * modules/utimens-tests (configure.ac): Likewise.
11073         * modules/utimensat-tests (configure.ac): Likewise.
11074
11075 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11076
11077         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11078         not hash_insert0.
11079         (hash_insert_if_absent): Doc fix.
11080
11081 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11082
11083         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11084
11085 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11086
11087         test-getcwd: disambiguate exit status
11088         * tests/test-getcwd.c (test_long_name): Return 0..7.
11089         (main): Exit with an unambiguous exit status.  The old
11090         code yielded a mysterious mixture of two failure codes.
11091
11092         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11093         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11094         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11095         rpl_fstatat or fstatat.  This should fix the other problem
11096         reported by Kai Habel in
11097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11098         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11100         and I reproduced it on a Solaris 8 host we still have in production.
11101
11102 2011-11-18  Jim Meyering  <meyering@redhat.com>
11103
11104         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11105         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11106         Add a sentence to the comment.
11107         (hash_insert0): New function that simply calls hash_insert_if_absent.
11108         * lib/hash.h (hash_insert_if_absent): Declare it.
11109         (hash_insert0): Add deprecation attribute.
11110         (_GL_ATTRIBUTE_DEPRECATED): Define.
11111         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11112         not hash_insert0.
11113         * NEWS: Mention it, even though it's not really an incompatible change.
11114
11115 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11116
11117         openat: avoid compilation failure due to lack of <errno.h> inclusion
11118         * lib/openat.c: Include <errno.h>.
11119
11120 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11121
11122         * modules/getcwd (Depends-on): Add fdopendir.
11123         This fixes one of the two problems reported by Kai Habel in
11124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11125
11126         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11127         stdalign problem reported by Ian Beckwith in
11128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11129         * modules/crypto/gc-arcfour (Depends-on):
11130         Depend conditionally on crypto/arcfour.
11131         * modules/crypto/gc-arctwo (Depends-on):
11132         Depend conditionally on crypto/arctwo.
11133         * modules/crypto/gc-des (Depends-on):
11134         Depend conditionally on crypto/des.
11135         * modules/crypto/gc-hmac-md5 (Depends-on):
11136         Depend conditionally on crypto/hmac-md5.
11137         * modules/crypto/gc-hmac-sha1 (Depends-on):
11138         Depend conditionally on crypto/hmac-sha1.
11139         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11140         * modules/crypto/gc-md4 (Depends-on):
11141         Depend conditionally on crypto/md4.
11142         * modules/crypto/gc-md5 (Depends-on):
11143         Depend conditionally on crypto/md5.
11144         * modules/crypto/gc-rijndael (Depends-on):
11145         Depend conditionally on crypto/rijndael.
11146         * modules/crypto/gc-sha1 (Depends-on):
11147         Depend conditionally on crypto/sha1.
11148         * modules/crypto/gc-arcfour:
11149         * modules/crypto/gc-arctwo:
11150         * modules/crypto/gc-des:
11151         * modules/crypto/gc-hmac-md5:
11152         * modules/crypto/gc-hmac-sha1:
11153         * modules/crypto/gc-md2:
11154         * modules/crypto/gc-md4:
11155         * modules/crypto/gc-md5:
11156         * modules/crypto/gc-rijndael:
11157         * modules/crypto/gc-sha1:
11158         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11159         now that the conditional dependencies do the work for us.
11160
11161 2011-11-17  Jim Meyering  <meyering@redhat.com>
11162
11163         tests: factor st_ctime-comparison out of two headers
11164         * tests/test-utimens-common.h (ctime_compare): Define.
11165         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11166         * tests/test-lutimens.h (test_lutimens): Likewise.
11167         * tests/test-utimens.h (test_utimens): Likewise.
11168
11169         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11170         Invoke the test program via an init.sh-using wrapper.
11171         * tests/test-getcwd.sh: New file.
11172         * modules/getcwd-tests (Files): Add it.
11173         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11174
11175 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11176
11177         gitlog-to-changelog: support multi-author commits.
11178         The FSF cares about keeping track of all authors of patches to its
11179         projects, but Git doesn't provide obvious support for multi-author
11180         changesets. Consensus seems to be forming around the use of extra
11181         Signed-off-by inspired lines in the log message formatted as
11182         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11183         multi-author commits between version control systems.
11184         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11185         log message and output in standard ChangeLog multi-author format.
11186         Reported by Peter Rosin <peda@lysator.liu.se>
11187
11188 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11189             Bruno Haible  <bruno@clisp.org>
11190
11191         Fix some modules' file list.
11192         * modules/fstatat (Files): Add m4/lstat.m4.
11193         * modules/openat (Files): Likewise.
11194         * modules/unlinkat (Files): Likewise.
11195
11196 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11197
11198         maint.mk: fix tight-scope.mk generation in VPATH builds.
11199         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11200         reference with $(srcdir) so that the file is found correctly even
11201         when running `make syntax-check' in a VPATH build.
11202
11203 2011-11-13  Bruno Haible  <bruno@clisp.org>
11204             Jim Meyering  <meyering@redhat.com>
11205
11206         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11207         * tests/init.sh (compare): Remove "No differences encountered" or
11208         synonymous output from the 'diff' program.
11209
11210 2011-11-13  Bruno Haible  <bruno@clisp.org>
11211
11212         Makefile: Tweak indentation.
11213         * Makefile: Use tab as first character in every line that contains rule
11214         commands.
11215
11216 2011-11-13  Bruno Haible  <bruno@clisp.org>
11217
11218         Syntax check for copyright statements.
11219         * check-copyright: New file.
11220         * Makefile (sc_check_copyright): New rule.
11221
11222 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11223
11224         * build-aux/git-version-gen: Add --prefix to configure the tag
11225         match string.
11226
11227 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11228
11229         * build-aux/git-version-gen: Add --help and --version.
11230
11231 2011-11-12  Jim Meyering  <meyering@redhat.com>
11232
11233         revamp the other test-exclude?.sh scripts to use init.sh, too
11234         * tests/test-exclude1.sh: Use init.sh.
11235         * tests/test-exclude2.sh: Likewise.
11236         * tests/test-exclude3.sh: Likewise.
11237         * tests/test-exclude4.sh: Likewise.
11238         * tests/test-exclude5.sh: Likewise.
11239         * tests/test-exclude6.sh: Likewise.
11240         * tests/test-exclude7.sh: Likewise.
11241         * tests/test-exclude8.sh: Likewise.
11242         * modules/exclude-tests (Files): List init.sh.
11243
11244         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11245         These shell scripts ignored failure of the binary test-exclude,
11246         so making the latter return 77 didn't cause them to be skipped.
11247         * tests/test-exclude5.sh: Exit with test-exclude's error status
11248         when that program fails.  Revamp to use init.sh.
11249         * tests/test-exclude2.sh: Likewise.
11250
11251         test-exclude: fix a typo
11252         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11253
11254 2011-11-11  Bruno Haible  <bruno@clisp.org>
11255
11256         obstack: Fix compilation error on MSVC 9.
11257         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11258
11259 2011-11-11  Jim Meyering  <meyering@redhat.com>
11260
11261         test-exclude: skip tests rather than failing on deficient systems
11262         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11263         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11264         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11265         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11266
11267 2011-11-10  Bruno Haible  <bruno@clisp.org>
11268
11269         ptsname_r test: Avoid gcc warning on glibc systems.
11270         * tests/test-ptsname_r.c (null_ptr): New function.
11271         (test_errors): Use it.
11272
11273 2011-11-10  Bruno Haible  <bruno@clisp.org>
11274
11275         ptsname_r: Avoid compilation error on OSF/1 5.1.
11276         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11278         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11279         function is not declared or incompatibly declared.
11280         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11281         * modules/ptsname_r (Depends-on, configure.ac): Update.
11282         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11283
11284 2011-11-10  Bruno Haible  <bruno@clisp.org>
11285
11286         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11287         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11288         When cross-compiling, guess yes on all platforms except AIX.
11289         Reported by Ludovic Courtès <ludo@gnu.org>.
11290
11291 2011-11-09  Bruno Haible  <bruno@clisp.org>
11292
11293         ptsname_r tests: Fix bugs.
11294         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11295         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11296
11297 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11298
11299         fstatat: work with cross-compilation
11300         Problem reported by Ludovic Courtès in
11301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11302         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11303         "cross-compiling" and assume the bug is present.  Replace
11304         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11305         an inverted sense, to be more conservative about our assumptions.
11306         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11307
11308 2011-11-09  Bruno Haible  <bruno@clisp.org>
11309
11310         Improve MODULES.html output.
11311         * modules/mkfifoat (Description): Use the word "function".
11312         * modules/readlinkat (Description): Likewise.
11313         * modules/symlinkat (Description): Likewise.
11314
11315 2011-11-09  Eric Blake  <eblake@redhat.com>
11316
11317         ptsname_r-tests: new test module
11318         * modules/ptsname_r-tests: New module.
11319         * tests/test-ptsname_r.c: New file.
11320
11321         ptsname_r: new module
11322         * modules/ptsname_r: New module.
11323         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11324         * lib/ptsname.c (__ptsname_r): Split...
11325         * lib/ptsname_r.c: ...into new file.
11326         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11327         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11328         * modules/stdlib (Makefile.am): Substitute witnesses.
11329         * lib/stdlib.in.h (ptsname_r): Declare it.
11330         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11331         * MODULES.html.sh (Misc): Likewise.
11332         * modules/ptsname (Depends-on): Alter dependency.
11333         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11334
11335 2011-11-09  Jim Meyering  <meyering@redhat.com>
11336
11337         announce-gen: be more concise when there's only one URL+tarball
11338         * build-aux/announce-gen (get_tool_versions): When you distribute
11339         only one type of tarball, combine the first two "Here are..."
11340         sections and make the key-checking grammar independent of
11341         how many tarballs there are.
11342
11343 2011-11-09  Eric Blake  <eblake@redhat.com>
11344
11345         openpty: provide a stub on mingw
11346         * lib/pty.in.h (includes): Provide forward declarations.
11347         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11348
11349         raise: fix mingw handling of SIGPIPE
11350         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11351
11352 2011-11-08  Bruno Haible  <bruno@clisp.org>
11353
11354         More conditional dependencies.
11355         * modules/faccessat (Depends-on): Add conditions.
11356         * modules/fchmodat (Depends-on): Likewise.
11357         * modules/fchownat (Depends-on): Likewise.
11358         * modules/fstatat (Depends-on): Likewise.
11359         * modules/mkfifoat (Depends-on): Likewise.
11360         * modules/readlinkat (Depends-on): Likewise.
11361         * modules/symlinkat (Depends-on): Likewise.
11362         * modules/unlinkat (Depends-on): Likewise.
11363         * modules/utimensat (Depends-on): Likewise.
11364         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11365         * modules/linkat (Depends-on): Refine the conditions.
11366         * modules/renameat (Depends-on): Likewise.
11367
11368 2011-11-08  Bruno Haible  <bruno@clisp.org>
11369
11370         faccessat: Move AC_LIBOBJ invocation to module description.
11371         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11372         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11373         invocation from here...
11374         * modules/faccessat (configure.ac): ... to here. Invoke
11375         gl_PREREQ_FACCESSAT.
11376
11377 2011-11-08  Bruno Haible  <bruno@clisp.org>
11378
11379         faccessat: Simplify autoconf macro.
11380         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11381         gl_FUNC_EUIDACCESS.
11382
11383 2011-11-08  Bruno Haible  <bruno@clisp.org>
11384
11385         renameat: Fix dependencies.
11386         * modules/renameat (Depends-on): Add stdbool.
11387
11388 2011-11-08  Bruno Haible  <bruno@clisp.org>
11389
11390         mkfifoat: Fix module description.
11391         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11392         not gl_UNISTD_MODULE_INDICATOR.
11393
11394 2011-11-08  Bruno Haible  <bruno@clisp.org>
11395
11396         fstatat: Remove unused dependency.
11397         * modules/fstatat (Depends-on): Remove fstat.
11398
11399 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11400
11401         GNUmakefile: behave when Makefile is missing.
11402         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11403
11404 2011-11-08  Bruno Haible  <bruno@clisp.org>
11405
11406         openat: Conditionalize dependencies.
11407         * lib/openat.c: Reduce the scope of some #includes.
11408         * modules/openat (Depends-on): Add conditions.
11409
11410 2011-11-07  Jim Meyering  <meyering@redhat.com>
11411
11412         maint.mk: extract GPG key ID without using a temporary file
11413         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11414         without using a temporary file.  Based on a suggestion from Werner Koch
11415         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11416
11417 2011-11-07  Eric Blake  <eblake@redhat.com>
11418
11419         grantpt: fix typo
11420         * lib/stdlib.in.h (grantpt): Check correct function.
11421
11422         maint.mk: silence new syntax check
11423         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11424
11425 2011-11-06  Bruno Haible  <bruno@clisp.org>
11426
11427         Doc about floating-point and math API.
11428         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11429         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11430
11431 2011-11-06  Bruno Haible  <bruno@clisp.org>
11432
11433         stdalign tests: Skip the test when compiled by Sun C.
11434         * tests/test-stdalign.c (main): Skip the test on Sun C.
11435
11436 2011-11-06  Bruno Haible  <bruno@clisp.org>
11437
11438         ansi-c++-opt: Complete the 2011-06-05 change.
11439         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11440         does not support namespaces, set the variable to "no", not to ":".
11441
11442 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11443
11444         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11445
11446 2011-11-06  Bruno Haible  <bruno@clisp.org>
11447
11448         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11449         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11450         (minus_zerol) [HP-UX]: New macro.
11451         (unary_minus) [HP-UX]: New function.
11452         (copysignl) [HP-UX]: Use unary_minus function.
11453
11454 2011-11-06  Bruno Haible  <bruno@clisp.org>
11455
11456         ldexp, ldexpf, ldexpl: Enhance tests.
11457         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11458         and tests/test-ldexpl.c.
11459         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11460         LDEXP, MIN_EXP, MAX_EXP): New macros.
11461         Include test-ldexp.h.
11462         (main): Just call test_function.
11463         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11464         infinity.h, nan.h.
11465         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11466         MAX_EXP): New macros.
11467         Include test-ldexp.h.
11468         (x, y): Remove variables.
11469         (main): Just call test_function.
11470         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11471         infinity.h, nan.h.
11472         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11473         MAX_EXP): New macros.
11474         Include test-ldexp.h.
11475         (x, y): Remove variables.
11476         (main): Just call test_function.
11477         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11478         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11479         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11480         (Depends-on): Add isnand-nolibm, signbit, float.
11481         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11482         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11483         (Depends-on): Add isnanf-nolibm, signbit, float.
11484
11485 2011-11-06  Bruno Haible  <bruno@clisp.org>
11486
11487         math tests: Cosmetics.
11488         * tests/test-math-c++.cc: Reorder declarations.
11489
11490 2011-11-05  Bruno Haible  <bruno@clisp.org>
11491
11492         fma*: Simplify test.
11493         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11494         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11495
11496         Tests for module 'fmal'.
11497         * modules/fmal-tests: New file.
11498         * tests/test-fmal1.c: New file.
11499         * tests/test-fmal2.c: New file.
11500
11501         New module 'fmal'.
11502         * lib/math.in.h (fmal): New declaration.
11503         * lib/fmal.c: New file.
11504         * m4/fmal.m4: New file.
11505         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11507         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11508         REPLACE_FMAL.
11509         * modules/fmal: New file.
11510         * doc/posix-functions/fmal.texi: Mention the new module and the various
11511         bugs.
11512
11513         Tests for module 'fmaf'.
11514         * modules/fmaf-tests: New file.
11515         * tests/test-fmaf1.c: New file.
11516         * tests/test-fmaf2.c: New file.
11517
11518         New module 'fmaf'.
11519         * lib/math.in.h (fmaf): New declaration.
11520         * lib/fmaf.c: New file.
11521         * m4/fmaf.m4: New file.
11522         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11524         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11525         REPLACE_FMAF.
11526         * modules/fmaf: New file.
11527         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11528         bugs.
11529
11530         Tests for module 'fma'.
11531         * modules/fma-tests: New file.
11532         * tests/test-fma1.c: New file.
11533         * tests/test-fma1.h: New file.
11534         * tests/test-fma2.c: New file.
11535         * tests/test-fma2.h: New file.
11536
11537         New module 'fma'.
11538         * lib/math.in.h (fma): New declaration.
11539         * lib/fma.c: New file.
11540         * m4/fma.m4: New file.
11541         * m4/fegetround.m4: New file.
11542         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11544         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11545         REPLACE_FMA.
11546         * modules/fma: New file.
11547         * doc/posix-functions/fma.texi: Mention the new module and the various
11548         bugs.
11549
11550         Extend gl_MATHFUNC.
11551         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11552         Support 'void' as argument type.
11553         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11554
11555 2011-11-05  Jim Meyering  <meyering@redhat.com>
11556
11557         maint.mk: also prohibit inclusion of dirent.h without use
11558         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11559
11560 2011-11-05  Bruno Haible  <bruno@clisp.org>
11561
11562         ldexpl tests: Avoid test failure on MSVC 9.
11563         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11564         value. Needed in order to enforce the conversion from a value greater
11565         than LDBL_MAX to Infinity.
11566
11567 2011-11-05  Bruno Haible  <bruno@clisp.org>
11568
11569         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11570         * modules/at-internal: New file, extracted from modules/openat.
11571         * modules/openat-h: New file.
11572         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11573         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11574         * modules/openat (Description): Add reference to POSIX function.
11575         (Files): Remove lib/openat.h, lib/openat-proc.c.
11576         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11577         intprops, unistd.
11578         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11579         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11580         gl_FCNTL_MODULE_INDICATOR.
11581         (Include): Remove unistd.h, openat.h.
11582         * modules/areadlinkat (Files): Add lib/at-func.c.
11583         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11584         openat-die, openat-h, save-cwd.
11585         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11586         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11587         openat-die, openat-h, save-cwd, unistd.
11588         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11589         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11590         openat-h, save-cwd. Remove fcntl-h, openat.
11591         * modules/fchmodat (Files): Remove lib/openat.h.
11592         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11593         openat, stdbool, unistd.
11594         * modules/fchownat (Files): Remove lib/openat.h.
11595         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11596         openat, stdbool, sys_stat.
11597         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11598         lib/openat-proc.c.
11599         (Depends-on): Add at-internal.
11600         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11601         * modules/fstatat (Files): Remove lib/openat.h.
11602         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11603         stdbool, unistd.
11604         * modules/fts (Depends-on): Add openat-h.
11605         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11606         openat.
11607         * modules/mkdirat (Files): Remove lib/openat.h.
11608         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11609         openat, stdbool, sys_stat.
11610         * modules/mkfifoat (Files): Add lib/at-func.c.
11611         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11612         openat-h, save-cwd. Remove fcntl-h, openat.
11613         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11614         * modules/readlinkat (Files): Add lib/at-func.c.
11615         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11616         openat-h, save-cwd. Remove fcntl-h, openat.
11617         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11618         openat.
11619         * modules/selinux-at (Files): Add lib/at-func.c.
11620         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11621         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11622         * modules/symlinkat (Files): Add lib/at-func.c.
11623         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11624         openat-h, save-cwd. Remove fcntl-h, openat.
11625         * modules/unlinkat (Files): Remove lib/openat.h.
11626         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11627         stdbool.
11628         * modules/utimensat (Files): Add lib/at-func.c.
11629         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11630         openat-die, openat-h, save-cwd.
11631         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11632         * modules/fdutimensat-tests (Depends-on): Add openat.
11633         * modules/fstatat-tests (Depends-on): Add openat-h.
11634         * modules/readlinkat-tests (Depends-on): Add openat.
11635         * modules/symlinkat-tests (Depends-on): Add openat.
11636
11637 2011-11-05  Bruno Haible  <bruno@clisp.org>
11638
11639         openat: Include <stdbool.h>.
11640         * lib/openat.c: Include <stdbool.h>.
11641
11642 2011-11-04  Bruno Haible  <bruno@clisp.org>
11643
11644         fchownat, renameat, unlinkat: Fix dependencies.
11645         * modules/fchownat (Depends-on): Add fstatat.
11646         * modules/renameat (Depends-on): Likewise.
11647         * modules/unlinkat (Depends-on): Likewise.
11648
11649 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11650
11651         openat: remove direct dependency on dirent
11652         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11653         and hasn't been needed ever since fdopendir was split into its own
11654         module on 2009-08-31.
11655         * modules/openat (Depends-on): Remove dirent.
11656
11657 2011-11-04  Bruno Haible  <bruno@clisp.org>
11658
11659         renameat: Optimize code size.
11660         * modules/renameat (configure.ac): Don't compile at-func2.c if
11661         REPLACE_RENAMEAT is 1.
11662
11663 2011-11-04  Bruno Haible  <bruno@clisp.org>
11664
11665         openat tests: Fix file list.
11666         * modules/openat-tests (Files): Add tests/test-open.h.
11667
11668 2011-11-04  Bruno Haible  <bruno@clisp.org>
11669
11670         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11671         * modules/fchmodat (Depends-on): Add openat-die.
11672         * modules/fchownat (Depends-on): Likewise.
11673         * modules/linkat (Depends-on): Likewise.
11674         * modules/renameat (Depends-on): Likewise.
11675         * modules/openat (Depends-on): Add dirent.
11676
11677 2011-11-04  Jim Meyering  <meyering@redhat.com>
11678
11679         at-func*.c: fix comments
11680         * lib/at-func2.c: Correct/improve first-line comment.
11681         * lib/at-func.c: Correct grammar in first-line comment.
11682
11683 2011-11-04  Bruno Haible  <bruno@clisp.org>
11684
11685         New module 'mkdirat', split off from module 'openat'.
11686         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11687         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11688         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11689         * modules/mkdirat: New file, extracted from modules/openat.
11690         * modules/openat (Files): Remove lib/mkdirat.c.
11691         (Depends-on): Remove mkdir.
11692         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11693         (Include): Remove <sys/stat.h>.
11694         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11695         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11696         tests/test-mkdir.h.
11697         (Depends-on): Remove ignore-value.
11698         (Makefile.am): Remove rules for test-mkdirat.
11699         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11700         of module 'openat'.
11701         * NEWS: Mention the change.
11702
11703 2011-11-04  Bruno Haible  <bruno@clisp.org>
11704
11705         closedir: Avoid warning on mingw.
11706         * lib/closedir.c: Include <unistd.h>.
11707
11708 2011-11-04  Bruno Haible  <bruno@clisp.org>
11709
11710         New module 'fstatat', split off from module 'openat'.
11711         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11712         defined.
11713         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11714         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11715         gl_FUNC_FSTATAT.
11716         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11717         * modules/fstatat: New file, extracted from modules/openat.
11718         * modules/openat (Files): Remove lib/fstatat.c.
11719         (Depends-on): Remove lstat.
11720         (configure.ac): Remove AC_LIBOBJ of fstatat.
11721         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11722         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11723         tests/test-lstat.h, tests/test-stat.h.
11724         (Depends-on): Remove getcwd-lgpl.
11725         (Makefile.am): Remove rules for test-fstatat.
11726         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11727         of module 'openat'.
11728         * NEWS: Mention the change.
11729         * modules/getcwd (Depends-on): Add fstatat.
11730         * modules/linkat (Depends-on): Likewise.
11731         * modules/mkfifoat-tests (Depends-on): Likewise.
11732         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11733
11734 2011-11-03  Bruno Haible  <bruno@clisp.org>
11735
11736         New module 'unlinkat', split off from module 'openat'.
11737         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11738         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11739         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11740         * modules/unlinkat: New file, extracted from modules/openat. Correct
11741         the dependency conditions.
11742         * modules/openat (Files): Remove lib/unlinkat.c.
11743         (Depends-on): Remove rmdir, unlink.
11744         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11745         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11746         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11747         tests/test-rmdir.h, tests/test-unlink.h.
11748         (Depends-on): Remove unlinkdir.
11749         (Makefile.am): Remove rules for test-unlinkat.
11750         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11751         of module 'openat'.
11752         * NEWS: Mention the change.
11753         * modules/linkat-tests (Depends-on): Add unlinkat.
11754         * modules/mkfifoat-tests (Depends-on): Likewise.
11755         * modules/readlinkat-tests (Depends-on): Likewise.
11756
11757 2011-11-02  Bruno Haible  <bruno@clisp.org>
11758
11759         New module 'fchmodat', split off from module 'openat'.
11760         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11761         defined.
11762         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11763         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11764         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11765         * modules/fchmodat: New file, extracted from modules/openat.
11766         * modules/openat (Files): Remove lib/fchmodat.c.
11767         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11768         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11769         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11770         (Makefile.am): Remove rules for test-fchmodat.
11771         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11772         of module 'openat'.
11773         * NEWS: Mention the change.
11774
11775 2011-11-02  Jim Meyering  <meyering@redhat.com>
11776
11777         putenv: indent #definition of "environ" to placate cppi
11778         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11779
11780         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11781         Git logs are often treated as immutable, because editing them
11782         changes the SHA1 checksums of all descendants.  Thus, errors in
11783         git logs tend to stay there forever.  However, when we generate
11784         a ChangeLog file -- typically for distribution -- from that git log,
11785         we can actually make corrections in the generated file.  The key
11786         lies in recording in machine-readable/applicable form the desired
11787         corrections.  See --help for description and an example.
11788         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11789         (usage): Describe it; alphabetize option descriptions.
11790         (main): Honor the new option, carefully.
11791
11792 2011-11-01  Jim Meyering  <meyering@redhat.com>
11793
11794         gitlog-to-changelog: avoid an infloop
11795         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11796         that ends up being empty.
11797
11798 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11799
11800         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11801         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11802         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11803         contains (possibly-quoted) backslashes.  This should avoid
11804         all-too-common shell bugs if COMPLICATED contains backslashes in
11805         the "wrong" places.  Reported by David Evans in
11806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11807         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11808         because we want ASCII ranges.  Is there some reason we don't use
11809         the C locale everywhere in this script?
11810         (func_module, top level): Avoid unwanted pathname expansion when
11811         $repo_url_prefix or $repo_url_suffix_repl contain shell
11812         metacharacters like '?' and '*'.
11813
11814 2011-11-01  Bruno Haible  <bruno@clisp.org>
11815
11816         fchownat: Improve description.
11817         * modules/fchownat (Description): Add link to function.
11818
11819 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11820
11821         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11822         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11824         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11825
11826 2011-11-01  Bruno Haible  <bruno@clisp.org>
11827
11828         alignof: Avoid collision with stdalign module.
11829         * lib/alignof.h (alignof): Remove macro.
11830         * NEWS: Mention the change.
11831         Reported by Paul Eggert.
11832
11833 2011-11-01  Bruno Haible  <bruno@clisp.org>
11834
11835         New module 'fchownat', split off from module 'openat'.
11836         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11837         defined.
11838         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11839         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11840         invoke gl_FUNC_FCHOWNAT.
11841         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11842         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11843         * modules/fchownat: New file, extracted from modules/openat.
11844         * modules/openat (Files): Remove lib/fchownat.c.
11845         (Depends-on): Remove lchown.
11846         (configure.ac): Remove AC_LIBOBJ of fchownat.
11847         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11848         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11849         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11850         (Depends-on): Remove mgetgroups, usleep, stat-time.
11851         (configure.ac): Remove test for getegid.
11852         (Makefile.am): Remove rules for test-fchownat.
11853         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11854         of module 'openat'.
11855         * NEWS: Mention the change.
11856
11857 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11858
11859         stdalign: port better to MSVC and to Sun C 5.11
11860         This fixes some of the problems reported by Bruno Haible in
11861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11862         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11863         shortcomings of MSVC and of Sun C 5.11.
11864         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11865         around __declspec arg.
11866         * modules/stdalign-tests (Files): Add tests/macros.h.
11867         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11868         Include macros.h, for ASSERT.
11869         (DECLARE_ALIGNED): Remove.
11870         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11871         to catch bug), and to 1 if not (simplifies the rest of the code).
11872         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11873         (CHECK_AUTO): Remove.
11874         (CHECK_ALIGNED): Check only the alignment of the static vars,
11875         since auto var alignment isn't supported by Sun C 5.11.
11876         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11877         ASSERT failures are easier to diagnose.
11878
11879 2011-10-31  Bruno Haible  <bruno@clisp.org>
11880
11881         doc about some IRIX 5.3 problems.
11882         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11883         on IRIX 5.3.
11884         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11885         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11886         5.3.
11887         * doc/posix-functions/grantpt.texi: Likewise.
11888         * doc/posix-functions/unlockpt.texi: Likewise.
11889         * doc/posix-functions/lgamma.texi: Likewise.
11890         * doc/posix-functions/nextafter.texi: Likewise.
11891         * doc/posix-functions/remainder.texi: Likewise.
11892         * doc/posix-functions/select.texi: Mention misplaced declaration on
11893         IRIX 5.3.
11894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11895
11896 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11897
11898         gitlog-to-changelog: fix git-log invocation.
11899         git-log mishandles date strings before 1970-01-01 UTC, and there is
11900         no use to specify --since=1970-01-01 by default anyway.
11901         * build-aux/gitlog-to-changelog: By default, when no --since option
11902         was given, do not specify explicit --since option to git-log.
11903
11904 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11905
11906         gitlog-to-changelog: new option --append-dot.
11907         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11908         first non-blank line of each commit message terminated with a dot.
11909
11910 2011-10-30  Bruno Haible  <bruno@clisp.org>
11911
11912         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11913         * lib/ffsl.h: Include <config.h>.
11914         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11915
11916 2011-10-30  Jim Meyering  <meyering@redhat.com>
11917
11918         GNUmakefile: reenable "make syntax-check" for most projects
11919         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11920         build-aux variable", "syntax-check" would do nothing but succeed with
11921         the "No version control files detected..." diagnostic (unless you
11922         happened to override _build-aux via cfg.mk).
11923         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11924         to precede inclusion of maint.mk.  Otherwise, these variables would
11925         be used undefined in any project that does not override the default.
11926
11927 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11928
11929         gitlog-to-changelog: treat a message with only blank lines as empty.
11930         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11931         trailing blank lines before the code that issues a warning about an
11932         empty commit message.
11933
11934 2011-10-30  Jim Meyering  <meyering@redhat.com>
11935
11936         test-parse-datetime.c: avoid new DST-related false positive test failure
11937         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11938         based on the time/date we'll convert, not the current time.
11939         Otherwise, the moment we cross a DST boundary like today's in
11940         Europe, (CEST to CET), that offset ends up being one hour off.
11941
11942 2011-10-27  Bruno Haible  <bruno@clisp.org>
11943
11944         fstat: Tweak documentation.
11945         * modules/fstat (Description): More precise description.
11946
11947 2011-10-27  Bruno Haible  <bruno@clisp.org>
11948
11949         Update documentation regarding 'largefile' module.
11950         * doc/posix-functions/fstat.texi: Tweak wording.
11951         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11952         problems with huge directories and/or small ino_t types.
11953         * doc/posix-functions/readdir.texi: Likewise.
11954         * doc/posix-functions/rewinddir.texi: Likewise.
11955
11956 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11957
11958         maint.mk: don't maintain a second build-aux variable.
11959         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11960         depends on GNUmakefile, which already maintains a cfg.mk
11961         overridable $(_build-aux) for projects with a non-standard
11962         build-aux directory location, although without the $(srcdir)
11963         prefix.  Use that variable consistently instead of introducing a
11964         second one.  Adjust all call sites.
11965
11966 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11967
11968         Add stdalign module and use it in other modules.
11969         This is based on a previous proposal by Bruno Haible
11970         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11971
11972         stdalign: new module
11973         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11974         * modules/stdalign: New files.
11975         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11976         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11977
11978         stdalign-tests: new module
11979         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11980
11981         argp: use stdalign
11982         * lib/argp-parse.c: Include <stdalign.h>.
11983         (alignof): Remove.
11984         * modules/argp (Depends-on): Add stdalign.
11985
11986         crypto libraries: use stdalign
11987         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11988         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11989         Do not include <stdlib.h> twice, in md4.c.
11990         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11991         because we are accessing a pointer's bit-pattern, not a size.
11992         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11993         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11994         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11995         * modules/crypto/sha512: Likewise.
11996
11997         sys_socket: use stdalign, not alignof
11998         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11999         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12000
12001 2011-10-27  Bruno Haible  <bruno@clisp.org>
12002
12003         raise test: Avoid a test failure on Linux/MIPS.
12004         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12005         because 99 is a valid signal on Linux/MIPS.
12006
12007 2011-10-27  Bruno Haible  <bruno@clisp.org>
12008
12009         nonblocking tests: Fix test failure on Linux/MIPS.
12010         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12011         Set to 270000.
12012
12013 2011-10-27  Bruno Haible  <bruno@clisp.org>
12014
12015         utimensat: Work around problem on Linux/hppa.
12016         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12017         values.
12018         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12019
12020 2011-10-25  Jim Meyering  <meyering@redhat.com>
12021
12022         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12023         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12024         after symbols like NULL, size_t, etc.
12025         Reported by Alfred M. Szmidt.
12026
12027         maint.mk: exempt ENODATA from a syntax-check rule
12028         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12029         from the sc_prohibit_always-defined_macros syntax-check rule.
12030         Add a comment.  See this for more details:
12031         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12032
12033 2011-10-23  Jim Meyering  <meyering@redhat.com>
12034
12035         fts: close parent dir FD before returning from post-traversal fts_read
12036         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12037         unlink A, even though an FD open on A remained.  This is suboptimal
12038         (holding a file descriptor open longer than needed), but otherwise not
12039         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12040         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12041         that represents a real problem: it causes the removal of A to fail
12042         with e.g., "rm: cannot remove `A': Device or resource busy"
12043
12044         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12045         directory file descriptors.  After completing the final, FTS_DP,
12046         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12047         cache, but then proceeded to add a new FD to it via the subsequent
12048         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12049         final file descriptor would be closed only via fts_close's call to
12050         fd_ring_clear.  Now, it is usually closed earlier, via the final
12051         FTS_DP-returning fts_read call.
12052         * lib/fts.c (restore_initial_cwd): New function, converted from
12053         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12054         Update callers.
12055         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12056         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12057
12058 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12059             Bruno Haible  <bruno@clisp.org>
12060             Jim Meyering  <jim@meyering.net>
12061
12062         readme-release: improve safety of release prep instructions.
12063         * README-release: Don't git pull all branches when only master
12064         is needed for the release process.
12065         Run make maintainer-clean before changing trees and merging.
12066         Don't try to run ./configure right after git pull in case files
12067         that influence the bootstrap process have changed, move the
12068         ./configure step to after running ./bootstrap.
12069         Don't bootstrap "one last time"... it's the first time!
12070
12071 2011-10-22  Bruno Haible  <bruno@clisp.org>
12072
12073         errno, strerror-override: Support for MSVC 10.
12074         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12075         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12076         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12077         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12078         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12079         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12080         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12081         Assign values compatible with MSVC 10.
12082         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12083         New macros.
12084         (GNULIB_defined_EWINSOCK): New macro.
12085         * lib/strerror-override.c (strerror_override): Update accordingly.
12086         * lib/strerror-override.h: Likewise.
12087         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12088         longer equal to the corresponding errno value.
12089         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12090
12091 2011-10-22  Bruno Haible  <bruno@clisp.org>
12092
12093         perror: Recognize when test program crashes.
12094         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12095         strerror, set gl_cv_func_perror_works to no.
12096         Reported by Daniel Richard G. <skunk@iskunk.org>.
12097
12098         perror: Fix indentation.
12099         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12100
12101 2011-10-22  Bruno Haible  <bruno@clisp.org>
12102
12103         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12104         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12105         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12106         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12107         functions, not as a macro.
12108         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12109         macros.
12110         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12111         absence of macro.
12112         Suggested by Eric Blake.
12113         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12114
12115 2011-10-21  Bruno Haible  <bruno@clisp.org>
12116
12117         relocatable-prog-wrapper: Don't leave object files behind.
12118         * build-aux/install-reloc: Re-synchronize list of .o files to be
12119         removed with list of compilation units.
12120
12121 2011-10-20  Bruno Haible  <bruno@clisp.org>
12122
12123         openpty, posix_openpt: Remove code duplication.
12124         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12125         * lib/openpty.c: Include <stdlib.h>.
12126         (openpty): Use posix_openpt on all platforms except IRIX.
12127         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12128
12129 2011-10-20  Bruno Haible  <bruno@clisp.org>
12130
12131         unlockpt: Detect invalid argument.
12132         * lib/unlockpt.c: Include <fcntl.h>.
12133         (unlockpt): Check whether fd is valid, using fcntl().
12134         * modules/unlockpt (Depends-on): Add fcntl-h.
12135
12136 2011-10-20  Bruno Haible  <bruno@clisp.org>
12137
12138         openpty: Avoid compilation error on AIX 6.1.
12139         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12140
12141 2011-10-20  Bruno Haible  <bruno@clisp.org>
12142
12143         posix_openpt: Support for OpenBSD.
12144         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12145         (posix_openpt) [OpenBSD]: New code.
12146         * lib/grantpt.c: Include <fcntl.h>.
12147         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12148         * modules/grantpt (Depends-on): Add fcntl-h.
12149
12150 2011-10-20  Bruno Haible  <bruno@clisp.org>
12151
12152         posix_openpt test: Coding style.
12153         * tests/test-posix_openpt.c: Use GNU coding style.
12154
12155 2011-10-20  Bruno Haible  <bruno@clisp.org>
12156
12157         grantpt: Support --avoid=pt_chown.
12158         * modules/grantpt (Files): Add lib/pty-private.h.
12159
12160 2011-10-20  Bruno Haible  <bruno@clisp.org>
12161
12162         posix_openpt: Fix autoconf macro.
12163         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12164         unneeded check for _getpty.
12165
12166 2011-10-20  Bruno Haible  <bruno@clisp.org>
12167
12168         openpty: Update comments.
12169         * lib/openpty.c: Add comments about Minix.
12170
12171 2011-10-19  Eric Blake  <eblake@redhat.com>
12172
12173         openpty: relax license
12174         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12175
12176         pt_chown: use configmake to simplify build
12177         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12178
12179         ptsname and others: relax license
12180         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12181         * modules/unlockpt (License): Likewise.
12182         * modules/pt_chown (License): Likewise.
12183         * modules/ptsname (License): Likewise.
12184         * modules/ttyname_r (License): Likewise.
12185
12186 2011-10-19  Jim Meyering  <meyering@redhat.com>
12187
12188         posix_openpt: remove spurious #endif
12189         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12190
12191 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12192
12193         maint.mk: Respect $(build_aux) in web-manual rule.
12194         * top/maint.mk (web-manual): Find gen-announce script in user's
12195         $(build_aux) directory instead of hard-coding 'build-aux'.
12196
12197 2011-10-19  Bruno Haible  <bruno@clisp.org>
12198
12199         posix_openpt: Fix compilation error.
12200         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12201         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12202         Mention the openpty module as an alternative.
12203
12204 2011-10-19  Bruno Haible  <bruno@clisp.org>
12205
12206         Support for old NeXTstep 3.3 frexp().
12207         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12208         execution time of the test to 5 seconds.
12209         Reported by Daniel Richard G. <skunk@iskunk.org>.
12210
12211 2011-10-19  Bruno Haible  <bruno@clisp.org>
12212
12213         Support for old NeXTstep 3.3 sed.
12214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12215         part, use /.../, not \|...|. Escape periods in the header file name.
12216         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12217         Reported by Daniel Richard G. <skunk@iskunk.org>.
12218
12219 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12220
12221         Support for old NeXTstep 3.3 gcc.
12222         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12223         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12224         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12225         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12226         * lib/regex.h (_Restrict_arr_): Likewise.
12227         * lib/regex_internal.h (re_token_t): Likewise.
12228         * lib/regexec.c (check_node_accept_bytes): Likewise.
12229         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12230
12231 2011-10-18  Eric Blake  <eblake@redhat.com>
12232
12233         posix_openpt: new module
12234         * modules/posix_openpt: New module.
12235         * m4/posix_openpt.m4: New file.
12236         * lib/posix_openpt.c: Likewise.
12237         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12238         (gl_STDLIB_H_DEFAULTS): Set defaults.
12239         * modules/stdlib (Makefile.am): Substitute macros.
12240         * lib/stdlib.in.h (posix_openpt): Declare.
12241         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12242         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12243         * modules/posix_openpt-tests: New test module.
12244         * tests/test-posix_openpt.c: New test.
12245
12246 2011-10-15  Bruno Haible  <bruno@clisp.org>
12247
12248         xstrtoll: Fix compilation failure.
12249         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12250         from lib/strtol.c.
12251         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12252         some platforms.
12253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12254
12255 2011-10-15  Bruno Haible  <bruno@clisp.org>
12256
12257         vasnprintf: Optimize bit search operation.
12258         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12260         gl_DOUBLE_EXPONENT_LOCATION.
12261         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12262         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12263         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12264         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12265         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12266         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12267         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12268         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12269         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12270
12271 2011-10-15  Bruno Haible  <bruno@clisp.org>
12272
12273         vasnprintf: Fix comments.
12274         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12275
12276 2011-10-14  Bruno Haible  <bruno@clisp.org>
12277
12278         Tests for module 'integer_length_ll'.
12279         * modules/integer_length_ll-tests: New file.
12280         * tests/test-integer_length_ll.c: New file.
12281
12282         New module 'integer_length_ll'.
12283         * lib/integer_length_ll.c: New file.
12284         * modules/integer_length_ll: New file.
12285
12286 2011-10-14  Bruno Haible  <bruno@clisp.org>
12287
12288         Tests for module 'integer_length_l'.
12289         * modules/integer_length_l-tests: New file.
12290         * tests/test-integer_length_l.c: New file.
12291
12292         New module 'integer_length_l'.
12293         * lib/integer_length_l.c: New file.
12294         * modules/integer_length_l: New file.
12295
12296 2011-10-14  Bruno Haible  <bruno@clisp.org>
12297
12298         Tests for module 'integer_length'.
12299         * modules/integer_length-tests: New file.
12300         * tests/test-integer_length.c: New file.
12301
12302         New module 'integer_length'.
12303         * lib/integer_length.h: New file.
12304         * lib/integer_length.c: New file.
12305         * modules/integer_length: New file.
12306
12307 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12308
12309         popen: Fix dependency conditions.
12310         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12311
12312 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12313
12314         perror: Fix autoconf test.
12315         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12316         <stdlib.h> and <string.h>.
12317
12318 2011-10-14  Bruno Haible  <bruno@clisp.org>
12319
12320         ffsl: Optimize on 64-bit platforms.
12321         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12322         unrolling.
12323
12324 2011-10-13  Bruno Haible  <bruno@clisp.org>
12325
12326         ffsl: Optimize on 32-bit platforms.
12327         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12328         use ffs() without a loop.
12329
12330         ffsl, ffsll: Optimize for GCC.
12331         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12332         * lib/ffsl.c (GCC_BUILTIN): New macro.
12333         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12334
12335 2011-10-13  Bruno Haible  <bruno@clisp.org>
12336
12337         ffs, bcopy, memset: Support symbol renaming via config.h.
12338         * lib/ffs.c: Include <config.h>.
12339         * lib/bcopy.c: Likewise.
12340         * lib/memset.c: Likewise.
12341
12342 2011-10-10  Bruno Haible  <bruno@clisp.org>
12343
12344         atanl: Simplify for platforms where 'long double' == 'double'.
12345         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12346         alternative implementation.
12347         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12348         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12349         * modules/atanl (Depends-on): Add atan. Update conditions.
12350
12351 2011-10-10  Bruno Haible  <bruno@clisp.org>
12352
12353         acosl: Simplify for platforms where 'long double' == 'double'.
12354         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12355         alternative implementation.
12356         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12357         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12358         * modules/acosl (Depends-on): Add acos. Update conditions.
12359
12360 2011-10-10  Bruno Haible  <bruno@clisp.org>
12361
12362         asinl: Simplify for platforms where 'long double' == 'double'.
12363         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12364         alternative implementation.
12365         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12366         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12367         * modules/asinl (Depends-on): Add asin. Update conditions.
12368
12369 2011-10-10  Bruno Haible  <bruno@clisp.org>
12370
12371         tanl: Simplify for platforms where 'long double' == 'double'.
12372         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12373         implementation.
12374         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12375         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12376         * modules/tanl (Depends-on): Add tan. Update conditions.
12377         (configure.ac): Don't compile trigl.c if
12378         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12379
12380 2011-10-10  Bruno Haible  <bruno@clisp.org>
12381
12382         cosl: Simplify for platforms where 'long double' == 'double'.
12383         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12384         implementation.
12385         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12386         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12387         * modules/cosl (Depends-on): Add cos. Update conditions.
12388         (configure.ac): Don't compile sincosl.c and trigl.c if
12389         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12390
12391 2011-10-10  Bruno Haible  <bruno@clisp.org>
12392
12393         sinl: Simplify for platforms where 'long double' == 'double'.
12394         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12395         implementation.
12396         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12397         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12398         * modules/sinl (Depends-on): Add sin. Update conditions.
12399         (configure.ac): Don't compile sincosl.c and trigl.c if
12400         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12401
12402 2011-10-10  Bruno Haible  <bruno@clisp.org>
12403
12404         logl: Simplify for platforms where 'long double' == 'double'.
12405         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12406         implementation.
12407         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12408         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12409         * modules/logl (Depends-on): Add log. Update conditions.
12410
12411 2011-10-10  Bruno Haible  <bruno@clisp.org>
12412
12413         expl: Simplify for platforms where 'long double' == 'double'.
12414         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12415         implementation.
12416         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12417         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12418         * modules/expl (Depends-on): Add exp. Update conditions.
12419
12420 2011-10-10  Bruno Haible  <bruno@clisp.org>
12421
12422         sqrtl: Simplify for platforms where 'long double' == 'double'.
12423         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12424         alternative implementation.
12425         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12426         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12427         * modules/sqrtl (Depends-on): Update conditions.
12428
12429 2011-10-10  Bruno Haible  <bruno@clisp.org>
12430
12431         ldexpl: Simplify for platforms where 'long double' == 'double'.
12432         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12433         alternative implementation.
12434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12435         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12436         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12437
12438 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12439
12440         ffsll: set correct witness
12441         * modules/ffsll (configure.ac): Fix typo.
12442
12443 2011-10-10  Bruno Haible  <bruno@clisp.org>
12444
12445         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12446         * lib/printf-frexpl.c: Include <config.h>.
12447         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12448         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12449         second time.
12450         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12451         gl_LONG_DOUBLE_VS_DOUBLE.
12452         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12453         conditions.
12454
12455 2011-10-10  Bruno Haible  <bruno@clisp.org>
12456
12457         frexpl: Simplify for platforms where 'long double' == 'double'.
12458         * lib/frexpl.c: Include <config.h>.
12459         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12460         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12461         time.
12462         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12463         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12464         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12465         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12466         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12467         conditions.
12468
12469 2011-10-10  Jim Meyering  <meyering@redhat.com>
12470
12471         test-renameat: don't leave behind a temporary file
12472         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12473           ERROR: files left in build directory after distclean:
12474           ./gltests/test-renameat.too
12475           make[1]: *** [distcleancheck] Error 1
12476         Reported by Tom G. Christensen.
12477
12478 2011-10-09  Bruno Haible  <bruno@clisp.org>
12479
12480         rint: Determine RINT_LIBM correctly on AIX 7.
12481         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12482         directly, not only through a function pointer. Also accept an optional
12483         4th argument with extra code.
12484         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12485         rintf() call by gcc when optimizing.
12486
12487         mathfunc.m4: Refactor.
12488         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12489         m4 variable.
12490
12491 2011-10-09  Bruno Haible  <bruno@clisp.org>
12492
12493         rintl: Simplify for platforms where 'long double' == 'double'.
12494         * lib/rintl.c: Include <config.h>.
12495         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12496         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12497         time.
12498         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12499         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12500         * modules/rintl (Depends-on): Add rint. Update conditions.
12501
12502 2011-10-09  Bruno Haible  <bruno@clisp.org>
12503
12504         roundl: Simplify for platforms where 'long double' == 'double'.
12505         * lib/roundl.c: Include <config.h>.
12506         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12507         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12508         time.
12509         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12510         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12511         * modules/roundl (Depends-on): Add round. Update conditions.
12512
12513 2011-10-09  Bruno Haible  <bruno@clisp.org>
12514
12515         truncl: Simplify for platforms where 'long double' == 'double'.
12516         * lib/truncl.c: Include <config.h>.
12517         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12518         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12519         time.
12520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12521         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12522         * modules/truncl (Depends-on): Add trunc. Update conditions.
12523
12524 2011-10-09  Bruno Haible  <bruno@clisp.org>
12525
12526         ceill: Simplify for platforms where 'long double' == 'double'.
12527         * lib/ceill.c: Include <config.h>.
12528         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12529         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12530         time.
12531         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12532         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12533         * modules/ceill (Depends-on): Add ceil. Update conditions.
12534
12535 2011-10-09  Bruno Haible  <bruno@clisp.org>
12536
12537         floorl: Simplify for platforms where 'long double' == 'double'.
12538         * lib/floorl.c: Include <config.h>.
12539         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12540         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12541         time.
12542         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12543         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12544         * modules/floorl (Depends-on): Add floor. Update conditions.
12545
12546 2011-10-09  Bruno Haible  <bruno@clisp.org>
12547
12548         rint: Fix ordering constraints.
12549         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12550         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12551         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12552
12553 2011-10-09  Bruno Haible  <bruno@clisp.org>
12554
12555         copysignl: Simplify for platforms where 'long double' == 'double'.
12556         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12557         alternative.
12558         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12559         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12560         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12561
12562 2011-10-09  Bruno Haible  <bruno@clisp.org>
12563
12564         Tests for module 'rintl'.
12565         * modules/rintl-tests: New file.
12566         * tests/test-rintl.c: New file.
12567
12568         New module 'rintl'.
12569         * lib/math.in.h (rintl): New declaration.
12570         * lib/rintl.c: New file.
12571         * m4/rintl.m4: New file.
12572         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12574         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12575         * modules/rintl: New file.
12576         * tests/test-math-c++.cc: Check the declaration of rintl.
12577         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12578         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12579         * doc/posix-functions/rintl.texi: Mention the new module.
12580
12581 2011-10-09  Bruno Haible  <bruno@clisp.org>
12582
12583         Tests for module 'rintf'.
12584         * modules/rintf-tests: New file.
12585         * tests/test-rintf.c: New file.
12586
12587         New module 'rintf'.
12588         * lib/math.in.h (rintf): New declaration.
12589         * lib/rintf.c: New file.
12590         * m4/rintf.m4: New file.
12591         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12593         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12594         * modules/rintf: New file.
12595         * tests/test-math-c++.cc: Check the declaration of rintf.
12596         * doc/posix-functions/rintf.texi: Mention the new module.
12597
12598 2011-10-09  Bruno Haible  <bruno@clisp.org>
12599
12600         rint: Support for MSVC.
12601         * lib/math.in.h (rint): New declaration.
12602         * lib/rint.c: New file.
12603         * m4/rint.m4: New file.
12604         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12606         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12607         * modules/rint (Description): Fix.
12608         (Files): Add lib/rint.c, m4/rint.m4.
12609         (Depends-on): Add math.
12610         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12611         gl_MATH_MODULE_INDICATOR.
12612         * tests/test-math-c++.cc: Check the declaration of rint.
12613         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12614         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12615         * doc/posix-functions/rint.texi: Mention the replacement provided by
12616         the module.
12617
12618         rint tests: More tests.
12619         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12620         minus-zero.h, infinity.h, nan.h.
12621         (main): Skip the test if the current rounding mode is not standard. Add
12622         tests for negative numbers, minus zero, infinity, NaN.
12623         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12624         tests/nan.h.
12625         (Depends-on): Add isnand-nolibm.
12626
12627 2011-10-09  Bruno Haible  <bruno@clisp.org>
12628
12629         Tests for module 'copysignl'.
12630         * modules/copysignl-tests: New file.
12631         * tests/test-copysignl.c: New file.
12632
12633         New module 'copysignl'.
12634         * lib/math.in.h (copysignl): New declaration.
12635         * lib/copysignl.c: New file.
12636         * m4/copysignl.m4: New file.
12637         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12639         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12640         HAVE_COPYSIGNL.
12641         * modules/copysignl: New file.
12642         * tests/test-math-c++.cc: Check the declaration of copysignl.
12643         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12644         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12645         * doc/posix-functions/copysignl.texi: Mention the new module.
12646
12647 2011-10-09  Bruno Haible  <bruno@clisp.org>
12648
12649         Tests for module 'copysignf'.
12650         * modules/copysignf-tests: New file.
12651         * tests/test-copysignf.c: New file.
12652
12653         New module 'copysignf'.
12654         * lib/math.in.h (copysignf): New declaration.
12655         * lib/copysignf.c: New file.
12656         * m4/copysignf.m4: New file.
12657         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12659         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12660         HAVE_COPYSIGNF.
12661         * modules/copysignf: New file.
12662         * tests/test-math-c++.cc: Check the declaration of copysignf.
12663         * doc/posix-functions/copysignf.texi: Mention the new module.
12664
12665 2011-10-09  Bruno Haible  <bruno@clisp.org>
12666
12667         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12668         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12669         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12670         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12671         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12672         gl_SIGNAL_H_DEFAULTS.
12673
12674 2011-10-09  Bruno Haible  <bruno@clisp.org>
12675
12676         poll: Make macro safer.
12677         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12678         ac_cv_header_poll_h is not set.
12679
12680 2011-10-09  Bruno Haible  <bruno@clisp.org>
12681
12682         copysign: Provide replacement.
12683         * lib/math.in.h (copysign): New declaration.
12684         * lib/copysign.c: New file.
12685         * m4/copysign.m4: New file.
12686         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12688         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12689         HAVE_COPYSIGN.
12690         * modules/copysign (Description): Clarify.
12691         (Files): Add lib/copysign.c, m4/copysign.m4.
12692         (Depends-on): Add math, signbit.
12693         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12694         gl_MATH_MODULE_INDICATOR.
12695         * tests/test-math-c++.cc: Check the declaration of copysign.
12696         * doc/posix-functions/copysign.texi: Mention the effects of the module
12697         on Minix and MSVC.
12698
12699 2011-10-09  Bruno Haible  <bruno@clisp.org>
12700
12701         isinf: Ensure macro on AIX 5.1.
12702         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12703         macro.
12704         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12705
12706 2011-10-09  Bruno Haible  <bruno@clisp.org>
12707
12708         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12709         * modules/snprintf-posix-tests (configure.ac): Require
12710         gl_LONG_DOUBLE_VS_DOUBLE.
12711         * modules/sprintf-posix-tests (configure.ac): Likewise.
12712         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12713         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12714         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12715         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12716         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12717         tests on platforms where 'long double' is the same as 'double'.
12718         * tests/test-sprintf-posix.h (test_function): Likewise.
12719         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12720         * tests/test-vasprintf-posix.c (test_function): Likewise.
12721
12722         *printf: Fix for platforms where 'long double' == 'double'.
12723         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12724         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12725         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12726         * modules/fprintf-posix (Files): Likewise.
12727         * modules/obstack-printf-posix (Files): Likewise.
12728         * modules/snprintf-posix (Files): Likewise.
12729         * modules/sprintf-posix (Files): Likewise.
12730         * modules/vasnprintf (Files): Likewise.
12731         * modules/vasnprintf-posix (Files): Likewise.
12732         * modules/vasprintf-posix (Files): Likewise.
12733         * modules/vdprintf-posix (Files): Likewise.
12734         * modules/vfprintf-posix (Files): Likewise.
12735         * modules/vsnprintf-posix (Files): Likewise.
12736         * modules/vsprintf-posix (Files): Likewise.
12737         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12738         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12739         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12740         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12741         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12742         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12743         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12744
12745         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12746         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12747         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12748         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12749         'long double'.
12750         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12751
12752         isinf: Fix for platforms where 'long double' == 'double'.
12753         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12754         Don't blindly assume 80-bit 'long double'.
12755
12756         isfinite: Fix for platforms where 'long double' == 'double'.
12757         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12758         Don't blindly assume 80-bit 'long double'.
12759
12760         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12761         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12762         * modules/isfinite-tests (configure.ac): Require
12763         gl_LONG_DOUBLE_VS_DOUBLE.
12764         * modules/isinf-tests (configure.ac): Likewise.
12765         * modules/isnan-tests (configure.ac): Likewise.
12766         * modules/isnanl-tests (configure.ac): Likewise.
12767         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12768         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12769         tests on platforms where 'long double' is the same as 'double'.
12770         * tests/test-isinf.c (test_isinfl): Likewise.
12771         * tests/test-isnan.c (test_long_double): Likewise.
12772         * tests/test-isnanl.h (main): Likewise.
12773
12774 2011-10-08  Bruno Haible  <bruno@clisp.org>
12775
12776         Tests for module 'tanhf'.
12777         * modules/tanhf-tests: New file.
12778         * tests/test-tanhf.c: New file.
12779
12780         New module 'tanhf'.
12781         * lib/math.in.h (tanhf): New declaration.
12782         * lib/tanhf.c: New file.
12783         * m4/tanhf.m4: New file.
12784         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12786         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12787         * modules/tanhf: New file.
12788         * tests/test-math-c++.cc: Check the declaration of tanhf.
12789         * doc/posix-functions/tanhf.texi: Mention the new module.
12790
12791         tanh: Use a .m4 file.
12792         * m4/tanh.m4: New file.
12793         * modules/tanh (Files): Add it.
12794         (configure.ac): Just invoke gl_FUNC_TANH.
12795
12796 2011-10-08  Bruno Haible  <bruno@clisp.org>
12797
12798         Tests for module 'coshf'.
12799         * modules/coshf-tests: New file.
12800         * tests/test-coshf.c: New file.
12801
12802         New module 'coshf'.
12803         * lib/math.in.h (coshf): New declaration.
12804         * lib/coshf.c: New file.
12805         * m4/coshf.m4: New file.
12806         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12808         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12809         * modules/coshf: New file.
12810         * tests/test-math-c++.cc: Check the declaration of coshf.
12811         * doc/posix-functions/coshf.texi: Mention the new module.
12812
12813         cosh: Use a .m4 file.
12814         * m4/cosh.m4: New file.
12815         * modules/cosh (Files): Add it.
12816         (configure.ac): Just invoke gl_FUNC_COSH.
12817
12818 2011-10-08  Bruno Haible  <bruno@clisp.org>
12819
12820         Tests for module 'sinhf'.
12821         * modules/sinhf-tests: New file.
12822         * tests/test-sinhf.c: New file.
12823
12824         New module 'sinhf'.
12825         * lib/math.in.h (sinhf): New declaration.
12826         * lib/sinhf.c: New file.
12827         * m4/sinhf.m4: New file.
12828         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12830         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12831         * modules/sinhf: New file.
12832         * tests/test-math-c++.cc: Check the declaration of sinhf.
12833         * doc/posix-functions/sinhf.texi: Mention the new module.
12834
12835         sinh: Use a .m4 file.
12836         * m4/sinh.m4: New file.
12837         * modules/sinh (Files): Add it.
12838         (configure.ac): Just invoke gl_FUNC_SINH.
12839
12840 2011-10-08  Bruno Haible  <bruno@clisp.org>
12841
12842         Tests for module 'atan2f'.
12843         * modules/atan2f-tests: New file.
12844         * tests/test-atan2f.c: New file.
12845
12846         New module 'atan2f'.
12847         * lib/math.in.h (atan2f): New declaration.
12848         * lib/atan2f.c: New file.
12849         * m4/atan2f.m4: New file.
12850         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12852         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12853         * modules/atan2f: New file.
12854         * tests/test-math-c++.cc: Check the declaration of atan2f.
12855         * doc/posix-functions/atan2f.texi: Mention the new module.
12856
12857         atan2: Use a .m4 file.
12858         * m4/atan2.m4: New file.
12859         * modules/atan2 (Files): Add it.
12860         (configure.ac): Just invoke gl_FUNC_ATAN2.
12861
12862 2011-10-08  Bruno Haible  <bruno@clisp.org>
12863
12864         Tests for module 'atanf'.
12865         * modules/atanf-tests: New file.
12866         * tests/test-atanf.c: New file.
12867
12868         New module 'atanf'.
12869         * lib/math.in.h (atanf): New declaration.
12870         * lib/atanf.c: New file.
12871         * m4/atanf.m4: New file.
12872         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12874         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12875         * modules/atanf: New file.
12876         * tests/test-math-c++.cc: Check the declaration of atanf.
12877         * doc/posix-functions/atanf.texi: Mention the new module.
12878
12879         atan: Use a .m4 file.
12880         * m4/atan.m4: New file.
12881         * modules/atan (Files): Add it.
12882         (configure.ac): Just invoke gl_FUNC_ATAN.
12883
12884 2011-10-08  Bruno Haible  <bruno@clisp.org>
12885
12886         Tests for module 'acosf'.
12887         * modules/acosf-tests: New file.
12888         * tests/test-acosf.c: New file.
12889
12890         New module 'acosf'.
12891         * lib/math.in.h (acosf): New declaration.
12892         * lib/acosf.c: New file.
12893         * m4/acosf.m4: New file.
12894         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12896         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12897         * modules/acosf: New file.
12898         * tests/test-math-c++.cc: Check the declaration of acosf.
12899         * doc/posix-functions/acosf.texi: Mention the new module.
12900
12901         acos: Use a .m4 file.
12902         * m4/acos.m4: New file.
12903         * modules/acos (Files): Add it.
12904         (configure.ac): Just invoke gl_FUNC_ACOS.
12905
12906 2011-10-08  Bruno Haible  <bruno@clisp.org>
12907
12908         Tests for module 'asinf'.
12909         * modules/asinf-tests: New file.
12910         * tests/test-asinf.c: New file.
12911
12912         New module 'asinf'.
12913         * lib/math.in.h (asinf): New declaration.
12914         * lib/asinf.c: New file.
12915         * m4/asinf.m4: New file.
12916         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12918         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12919         * modules/asinf: New file.
12920         * tests/test-math-c++.cc: Check the declaration of asinf.
12921         * doc/posix-functions/asinf.texi: Mention the new module.
12922
12923         asin: Use a .m4 file.
12924         * m4/asin.m4: New file.
12925         * modules/asin (Files): Add it.
12926         (configure.ac): Just invoke gl_FUNC_ASIN.
12927
12928 2011-10-08  Bruno Haible  <bruno@clisp.org>
12929
12930         Tests for module 'tanf'.
12931         * modules/tanf-tests: New file.
12932         * tests/test-tanf.c: New file.
12933
12934         New module 'tanf'.
12935         * lib/math.in.h (tanf): New declaration.
12936         * lib/tanf.c: New file.
12937         * m4/tanf.m4: New file.
12938         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12940         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12941         * modules/tanf: New file.
12942         * tests/test-math-c++.cc: Check the declaration of tanf.
12943         * doc/posix-functions/tanf.texi: Mention the new module.
12944
12945         tan: Use a .m4 file.
12946         * m4/tan.m4: New file.
12947         * modules/tan (Files): Add it.
12948         (configure.ac): Just invoke gl_FUNC_TAN.
12949
12950 2011-10-08  Bruno Haible  <bruno@clisp.org>
12951
12952         Tests for module 'cosf'.
12953         * modules/cosf-tests: New file.
12954         * tests/test-cosf.c: New file.
12955
12956         New module 'cosf'.
12957         * lib/math.in.h (cosf): New declaration.
12958         * lib/cosf.c: New file.
12959         * m4/cosf.m4: New file.
12960         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12962         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12963         * modules/cosf: New file.
12964         * tests/test-math-c++.cc: Check the declaration of cosf.
12965         * doc/posix-functions/cosf.texi: Mention the new module.
12966
12967         cos: Use a .m4 file.
12968         * m4/cos.m4: New file.
12969         * modules/cos (Files): Add it.
12970         (configure.ac): Just invoke gl_FUNC_COS.
12971
12972 2011-10-08  Bruno Haible  <bruno@clisp.org>
12973
12974         Tests for module 'sinf'.
12975         * modules/sinf-tests: New file.
12976         * tests/test-sinf.c: New file.
12977
12978         New module 'sinf'.
12979         * lib/math.in.h (sinf): New declaration.
12980         * lib/sinf.c: New file.
12981         * m4/sinf.m4: New file.
12982         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12984         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12985         * modules/sinf: New file.
12986         * tests/test-math-c++.cc: Check the declaration of sinf.
12987         * doc/posix-functions/sinf.texi: Mention the new module.
12988
12989         sin: Use a .m4 file.
12990         * m4/sin.m4: New file.
12991         * modules/sin (Files): Add it.
12992         (configure.ac): Just invoke gl_FUNC_SIN.
12993
12994 2011-10-08  Bruno Haible  <bruno@clisp.org>
12995
12996         Tests for module 'powf'.
12997         * modules/powf-tests: New file.
12998         * tests/test-powf.c: New file.
12999
13000         New module 'powf'.
13001         * lib/math.in.h (powf): New declaration.
13002         * lib/powf.c: New file.
13003         * m4/powf.m4: New file.
13004         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13006         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13007         * modules/powf: New file.
13008         * tests/test-math-c++.cc: Check the declaration of powf.
13009         * doc/posix-functions/powf.texi: Mention the new module.
13010
13011         pow: Use a .m4 file.
13012         * m4/pow.m4: New file.
13013         * modules/pow (Files): Add it.
13014         (configure.ac): Just invoke gl_FUNC_POW.
13015
13016 2011-10-08  Bruno Haible  <bruno@clisp.org>
13017
13018         Tests for module 'log10f'.
13019         * modules/log10f-tests: New file.
13020         * tests/test-log10f.c: New file.
13021
13022         New module 'log10f'.
13023         * lib/math.in.h (log10f): New declaration.
13024         * lib/log10f.c: New file.
13025         * m4/log10f.m4: New file.
13026         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13028         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13029         * modules/log10f: New file.
13030         * tests/test-math-c++.cc: Check the declaration of log10f.
13031         * doc/posix-functions/log10f.texi: Mention the new module.
13032
13033         log10: Use a .m4 file.
13034         * m4/log10.m4: New file.
13035         * modules/log10 (Files): Add it.
13036         (configure.ac): Just invoke gl_FUNC_LOG10.
13037
13038 2011-10-08  Bruno Haible  <bruno@clisp.org>
13039
13040         Tests for module 'logf'.
13041         * modules/logf-tests: New file.
13042         * tests/test-logf.c: New file.
13043
13044         New module 'logf'.
13045         * lib/math.in.h (logf): New declaration.
13046         * lib/logf.c: New file.
13047         * m4/logf.m4: New file.
13048         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13050         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13051         * modules/logf: New file.
13052         * tests/test-math-c++.cc: Check the declaration of logf.
13053         * doc/posix-functions/logf.texi: Mention the new module.
13054
13055         log: Use a .m4 file.
13056         * m4/log.m4: New file.
13057         * modules/log (Files): Add it.
13058         (configure.ac): Just invoke gl_FUNC_LOG.
13059
13060 2011-10-08  Bruno Haible  <bruno@clisp.org>
13061
13062         Tests for module 'expf'.
13063         * modules/expf-tests: New file.
13064         * tests/test-expf.c: New file.
13065
13066         New module 'expf'.
13067         * lib/math.in.h (expf): New declaration.
13068         * lib/expf.c: New file.
13069         * m4/expf.m4: New file.
13070         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13072         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13073         * modules/expf: New file.
13074         * tests/test-math-c++.cc: Check the declaration of expf.
13075         * doc/posix-functions/expf.texi: Mention the new module.
13076
13077         exp: Use a .m4 file.
13078         * m4/exp.m4: New file.
13079         * modules/exp (Files): Add it.
13080         (configure.ac): Just invoke gl_FUNC_EXP.
13081
13082 2011-10-08  Bruno Haible  <bruno@clisp.org>
13083
13084         Tests for module 'sqrtf'.
13085         * modules/sqrtf-tests: New file.
13086         * tests/test-sqrtf.c: New file.
13087
13088         New module 'sqrtf'.
13089         * lib/math.in.h (sqrtf): New declaration.
13090         * lib/sqrtf.c: New file.
13091         * m4/sqrtf.m4: New file.
13092         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13094         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13095         * modules/sqrtf: New file.
13096         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13097         * doc/posix-functions/sqrtf.texi: Mention the new module.
13098
13099 2011-10-08  Bruno Haible  <bruno@clisp.org>
13100
13101         Tests: Avoid link failures w.r.t. libintl.
13102         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13103         $(LIBINTL).
13104         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13105         $(LIBINTL).
13106         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13107         against $(LIBINTL).
13108         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13109         $(LIBINTL).
13110         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13111         $(LIBINTL).
13112         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13113
13114 2011-10-08  Bruno Haible  <bruno@clisp.org>
13115
13116         pow tests: Defeat compiler optimizations.
13117         * tests/test-pow.c (main): Assign arguments to x and y before use.
13118
13119 2011-10-08  Bruno Haible  <bruno@clisp.org>
13120
13121         gnulib-tool: Improve last commit.
13122         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13123         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13124         ignore dependencies that are not among the modules list.
13125
13126 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13127
13128         gnulib-tool: don't follow dependencies to avoided modules
13129         This fixes a bug that is related to the previous one.
13130         * gnulib-tool (func_modules_transitive_closure)
13131         (func_emit_autoconf_snippets):
13132         Check whether a dependency is acceptable before using it.
13133         (--extract-dependencies): Report an error if --avoid is also used,
13134         since this combination of options is not yet supported.
13135
13136         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13137         Problem reported by Peter Dyballa in
13138         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13139         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13140         when echoing "$condition".
13141
13142 2011-10-07  Bruno Haible  <bruno@clisp.org>
13143
13144         Fix documentation about math functions on MacOS X.
13145         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13146         MacOS X 10.5.
13147         * doc/posix-functions/fdim.texi: Likewise.
13148         * doc/posix-functions/feclearexcept.texi: Likewise.
13149         * doc/posix-functions/fegetenv.texi: Likewise.
13150         * doc/posix-functions/fegetround.texi: Likewise.
13151         * doc/posix-functions/feholdexcept.texi: Likewise.
13152         * doc/posix-functions/feraiseexcept.texi: Likewise.
13153         * doc/posix-functions/fesetenv.texi: Likewise.
13154         * doc/posix-functions/fesetround.texi: Likewise.
13155         * doc/posix-functions/fetestexcept.texi: Likewise.
13156         * doc/posix-functions/feupdateenv.texi: Likewise.
13157         * doc/posix-functions/fmax.texi: Likewise.
13158         * doc/posix-functions/fmin.texi: Likewise.
13159         * doc/posix-functions/log2.texi: Likewise.
13160         * doc/posix-functions/modff.texi: Likewise.
13161         * doc/posix-functions/nan.texi: Likewise.
13162         * doc/posix-functions/nanf.texi: Likewise.
13163         * doc/posix-functions/nextafterf.texi: Likewise.
13164         * doc/posix-functions/remquo.texi: Likewise.
13165
13166 2011-10-07  Bruno Haible  <bruno@clisp.org>
13167
13168         modff: Drop assumption about library that defines modff.
13169         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13170         AC_CHECK_FUNCS.
13171         * modules/modff (Files): Add m4/mathfunc.m4.
13172
13173 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13174
13175         raise tests: Avoid a GCC warning.
13176         * tests/test-raise.c (handler): Use _Noreturn.
13177
13178 2011-10-07  Bruno Haible  <bruno@clisp.org>
13179
13180         Tests for module 'ldexpf'.
13181         * modules/ldexpf-tests: New file.
13182         * tests/test-ldexpf.c: New file.
13183
13184         New module 'ldexpf'.
13185         * lib/math.in.h (ldexpf): New declaration.
13186         * lib/ldexpf.c: New file.
13187         * m4/ldexpf.m4: New file.
13188         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13190         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13191         * modules/ldexpf: New file.
13192         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13193         * doc/posix-functions/ldexpf.texi: Mention the new module.
13194
13195 2011-10-06  Bruno Haible  <bruno@clisp.org>
13196
13197         frexpf: Work around problems on IRIX and mingw.
13198         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13200         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13201         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13202         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13203         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13204         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13205
13206 2011-10-06  Bruno Haible  <bruno@clisp.org>
13207
13208         fabsf: Drop assumption about library that defines fabsf.
13209         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13210         AC_CHECK_FUNCS.
13211         * modules/fabsf (Files): Add m4/mathfunc.m4.
13212
13213 2011-10-06  Bruno Haible  <bruno@clisp.org>
13214
13215         frexpf: Drop assumption about library that defines frexpf.
13216         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13217         'int *', 'float *', 'long double *', 'float', 'long double'.
13218         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13219         AC_CHECK_FUNCS.
13220         * modules/frexpf (Files): Add m4/mathfunc.m4.
13221
13222         Tests for module 'frexpf'.
13223         * modules/frexpf-tests: New file.
13224         * tests/test-frexpf.c: New file.
13225
13226         New module 'frexpf'.
13227         * lib/math.in.h (frexpf): New declaration.
13228         * lib/frexpf.c: New file.
13229         * m4/frexpf.m4: New file.
13230         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13232         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13233         * modules/frexpf: New file.
13234         * tests/test-math-c++.cc: Check the declaration of frexpf.
13235         * doc/posix-functions/frexpf.texi: Mention the new module.
13236
13237 2011-10-06  Bruno Haible  <bruno@clisp.org>
13238
13239         math: Sort function declarations of math.in.h.
13240         * lib/math.in.h (frexp, logb): Move declarations.
13241
13242 2011-10-05  Bruno Haible  <bruno@clisp.org>
13243
13244         Tests for module 'modff'.
13245         * modules/modff-tests: New file.
13246         * tests/test-modff.c: New file.
13247
13248         New module 'modff'.
13249         * lib/math.in.h (modff): New declaration.
13250         * lib/modff.c: New file.
13251         * m4/modff.m4: New file.
13252         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13254         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13255         * modules/modff: New file.
13256         * tests/test-math-c++.cc: Check the declaration of modff.
13257         * doc/posix-functions/modff.texi: Mention the new module.
13258
13259         modf tests: Make test sharper.
13260         * tests/test-modf.c (main): Strengthen upper bound.
13261
13262         modf: Use a .m4 file.
13263         * m4/modf.m4: New file.
13264         * modules/modf (Files): Add it.
13265         (configure.ac): Just invoke gl_FUNC_MODF.
13266
13267 2011-10-05  Bruno Haible  <bruno@clisp.org>
13268
13269         Tests for module 'fmodf'.
13270         * modules/fmodf-tests: New file.
13271         * tests/test-fmodf.c: New file.
13272
13273         New module 'fmodf'.
13274         * lib/math.in.h (fmodf): New declaration.
13275         * lib/fmodf.c: New file.
13276         * m4/fmodf.m4: New file.
13277         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13279         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13280         * modules/fmodf: New file.
13281         * tests/test-math-c++.cc: Check the declaration of fmodf.
13282         * doc/posix-functions/fmodf.texi: Mention the new module.
13283
13284         fmod: Use a .m4 file.
13285         * m4/fmod.m4: New file.
13286         * modules/fmod (Files): Add it.
13287         (configure.ac): Just invoke gl_FUNC_FMOD.
13288
13289 2011-10-05  Bruno Haible  <bruno@clisp.org>
13290
13291         Tests for module 'fabsf'.
13292         * modules/fabsf-tests: New file.
13293         * tests/test-fabsf.c: New file.
13294
13295         New module 'fabsf'.
13296         * lib/math.in.h (fabsf): New declaration.
13297         * lib/fabsf.c: New file.
13298         * m4/fabsf.m4: New file.
13299         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13301         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13302         * modules/fabsf: New file.
13303         * tests/test-math-c++.cc: Check the declaration of fabsf.
13304         * doc/posix-functions/fabsf.texi: Mention the new module.
13305
13306         fabs: Use a .m4 file.
13307         * m4/fabs.m4: New file.
13308         * modules/fabs (Files): Add it.
13309         (configure.ac): Just invoke gl_FUNC_FABS.
13310
13311 2011-10-05  Jim Meyering  <meyering@redhat.com>
13312
13313         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13314         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13315         ls -lL regression introduced in coreutils-8.12, it does so at the
13316         cost of an additional stat call in the common case.  Besides, now
13317         that the kernel change that prompted commit 95f7c57f has been reverted
13318         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13319         we have no use for commit 95f7c57f, "file-has-acl: use
13320         acl_extended_file_nofollow if available".
13321
13322 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13323
13324         file-has-acl: revert unintended change in behavior of ls -L
13325         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13326         derived from...
13327         (file_has_acl): ...code here.  Call it.
13328         This problem was introduced with 2011-07-22 commit 95f7c57f,
13329         "file-has-acl: use acl_extended_file_nofollow if available".
13330         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13331
13332 2011-10-03  Bruno Haible  <bruno@clisp.org>
13333
13334         poll: Avoid link errors on MSVC.
13335         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13336         * modules/poll (Depends-on): Add sockets.
13337         (Link): New section.
13338         * NEWS: Mention the change.
13339         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13340         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13341         $(LIB_POLL) instead of $(LIBSOCKET).
13342
13343 2011-10-03  Bruno Haible  <bruno@clisp.org>
13344
13345         sys_select tests: Fix link error on MSVC 9.
13346         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13347         with $(LIB_SELECT) instead of $(LIBSOCKET).
13348
13349 2011-10-03  Bruno Haible  <bruno@clisp.org>
13350
13351         sys_select: Fix compilation error on mingw.
13352         * lib/sys_select.in.h: On native Windows, include <io.h>.
13353
13354 2011-10-03  Bruno Haible  <bruno@clisp.org>
13355
13356         wmemset: Support for MSVC.
13357         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13358         whether wmemset() exists.
13359
13360 2011-10-03  Bruno Haible  <bruno@clisp.org>
13361
13362         wmemmove: Support for MSVC.
13363         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13364         whether wmemmove() exists.
13365
13366 2011-10-03  Bruno Haible  <bruno@clisp.org>
13367
13368         wmemcpy: Support for MSVC.
13369         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13370         whether wmemcpy() exists.
13371
13372 2011-10-03  Bruno Haible  <bruno@clisp.org>
13373
13374         wmemcmp: Support for MSVC.
13375         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13376         whether wmemcmp() exists.
13377
13378 2011-10-03  Bruno Haible  <bruno@clisp.org>
13379
13380         wmemchr: Support for MSVC.
13381         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13382         whether wmemchr() exists.
13383
13384 2011-10-03  Bruno Haible  <bruno@clisp.org>
13385
13386         glthread/*, strsignal: Support for MSVC.
13387         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13388         including <winsock.h> on MSVC 9.
13389         * lib/glthread/lock.h: Likewise.
13390         * lib/glthread/thread.h: Likewise.
13391         * lib/glthread/tls.h: Likewise.
13392         * lib/glthread/yield.h: Likewise.
13393         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13394         if HAVE_UNISTD_H is false.
13395         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13396
13397 2011-10-03  Bruno Haible  <bruno@clisp.org>
13398
13399         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13400         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13401         Set to 100000.
13402
13403 2011-10-03  Bruno Haible  <bruno@clisp.org>
13404
13405         acl: Fix specification.
13406         * lib/file-has-acl.c (file_has_acl): Fix specification.
13407
13408 2011-10-03  Bruno Haible  <bruno@clisp.org>
13409
13410         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13411         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13412         (compute_curr_prefix, shared_library_fullname,
13413         find_shared_library_fullname, get_shared_library_fullname, relocate):
13414         Use it together with PIC && INSTALLDIR.
13415         Reported by <jojelino@gmail.com>
13416         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13417
13418 2011-10-01  Jim Meyering  <meyering@redhat.com>
13419
13420         maint.mk: adjust a release-related rule not to require use of gzip
13421         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13422         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13423         projects that build only .tar.xz files.  Also fix an erroneous test.
13424
13425         test-linkat: don't leave behind a temporary file
13426         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13427         Otherwise, coreutils' "make distcheck" would fail with this:
13428           Only in /c/cu/tests/torture/coreutils/test/\
13429             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13430           make[2]: *** [my-distcheck] Error 1
13431
13432         float, math: add omitted file
13433         * lib/itold.c: Add file, required for yesterday's float change.
13434
13435 2011-10-01  Bruno Haible  <bruno@clisp.org>
13436
13437         isinf: Fix for OpenBSD/x86.
13438         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13439         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13440         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13441
13442 2011-10-01  Bruno Haible  <bruno@clisp.org>
13443
13444         isfinite: Fix syntax error in configure test.
13445         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13446
13447         isfinite: Fix typo.
13448         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13449         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13450
13451 2011-10-01  Bruno Haible  <bruno@clisp.org>
13452
13453         nonblocking tests: Fix test failure on Linux/IA-64.
13454         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13455         Set to 270000.
13456
13457 2011-10-01  Bruno Haible  <bruno@clisp.org>
13458
13459         mkfifoat tests: Fix a test failure on mingw.
13460         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13461         with error ENOSYS.
13462
13463 2011-09-30  Bruno Haible  <bruno@clisp.org>
13464
13465         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13466         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13467         'long double'. Set REPLACE_ITOLD.
13468         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13469         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13470         * lib/itold.c: New file.
13471         * modules/float (Files): Add lib/itold.c.
13472         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13473         (Makefile.am): Substitute REPLACE_ITOLD.
13474         * modules/math (Depends-on): Add float.
13475         (Makefile.am): Substitute REPLACE_ITOLD.
13476         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13477         * doc/posix-headers/math.texi: Likewise.
13478         * doc/posix-functions/logl.texi: Likewise.
13479
13480 2011-09-30  Bruno Haible  <bruno@clisp.org>
13481
13482         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13483         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13484         Set to 140000.
13485
13486 2011-09-30  Bruno Haible  <bruno@clisp.org>
13487
13488         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13489         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13490         invocation, say "right after AC_PROG_CC_STDC", not "right after
13491         AC_PROG_CC".
13492         Reported by Gary V. Vaughan <gary@gnu.org>.
13493
13494 2011-09-30  Bruno Haible  <bruno@clisp.org>
13495
13496         Centralize C99 requirement.
13497         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13498         * modules/stdarg (configure.ac-early): Invoke it instead of
13499         AC_PROG_CC_STDC.
13500         Reported by Gary V. Vaughan and Paul Eggert.
13501
13502 2011-09-29  Bruno Haible  <bruno@clisp.org>
13503
13504         float: Fix LDBL_MAX value on Linux/PowerPC.
13505         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13506         on Linux/PowerPC.
13507         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13508         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13509         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13510         platform.
13511         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13512
13513 2011-09-29  Bruno Haible  <bruno@clisp.org>
13514
13515         doc: Improve doc about gl_EARLY.
13516         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13517         AC_PROG_CC_STDC invocation.
13518         Reported by Gary V. Vaughan <gary@gnu.org>.
13519
13520 2011-09-28  Bruno Haible  <bruno@clisp.org>
13521
13522         fgetc, fputc, fread, fwrite tests: Fix link error.
13523         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13524         on non-MSVC platforms.
13525         * tests/test-fputc.c (main): Likewise.
13526         * tests/test-fread.c (main): Likewise.
13527         * tests/test-fwrite.c (main): Likewise.
13528         Reported by Jim Meyering.
13529
13530 2011-09-27  Bruno Haible  <bruno@clisp.org>
13531
13532         fputc, fwrite tests: Avoid test failure on MSVC.
13533         * tests/test-fgetc.c: Include msvc-inval.h.
13534         (main): Invoke gl_msvc_inval_ensure_handler.
13535         * tests/test-fputc.c: Include msvc-inval.h.
13536         (main): Invoke gl_msvc_inval_ensure_handler.
13537         * tests/test-fread.c: Include msvc-inval.h.
13538         (main): Invoke gl_msvc_inval_ensure_handler.
13539         * tests/test-fwrite.c: Include msvc-inval.h.
13540         (main): Invoke gl_msvc_inval_ensure_handler.
13541         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13542         * modules/fputc-tests (Depends-on): Likewise.
13543         * modules/fread-tests (Depends-on): Likewise.
13544         * modules/fwrite-tests (Depends-on): Likewise.
13545
13546 2011-09-27  Bruno Haible  <bruno@clisp.org>
13547
13548         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13549         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13550         (raise): Remove older, duplicated declaration.
13551         (_gl_raise_SIGPIPE): New declaration.
13552         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13553         (rpl_raise): Remove function.
13554         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13555         a gnulib-defined SIGPIPE here.
13556         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13557         'sigprocmask' has detected missing signal-blocking and the module
13558         'sigpipe' is enabled.
13559         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13560
13561 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13562
13563         base64-tests: avoid memory leak
13564         * tests/test-base64.c (main): Plug memory leak.
13565
13566         base32: new module
13567         * modules/base32: New module.
13568         * lib/base32.c: New file.
13569         * lib/base32.h: Likewise.
13570         * m4/base32.m4: Likewise.
13571         * modules/base32-tests: New test.
13572         * tests/test-base32.c: Likewise.
13573         * MODULES.html.sh (Misc): Mention it.
13574
13575 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13576
13577         gnulib: use more-standard license notice wording
13578         * gnulib-tool (func_emit_copyright_notice): When emitting a
13579         license notice into a file, use the standard wording as suggested
13580         by the current information for GNU maintainers, except say "file"
13581         rather than "program".  The new wording gives a license version
13582         number, which addresses an issue raised by Glenn Morris in
13583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13584         * m4/onceonly.m4: Use that same wording here, too.
13585
13586         dup2: minor simplification
13587         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13588         as lib/dup2.c no longer uses 'inline'.
13589
13590 2011-09-25  Bruno Haible  <bruno@clisp.org>
13591
13592         strings: Fix compilation error on MSVC.
13593         * lib/strings.in.h: Include <stddef.h> for size_t.
13594
13595 2011-09-25  Bruno Haible  <bruno@clisp.org>
13596
13597         fflush et al.: Document limitation on MSVC.
13598         * doc/posix-functions/fflush.texi: Document possible crash in handling
13599         mode other than DEFAULT_HANDLING.
13600         * doc/posix-functions/fgetc.texi: Likewise.
13601         * doc/posix-functions/fputc.texi: Likewise.
13602         * doc/posix-functions/fread.texi: Likewise.
13603         * doc/posix-functions/fwrite.texi: Likewise.
13604
13605 2011-09-25  Bruno Haible  <bruno@clisp.org>
13606
13607         msvc-inval: Allow three invalid parameter handling modes.
13608         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13609         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13610         macros.
13611         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13612         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13613         SANE_LIBRARY_HANDLING as a no-op.
13614         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13615         <stdlib.h>.
13616         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13617
13618 2011-09-25  Bruno Haible  <bruno@clisp.org>
13619
13620         msvc-inval: Make handler multithread-safe.
13621         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13622         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13623         declarations.
13624         (gl_msvc_inval_current): New declaration.
13625         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13626         Operate on the structure returned by gl_msvc_inval_current().
13627         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13628         Remove varaiables.
13629         (tls_index, tls_initialized): New variables.
13630         (not_per_thread): New variable.
13631         (gl_msvc_inval_current): New function.
13632         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13633         returned by gl_msvc_inval_current().
13634
13635 2011-09-25  Bruno Haible  <bruno@clisp.org>
13636
13637         msvc-inval: Install handler globally.
13638         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13639         !_MSC_VER.
13640         (gl_msvc_invalid_parameter_handler): Remove declaration.
13641         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13642         declarations.
13643         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13644         Install the handler globally, don't uninstall it.
13645         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13646         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13647         currently valid, call RaiseException instead.
13648         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13649         for !_MSC_VER.
13650
13651 2011-09-25  Bruno Haible  <bruno@clisp.org>
13652
13653         strerror_r-posix: Fix for MSVC 9.
13654         * lib/strerror_r.c (local_snprintf): New function.
13655         (snprintf): Define to local_snprintf, not to _snprintf.
13656
13657 2011-09-25  Bruno Haible  <bruno@clisp.org>
13658
13659         ftruncate: Support for MSVC 9.
13660         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13661         (chsize_nothrow): New function.
13662         (chsize): Redefine as a macro.
13663         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13664         * modules/ftruncate (Depends-on): Add msvc-inval.
13665
13666 2011-09-25  Bruno Haible  <bruno@clisp.org>
13667
13668         New module 'fstat'.
13669         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13670         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13671         * lib/fchdir.c (rpl_fstat): Remove function.
13672         * m4/fstat.m4: New file.
13673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13675         declared.
13676         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13677         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13678         * modules/fstat: New file.
13679         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13680         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13681         is set.
13682         * doc/posix-functions/fstat.texi: Mention the new module and the
13683         problem on MSVC.
13684         * NEWS: Mention the change.
13685         * modules/acl (Depends-on): Add fstat.
13686         * modules/chdir-safer (Depends-on): Likewise.
13687         * modules/chown (Depends-on): Likewise.
13688         * modules/copy-file (Depends-on): Likewise.
13689         * modules/fchdir (Depends-on): Likewise.
13690         * modules/fdopendir (Depends-on): Likewise.
13691         * modules/fopen (Depends-on): Likewise.
13692         * modules/fts (Depends-on): Likewise.
13693         * modules/getcwd (Depends-on): Likewise.
13694         * modules/isapipe (Depends-on): Likewise.
13695         * modules/linkat (Depends-on): Likewise.
13696         * modules/lseek (Depends-on): Likewise.
13697         * modules/mkdir-p (Depends-on): Likewise.
13698         * modules/open (Depends-on): Likewise.
13699         * modules/openat (Depends-on): Likewise.
13700         * modules/read-file (Depends-on): Likewise.
13701         * modules/renameat (Depends-on): Likewise.
13702         * modules/utimens (Depends-on): Likewise.
13703
13704 2011-09-25  Bruno Haible  <bruno@clisp.org>
13705
13706         linkat: Fix compilation on MSVC 9.
13707         * lib/linkat.c: Don't include <stdint.h>.
13708
13709 2011-09-25  Bruno Haible  <bruno@clisp.org>
13710
13711         fclose: Support for MSVC 9.
13712         * lib/fclose.c: Include msvc-inval.h.
13713         (fclose_nothrow): New function.
13714         (rpl_fclose): Use it.
13715         * modules/fclose (Depends-on): Add msvc-inval.
13716         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13717
13718 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13719
13720         dup2: minor simplifications
13721         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13722         that it's a performance win.
13723         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13724         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13725
13726 2011-09-24  Jim Meyering  <meyering@redhat.com>
13727
13728         test-futimens: avoid a warning from gcc -Wshadow
13729         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13730         to avoid a shadowing warning.
13731
13732 2011-09-24  Bruno Haible  <bruno@clisp.org>
13733
13734         fdopen: Support for MSVC 9.
13735         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13736         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13737         * lib/fdopen.c: Include msvc-inval.h.
13738         (fdopen_nothrow): New function.
13739         (rpl_fdopen): Use it.
13740         * modules/fdopen (Depends-on): Add msvc-inval.
13741         * modules/fclose-tests (Depends-on): Add fdopen.
13742         * modules/fflush-tests (Depends-on): Likewise.
13743         * modules/fgetc-tests (Depends-on): Likewise.
13744         * modules/fputc-tests (Depends-on): Likewise.
13745         * modules/fread-tests (Depends-on): Likewise.
13746         * modules/freopen-tests (Depends-on): Likewise.
13747         * modules/fseeko-tests (Depends-on): Likewise.
13748         * modules/ftello-tests (Depends-on): Likewise.
13749         * modules/fwrite-tests  (Depends-on): Likewise.
13750         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13751
13752 2011-09-24  Bruno Haible  <bruno@clisp.org>
13753
13754         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13755         * modules/fgetc-tests (Depends-on): Add unistd.
13756         * modules/fputc-tests (Depends-on): Likewise.
13757         * modules/fread-tests (Depends-on): Likewise.
13758         * modules/fwrite-tests (Depends-on): Likewise.
13759
13760 2011-09-24  Bruno Haible  <bruno@clisp.org>
13761
13762         dup: Simplify autoconf test.
13763         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13764         on gl_MSVC_INVAL's result.
13765
13766 2011-09-24  Bruno Haible  <bruno@clisp.org>
13767
13768         Tests for function fwrite().
13769         * modules/fwrite-tests: New file.
13770         * tests/test-fwrite.c: New file.
13771         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13772
13773         Tests for function fread().
13774         * modules/fread-tests: New file.
13775         * tests/test-fread.c: New file.
13776         * modules/stdio-tests (Depends-on): Add fread-tests.
13777
13778         Activate fputc tests.
13779         * modules/stdio-tests (Depends-on): Add fputc-tests.
13780
13781         Enhance fgetc, fputc tests.
13782         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13783         * tests/test-fputc.c (main): Likewise.
13784
13785 2011-09-24  Bruno Haible  <bruno@clisp.org>
13786
13787         write: Support for MSVC 9.
13788         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13789         is not 1.
13790         * lib/write.c (write_nothrow): New function.
13791         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13792         not 1. Use write_nothrow.
13793         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13794         invalid parameter handler.
13795         (gl_PREREQ_WRITE): New macro.
13796         * modules/write (Depends-on): Add msvc-inval.
13797         (configure.ac): Invoke gl_PREREQ_WRITE.
13798         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13799
13800 2011-09-24  Bruno Haible  <bruno@clisp.org>
13801
13802         read: Fix last commit.
13803         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13804
13805 2011-09-24  Bruno Haible  <bruno@clisp.org>
13806
13807         dup2: Fix last commit.
13808         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13809         (rpl_dup2): Disable fcntl workaround on native Windows.
13810
13811         sigprocmask: Make code safer.
13812         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13813         section that changes macro definitions for this compilation unit.
13814
13815 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13816
13817         dup2: clarify by coalescing Windows-specific material
13818         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13819         "msvc-nothrow.h"' to the Windows-specific section, so that the
13820         Emacs source need not contain these include files.
13821         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13822         Windows-specific fixes into this function rather than just the
13823         nothrow fix, as this shortens and clarifies the code.  Always
13824         define as a function, as that's a bit cleaner than having it be
13825         sometimes a function and sometimes a macro.
13826         (rpl_dup2): Move the Windows-specific stuff out of here and into
13827         ms_windows_dup2.  Don't protect the Haiku-related fix with
13828         "#if !defined __linux__", as the same code also works around
13829         a Linux kernel bug, and it doesn't add any system calls on any
13830         platform.  Add comment about FreeBSD 6.1.
13831
13832         sigprocmask: move #include directive
13833         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13834         Windows-specific section, so that the Emacs source need not
13835         contain msvc-inval.h.
13836
13837 2011-09-23  Bruno Haible  <bruno@clisp.org>
13838
13839         read: Support for MSVC 9.
13840         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13841         is not 1.
13842         * lib/read.c (read_nothrow): New function.
13843         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13844         read_nothrow.
13845         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13846         invalid parameter handler.
13847         (gl_PREREQ_READ): New macro.
13848         * modules/read (Depends-on): Add msvc-inval.
13849         (configure.ac): Invoke gl_PREREQ_READ.
13850         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13851
13852 2011-09-23  Bruno Haible  <bruno@clisp.org>
13853
13854         close: Support for MSVC 9.
13855         * lib/close.c: Include <errno.h>, msvc-inval.h.
13856         (close_nothrow): New function.
13857         (rpl_close): Use it.
13858         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13859         invalid parameter handler.
13860         * modules/close (Depends-on): Add msvc-inval.
13861         * modules/dup2-tests (Depends-on): Add close.
13862         * modules/dup3-tests (Depends-on): Likewise.
13863         * modules/fcntl-tests (Depends-on): Likewise.
13864         * modules/spawn-pipe-tests (Depends-on): Likewise.
13865         * modules/unistd-safer-tests (Depends-on): Likewise.
13866         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13867
13868 2011-09-23  Bruno Haible  <bruno@clisp.org>
13869
13870         New module 'dup'.
13871         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13872         Allow replacement.
13873         * lib/dup.c: New file.
13874         * lib/fchdir.c (rpl_dup): Remove function.
13875         * m4/dup.m4: New file.
13876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13877         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13878         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13879         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13880         * modules/dup: New file.
13881         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13882         'dup' module is in use.
13883         * modules/fdopendir (Depends-on): Add dup.
13884         * modules/fdutimensat-tests (Depends-on): Likewise.
13885         * modules/fts (Depends-on): Likewise.
13886         * modules/futimens-tests (Depends-on): Likewise.
13887         * modules/posix_spawnp-tests (Depends-on): Likewise.
13888         * modules/unistd-safer-tests (Depends-on): Likewise.
13889         * modules/utimens-tests (Depends-on): Likewise.
13890         * doc/posix-functions/dup.texi: Mention the new module and the problem
13891         on MSVC.
13892
13893 2011-09-23  Bruno Haible  <bruno@clisp.org>
13894
13895         getdtablesize: Support for MSVC 9.
13896         * lib/getdtablesize.c: Include msvc-inval.h.
13897         (_setmaxstdio_nothrow): New function.
13898         (_setmaxstdio): Redefine it.
13899         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13900         * modules/getdtablesize (Depends-on): Add msvc-inval.
13901         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13902
13903 2011-09-23  Bruno Haible  <bruno@clisp.org>
13904
13905         signal-h: Rename from signal.
13906         * modules/signal-h: Renamed from modules/signal.
13907         * modules/pthread_sigmask (Depends-on): Update.
13908         * modules/raise (Depends-on): Likewise.
13909         * modules/sigaction (Depends-on): Likewise.
13910         * modules/sigpipe (Depends-on): Likewise.
13911         * modules/sigprocmask (Depends-on): Likewise.
13912         * modules/sys_select (Depends-on): Likewise.
13913         * modules/signal-h-tests: Renamed from modules/signal-tests.
13914         (Files, Depends-on, Makefile.am): Update.
13915         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13916         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13917         (Files, Makefile.am): Update.
13918         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13919         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13920         * modules/signal: New placeholder file.
13921         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13922         * doc/posix-headers/signal.texi: Update.
13923         * NEWS: Mention the change.
13924
13925 2011-09-23  Bruno Haible  <bruno@clisp.org>
13926
13927         sigprocmask: Avoid crashes through signal() on MSVC 9.
13928         * lib/sigprocmask.c: Include msvc-inval.h.
13929         (signal_nothrow): New function.
13930         (signal): Redefine it.
13931         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13932         * modules/sigprocmask (Depends-on): Add msvc-inval.
13933         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13934
13935 2011-09-23  Bruno Haible  <bruno@clisp.org>
13936
13937         Tests for module 'raise'.
13938         * modules/raise-tests: New file.
13939         * tests/test-raise.c: New file.
13940
13941         raise: Support for MSVC.
13942         * lib/signal.in.h (raise): New declaration.
13943         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13944         for native Windows platforms.
13945         * m4/raise.m4: New file.
13946         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13947         HAVE_RAISE, REPLACE_RAISE.
13948         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13949         REPLACE_RAISE.
13950         * modules/raise (Status, Notice): Remove fields.
13951         (Files): Add m4/raise.m4.
13952         (Depends-on): Add signal, msvc-inval.
13953         (configure.ac): Use the common idioms.
13954         (Maintainer): Add me.
13955         * tests/test-signal-c++.cc: Check the signature of raise.
13956         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13957
13958 2011-09-23  Bruno Haible  <bruno@clisp.org>
13959
13960         pipe2: Fix compilation on pre-C99 compilers.
13961         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13962
13963 2011-09-23  Bruno Haible  <bruno@clisp.org>
13964
13965         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13966         * lib/msvc-nothrow.h: New file.
13967         * lib/msvc-nothrow.c: New file.
13968         * m4/msvc-nothrow.m4: New file.
13969         * modules/msvc-nothrow: New file.
13970         * lib/dup2.c: Include msvc-nothrow.h.
13971         (rpl_dup2): No need to protect _get_osfhandle call here.
13972         * lib/accept4.c: Include msvc-nothrow.h.
13973         * lib/error.c: Likewise.
13974         * lib/fcntl.c: Likewise.
13975         * lib/lseek.c: Likewise.
13976         * lib/nonblocking.c: Likewise.
13977         * lib/poll.c: Likewise.
13978         * lib/read.c: Likewise.
13979         * lib/select.c: Likewise.
13980         * lib/sockets.h: Likewise.
13981         * lib/sockets.c: Likewise.
13982         * lib/stdio-read.c: Likewise.
13983         * lib/stdio-write.c: Likewise.
13984         * lib/write.c: Likewise.
13985         * lib/w32sock.h: Likewise.
13986         * lib/w32spawn.h: Likewise.
13987         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13988         * lib/fsync.c: Likewise.
13989         * lib/isapipe.c: Likewise.
13990         * modules/dup2 (Depends-on): Add msvc-nothrow.
13991         * modules/accept4 (Depends-on): Likewise.
13992         * modules/error (Depends-on): Likewise.
13993         * modules/fcntl (Depends-on): Likewise.
13994         * modules/lseek (Depends-on): Likewise.
13995         * modules/nonblocking (Depends-on): Likewise.
13996         * modules/poll (Depends-on): Likewise.
13997         * modules/read (Depends-on): Likewise.
13998         * modules/select (Depends-on): Likewise.
13999         * modules/sockets (Depends-on): Likewise.
14000         * modules/sigpipe (Depends-on): Likewise.
14001         * modules/write (Depends-on): Likewise.
14002         * modules/accept (Depends-on): Likewise.
14003         * modules/bind (Depends-on): Likewise.
14004         * modules/connect (Depends-on): Likewise.
14005         * modules/gethostname (Depends-on): Likewise.
14006         * modules/getpeername (Depends-on): Likewise.
14007         * modules/getsockname (Depends-on): Likewise.
14008         * modules/getsockopt (Depends-on): Likewise.
14009         * modules/ioctl (Depends-on): Likewise.
14010         * modules/listen (Depends-on): Likewise.
14011         * modules/recv (Depends-on): Likewise.
14012         * modules/recvfrom (Depends-on): Likewise.
14013         * modules/send (Depends-on): Likewise.
14014         * modules/sendto (Depends-on): Likewise.
14015         * modules/setsockopt (Depends-on): Likewise.
14016         * modules/shutdown (Depends-on): Likewise.
14017         * modules/socket (Depends-on): Likewise.
14018         * modules/execute (Depends-on): Likewise.
14019         * modules/spawn-pipe (Depends-on): Likewise.
14020         * modules/flock (Depends-on): Likewise.
14021         * modules/fsync (Depends-on): Likewise.
14022         * modules/isapipe (Depends-on): Likewise.
14023         * tests/test-cloexec.c: Include msvc-nothrow.h.
14024         * tests/test-dup-safer.c: Likewise.
14025         * tests/test-dup2.c: Likewise.
14026         * tests/test-dup3.c: Likewise.
14027         * tests/test-fcntl.c: Likewise.
14028         * tests/test-pipe.c: Likewise.
14029         * tests/test-pipe2.c: Likewise.
14030         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14031         * modules/unistd-safer-tests (Depends-on): Likewise.
14032         * modules/dup2-tests (Depends-on): Likewise.
14033         * modules/dup3-tests (Depends-on): Likewise.
14034         * modules/fcntl-tests (Depends-on): Likewise.
14035         * modules/pipe-posix-tests (Depends-on): Likewise.
14036         * modules/pipe2-tests (Depends-on): Likewise.
14037
14038 2011-09-23  Bruno Haible  <bruno@clisp.org>
14039
14040         dup2: Make code more maintainable.
14041         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14042         (rpl_dup2): Use it.
14043         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14044         * modules/dup2 (configure.ac): Invoke it.
14045         Reported by Paul Eggert.
14046
14047 2011-09-23  Bruno Haible  <bruno@clisp.org>
14048
14049         msvc-inval: Fix compilation error.
14050         * lib/msvc-inval.h: Include <excpt.h>.
14051
14052 2011-09-23  Bruno Haible  <bruno@clisp.org>
14053
14054         mkdir: Tweak for MSVC 9.
14055         * lib/sys_stat.in.h: Update comments.
14056         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14057
14058         Tests for module 'chdir'.
14059         * modules/chdir-tests: New file.
14060         * tests/test-chdir.c: New file.
14061
14062         New module 'chdir'.
14063         * modules/chdir: New file.
14064         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14065         (chdir): New declaration.
14066         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14067         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14068         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14069         * tests/test-unistd-c++.cc: Check signature of chdir.
14070         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14071         * modules/chdir-long (Depends-on): Add chdir.
14072         * modules/fchdir (Depends-on): Likewise.
14073         * modules/rename (Depends-on): Likewise.
14074         * modules/savewd (Depends-on): Likewise.
14075
14076         rmdir: Support for mingw, MSVC 9.
14077         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14078         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14079
14080         getcwd: Tweak for MSVC 9.
14081         * lib/unistd.in.h: Update comments.
14082         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14083
14084 2011-09-22  Bruno Haible  <bruno@clisp.org>
14085
14086         strerror_r-posix: Avoid a link error on MSVC.
14087         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14088         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14089
14090 2011-09-22  Bruno Haible  <bruno@clisp.org>
14091
14092         select: Avoid link errors on MSVC.
14093         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14094         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14095         * modules/pselect (Link): Likewise.
14096         * NEWS: Mention the change.
14097         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14098         test-select-stdin against $(LIB_SELECT).
14099         * modules/pselect-tests (Makefile.am): Link test-pselect against
14100         $(LIB_SELECT).
14101
14102 2011-09-22  Bruno Haible  <bruno@clisp.org>
14103
14104         select: Avoid compilation error on MSVC.
14105         * lib/select.c: Don't include <stdbool.h>.
14106
14107 2011-09-21  Bruno Haible  <bruno@clisp.org>
14108
14109         Consolidate all uses of PATH_MAX in *.m4 files.
14110         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14111         macros.
14112         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14113         and gl_PATHMAX_SNIPPET.
14114         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14115         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14116         * modules/chdir-long (Files): Add m4/pathmax.m4.
14117         * modules/getcwd (Files): Likewise.
14118
14119 2011-09-21  Bruno Haible  <bruno@clisp.org>
14120
14121         ftruncate: Un-deprecate, concentrate on Win32 support.
14122         * modules/ftruncate (Status, Notice): Remove sections.
14123         (Depends-on): Add largefile.
14124         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14125         non-mingw platforms.
14126         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14127         include <io.h>.
14128         * modules/perror-tests (Depends-on): Add ftruncate.
14129         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14130         'ftruncate' module.
14131
14132 2011-09-21  Bruno Haible  <bruno@clisp.org>
14133
14134         Add dependencies to new dirent related modules.
14135         * modules/opendir (Depends-on): Add closedir.
14136         * modules/getcwd (Depends-on): Add opendir, closedir.
14137         * modules/dirent-safer-tests (Depends-on): Likewise.
14138         * modules/fdopendir-tests (Depends-on): Likewise.
14139         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14140         * modules/renameat-tests (Depends-on): Likewise.
14141
14142 2011-09-21  Bruno Haible  <bruno@clisp.org>
14143
14144         opendir: Avoid compilation error on mingw.
14145         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14146         * modules/opendir (Depends-on): Add unistd.
14147
14148 2011-09-21  Bruno Haible  <bruno@clisp.org>
14149
14150         ftruncate tests: Avoid a test failure on mingw.
14151         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14152
14153 2011-09-21  Bruno Haible  <bruno@clisp.org>
14154
14155         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14156         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14157         native Windows.
14158
14159 2011-09-21  Bruno Haible  <bruno@clisp.org>
14160
14161         New module 'fdopen'.
14162         * lib/stdio.in.h (fdopen): New declaration.
14163         * lib/fdopen.c: New file.
14164         * m4/fdopen.m4: New file.
14165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14166         REPLACE_FDOPEN.
14167         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14168         REPLACE_FDOPEN.
14169         * modules/fdopen: New file.
14170         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14171         * tests/test-stdio-c++.cc: Check signature of fdopen.
14172         * doc/posix-functions/fdopen.texi: Mention the new module.
14173
14174 2011-09-21  Bruno Haible  <bruno@clisp.org>
14175
14176         unlockpt tests: Avoid test failure on NetBSD 5.1.
14177         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14178         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14179
14180 2011-09-21  Bruno Haible  <bruno@clisp.org>
14181
14182         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14183         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14184         * tests/test-getlogin_r.c (main): Likewise.
14185
14186 2011-09-20  Bruno Haible  <bruno@clisp.org>
14187
14188         time tests: Don't require pid_t.
14189         * doc/posix-headers/time.texi: Revert last change.
14190         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14191         * tests/test-time.c: Comment out the check for pid_t.
14192
14193 2011-09-20  Bruno Haible  <bruno@clisp.org>
14194
14195         fsync tests: Avoid a test failure on mingw.
14196         * tests/test-fsync.c (main): Allow a failure with EIO.
14197
14198 2011-09-20  Bruno Haible  <bruno@clisp.org>
14199
14200         euidaccess: Update comments.
14201         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14202
14203 2011-09-20  Bruno Haible  <bruno@clisp.org>
14204
14205         Ensure EBADF returns for socket functions on mingw.
14206         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14207         descriptor is invalid.
14208         * lib/bind.c (rpl_bind): Likewise.
14209         * lib/connect.c (rpl_connect): Likewise.
14210         * lib/getpeername.c (rpl_getpeername): Likewise.
14211         * lib/getsockname.c (rpl_getsockname): Likewise.
14212         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14213         * lib/listen.c (rpl_listen): Likewise.
14214         * lib/recv.c (rpl_recv): Likewise.
14215         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14216         * lib/send.c (rpl_send): Likewise.
14217         * lib/sendto.c (rpl_sendto): Likewise.
14218         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14219         * lib/shutdown.c (rpl_shutdown): Likewise.
14220
14221 2011-09-20  Bruno Haible  <bruno@clisp.org>
14222
14223         select tests: EBADF tests.
14224         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14225         test_bad_fd): New functions.
14226         (test_function): Invoke also test_bad_fd.
14227
14228 2011-09-20  Bruno Haible  <bruno@clisp.org>
14229
14230         Tests for module 'posix_spawn_file_actions_addopen.
14231         * modules/posix_spawn_file_actions_addopen-tests: New file.
14232         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14233
14234         Tests for module 'posix_spawn_file_actions_adddup2'.
14235         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14236         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14237
14238         Tests for module 'posix_spawn_file_actions_addclose'.
14239         * modules/posix_spawn_file_actions_addclose-tests: New file.
14240         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14241
14242 2011-09-20  Bruno Haible  <bruno@clisp.org>
14243
14244         Tests for module 'unlockpt'.
14245         * modules/unlockpt-tests: New file.
14246         * tests/test-unlockpt.c: New file.
14247         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14248
14249         Tests for module 'grantpt'.
14250         * modules/grantpt-tests: New file.
14251         * tests/test-grantpt.c: New file.
14252         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14253
14254 2011-09-20  Bruno Haible  <bruno@clisp.org>
14255
14256         freopen tests: EBADF tests.
14257         * tests/test-freopen.c: Include errno.h, unistd.h.
14258         (main): Add tests for EBADF, commented out for the moment.
14259
14260         fclose tests: EBADF tests.
14261         * tests/test-fclose.c (main): Add tests for EBADF.
14262
14263         fflush tests: EBADF tests.
14264         * tests/test-fflush.c: Include errno.h, macros.h.
14265         (main): Add tests for EBADF.
14266
14267         ftello tests: EBADF tests.
14268         * tests/test-ftello4.sh: New file.
14269         * tests/test-ftello4.c: New file.
14270         * modules/ftello-tests (Files): Add them.
14271         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14272
14273         fseeko tests: EBADF tests.
14274         * tests/test-fseeko4.sh: New file.
14275         * tests/test-fseeko4.c: New file.
14276         * modules/fseeko-tests (Files): Add them.
14277         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14278
14279         Tests for function fputc().
14280         * modules/fputc-tests: New file.
14281         * tests/test-fputc.c: New file.
14282         * modules/stdio-tests (Depends-on): Add fputc-tests.
14283
14284         Tests for function fgetc().
14285         * modules/fgetc-tests: New file.
14286         * tests/test-fgetc.c: New file.
14287         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14288
14289         Tests for function fdopen().
14290         * modules/fdopen-tests: New file.
14291         * tests/test-fdopen.c: New file.
14292         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14293
14294         Tests for module 'vdprintf'.
14295         * modules/vdprintf-tests: New file.
14296         * tests/test-vdprintf.c: New file.
14297
14298         Tests for module 'dprintf'.
14299         * modules/dprintf-tests: New file.
14300         * tests/test-dprintf.c: New file.
14301
14302 2011-09-20  Bruno Haible  <bruno@clisp.org>
14303
14304         Tests for module 'ioctl'.
14305         * modules/ioctl-tests: New file.
14306         * tests/test-ioctl.c: New file.
14307
14308 2011-09-20  Bruno Haible  <bruno@clisp.org>
14309
14310         fcntl tests: EBADF tests.
14311         * tests/test-fcntl.c (main): Add more tests for EBADF.
14312
14313 2011-09-20  Bruno Haible  <bruno@clisp.org>
14314
14315         utimensat tests: EBADF tests.
14316         * tests/test-utimensat.c (main): Add tests for EBADF.
14317
14318         renameat tests: EBADF tests.
14319         * tests/test-renameat.c (main): Add tests for EBADF.
14320
14321         mkfifoat tests: EBADF tests.
14322         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14323
14324         readlinkat tests: EBADF tests.
14325         * tests/test-readlinkat.c (main): Add tests for EBADF.
14326
14327         symlinkat tests: EBADF tests.
14328         * tests/test-symlinkat.c (main): Add tests for EBADF.
14329
14330         linkat tests: EBADF tests.
14331         * tests/test-linkat.c (main): Add tests for EBADF.
14332
14333         Tests for module 'faccessat'.
14334         * modules/faccessat-tests: New file.
14335         * tests/test-faccessat.c: New file.
14336
14337         fdopendir tests: EBADF tests.
14338         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14339
14340         openat tests: EBADF tests.
14341         * tests/test-fchownat.c (main): Add tests for EBADF.
14342         * tests/test-fstatat.c (main): Likewise.
14343         * tests/test-mkdirat.c (main): Likewise.
14344         * tests/test-openat.c (main): Likewise.
14345         * tests/test-unlinkat.c (main): Likewise.
14346         * tests/test-fchmodat.c: New file.
14347         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14348         (Makefile.am): Also run 'test-fchmodat'.
14349
14350 2011-09-20  Bruno Haible  <bruno@clisp.org>
14351
14352         utimens, futimens, fdutimensat tests: EBADF tests.
14353         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14354
14355         Tests for function fstat().
14356         * modules/fstat-tests: New file.
14357         * tests/test-fstat.c: New file.
14358         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14359
14360 2011-09-20  Bruno Haible  <bruno@clisp.org>
14361
14362         test-ttyname_r tests: EBADF tests.
14363         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14364
14365         Tests for module 'isatty'.
14366         * modules/isatty-tests: New file.
14367         * tests/test-isatty.c: New file.
14368
14369         Tests for module 'write'.
14370         * modules/write-tests: New file.
14371         * tests/test-write.c: New file.
14372
14373         Tests for module 'read'.
14374         * modules/read-tests: New file.
14375         * tests/test-read.c: New file.
14376
14377         pwrite tests: EBADF tests.
14378         * tests/test-pwrite.c (main): Add tests for EBADF.
14379
14380         pread tests: EBADF tests.
14381         * tests/test-pread.c (main): Add tests for EBADF.
14382
14383         lseek tests: EBADF tests.
14384         * tests/test-lseek.c (main): Add more tests for EBADF.
14385
14386         Tests for module 'ftruncate'.
14387         * modules/ftruncate-tests: New file.
14388         * tests/test-ftruncate.sh: New file.
14389         * tests/test-ftruncate.c: New file.
14390
14391         fsync tests: EBADF tests.
14392         * tests/test-fsync.c (main): Add more tests for EBADF.
14393
14394         fdatasync tests: EBADF tests.
14395         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14396
14397         Tests for module 'fchown'.
14398         * modules/fchown-tests: New file.
14399         * tests/test-fchown.c: New file.
14400
14401         Tests for module 'fchmod'.
14402         * modules/fchmod-tests: New file.
14403         * tests/test-fchmod.c: New file.
14404
14405         fchdir tests: EBADF tests.
14406         * tests/test-fchdir.c (main): Add more tests for EBADF.
14407
14408         dup2 tests: EBADF tests.
14409         * tests/test-dup2.c (main): Add more tests for EBADF.
14410
14411         Tests for module 'dup'.
14412         * modules/dup-tests: New file.
14413         * tests/test-dup.c: New file.
14414
14415         Tests for module 'close'.
14416         * modules/close-tests: New file.
14417         * tests/test-close.c: New file.
14418
14419 2011-09-20  Bruno Haible  <bruno@clisp.org>
14420
14421         Tests for module 'shutdown'.
14422         * modules/shutdown-tests: New file.
14423         * tests/test-shutdown.c: New file.
14424
14425         Tests for module 'setsockopt'.
14426         * modules/setsockopt-tests: New file.
14427         * tests/test-setsockopt.c: New file.
14428
14429         Tests for module 'sendto'.
14430         * modules/sendto-tests: New file.
14431         * tests/test-sendto.c: New file.
14432
14433         Tests for module 'send'.
14434         * modules/send-tests: New file.
14435         * tests/test-send.c: New file.
14436
14437         Tests for module 'recvfrom'.
14438         * modules/recvfrom-tests: New file.
14439         * tests/test-recvfrom.c: New file.
14440
14441         Tests for module 'recv'.
14442         * modules/recv-tests: New file.
14443         * tests/test-recv.c: New file.
14444
14445         Tests for module 'listen'.
14446         * modules/listen-tests: New file.
14447         * tests/test-listen.c: New file.
14448
14449         Tests for module 'getsockopt'.
14450         * modules/getsockopt-tests: New file.
14451         * tests/test-getsockopt.c: New file.
14452
14453         Tests for module 'getsockname'.
14454         * modules/getsockname-tests: New file.
14455         * tests/test-getsockname.c: New file.
14456
14457         Tests for module 'getpeername'.
14458         * modules/getpeername-tests: New file.
14459         * tests/test-getpeername.c: New file.
14460
14461         Tests for module 'connect'.
14462         * modules/connect-tests: New file.
14463         * tests/test-connect.c: New file.
14464
14465         Tests for module 'bind'.
14466         * modules/bind-tests: New file.
14467         * tests/test-bind.c: New file.
14468
14469         accept4 tests: Fix for native Windows.
14470         * tests/test-accept4.c: Include sockets.h.
14471         (main): Invoke gl_sockets_startup.
14472         * modules/accept4-tests (Depends-on): Add sockets.
14473
14474         accept tests: Fix for native Windows.
14475         * tests/test-accept.c: Include sockets.h.
14476         (main): Invoke gl_sockets_startup.
14477         * modules/accept-tests (Depends-on): Add sockets.
14478
14479 2011-09-19  Bruno Haible  <bruno@clisp.org>
14480
14481         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14482         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14483         do...while(0).
14484         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14485         Suggested by Paul Eggert.
14486
14487 2011-09-19  Bruno Haible  <bruno@clisp.org>
14488
14489         sched: Ensure pid_t is defined.
14490         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14491         not define pid_t.
14492         * lib/sched.in.h: Include <sys/types.h>.
14493         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14495
14496 2011-09-19  Bruno Haible  <bruno@clisp.org>
14497
14498         msvc-inval: Ensure the entire expansion is a single statement.
14499         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14500         of braces.
14501
14502 2011-09-19  Jim Meyering  <meyering@redhat.com>
14503
14504         tests: use printf, not echo in init.sh's warn_ function
14505         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14506         misbehave when given strings containing a backslash or starting
14507         with e.g., -n.  James Youngman suggested setting IFS.
14508
14509 2011-09-19  Eric Blake  <eblake@redhat.com>
14510
14511         futimens: enhance test
14512         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14513         closed non-negative fd.
14514
14515         date: accept 'hence' as opposite of 'ago'
14516         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14517         * tests/test-parse-datetime.c (main): Enhance test.
14518         Suggested by Jesse Wilson.
14519
14520 2011-09-19  Jim Meyering  <meyering@redhat.com>
14521
14522         getcwd: don't fail in a deep directory on a system without openat
14523         Before this change, getcwd would fail when called from a directory
14524         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14525         the non-openat implementation used "..", "../..", "../../..", etc.
14526         to access ancestor directories.  With too many, that string would
14527         be longer than PATH_MAX.
14528         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14529         using gnulib's openat replacement.
14530         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14531         we're using the replacement function.
14532
14533 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14534
14535         maint.mk: avoid warnings from perl about missing files
14536         * top/maint.mk (def_sym_regex): Ignore files listed in
14537         $(gl_other_headers_) that do not exist, say because a project
14538         does not use a corresponding module.
14539
14540 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14541
14542         stat: use pathmax.h only if needed
14543         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14544         This is better for Emacs, which does not have a mingw port and
14545         therefore can avoid the pathmax module.
14546
14547         utimens: remove dependency on dup2
14548         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14549         to work around the Linux kernel bug.
14550         * modules/utimens (Depends-on): Remove dup2.
14551
14552 2011-09-18  Bruno Haible  <bruno@clisp.org>
14553
14554         inet_ntop, inet_pton: Look for it also in libresolv.
14555         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14556         libnsl, search for it in libresolv.
14557         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14558         Needed on Solaris 7.
14559
14560 2011-09-18  Bruno Haible  <bruno@clisp.org>
14561
14562         accept, accept4 tests: Avoid link error on Solaris.
14563         * modules/accept-tests (Makefile.am): Link test-accept against
14564         $(LIBSOCKET).
14565         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14566         $(LIBSOCKET).
14567
14568         accept4: Avoid link error on Solaris.
14569         * modules/accept4 (Link): New section.
14570
14571         socket functions: Avoid link errors on Solaris.
14572         * modules/accept (Depends-on): Add socketlib.
14573         (Link): New section.
14574         * modules/bind (Depends-on): Add socketlib.
14575         (Link): New section.
14576         * modules/connect (Depends-on): Add socketlib.
14577         (Link): New section.
14578         * modules/getpeername (Depends-on): Add socketlib.
14579         (Link): New section.
14580         * modules/getsockname (Depends-on): Add socketlib.
14581         (Link): New section.
14582         * modules/getsockopt (Depends-on): Add socketlib.
14583         (Link): New section.
14584         * modules/listen (Depends-on): Add socketlib.
14585         (Link): New section.
14586         * modules/recv (Depends-on): Add socketlib.
14587         (Link): New section.
14588         * modules/recvfrom (Depends-on): Add socketlib.
14589         (Link): New section.
14590         * modules/send (Depends-on): Add socketlib.
14591         (Link): New section.
14592         * modules/sendto (Depends-on): Add socketlib.
14593         (Link): New section.
14594         * modules/setsockopt (Depends-on): Add socketlib.
14595         (Link): New section.
14596         * modules/shutdown (Depends-on): Add socketlib.
14597         (Link): New section.
14598         * modules/socket (Depends-on): Add socketlib.
14599         (Link): New section.
14600
14601 2011-09-18  Bruno Haible  <bruno@clisp.org>
14602
14603         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14604         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14605         than 5 seconds.
14606         * modules/ptsname-tests (configure.ac): Test for alarm.
14607
14608 2011-09-18  Bruno Haible  <bruno@clisp.org>
14609
14610         posix_spawn_file_actions_add*: Fix module dependencies.
14611         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14612         posix_spawn_file_actions_init.
14613         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14614         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14615
14616 2011-09-18  Bruno Haible  <bruno@clisp.org>
14617
14618         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14619         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14620         * tests/test-renameat.c (main): Likewise.
14621
14622 2011-09-18  Bruno Haible  <bruno@clisp.org>
14623
14624         Tests for module 'accept4'.
14625         * modules/accept4-tests: New file.
14626         * tests/test-accept4.c: New file.
14627
14628 2011-09-18  Bruno Haible  <bruno@clisp.org>
14629
14630         Tests for module 'accept'.
14631         * modules/accept-tests: New file.
14632         * tests/test-accept.c: New file.
14633
14634 2011-09-18  Bruno Haible  <bruno@clisp.org>
14635
14636         dup2: Support for MSVC.
14637         * lib/dup2.c: Include msvc-inval.h.
14638         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14639         _get_osfhandle calls.
14640         * modules/dup2 (Depends-on): Add msvc-inval.
14641         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14642
14643         New module 'msvc-inval'.
14644         * lib/msvc-inval.h: New file.
14645         * lib/msvc-inval.c: New file.
14646         * m4/msvc-inval.m4: New file.
14647         * modules/msvc-inval: New file.
14648
14649 2011-09-17  Bruno Haible  <bruno@clisp.org>
14650
14651         Tests for module 'pclose'.
14652         * modules/pclose-tests: New file.
14653
14654         New module 'pclose'.
14655         * lib/stdio.in.h (pclose): New declaration.
14656         * lib/pclose.c: New file.
14657         * m4/pclose.m4: New file.
14658         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14659         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14660         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14661         * modules/pclose: New file.
14662         * modules/popen-tests (Depends-on): Add pclose.
14663         * modules/popen-safer-tests (Depends-on): Likewise.
14664         * doc/posix-functions/pclose.texi: Mention the new module.
14665
14666 2011-09-17  Bruno Haible  <bruno@clisp.org>
14667
14668         popen: Support for MSVC.
14669         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14670         * lib/popen.c (popen): Provide alternate definition for native Windows.
14671         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14673         * modules/popen (Depends-on, configure.ac): Update condition.
14674         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14675         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14676         fixed.
14677
14678 2011-09-17  Bruno Haible  <bruno@clisp.org>
14679
14680         isnanl, isnand, isnanf: Work around MSVC bug.
14681         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14682
14683 2011-09-17  Bruno Haible  <bruno@clisp.org>
14684
14685         sys_socket tests: Fix recent mistake.
14686         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14687
14688 2011-09-17  Bruno Haible  <bruno@clisp.org>
14689
14690         putenv: Support for MSVC.
14691         * modules/putenv (Depends-on): Add environ.
14692         * lib/putenv.c (environ): Disable declaration.
14693         * lib/unistd.in.h: Update comment.
14694
14695 2011-09-17  Bruno Haible  <bruno@clisp.org>
14696
14697         math: Avoid macro redefinition warnings on MSVC.
14698         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14699         Undefine before redefining.
14700
14701 2011-09-17  Bruno Haible  <bruno@clisp.org>
14702
14703         doc: Mention functions which are declared as macros.
14704         * doc/posix-functions/*[fl].texi: Mention that some functions are
14705         defined as macros with arguments only.
14706
14707 2011-09-17  Bruno Haible  <bruno@clisp.org>
14708
14709         Add dependencies to new dirent related modules.
14710         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14711         * modules/fts (Depends-on): Likewise.
14712         * modules/glob (Depends-on): Likewise.
14713         * modules/savedir (Depends-on): Likewise.
14714         * modules/scandir (Depends-on): Likewise.
14715         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14716         * modules/fdopendir (Depends-on): Add opendir.
14717
14718 2011-09-17  Bruno Haible  <bruno@clisp.org>
14719
14720         inet_pton: Support for MSVC on Windows Vista or newer.
14721         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14722         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14723         HAVE_DECL_INET_PTON is defined.
14724         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14725         On platforms with <winsock2.h>, test whether inet_pton is declared in
14726         <ws2tcpip.h>. If so, arrange to replace it.
14727         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14728         REPLACE_INET_PTON.
14729         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14730         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14731         (Depends-on, configure.ac): Update condition.
14732         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14733
14734 2011-09-17  Bruno Haible  <bruno@clisp.org>
14735
14736         inet_ntop: Support for MSVC on Windows Vista or newer.
14737         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14738         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14739         HAVE_DECL_INET_NTOP is defined.
14740         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14741         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14742         <ws2tcpip.h>. If so, arrange to replace it.
14743         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14744         REPLACE_INET_NTOP.
14745         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14746         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14747         (Depends-on, configure.ac): Update condition.
14748         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14749
14750 2011-09-16  Eric Blake  <eblake@redhat.com>
14751
14752         test-fsync: yet another enhancement
14753         * tests/test-fsync.c (main): Also test behavior on read-only text
14754         file.
14755
14756 2011-09-16  Bruno Haible  <bruno@clisp.org>
14757
14758         Enhance fsync, fdatasync tests.
14759         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14760         * tests/test-fdatasync.c (main): Likewise.
14761
14762 2011-09-16  Bruno Haible  <bruno@clisp.org>
14763
14764         Support for MSVC compiler: Ensure mode_t gets defined.
14765         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14766         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14768         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14769         * tests/test-fcntl-h.c: Check that mode_t is defined.
14770         * tests/test-sys_stat.c: Likewise.
14771         * tests/test-sys_types.c: Likewise.
14772         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14773         * doc/posix-headers/sys_stat.texi: Likewise.
14774         * doc/posix-headers/sys_types.texi: Likewise.
14775
14776 2011-09-16  Bruno Haible  <bruno@clisp.org>
14777
14778         sys_stat: Support for MSVC.
14779         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14780         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14781         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14782         MSVC.
14783
14784 2011-09-16  Bruno Haible  <bruno@clisp.org>
14785
14786         Support for MSVC compiler: Ensure off_t gets defined.
14787         * lib/unistd.in.h: Include <sys/types.h>.
14788         * tests/test-fcntl-h.c: Check that off_t is defined.
14789         * tests/test-sys_stat.c: Likewise.
14790         * tests/test-sys_types.c: Likewise.
14791
14792 2011-09-16  Eric Blake  <eblake@redhat.com>
14793
14794         fdatasync: port to Solaris
14795         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14796         * modules/fdatasync (Link): Document it.
14797         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14798
14799         fdatasync: port to MacOS X 10.7
14800         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14801         declared.
14802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14803         * modules/unistd (Makefile.am): Substitute it.
14804         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14805         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14806
14807         fdatasync: minor improvements
14808         * modules/fdatasync (Depends-on): Add condition for fsync.
14809         * lib/fdatasync.c (fdatasync): Add comment.
14810         * tests/test-unistd-c++.cc: Test fdatasync.
14811
14812         unistd: update refs to newer POSIX
14813         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14814         Suggested by Bruno Haible.
14815
14816         fdatasync: new module
14817         * modules/fsync (Description): Document difference to fdatasync.
14818         * modules/fdatasync: New module.
14819         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14820         * lib/fdatasync.c (fdatasync): Likewise.
14821         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14822         defaults.
14823         * modules/unistd (Makefile.am): Set witnesses.
14824         * lib/unistd.in.h (fdatasync): Declare.
14825         * MODULES.html.sh: Document it.
14826         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14827         * modules/fdatasync-tests: New test.
14828         * tests/test-fdatasync.c: Likewise.
14829
14830 2011-09-16  Eric Blake  <eblake@redhat.com>
14831
14832         test-fsync: enhance tests
14833         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14834         * tests/test-fsync.c (main): Enhance test.
14835
14836 2011-09-15  Bruno Haible  <bruno@clisp.org>
14837
14838         Support for MSVC compiler: Ensure ssize_t gets defined.
14839         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14840         * doc/posix-headers/stdio.texi: Likewise.
14841         * modules/stdio (Depends-on): Add ssize_t.
14842         * modules/sys_socket (Depends-on): Likewise.
14843         * modules/sys_types (Depends-on): Likewise.
14844         * modules/sys_uio (Depends-on): Likewise.
14845         * modules/unistd (Depends-on): Likewise.
14846         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14847         * tests/test-sys_types.c: Check that ssize_t is defined.
14848
14849 2011-09-14  Bruno Haible  <bruno@clisp.org>
14850
14851         Avoid using #, the m4 comment starter character, near brackets.
14852         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14853         delimiter character in sed expressions.
14854         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14855         Suggested by Eric Blake.
14856
14857         Properly quote AC_CHECK_DECLS' 4th argument.
14858         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14859         argument.
14860         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14861         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14862         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14863         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14865         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14866         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14867         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14868         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14869         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14870         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14871         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14872         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14873         * m4/isinf.m4 (gl_ISINF): Likewise.
14874         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14875         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14876         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14877         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14878         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14880         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14881         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14882         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14883         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14884         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14885         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14887         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14889         Reported by Eric Blake.
14890
14891         Properly quote AC_CHECK_DECL's 4th argument.
14892         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14893         argument.
14894         * m4/argp.m4 (gl_ARGP): Likewise.
14895         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14896         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14897         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14898         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14899         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14900         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14902         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14903         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14904         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14905         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14906         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14907         Reported by Eric Blake.
14908
14909 2011-09-14  Eric Blake  <eblake@redhat.com>
14910
14911         opendir: avoid compile warning
14912         * lib/opendir.c (includes): Always include errno.h.
14913         Reported by Tatsuro MATSUOKA.
14914
14915 2011-09-14  Jim Meyering  <meyering@redhat.com>
14916
14917         maint.mk: sc_tight_scope: propagate failure from sub-make
14918         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14919         Reported by Martin von Gagern.
14920
14921 2011-09-13  Bruno Haible  <bruno@clisp.org>
14922
14923         tempname: Support for MSVC.
14924         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14925         MSVC.
14926         * modules/tempname (Depends-on): Add fcntl-h.
14927
14928 2011-09-13  Bruno Haible  <bruno@clisp.org>
14929
14930         sys_time: Support for MSVC.
14931         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14932         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14933         include <winsock2.h>.
14934         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14935         function declarations that collide with POSIX.
14936         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14937         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14938
14939 2011-09-13  Bruno Haible  <bruno@clisp.org>
14940
14941         stat: Support for MSVC.
14942         * lib/stat.c: Include pathmax.h.
14943         * modules/stat (Depends-on): Add pathmax.
14944
14945         pathmax: Support for native Windows.
14946         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14947
14948 2011-09-12  Bruno Haible  <bruno@clisp.org>
14949
14950         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14951         * lib/dirent.in.h (struct dirent): New type.
14952         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14953         DT_WHT): New macros.
14954         (DIR): New type.
14955         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14956         (readdir, rewinddir): New declarations.
14957         * lib/dirent-private.h: New file.
14958         * lib/opendir.c: New file.
14959         * lib/readdir.c: New file.
14960         * lib/rewinddir.c: New file.
14961         * lib/closedir.c: New file.
14962         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14963         * m4/opendir.m4: New file.
14964         * m4/readdir.m4: New file.
14965         * m4/rewinddir.m4: New file.
14966         * m4/closedir.m4: New file.
14967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14968         REPLACE_CLOSEDIR here.
14969         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14970         readdir, rewinddir are declared.
14971         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14972         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14973         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14974         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14975         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14976         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14977         * modules/opendir: New file.
14978         * modules/readdir: New file.
14979         * modules/rewinddir: New file.
14980         * modules/closedir: New file.
14981         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14982         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14983         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14984         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14985         * NEWS: Mention the 'fchdir' change.
14986
14987 2011-09-11  Bruno Haible  <bruno@clisp.org>
14988
14989         asm-underscore.m4: Support for MSVC.
14990         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14991         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14992
14993 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14994
14995         Doc about crypt functions.
14996         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14997         needing for _GNU_SOURCE to get crypt.
14998         * doc/posix-functions/encrypt.texi: Likewise.
14999         * doc/posix-functions/setkey.texi: Likewise.
15000
15001 2011-09-11  Bruno Haible  <bruno@clisp.org>
15002
15003         doc: Update regarding MSVC 9.
15004         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15005         tested".
15006         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15007         * doc/posix-headers/*.texi: Likewise.
15008         * doc/pastposix-functions/*.texi: Likewise.
15009         * doc/glibc-functions/*.texi: Likewise.
15010         * doc/glibc-headers/*.texi: Likewise.
15011
15012 2011-09-11  Bruno Haible  <bruno@clisp.org>
15013
15014         unistd et al.: Don't assume <unistd.h> exists.
15015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15016         does not exist.
15017         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15018         exist. But include <stdlib.h>.
15019         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15020         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15021         symlink() does not exist.
15022         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15023         include <io.h> instead.
15024         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15025         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15026         include <direct.h> instead.
15027         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15028         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15029         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15030         <io.h> instead.
15031         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15032         correctly if the system does not have hard links.
15033         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15034         <direct.h> instead.
15035         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15036         it when looking for function declarations.
15037         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15038         <direct.h> and <io.h> instead.
15039         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15040
15041 2011-09-11  Bruno Haible  <bruno@clisp.org>
15042
15043         strcase: Support for MSVC.
15044         * modules/strcase (Status, Notice): Remove obsoletion mark.
15045         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15046         * doc/posix-functions/strncasecmp.texi: Likewise.
15047
15048         strings: Don't assume <strings.h> exists.
15049         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15050         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15051         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15052         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15053
15054 2011-09-11  Bruno Haible  <bruno@clisp.org>
15055
15056         dirent: Don't assume <dirent.h> exists.
15057         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15058         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15059         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15060         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15061
15062 2011-09-11  Bruno Haible  <bruno@clisp.org>
15063
15064         Fix wint_t on MSVC.
15065         * lib/wchar.in.h (wint_t): On MSVC, override it.
15066         * lib/wctype.in.h (wint_t): Likewise.
15067         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15068         MSVC.
15069         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15070         * doc/posix-headers/wctype.texi: Likewise.
15071
15072 2011-09-11  Bruno Haible  <bruno@clisp.org>
15073
15074         sys_types: Fix typo.
15075         * lib/sys_types.in.h: Fix typo in comment.
15076         Reported by Paul Eggert.
15077
15078         Support for MSVC compiler: Ensure size_t gets defined.
15079         * modules/strings (Depends-on): Add 'sys_types'.
15080         * modules/sys_uio (Depends-on): Likewise.
15081         * lib/sys_uio.in.h: Update comment.
15082
15083         C++ tests for module 'sys_types'.
15084         * modules/sys_types-c++-tests: New file.
15085         * tests/test-sys_types-c++.cc: New file.
15086
15087         Tests for module 'sys_types'.
15088         * modules/sys_types-tests: New file.
15089         * tests/test-sys_types.c: New file.
15090
15091         New module 'sys_types'.
15092         * lib/sys_types.in.h: New file.
15093         * m4/sys_types_h.m4: New file.
15094         * modules/sys_types: New file.
15095         * doc/posix-headers/sys_types.texi: Mention the new module and the
15096         size_t problem on MSVC 9.
15097
15098 2011-09-11  Bruno Haible  <bruno@clisp.org>
15099
15100         Support for MSVC compiler: Avoid division by a literal 0.
15101         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15102         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15103         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15104         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15105         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15106         * tests/infinity.h: New file.
15107         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15108         on MSVC.
15109         * tests/test-ceilf1.c: Include infinity.h.
15110         (main): Use Infinityf.
15111         * tests/test-ceil1.c: Include infinity.h.
15112         (main): Use Infinityd.
15113         * tests/test-ceill.c: Include infinity.h.
15114         (main): Use Infinityl.
15115         * tests/test-dprintf-posix.c: Include infinity.h.
15116         (test_function): Use Infinityd.
15117         * tests/test-floorf1.c: Include infinity.h.
15118         (main): Use Infinityf.
15119         * tests/test-floor1.c: Include infinity.h.
15120         (main): Use Infinityd.
15121         * tests/test-floorl.c: Include infinity.h.
15122         (main): Use Infinityl.
15123         * tests/test-fprintf-posix.c: Include infinity.h.
15124         (test_function): Use Infinityd.
15125         * tests/test-frexp.c: Include infinity.h.
15126         (main): Use Infinityd.
15127         * tests/test-frexpl.c: Include infinity.h.
15128         (main): Use Infinityl.
15129         * tests/test-isfinite.c: Include infinity.h.
15130         (test_isfinitef): Use Infinityf.
15131         (test_isfinited): Use Infinityd.
15132         (test_isfinitel): Use Infinityl.
15133         * tests/test-isinf.c: Include infinity.h.
15134         (test_isinff): Use Infinityf.
15135         (test_isinfd): Use Infinityd.
15136         (test_isinfl): Use Infinityl.
15137         * tests/test-isnan.c: Include infinity.h.
15138         (test_float): Use Infinityf.
15139         (test_double): Use Infinityd.
15140         (test_long_double): Use Infinityl.
15141         * tests/test-isnanf.h: Include infinity.h.
15142         (main): Use Infinityf.
15143         * tests/test-isnand.h: Include infinity.h.
15144         (main): Use Infinityd.
15145         * tests/test-isnanl.h: Include infinity.h.
15146         (main): Use Infinityl.
15147         * tests/test-ldexpl.c: Include infinity.h.
15148         (main): Use Infinityl.
15149         * tests/test-printf-posix.h: Include infinity.h.
15150         (test_function): Use Infinityd.
15151         * tests/test-roundf1.c: Include infinity.h.
15152         (main): Use Infinityf.
15153         * tests/test-round1.c: Include infinity.h.
15154         (main): Use Infinityd.
15155         * tests/test-roundl.c: Include infinity.h.
15156         (main): Use Infinityl.
15157         * tests/test-signbit.c: Include infinity.h.
15158         (test_signbitf): Use Infinityf.
15159         (test_signbitd): Use Infinityd.
15160         (test_signbitl): Use Infinityl.
15161         * tests/test-snprintf-posix.h: Include infinity.h.
15162         (test_function): Use Infinityd, Infinityl.
15163         * tests/test-sprintf-posix.h: Include infinity.h.
15164         (test_function): Use Infinityd, Infinityl.
15165         * tests/test-truncf1.c: Include infinity.h.
15166         (main): Use Infinityf.
15167         * tests/test-trunc1.c: Include infinity.h.
15168         (main): Use Infinityd.
15169         * tests/test-truncl.c: Include infinity.h.
15170         (main): Use Infinityl.
15171         * tests/test-vasnprintf-posix.c: Include infinity.h.
15172         (test_function): Use Infinityd, Infinityl.
15173         * tests/test-vasprintf-posix.c: Include infinity.h.
15174         (test_function): Use Infinityd, Infinityl.
15175         * modules/ceilf-tests (Files): Add tests/infinity.h.
15176         * modules/ceil-tests (Files): Likewise.
15177         * modules/ceill-tests (Files): Likewise.
15178         * modules/dprintf-posix-tests (Files): Likewise.
15179         * modules/floorf-tests (Files): Likewise.
15180         * modules/floor-tests (Files): Likewise.
15181         * modules/floorl-tests (Files): Likewise.
15182         * modules/fprintf-posix-tests (Files): Likewise.
15183         * modules/frexp-tests (Files): Likewise.
15184         * modules/frexp-nolibm-tests (Files): Likewise.
15185         * modules/frexpl-tests (Files): Likewise.
15186         * modules/frexpl-nolibm-tests (Files): Likewise.
15187         * modules/isfinite-tests (Files): Likewise.
15188         * modules/isinf-tests (Files): Likewise.
15189         * modules/isnan-tests (Files): Likewise.
15190         * modules/isnanf-tests (Files): Likewise.
15191         * modules/isnanf-nolibm-tests (Files): Likewise.
15192         * modules/isnand-tests (Files): Likewise.
15193         * modules/isnand-nolibm-tests (Files): Likewise.
15194         * modules/isnanl-tests (Files): Likewise.
15195         * modules/isnanl-nolibm-tests (Files): Likewise.
15196         * modules/ldexpl-tests (Files): Likewise.
15197         * modules/printf-posix-tests (Files): Likewise.
15198         * modules/roundf-tests (Files): Likewise.
15199         * modules/round-tests (Files): Likewise.
15200         * modules/roundl-tests (Files): Likewise.
15201         * modules/signbit-tests (Files): Likewise.
15202         * modules/snprintf-posix-tests (Files): Likewise.
15203         * modules/sprintf-posix-tests (Files): Likewise.
15204         * modules/truncf-tests (Files): Likewise.
15205         * modules/trunc-tests (Files): Likewise.
15206         * modules/truncl-tests (Files): Likewise.
15207         * modules/vasnprintf-posix-tests (Files): Likewise.
15208         * modules/vasprintf-posix-tests (Files): Likewise.
15209         * modules/vdprintf-posix-tests (Files): Likewise.
15210         * modules/vfprintf-posix-tests (Files): Likewise.
15211         * modules/vprintf-posix-tests (Files): Likewise.
15212         * modules/vsnprintf-posix-tests (Files): Likewise.
15213         * modules/vsprintf-posix-tests (Files): Likewise.
15214         * modules/xprintf-posix-tests (Files): Likewise.
15215
15216 2011-09-11  Bruno Haible  <bruno@clisp.org>
15217
15218         Ensure pid_t gets defined.
15219         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15220         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15221         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15222         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15223         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15224         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15225         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15226         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15227         * tests/test-fcntl-h.c: Check that pid_t is defined.
15228         * tests/test-sched.c: Likewise.
15229         * tests/test-termios.c: Likewise.
15230         * tests/test-time.c: Likewise.
15231         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15232         * doc/posix-headers/signal.texi: Likewise.
15233         * doc/posix-headers/sys_types.texi: Likewise.
15234         * doc/posix-headers/time.texi: Likewise.
15235
15236 2011-09-11  Bruno Haible  <bruno@clisp.org>
15237
15238         acl: Fix compilation on Solaris 10 (older version).
15239         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15240         of ACE_EVERYONE.
15241         * lib/set-mode-acl.c (qset_acl): Likewise.
15242         Reported by Christian Jullien <eligis@orange.fr>.
15243
15244 2011-09-10  Bruno Haible  <bruno@clisp.org>
15245
15246         iconv, unsetenv: Add support for MSVC compiler.
15247         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15248         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15249
15250 2011-09-10  Bruno Haible  <bruno@clisp.org>
15251
15252         *printf: Add support for MSVC compiler.
15253         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15254         handles the exception caused by the %n directive. When cross-compiling,
15255         guess no on native Windows.
15256         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15257         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15258         emulate it through vsnprintf.
15259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15260         * doc/posix-functions/dprintf.texi: Update documentation regarding
15261         MSVC 9.
15262         * doc/posix-functions/fprintf.texi: Likewise.
15263         * doc/posix-functions/printf.texi: Likewise.
15264         * doc/posix-functions/snprintf.texi: Likewise.
15265         * doc/posix-functions/sprintf.texi: Likewise.
15266         * doc/posix-functions/swprintf.texi: Likewise.
15267         * doc/posix-functions/vdprintf.texi: Likewise.
15268         * doc/posix-functions/vfprintf.texi: Likewise.
15269         * doc/posix-functions/vprintf.texi: Likewise.
15270         * doc/posix-functions/vsnprintf.texi: Likewise.
15271         * doc/posix-functions/vsprintf.texi: Likewise.
15272         * doc/glibc-functions/asprintf.texi: Likewise.
15273         * doc/glibc-functions/obstack_printf.texi: Likewise.
15274         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15275         * doc/glibc-functions/vasprintf.texi: Likewise.
15276
15277 2011-09-10  Bruno Haible  <bruno@clisp.org>
15278
15279         nocrash: Add support for native Windows.
15280         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15281
15282 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15283             Bruno Haible  <bruno@clisp.org>
15284
15285         absolute-header, include-next: Add support for MSVC compiler.
15286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15287         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15288         directory separator in #line directives.
15289         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15290         recognize also backslash as directory separator in #line directives.
15291
15292 2011-09-08  Jim Meyering  <meyering@redhat.com>
15293
15294         maint.mk: mark the post-release commit log with "maint: " prefix
15295         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15296         one-line commit-log summary.
15297
15298 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15299             Bruno Haible  <bruno@clisp.org>
15300
15301         Doc about crypt functions.
15302         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15303         systems.
15304         * doc/posix-functions/encrypt.texi: Likewise.
15305         * doc/posix-functions/setkey.texi: Likewise.
15306
15307 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15308
15309         * lib/gc.h: Fix copyright header.
15310
15311 2011-09-07  Bruno Haible  <bruno@clisp.org>
15312
15313         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15314         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15315         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15316
15317 2011-09-07  Bruno Haible  <bruno@clisp.org>
15318
15319         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15320         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15321         * lib/freopen.c: Likewise.
15322         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15323         * lib/lstat.c: Likewise.
15324         * lib/stat.c: Likewise.
15325         * lib/open.c: Use different syntax for include of <fcntl.h>.
15326         * lib/openat.c: Include fcntl.h again, explicitly.
15327
15328 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15329
15330         parse-datetime: document the newly accepted format
15331         * doc/parse-datetime.texi (Combined date and time of day items):
15332         New section.
15333
15334 2011-09-06  Bruno Haible  <bruno@clisp.org>
15335
15336         acl: Fix a test failure on newer Solaris 10 with ZFS.
15337         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15338         ENOSYS as no ACL.
15339         Reported by Jim Meyering.
15340
15341 2011-09-06  Bruno Haible  <bruno@clisp.org>
15342
15343         acl: Update for AIX >= 5.3 with NFS.
15344         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15345         ENOSYS as no ACL.
15346
15347         acl: Fix a test failure on AIX >= 5.3 with NFS.
15348         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15349         as no ACL.
15350
15351 2011-09-06  Bruno Haible  <bruno@clisp.org>
15352
15353         acl: Fix a test failure on IRIX 6.5 with NFS.
15354         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15355         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15356         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15357         * lib/copy-acl.c (qcopy_acl): Likewise.
15358
15359 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15360
15361         openat: port to AIX 7.1 with large files
15362         AIX 7.1 does a "#define openat open64at" if large files are in use,
15363         so we can't simply #undef openat.  Use the orig_openat trick (similar
15364         to orig_open in lib/open.c) to work around the problem.  Problem
15365         reported by Kevin Brott for GNU tar, in the thread containing
15366         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15367         * lib/openat.c (__need_system_fcntl_h): Define first.
15368         Include <fcntl.h> and <sys/types.h> before undefining.
15369         (orig_openat) [HAVE_OPENAT]: New inline function.
15370         (openat) [HAVE_OPENAT]: Do not undef.
15371         (rpl_openat): Use orig_openat, not openat.
15372
15373 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15374             Bruno Haible  <bruno@clisp.org>
15375
15376         acl: Avoid errors on NonStop Kernel.
15377         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15378         ENOTSUP errors.
15379
15380 2011-09-05  Bruno Haible  <bruno@clisp.org>
15381
15382         acl: Clean up Solaris code.
15383         * lib/acl-internal.h: Remove no-op #if.
15384         * lib/file-has-acl.c: Likewise.
15385         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15386         * lib/copy-acl.c (qcopy_acl): Likewise.
15387
15388 2011-09-05  Bruno Haible  <bruno@clisp.org>
15389
15390         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15391         binaries built on the original Solaris 10.
15392         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15393         trivial.
15394
15395 2011-09-05  Bruno Haible  <bruno@clisp.org>
15396
15397         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15398         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15399         10.
15400         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15401         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15402         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15403         instead of acl_get, facl_get, acl_set, facl_set.
15404
15405 2011-09-05  Bruno Haible  <bruno@clisp.org>
15406
15407         copy-file: Try unit tests on more file systems.
15408         * tests/test-copy-file-1.sh: New file.
15409         * tests/test-copy-file-2.sh: New file.
15410         * modules/copy-file-tests (Files): Add them.
15411         (Makefile.am): Add them to TESTS.
15412
15413         acl: Try unit tests on more file systems.
15414         * tests/test-file-has-acl-1.sh: New file.
15415         * tests/test-file-has-acl-2.sh: New file.
15416         * tests/test-set-mode-acl-1.sh: New file.
15417         * tests/test-set-mode-acl-2.sh: New file.
15418         * tests/test-copy-acl-1.sh: New file.
15419         * tests/test-copy-acl-2.sh: New file.
15420         * modules/acl-tests (Files): Add them.
15421         (Makefile.am): Add them to TESTS.
15422
15423 2011-09-04  Bruno Haible  <bruno@clisp.org>
15424
15425         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15426         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15427         10.
15428         (OLD_ALLOW, OLD_DENY): New macros.
15429         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15430         ACE_ACCESS_ALLOWED_ACE_TYPE.
15431         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15432         ACE_ACCESS_DENIED_ACE_TYPE.
15433         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15434         (NEW_ACE_EXECUTE): Fix value.
15435         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15436         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15437         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15438         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15439         NEW_ACE_SYNCHRONIZE): New macros.
15440         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15441         instead of acl_fromtext, acl_set, facl_set.
15442         Fixes a coreutils/tests/cp/perm failure.
15443
15444 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15445
15446         openat: test for fstatat (..., 0) bug
15447         Further testing with tar suggests that fstatat (..., 0)
15448         does not work in general, on AIX 7.1; see
15449         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15450         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15451         replacement fstatat (which is what older AIX releases were using
15452         anyway).
15453         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15454         use is now changed to orig_fstatat.  This was probably the right
15455         thing to do anyway.
15456         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15457         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15458         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15459         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15460         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15461         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15462         if the bug is found.
15463
15464         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15465         This tests for another fstatat bug on AIX 7.1:
15466         fstatat (AT_FDCWD, ..., 0) does not work.  See
15467         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15468         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15469         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15470         (rpl_fstatat): Adjust so that it works around either (or both)
15471         bugs if present.
15472         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15473
15474 2011-09-03  Karl Berry  <karl@gnu.org>
15475
15476         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15477         in index entries.
15478
15479 2011-09-02  Bruno Haible  <bruno@clisp.org>
15480
15481         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15482         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15483         values of AR, ARFLAGS, RANLIB.
15484         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15485
15486 2011-09-02  Bruno Haible  <bruno@clisp.org>
15487
15488         Find 'ar' program that fits with --host argument.
15489         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15490
15491 2011-09-02  Bruno Haible  <bruno@clisp.org>
15492
15493         tests: init.sh: Support any non-GNU diff.
15494         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15495         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15496         Solaris 8.
15497
15498 2011-09-02  Bruno Haible  <bruno@clisp.org>
15499
15500         tests: init.sh: work also with any non-GNU diff that supports -u
15501         * tests/init.sh: Relax check for diff -u support.
15502         Rather than checking for GNU diff via --version, simply check
15503         for support for -u itself.  Useful at least on OpenBSD 4.9,
15504         AIX 7.1, IRIX 6.5, and Solaris 10.
15505
15506 2011-09-01  Bruno Haible  <bruno@clisp.org>
15507
15508         strtoimax, strtoumax: Document problem on HP-UX 11.
15509         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15510         * doc/posix-functions/strtoumax.texi: Likewise.
15511
15512 2011-09-01  Bruno Haible  <bruno@clisp.org>
15513
15514         strtoumax: Avoid link error on OSF/1 with DTK cc.
15515         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15516         defined as a function.
15517         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15518         strtoumax is defined, not whether it is declared.
15519
15520 2011-09-01  Bruno Haible  <bruno@clisp.org>
15521
15522         strtoimax: Avoid link error on OSF/1 with DTK cc.
15523         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15524         defined as a function.
15525         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15526         strtoimax is defined, not whether it is declared.
15527
15528 2011-09-01  Bruno Haible  <bruno@clisp.org>
15529
15530         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15531         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15532         as a function.
15533         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15534         whether it is declared.
15535
15536 2011-09-01  Bruno Haible  <bruno@clisp.org>
15537
15538         imaxabs: Avoid link error on OSF/1 with DTK cc.
15539         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15540         as a function.
15541         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15542         whether it is declared.
15543
15544 2011-09-01  Bruno Haible  <bruno@clisp.org>
15545
15546         Tests for module 'strtoumax'.
15547         * modules/strtoumax-tests: New file.
15548         * tests/test-strtoumax.c: New file.
15549
15550         Tests for module 'strtoimax'.
15551         * modules/strtoimax-tests: New file.
15552         * tests/test-strtoimax.c: New file.
15553
15554         Tests for module 'imaxdiv'.
15555         * modules/imaxdiv-tests: New file.
15556         * tests/test-imaxdiv.c: New file.
15557
15558         Tests for module 'imaxabs'.
15559         * modules/imaxabs-tests: New file.
15560         * tests/test-imaxabs.c: New file.
15561
15562 2011-09-01  Bruno Haible  <bruno@clisp.org>
15563
15564         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15565         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15566         pthread_create.
15567
15568 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15569
15570         openat: work around AIX 7.1 fstatat issue
15571         This should fix the problem that was not properly fixed
15572         in the previous change, dated 2011-08-30.
15573         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15574         __need_system_stat_h defined.
15575         (orig_fstatat) [HAVE_FSTATAT]: New function.
15576         (rpl_fstatat): Go back to the old way of doing things,
15577         except call orig_fstatat instead of fstatat.
15578         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15579         Remove unnecessary check whether fstatat fills in st_size etc.
15580
15581 2011-09-01  Bruno Haible  <bruno@clisp.org>
15582
15583         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15584         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15585         just include the system's header.
15586
15587 2011-08-31  Jim Meyering  <meyering@redhat.com>
15588
15589         tests: avoid spurious assertion failure in test-float.c on ppc64
15590         * tests/test-float.c (test_long_double): Comment out an assertion,
15591         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15592         with gcc-4.4.4.
15593
15594         maint: indent with spaces, not TABs
15595         I need to get in the habit of running gnulib's "make check".
15596         Both of these would have been caught.
15597         * m4/largefile.m4: Indent with spaces, not TABs.
15598         * lib/parse-datetime.y (iso_8601_time): Likewise.
15599         Spotted by Pádraig Brady.
15600
15601         test-parse-datetime.c: accommodate a relatively strict gcc warning
15602         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15603         to avoid a warning from gcc's -Werror=missing-declarations.
15604         Insert a few spaces-before-funcall-parenthesis.
15605
15606 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15607
15608         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15609         The parser now accepts ISO 8601 date-time strings with "T" as the
15610         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15611         with a space between the date and time strings.  Now it also parses
15612         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15613         variants like "2004-02-29T16:21:42.333-07:00"
15614         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15615         of day representation using the 'T' separator character.
15616         * doc/parse-datetime.texi (General date syntax): replace use of
15617         deprecated --iso-8601 option with --rfc-3339 in example of date
15618         command output formats that can be parsed.
15619         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15620         lib/parse-datetime.y.
15621         (gmt_offset): New function.
15622         (main): Add additional test cases to validate ISO8601 extended
15623         date and time of day parsing.
15624
15625 2011-08-31  Bruno Haible  <bruno@clisp.org>
15626
15627         freopen: Documentation.
15628         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15629         name.
15630         Reported by Claudio Bley <claudio.bley@gmail.com>.
15631
15632 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15633
15634         freopen: Don't crash if the filename argument is NULL.
15635         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15636         NULL.
15637
15638 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15639
15640         openat: work around AIX 7.1 fstatat bug
15641         Problem reported by Kevin Brott for GNU tar, in the thread containing
15642         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15643         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15644         FSTATAT_ST_SIZE_ETC_BROKEN.
15645         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15646         rpl_fstatat.
15647         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15648         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15649         AC_CHECK_FUNCS_ONCE for fstatat.
15650         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15651         fchmodat, mkdirat, openat and unlinkat.
15652
15653 2011-08-30  Bruno Haible  <bruno@clisp.org>
15654
15655         Avoid endless recursions if config.h includes some header files.
15656         * lib/fopen.c (__need_FILE): Define already before including config.h.
15657         * lib/freopen.c (__need_FILE): Likewise.
15658         * lib/open.c (__need_system_fcntl_h): Likewise.
15659         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15660         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15661         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15662
15663 2011-08-25  Karl Berry  <karl@gnu.org>
15664
15665         * config/srclist.txt (ylwrap): new try.
15666         * build-aux/ylwrap: new file.
15667
15668 2011-08-23  Bruno Haible  <bruno@clisp.org>
15669
15670         tmpdir: Use a good default directory on native Windows.
15671         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15672         (P_tmpdir): Default to _P_tmpdir on native Windows.
15673         (path_search): On native Windows, try the value returned by GetTempPath
15674         before trying P_tmpdir.
15675         * modules/tmpdir (Depends-on): Add pathmax.
15676         Suggested by John Darrington <john@darrington.wattle.id.au>.
15677
15678 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15679
15680         doc: fix typo in README-release
15681         * top/README-release: Capitalize first word of a sentence.
15682
15683 2011-08-19  Jim Meyering  <meyering@redhat.com>
15684
15685         fts: do not exhaust memory when processing million-entry directories
15686         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15687         directory would require about 256*N bytes of memory.  Thus, it was
15688         easy to construct a directory too large to be processed by any of
15689         those tools.  With this change, fts' maximum memory utilization is
15690         now limited to around 30MB.
15691         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15692         (fts_read): When we've processed the final entry (i.e., when
15693         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15694         using the parent entry to read any remaining entries.  Dispatch
15695         depending on what fts_build returns:
15696         - NULL+stop, aka failure: stop
15697         - NULL otherwise: move up in the dir hierarchy
15698         - non-NULL: handle this new entry
15699         (fts_build): Declare and use new local, continue_readdir.
15700         Prepare to be called from fts_read, when the entries
15701         from a partially-read directory have just been exhausted.
15702         In that case, we'll skip the opendir and instead use the parent's
15703         fts_dirp and derive dir_fd from that.
15704         Finally, in the readdir loop, if we read max_entries entries,
15705         exit the loop ensuring *not* to call closedir.  This is required
15706         so that fts_dirp can be reused on a subsequent call.
15707         Prompted by Ben England's report of memory exhaustion in find
15708         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15709
15710         maint: fts: move decl of `dp' down into while loop; split a long line
15711         * lib/fts.c (fts_build): No semantic change.
15712
15713         fts: add/use new struct member, fts_dirp
15714         We are about to use this to manage any directory with
15715         too many entries to read all of them into memory at once.
15716         To do that, we'll need to save the DIR* pointer in each
15717         affected FTSENT struct.
15718         * lib/fts_.h: Include <dirent.h>.
15719         (struct FTSENT) [fts_dirp]: New member.
15720         * lib/fts.c (closedir_and_clear): Define.
15721         Use it in place of closedir so that we are sure to
15722         clear the new fts_dirp member when done with it.
15723         (fts_alloc): Initialize the new member.
15724         (fts_lfree): Free, if needed.
15725
15726         maint: fts: give __opendir2 a new parameter and rename
15727         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15728         than surreptitiously using sole caller's "dir_fd".
15729         (fts_opendir): Rename from __opendir2.
15730
15731         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15732         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15733
15734         maint: fts.c: correct off-by-one indentation
15735         * lib/fts.c (fts_build): Correct indentation, change style
15736         of a couple of block comments, and bracing style.
15737
15738         maint: fts.c: move __opendir2 #define "up" out of function body
15739         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15740
15741         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15742         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15743         out for a long time and besides was useful only on BSD systems.
15744
15745 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15746
15747         regex: port to Stratus OpenVOS
15748         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15749         define to empty, rather than attempting nonportable optimizations.
15750         Problem reported by Paul Green in:
15751         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15752         and fix suggested by Eric Blake in:
15753         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15754
15755 2011-08-17  Eric Blake  <eblake@redhat.com>
15756
15757         getcwd: fix test failures on mingw
15758         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15759         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15760         test if long directory cannot be created, and allow mingw errno.
15761
15762         getcwd-lgpl: fix m4 to match relaxed test for BSD
15763         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15764         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15765         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15766         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15767         signature problem.
15768
15769         getcwd: fix compilation on mingw64
15770         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15771         getcwd.
15772         Reported by Marc-André Lureau.
15773
15774         pipe2: silence compiler warning
15775         * lib/pipe2.c (pipe2): Hide label if it is not used.
15776
15777 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15778
15779         relocatable-prog: fix link error
15780         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15781         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15782         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15783         into modules/relocatable-lib without noticing that
15784         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15785         also needs to build relocatable.c.
15786
15787 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15788
15789         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15791         shell code: it contained a 'break' that was not in a loop.
15792         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15793         via a shell-language loop; this may have been true in old Autoconf
15794         versions, but it's not true in Autoconf 2.68.  I found this bug
15795         when testing coreutils git on Solaris 8, whose shell complains
15796         about the syntax error.
15797
15798 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15799
15800         * lib/base64.c: Fix comment to reference RFC 4648.
15801         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15802         <gvtulder@gmail.com>.
15803
15804 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15805
15806         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15807
15808         po/Makefile.in.in: fix make -q problem
15809         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15810         rule, since there's no file named 'check-macro-version' and its
15811         use as a file breaks make -q.
15812         (all): Don't depend on check-macro-version.
15813         (CHECK_MACRO_VERSION): New macro.
15814         (stamp-po): Use it.
15815
15816         configmake: fix make -q problem
15817         * modules/configmake (configmake.h): Update configmake.h's time stamp
15818         even if the file does not change.  Otherwise, 'make -q' fails.
15819         Problem reported by Simon Josefsson in
15820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15821
15822 2011-08-11  Jim Meyering  <meyering@redhat.com>
15823
15824         git-version-gen: correct the advice in a comment
15825         * build-aux/git-version-gen: Correct comment.
15826         Don't recommend to list .tarball-version in .gitignore.
15827
15828 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15829
15830         base64: fix off-by-one buffer size bug
15831         Problem and (trivial) fix reported by Gijs van Tulder in
15832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15833         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15834         * tests/test-base64.c (main): Catch the bug.
15835
15836 2011-08-10  Eric Blake  <eblake@redhat.com>
15837
15838         closein: correct comments
15839         * lib/closein.c (close_stdin): Improve comments.
15840
15841 2011-08-09  Bruno Haible  <bruno@clisp.org>
15842
15843         More tests for 'fseeko'.
15844         * tests/test-fseeko3.c: New file, from Eric Blake.
15845         * tests/test-fseeko3.sh: New file.
15846         * modules/fseeko-tests (Files): Add them.
15847         (TESTS): Add test-fseeko3.sh.
15848         (check_PROGRAMS): Add test-fseeko3.
15849
15850 2011-08-09  Eric Blake  <eblake@redhat.com>
15851
15852         fseeko: remove unneeded hack
15853         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15854
15855         fseeko: fix bug on glibc
15856         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15857         Reported by John W. Eaton.
15858
15859 2011-08-08  Bruno Haible  <bruno@clisp.org>
15860
15861         unictype/base: Fix interoperability with preinstalled libunistring.
15862         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15863         Reported by Simon Josefsson.
15864
15865 2011-08-08  Bruno Haible  <bruno@clisp.org>
15866
15867         iswblank: Detect declaration correctly.
15868         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15869         AC_CHECK_DECLS invocation.
15870
15871 2011-08-08  Bruno Haible  <bruno@clisp.org>
15872
15873         tcgetsid: Detect declaration correctly.
15874         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15875         AC_CHECK_DECLS invocation.
15876         Reported by Simon Josefsson.
15877
15878 2011-08-08  Eric Blake  <eblake@redhat.com>
15879
15880         largefile: fix typo that regressed large file support
15881         * modules/largefile (configure.ac-early): Fix section name.
15882
15883 2011-08-06  Karl Berry  <karl@gnu.org>
15884
15885         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15886         a separate module.
15887
15888 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15889
15890         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15891         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15892         get prototype for free.
15893
15894 2011-08-04  Bruno Haible  <bruno@clisp.org>
15895
15896         Tests for module 'pathmax'.
15897         * modules/pathmax-tests: New file.
15898         * tests/test-pathmax.c: New file.
15899
15900         canonicalize-lgpl: Support larger filenames on the Hurd.
15901         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15902         Reported by Paul Eggert.
15903
15904         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15905         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15906         * lib/chdir-long.h: Include pathmax.h.
15907         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15908         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15909         (PATH_MAX): Remove code that is done by pathmax.h.
15910         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15911         * lib/tmpfile.c: Add a comment.
15912         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15913         * modules/chdir-long (Depends-on): Add pathmax.
15914         * modules/getcwd (Depends-on): Add pathmax.
15915         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15916         is not defined.
15917         * doc/posix-headers/limits.texi: Mention the pathmax module.
15918         * NEWS: Mention the change.
15919
15920 2011-08-02  Bruno Haible  <bruno@clisp.org>
15921
15922         pthread_sigmask: Actually use results of gl_THREADLIB.
15923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15924         gl_THREADLIB, not gl_[]THREADLIB.
15925         Reported by Eric Blake.
15926
15927 2011-08-02  Jim Meyering  <meyering@redhat.com>
15928
15929         maint.mk: relax the default _gl_TS_function_match regexp
15930         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15931         space between function name and "(" in an "extern" declaration.
15932         That would fail to match a decl with no space there: extern void foo();
15933
15934 2011-07-31  Iain Nicol  <iain@thenicols.net>
15935
15936         git-version-gen: document that EXTRA_DIST must include .version
15937         * build-aux/git-version-gen: In the how-to-use comment, document
15938         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15939         will fail when run from an unpacked distribution tarball.
15940
15941 2011-08-01  Bruno Haible  <bruno@clisp.org>
15942
15943         wctype-h: Fix last change.
15944         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15945         REPLACE_TOWLOWER to 0.
15946         Reported by Sam Steingold <sds@gnu.org>.
15947
15948 2011-07-31  Bruno Haible  <bruno@clisp.org>
15949
15950         frexpl: Update autoconf test.
15951         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15952         according to changes of 2011-06-20.
15953
15954 2011-07-31  Bruno Haible  <bruno@clisp.org>
15955
15956         sys_utsname: Add support for Minix.
15957         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15958         <sys/utsname.h>.
15959         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15960         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15961
15962 2011-07-31  Bruno Haible  <bruno@clisp.org>
15963
15964         strings: Add support for Minix.
15965         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15966         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15967         * doc/posix-headers/strings.texi: Document the Minix problem.
15968
15969 2011-07-31  Bruno Haible  <bruno@clisp.org>
15970
15971         wctype-h: Add support for Minix.
15972         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15973         REPLACE_TOWLOWER.
15974         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15975         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15976         REPLACE_ISWCNTRL.
15977
15978 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15979
15980         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15981         This is a performance improvement for 64-bit hosts: it causes the
15982         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15983
15984 2011-07-31  Bruno Haible  <bruno@clisp.org>
15985
15986         stdioext: Add support for Minix.
15987         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15988         * lib/fpurge.c (fpurge): Likewise.
15989         * lib/freadahead.c (freadahead): Likewise.
15990         * lib/freadable.c (freadable): Likewise.
15991         * lib/freading.c (freading): Likewise.
15992         * lib/freadptr.c (freadptr): Likewise.
15993         * lib/freadseek.c (freadptrinc): Likewise.
15994         * lib/fseeko.c (rpl_fseeko): Likewise.
15995         * lib/fseterr.c (fseterr): Likewise.
15996         * lib/fwritable.c (fwritable): Likewise.
15997         * lib/fwriting.c (fwriting): Likewise.
15998         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15999         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16000
16001 2011-07-31  Bruno Haible  <bruno@clisp.org>
16002
16003         errno: Port to Minix.
16004         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16005         ECONNABORTED are defined.
16006         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16007         GNULIB_defined_ECONNABORTED): New macros.
16008         * lib/strerror-override.h (strerror_override): Test also
16009         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16010         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16011         ECONNABORTED.
16012         * doc/posix-headers/errno.texi: Mention the Minix problem.
16013
16014 2011-07-31  Bruno Haible  <bruno@clisp.org>
16015
16016         Work around declaration collisions on Minix.
16017         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16018         defined, set REPLACE_MBSINIT.
16019         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16020         defined, set REPLACE_MBRTOWC.
16021         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16022         set REPLACE_MBRLEN.
16023         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16024         defined, set REPLACE_MBSRTOWCS.
16025         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16026         defined, set REPLACE_WCRTOMB.
16027         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16028         defined, set REPLACE_WCSRTOMBS.
16029
16030 2011-07-31  Bruno Haible  <bruno@clisp.org>
16031
16032         Add support for Minix with ACK compiler.
16033         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16034         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16035         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16036
16037 2011-07-31  Bruno Haible  <bruno@clisp.org>
16038
16039         Documentation about Minix.
16040         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16041         * doc/glibc-headers/*.texi: Likewise.
16042         * doc/posix-functions/*.texi: Likewise.
16043         * doc/glibc-functions/*.texi: Likewise.
16044
16045 2011-07-31  Bruno Haible  <bruno@clisp.org>
16046
16047         snippet/warn-on-use: Fix indentation.
16048         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16049
16050 2011-07-25  Jim Meyering  <meyering@redhat.com>
16051
16052         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16053         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16054         commands.
16055
16056 2011-07-27  Jim Meyering  <meyering@redhat.com>
16057
16058         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16059         * top/maint.mk (gl_extract_significant_defines_): Now that
16060         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16061         gnulib/lib/signal.in.h, and now that we recommend to
16062         define-if-undefined those two symbols in application code,
16063         we must filter them out of the "significant" list.
16064         This avoids a "make syntax-check" failure in coreutils.
16065
16066 2011-07-26  Eric Blake  <eblake@redhat.com>
16067
16068         warnings: add comments about previous patch
16069         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16070         * m4/include_next.m4: Likewise.
16071         * m4/warn-on-use.m4: Likewise.
16072         * m4/warnings.m4: Likewise, and simplify use.
16073         Suggested by Stefano Lattarini.
16074
16075         include-next, warnings: support older autoconf
16076         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16077         AS_VAR_PUSHDEF in a way that works with older autoconf.
16078         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16079         Reported by Daniel P. Berrange.
16080
16081 2011-07-25  Bruno Haible  <bruno@clisp.org>
16082
16083         fseek, ftell: Fix doc.
16084         * doc/posix-functions/fseek.texi: Reword statement about
16085         AC_SYS_LARGEFILE.
16086         * doc/posix-functions/ftell.texi: Likewise.
16087
16088 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16089             Bruno Haible  <bruno@clisp.org>
16090
16091         Add dependencies to the 'largefile' module.
16092         * modules/fopen (Depends-on): Add 'largefile'.
16093         * modules/freopen (Depends-on): Likewise.
16094         * modules/fseeko (Depends-on): Likewise.
16095         * modules/ftello (Depends-on): Likewise.
16096         * modules/glob (Depends-on): Likewise.
16097         * modules/lseek (Depends-on): Likewise.
16098         * modules/lstat (Depends-on): Likewise.
16099         * modules/mkostemp (Depends-on): Likewise.
16100         * modules/mkostemps (Depends-on): Likewise.
16101         * modules/mkstemp (Depends-on): Likewise.
16102         * modules/mkstemps (Depends-on): Likewise.
16103         * modules/open (Depends-on): Likewise.
16104         * modules/openat (Depends-on): Likewise.
16105         * modules/pread (Depends-on): Likewise.
16106         * modules/pwrite (Depends-on): Likewise.
16107         * modules/scandir (Depends-on): Likewise.
16108         * modules/stat (Depends-on): Likewise.
16109         * modules/tmpfile (Depends-on): Likewise.
16110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16111         since the containing module now depends on the largefile module.
16112         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16113         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16114         off_t is fixed by gnulib.
16115         * doc/posix-functions/freopen.texi: Likewise.
16116         * doc/posix-functions/fseeko.texi: Likewise.
16117         * doc/posix-functions/fstatat.texi: Likewise.
16118         * doc/posix-functions/ftello.texi: Likewise.
16119         * doc/posix-functions/glob.texi: Likewise.
16120         * doc/posix-functions/lseek.texi: Likewise.
16121         * doc/posix-functions/lstat.texi: Likewise.
16122         * doc/posix-functions/mkstemp.texi: Likewise.
16123         * doc/posix-functions/open.texi: Likewise.
16124         * doc/posix-functions/openat.texi: Likewise.
16125         * doc/posix-functions/pread.texi: Likewise.
16126         * doc/posix-functions/pwrite.texi: Likewise.
16127         * doc/posix-functions/scandir.texi: Likewise.
16128         * doc/posix-functions/stat.texi: Likewise.
16129         * doc/posix-functions/tmpfile.texi: Likewise.
16130         * doc/glibc-functions/mkostemp.texi: Likewise.
16131         * doc/glibc-functions/mkostemps.texi: Likewise.
16132         * doc/glibc-functions/mkstemps.texi: Likewise.
16133
16134 2011-07-25  Bruno Haible  <bruno@clisp.org>
16135
16136         fcntl: Move AC_LIBOBJ invocation to module description.
16137         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16138         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16139
16140         fcntl: Remove call-in from fchdir.m4.
16141         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16143
16144         dup3: Remove potential call-in from fchdir.m4.
16145         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16147
16148         dup2: Move AC_LIBOBJ invocation to module description.
16149         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16150         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16151         Don't invoke AC_LIBOBJ.
16152         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16153
16154         dup2: Remove call-in from fchdir.m4.
16155         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16157
16158         fclose: Move AC_LIBOBJ invocation to module description.
16159         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16160         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16161         to 1.
16162         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16163
16164         fclose: Remove call-in from close.m4.
16165         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16166         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16167
16168         close: Move AC_LIBOBJ invocation to module description.
16169         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16170         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16171         1.
16172         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16173
16174         close: Remove call-in from fchdir.m4.
16175         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16177
16178         open: Move AC_LIBOBJ invocation to module description.
16179         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16180         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16181         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16182
16183         open: Remove call-in from fchdir.m4.
16184         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16186
16187         fchdir: Start to remove gl_REPLACE_* idiom.
16188         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16189         (gl_FUNC_FCHDIR): Invoke it.
16190
16191 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16192
16193         * lib/ftell.c (ftell): Comment out cast.
16194
16195         close: use gl_REPLACE_FCLOSE only if defined
16196         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16197         is defined.  The close module doesn't depend on the fclose module
16198         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16200         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16201
16202 2011-07-24  Jim Meyering  <meyering@redhat.com>
16203
16204         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16205         * tests/test-select.h (test_function): Declare as "static".
16206
16207 2011-07-24  Bruno Haible  <bruno@clisp.org>
16208
16209         doc: Mention the effects of AC_SYS_LARGEFILE.
16210         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16211         on this function.
16212         * doc/posix-functions/aio_error.texi: Likewise.
16213         * doc/posix-functions/aio_fsync.texi: Likewise.
16214         * doc/posix-functions/aio_read.texi: Likewise.
16215         * doc/posix-functions/aio_return.texi: Likewise.
16216         * doc/posix-functions/aio_suspend.texi: Likewise.
16217         * doc/posix-functions/aio_write.texi: Likewise.
16218         * doc/posix-functions/fgetpos.texi: Likewise.
16219         * doc/posix-functions/fopen.texi: Likewise.
16220         * doc/posix-functions/freopen.texi: Likewise.
16221         * doc/posix-functions/fsetpos.texi: Likewise.
16222         * doc/posix-functions/fstatvfs.texi: Likewise.
16223         * doc/posix-functions/ftruncate.texi: Likewise.
16224         * doc/posix-functions/ftw.texi: Likewise.
16225         * doc/posix-functions/getrlimit.texi: Likewise.
16226         * doc/posix-functions/glob.texi: Likewise.
16227         * doc/posix-functions/lio_listio.texi: Likewise.
16228         * doc/posix-functions/lockf.texi: Likewise.
16229         * doc/posix-functions/mkstemp.texi: Likewise.
16230         * doc/posix-functions/mmap.texi: Likewise.
16231         * doc/posix-functions/nftw.texi: Likewise.
16232         * doc/posix-functions/openat.texi: Likewise.
16233         * doc/posix-functions/opendir.texi: Likewise.
16234         * doc/posix-functions/posix_fadvise.texi: Likewise.
16235         * doc/posix-functions/posix_fallocate.texi: Likewise.
16236         * doc/posix-functions/pread.texi: Likewise.
16237         * doc/posix-functions/pwrite.texi: Likewise.
16238         * doc/posix-functions/readdir.texi: Likewise.
16239         * doc/posix-functions/readdir_r.texi: Likewise.
16240         * doc/posix-functions/rewinddir.texi: Likewise.
16241         * doc/posix-functions/scandir.texi: Likewise.
16242         * doc/posix-functions/seekdir.texi: Likewise.
16243         * doc/posix-functions/setrlimit.texi: Likewise.
16244         * doc/posix-functions/statvfs.texi: Likewise.
16245         * doc/posix-functions/telldir.texi: Likewise.
16246         * doc/posix-functions/tmpfile.texi: Likewise.
16247         * doc/posix-functions/truncate.texi: Likewise.
16248         * doc/glibc-functions/fallocate.texi: Likewise.
16249         * doc/glibc-functions/fstatfs.texi: Likewise.
16250         * doc/glibc-functions/fts_children.texi: Likewise.
16251         * doc/glibc-functions/fts_read.texi: Likewise.
16252         * doc/glibc-functions/getdirentries.texi: Likewise.
16253         * doc/glibc-functions/mkostemp.texi: Likewise.
16254         * doc/glibc-functions/mkostemps.texi: Likewise.
16255         * doc/glibc-functions/mkstemps.texi: Likewise.
16256         * doc/glibc-functions/preadv.texi: Likewise.
16257         * doc/glibc-functions/pwritev.texi: Likewise.
16258         * doc/glibc-functions/sendfile.texi: Likewise.
16259         * doc/glibc-functions/statfs.texi: Likewise.
16260
16261 2011-07-24  Bruno Haible  <bruno@clisp.org>
16262
16263         doc: Fix typo.
16264         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16265
16266 2011-07-24  Bruno Haible  <bruno@clisp.org>
16267
16268         doc: Mention fsusage.
16269         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16270
16271 2011-07-24  Bruno Haible  <bruno@clisp.org>
16272
16273         doc: Mention new glibc headers and functions.
16274         * doc/glibc-headers/gshadow.texi: New file.
16275         * doc/glibc-functions/endsgent.texi: New file.
16276         * doc/glibc-functions/fgetsgent.texi: New file.
16277         * doc/glibc-functions/fgetsgent_r.texi: New file.
16278         * doc/glibc-functions/getsgent.texi: New file.
16279         * doc/glibc-functions/getsgent_r.texi: New file.
16280         * doc/glibc-functions/getsgnam.texi: New file.
16281         * doc/glibc-functions/getsgnam_r.texi: New file.
16282         * doc/glibc-functions/putsgent.texi: New file.
16283         * doc/glibc-functions/setsgent.texi: New file.
16284         * doc/glibc-functions/sgetsgent.texi: New file.
16285         * doc/glibc-functions/sgetsgent_r.texi: New file.
16286         * doc/glibc-functions/malloc_info.texi: New file.
16287         * doc/glibc-functions/preadv.texi: New file.
16288         * doc/glibc-functions/pwritev.texi: New file.
16289         * doc/glibc-functions/register_printf_modifier.texi: New file.
16290         * doc/glibc-functions/register_printf_specifier.texi: New file.
16291         * doc/glibc-functions/register_printf_type.texi: New file.
16292         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16293         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16294         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16295         * doc/glibc-functions/pthread_getname_np.texi: New file.
16296         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16297         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16298         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16299         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16300         * doc/glibc-functions/pthread_setname_np.texi: New file.
16301         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16302         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16303         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16304         * doc/glibc-functions/qsort_r.texi: New file.
16305         * doc/glibc-functions/quick_exit.texi: New file.
16306         * doc/glibc-functions/syncfs.texi: New file.
16307         * doc/gnulib.texi: Include them.
16308         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16309         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16310         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16311         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16312         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16313         * doc/glibc-functions/execvpe.texi: Likewise.
16314
16315 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16316
16317         ftell: don't include <unistd.h>
16318         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16319         guaranteed to define off_t, and the ftell module depends on the
16320         stdio module.
16321
16322         ftell: do not assume wraparound signed arithmetic
16323         * lib/ftell.c: Include <limits.h>.
16324         (ftell): Don't assume wraparound signed arithmetic.
16325
16326 2011-07-24  Bruno Haible  <bruno@clisp.org>
16327
16328         close: No longer depend on module 'fclose'.
16329         * modules/close (Depends-on): Remove fclose.
16330         * NEWS: Mention the change.
16331         Suggested by Sam Steingold <sds@gnu.org>.
16332
16333 2011-07-24  Bruno Haible  <bruno@clisp.org>
16334
16335         fsusage: Enable large volume support on AIX >= 5.2.
16336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16337         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16338         instead of STAT_STATVFS.
16339         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16340
16341         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16343         f_blocks field only on MacOS X.
16344
16345         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16347         * modules/fsusage (Depends-on): Add largefile.
16348
16349 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16350
16351         * README: Modernize discussion of signed integers.
16352         Assuming overflow wraparound is no longer safe.
16353         Mention ones' complement and signed magnitude.
16354
16355 2011-07-22  Bruno Haible  <bruno@clisp.org>
16356
16357         select tests, pselect tests: Refactor.
16358         * tests/test-select.h: New file, extracted from tests/test-select.c.
16359         (select_fn): New type.
16360         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16361         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16362         test_pipe): Add my_select argument.
16363         (test_function): Renamed from main. Add my_select argument.
16364         * tests/test-select.c: Move most code to tests/test-select.h. Include
16365         test-select.h.
16366         * modules/select-tests (Files): Add tests/test-select.h.
16367         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16368         (my_select, main): New functions.
16369         * modules/pselect-tests (Files): Add tests/test-select.h,
16370         tests/macros.h, tests/signature.h.
16371         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16372         (configure.ac): Check for <sys/wait.h>.
16373
16374 2011-07-22  Bruno Haible  <bruno@clisp.org>
16375
16376         sys_select tests: Check the signature of FD_*.
16377         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16378         signature tests from here...
16379         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16380         here.
16381         * modules/sys_select-tests (Files): Add tests/signature.h.
16382
16383 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16384
16385         largefile: new module, replacing large-inode
16386         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16387         * MODULES.html.sh: Add largefile, remove large-inode.
16388         * modules/largefile, m4/largefile.m4: New files.
16389         * modules/large-inode, m4/large-inode.m4: Remove.
16390
16391         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16392         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16393         implementations that use only 32 bits to count blocks.
16394         On typical hosts with 1024-byte blocks, this fails with file
16395         systems as small as 4 TiB.  Problem reported by Herb Wartens
16396         <http://debbugs.gnu.org/9140> and this should also fix a similar
16397         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16398
16399         large-inode: New module
16400         * MODULES.html.sh: Add it.
16401         * modules/large-inode, m4/large-inode.m4: New files.
16402
16403         extensions: Enable extensions on MacOS X 10.5 and later.
16404         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16405
16406 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16407
16408         file-has-acl: use acl_extended_file_nofollow if available
16409         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16410         (acl_extended_file): New macro.
16411         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16412         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16413
16414 2011-07-21  Bruno Haible  <bruno@clisp.org>
16415
16416         Declare system functions in a way that works with C++.
16417         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16418         declare fdopendir as extern "C".
16419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16420         declare frexpl as extern "C".
16421         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16422         declare gai_strerror as extern "C".
16423         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16424         programs, declare gai_strerror as extern "C".
16425         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16426         declare getlogin_r as extern "C".
16427         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16428         as extern "C".
16429         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16430         declare ldexpl as extern "C".
16431         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16432         as extern "C".
16433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16434         program, declare getmntinfo as extern "C".
16435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16436         stpncpy as extern "C".
16437         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16438         program, declare __xpg_strerror_r as extern "C".
16439         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16440         strndup as extern "C".
16441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16442         declare memset and bzero as extern "C".
16443         Reported by Sam Steingold <sds@gnu.org>.
16444
16445 2011-07-12  Jim Meyering  <meyering@redhat.com>
16446
16447         maint.mk: prohibit inclusion of "verify.h" without use
16448         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16449
16450 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16451
16452         timer-time: A new module to check for timer_settime()
16453         * m4/timer_time.m4: Check for the posix function.
16454         * modules/timer-time: Add the new module.
16455         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16456         Mention it.
16457
16458 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16459             Bruno Haible  <bruno@clisp.org>
16460
16461         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16463         not defined, assume POSIX threads and look for pthread_sigmask in
16464         $LIBS, without changing $CPPFLAGS.
16465
16466 2011-07-19  Bruno Haible  <bruno@clisp.org>
16467
16468         strstr: Update cross-compilation guess.
16469         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16470         CPUs, guess no, in view of glibc
16471         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16472         Suggested by Eric Blake. Reported by Reuben Thomas.
16473
16474 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16475
16476         getopt-gnu: suppress core dumps from detection code
16477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16478         to suppress core dumps that may well occur on glibc systems.
16479         * modules/getopt-gnu: Depend on nocrash.
16480
16481 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16482
16483         pthread_sigmask: ensure usleep is declared
16484         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16485         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16486
16487 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16488
16489         doc: Document NonStop portability issues.
16490         * doc/posix-functions/sigaction.texi (sigaction):
16491         * doc/posix-headers/signal.texi (signal.h):
16492         Document NonStop.  See Joachim Schmitz in
16493         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16494
16495 2011-07-15  Bruno Haible  <bruno@clisp.org>
16496
16497         ffsl, ffsll: Avoid unportable behaviour.
16498         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16499
16500 2011-07-15  Bruno Haible  <bruno@clisp.org>
16501
16502         ffs: More tests.
16503         * tests/test-ffs.c (NBITS): New macro.
16504         (main): Add more tests.
16505         * tests/test-ffsl.c (NBITS): New macro.
16506         (main): Add more tests.
16507         * tests/test-ffsll.c (NBITS): New macro.
16508         (main): Add more tests.
16509
16510 2011-07-15  Eric Blake  <eblake@redhat.com>
16511
16512         ffsl, ffsll: new modules
16513         * modules/ffsl: New file.
16514         * modules/ffsll: Likewise.
16515         * m4/ffsl.m4: Likewise.
16516         * m4/ffsll.m4: Likewise.
16517         * lib/ffsl.c: Likewise.
16518         * lib/ffsl.h: Likewise.
16519         * lib/ffsll.c: Likewise.
16520         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16521         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16522         * modules/string (Makefile.am): Substitute witnesses.
16523         * lib/strings.in.h (ffsl, ffsll): Declare.
16524         * modules/ffsl-tests: New test file.
16525         * modules/ffsll-tests: Likewise.
16526         * tests/test-ffsl.c: Likewise.
16527         * tests/test-ffsll.c: Likewise.
16528         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16529         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16530         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16531
16532         ffs: fix m4 prerequisite
16533         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16534
16535         ffs: avoid undefined behavior
16536         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16537         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16538         Reported by Bruno Haible.
16539
16540 2011-07-12  Bruno Haible  <bruno@clisp.org>
16541
16542         pthread_sigmask: Rely on module 'threadlib'.
16543         * modules/pthread_sigmask (Depends-on): Add threadlib.
16544         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16545         is defined.
16546
16547 2011-07-12  Bruno Haible  <bruno@clisp.org>
16548
16549         regex: Depend on module 'strcase'.
16550         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16551
16552 2011-07-12  Jim Meyering  <meyering@redhat.com>
16553
16554         warn-on-use: fix typo in file name
16555         * modules/snippet/warn-on-use (Files): Correct file name:
16556         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16557
16558 2011-07-12  Bruno Haible  <bruno@clisp.org>
16559
16560         strings: Document module.
16561         * doc/posix-headers/strings.texi: Mention module 'strings'.
16562
16563 2011-07-12  Bruno Haible  <bruno@clisp.org>
16564
16565         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16566         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16567         (Files, Makefile.am): Update.
16568         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16569         * modules/stdlib (Depends-on): Update.
16570
16571 2011-07-12  Bruno Haible  <bruno@clisp.org>
16572
16573         * NEWS: Mention the changes.
16574
16575         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16576         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16577         (Files, Makefile.am): Update.
16578         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16579         * modules/arpa_inet (Depends-on): Update.
16580         * modules/ctype (Depends-on): Update.
16581         * modules/dirent (Depends-on): Update.
16582         * modules/fcntl-h (Depends-on): Update.
16583         * modules/glob (Depends-on): Update.
16584         * modules/iconv-h (Depends-on): Update.
16585         * modules/inttypes-incomplete (Depends-on): Update.
16586         * modules/langinfo (Depends-on): Update.
16587         * modules/locale (Depends-on): Update.
16588         * modules/math (Depends-on): Update.
16589         * modules/netdb (Depends-on): Update.
16590         * modules/poll-h (Depends-on): Update.
16591         * modules/pty (Depends-on): Update.
16592         * modules/search (Depends-on): Update.
16593         * modules/signal (Depends-on): Update.
16594         * modules/spawn (Depends-on): Update.
16595         * modules/stdio (Depends-on): Update.
16596         * modules/stdlib (Depends-on): Update.
16597         * modules/string (Depends-on): Update.
16598         * modules/strings (Depends-on): Update.
16599         * modules/sys_file (Depends-on): Update.
16600         * modules/sys_ioctl (Depends-on): Update.
16601         * modules/sys_select (Depends-on): Update.
16602         * modules/sys_socket (Depends-on): Update.
16603         * modules/sys_stat (Depends-on): Update.
16604         * modules/sys_time (Depends-on): Update.
16605         * modules/sys_times (Depends-on): Update.
16606         * modules/sys_utsname (Depends-on): Update.
16607         * modules/sys_wait (Depends-on): Update.
16608         * modules/termios (Depends-on): Update.
16609         * modules/time (Depends-on): Update.
16610         * modules/unistd (Depends-on): Update.
16611         * modules/wchar (Depends-on): Update.
16612         * modules/wctype-h (Depends-on): Update.
16613         * MODULES.html.sh (Support for building libraries and executables):
16614         Update.
16615
16616         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16617         * modules/snippet/unused-parameter: Renamed from
16618         modules/unused-parameter.
16619         (Files, Makefile.am): Update.
16620         * build-aux/snippet/unused-parameter.h: Renamed from
16621         build-aux/unused-parameter.h.
16622         * modules/selinux-h (Depends-on): Update.
16623         * modules/unistr/base (Depends-on): Update.
16624         * MODULES.html.sh (Core language properties): Update.
16625
16626         Rename module 'link-warning' to 'snippet/link-warning'.
16627         * modules/snippet/link-warning: Renamed from modules/link-warning.
16628         (Files, Makefile.am): Update.
16629         * build-aux/snippet/link-warning.h: Renamed from
16630         build-aux/link-warning.h.
16631         * MODULES.html.sh (Support for building libraries and executables):
16632         Update.
16633
16634         Rename module 'c++defs' to 'snippet/c++defs'.
16635         * modules/snippet/c++defs: Renamed from modules/c++defs.
16636         (Files, Makefile.am): Update.
16637         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16638         * modules/arpa_inet (Depends-on): Update.
16639         * modules/ctype (Depends-on): Update.
16640         * modules/dirent (Depends-on): Update.
16641         * modules/fcntl-h (Depends-on): Update.
16642         * modules/glob (Depends-on): Update.
16643         * modules/iconv-h (Depends-on): Update.
16644         * modules/langinfo (Depends-on): Update.
16645         * modules/locale (Depends-on): Update.
16646         * modules/math (Depends-on): Update.
16647         * modules/netdb (Depends-on): Update.
16648         * modules/poll-h (Depends-on): Update.
16649         * modules/pty (Depends-on): Update.
16650         * modules/search (Depends-on): Update.
16651         * modules/signal (Depends-on): Update.
16652         * modules/spawn (Depends-on): Update.
16653         * modules/stdio (Depends-on): Update.
16654         * modules/stdlib (Depends-on): Update.
16655         * modules/string (Depends-on): Update.
16656         * modules/strings (Depends-on): Update.
16657         * modules/sys_ioctl (Depends-on): Update.
16658         * modules/sys_select (Depends-on): Update.
16659         * modules/sys_socket (Depends-on): Update.
16660         * modules/sys_stat (Depends-on): Update.
16661         * modules/sys_time (Depends-on): Update.
16662         * modules/sys_wait (Depends-on): Update.
16663         * modules/termios (Depends-on): Update.
16664         * modules/time (Depends-on): Update.
16665         * modules/unistd (Depends-on): Update.
16666         * modules/wchar (Depends-on): Update.
16667         * modules/wctype-h (Depends-on): Update.
16668
16669         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16670         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16671         (Files, Makefile.am): Update.
16672         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16673         * modules/argv-iter (Depends-on): Update.
16674         * modules/arpa_inet (Depends-on): Update.
16675         * modules/dirent (Depends-on): Update.
16676         * modules/fcntl-h (Depends-on): Update.
16677         * modules/fnmatch (Depends-on): Update.
16678         * modules/getopt-posix (Depends-on): Update.
16679         * modules/glob (Depends-on): Update.
16680         * modules/iconv-h (Depends-on): Update.
16681         * modules/inttypes-incomplete (Depends-on): Update.
16682         * modules/locale (Depends-on): Update.
16683         * modules/math (Depends-on): Update.
16684         * modules/netdb (Depends-on): Update.
16685         * modules/search (Depends-on): Update.
16686         * modules/signal (Depends-on): Update.
16687         * modules/spawn (Depends-on): Update.
16688         * modules/stdio (Depends-on): Update.
16689         * modules/stdlib (Depends-on): Update.
16690         * modules/string (Depends-on): Update.
16691         * modules/strings (Depends-on): Update.
16692         * modules/sys_socket (Depends-on): Update.
16693         * modules/sys_stat (Depends-on): Update.
16694         * modules/sys_time (Depends-on): Update.
16695         * modules/sys_times (Depends-on): Update.
16696         * modules/sys_utsname (Depends-on): Update.
16697         * modules/time (Depends-on): Update.
16698         * modules/unistd (Depends-on): Update.
16699         * modules/wchar (Depends-on): Update.
16700         * MODULES.html.sh (Support for building libraries and executables):
16701         Update.
16702
16703 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16704
16705         Improvements on _Noreturn and related modules.
16706
16707         modules/_Exit-tests: test _Noreturn too
16708         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16709         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16710         (main): Use them.
16711
16712         stdnoreturn, stdnoreturn-tests: remove modules
16713         They're not needed here and a bit premature for use elsewhere.  See
16714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16715         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16716         * tests/test-stdnoreturn.c: Remove files.
16717         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16718         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16719         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16720         and using noreturn.
16721         * modules/openat, modules/sigpipe-die, modules/xalloc:
16722         * modules/xmemdup0, modules/xstrtol:
16723         Remove dependency on stdnoreturn.
16724
16725         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16726         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16727         Reparenthesize to avoid GCC warning.
16728         Support Microsoft's syntax.
16729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16730
16731         _Noreturn-tests: remove module
16732         * modules/_Noreturn-tests: Remove.
16733         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16734         * tests/test-_Noreturn.c: Remove.
16735         * tests/test-stdnoreturn.c: Merge from the old
16736         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16737
16738 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16739
16740         _Noreturn, stdnoreturn, and related modules.
16741
16742         * top/maint.mk: Adjust to new noreturn support.
16743         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16744         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16745
16746         xalloc: use stdnoreturn.h
16747         * lib/xalloc.h: Include <stdnoreturn.h>.
16748         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16749         * modules/xalloc (Depends-on): Add stdnoreturn.
16750
16751         xstrtol: use stdnoreturn.h
16752         * lib/xstrtol.h: Include <stdnoreturn.h>.
16753         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16754         * modules/xstrtol (Depends-on): Add stdnoreturn.
16755
16756         xmemdup0: use stdnoreturn.h
16757         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16758         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16759         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16760
16761         sigpipe-die: use stdnoreturn.h
16762         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16763         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16764         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16765
16766         openat: use stdnoreturn.h
16767         * lib/openat.h: Include <stdnoreturn.h>.
16768         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16769         * modules/openat (Depends-on): Add stdnoreturn.
16770
16771         * lib/openat-die.c (openat_save_fail): Modernize comment.
16772
16773         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16774
16775         * lib/glthread/thread.h: Modernize comment.
16776
16777         obstack: use _Noreturn
16778         * lib/obstack.c (__attribute__): Remove macro.
16779         (print_and_abort): Use _Noreturn.
16780
16781         c-stack: use _Noreturn
16782         * lib/c-stack.c (die, overflow_handler, segv_handler):
16783         Use _Noreturn rather than __attribute__((noreturn)).
16784
16785         argmatch-tests, exclude_tests: use _Noreturn
16786         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16787         Remove.
16788         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16789
16790         stdlib: use _Noreturn
16791         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16792         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16793         * modules/stdlib (Depends-on): Add _Noreturn.
16794         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16795
16796         stdnoreturn-tests: new module
16797         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16798
16799         stdnoreturn: new module
16800         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16801         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16802
16803         _Noreturn-tests: new module
16804         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16805
16806         _Noreturn: new module
16807         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16808         New section, mentioning it.
16809         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16810
16811         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16812
16813 2011-07-11  Eric Blake  <eblake@redhat.com>
16814
16815         ffs: new module
16816         * modules/ffs: New file.
16817         * m4/ffs.m4: Likewise.
16818         * lib/ffs.c: Likewise.
16819         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16820         * modules/strings (Makefile.am): Substitute witness.
16821         (Depends-on): Add c++defs.
16822         * lib/strings.in.h (ffs): Declare.
16823         * modules/ffs-tests: New test file.
16824         * tests/test-ffs.c: Test new module.
16825         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16826         * doc/posix-functions/ffs.texi (ffs): Likewise.
16827
16828         regex: avoid compiler warning
16829         * lib/regex.c (includes): Include <strings.h>, for use of
16830         strcasecmp in regcomp.c.
16831         Reported by Joachim Schmitz.
16832
16833 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16834
16835         stdint: respect system's intmax_t if INTMAX_MAX
16836         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16837         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16838         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16839         long but int64_t is long long, and where we will clash with the
16840         system intmax_t if we override it.  See
16841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16842         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16843         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16844         similarly for UINTMAX_C.
16845
16846 2011-07-08  Bruno Haible  <bruno@clisp.org>
16847
16848         pthread_sigmask tests: Avoid a compiler warning.
16849         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16850         non-zero.
16851
16852         sigprocmask tests: A better way to avoid a compiler warning.
16853         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16854         (main): Complain if system() returns non-zero.
16855         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16856
16857 2011-07-08  Bruno Haible  <bruno@clisp.org>
16858
16859         pthread_sigmask: Work around IRIX bug.
16860         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16861         bug.
16862         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16863         there may be unblocked pending signals.
16864         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16865
16866 2011-07-08  Bruno Haible  <bruno@clisp.org>
16867
16868         pthread_sigmask: Work around Cygwin bug.
16869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16870         bug.
16871         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16872         the system's pthread_sigmask function.
16873         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16874
16875 2011-07-08  Bruno Haible  <bruno@clisp.org>
16876
16877         pthread_sigmask: Work around bug in single-threaded implementation.
16878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16879         FreeBSD, HP-UX, Solaris bug.
16880         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16881         * lib/pthread_sigmask.c: Include <stddef.h>.
16882         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16883         the system's pthread_sigmask function.
16884         * modules/pthread_sigmask (configure.ac): Invoke
16885         gl_PREREQ_PTHREAD_SIGMASK.
16886         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16887         HP-UX, Solaris.
16888
16889 2011-07-08  Eric Blake  <eblake@redhat.com>
16890
16891         test-sigprocmask: avoid compiler warning
16892         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16893         * tests/test-sigprocmask.c (main): Use it to silence warning.
16894         Reported by Jim Meyering.
16895
16896         test-snprintf: avoid compiler warning
16897         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16898         * tests/test-vsnprintf.c (main): Likewise.
16899         Reported by Jim Meyering.
16900
16901 2011-07-08  Bruno Haible  <bruno@clisp.org>
16902
16903         Tests for module 'pthread_sigmask'.
16904         * modules/pthread_sigmask-tests: New file.
16905         * tests/test-pthread_sigmask1.c: New file, based on
16906         tests/test-sigprocmask.c.
16907         * tests/test-pthread_sigmask2.c: New file.
16908
16909 2011-07-08  Jim Meyering  <meyering@redhat.com>
16910
16911         test-getopt.h: avoid warning about an unused variable
16912         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16913
16914 2011-07-07  Jim Meyering  <meyering@redhat.com>
16915
16916         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16917         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16918         now that it no longer contains leading TABs.
16919         Remove unused "url=FIXME" statement.
16920
16921 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16922
16923         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16925         When gl_THREADLIB is not in use, assume that the POSIX sematics
16926         are desired.  This is better for Emacs, which uses POSIX semantics
16927         on GNUish and/or POSIXish platforms, and does not use threads at
16928         all otherwise.
16929
16930         pthread_sigmask: fix typo when testing for libraries
16931         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16932         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16933
16934 2011-07-08  Eric Blake  <eblake@redhat.com>
16935
16936         fts: introduce FTS_NOATIME
16937         * lib/fts_.h (FTS_NOATIME): New bit flag.
16938         (FTS_OPTIONMASK): Adjust.
16939         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16940         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16941
16942 2011-07-08  Bruno Haible  <bruno@clisp.org>
16943
16944         Tests for module 'thread'.
16945         * modules/thread-tests: New file.
16946         * tests/test-thread_self.c: New file.
16947         * tests/test-thread_create.cc: New file.
16948
16949 2011-07-08  Bruno Haible  <bruno@clisp.org>
16950
16951         thread: Avoid gcc warnings when using gl_thread_self().
16952         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16953         'void *'.
16954         (gl_thread_self_pointer): Update.
16955
16956 2011-07-07  Bruno Haible  <bruno@clisp.org>
16957
16958         signal-c++-tests: Check declaration of pthread_sigmask.
16959         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16960         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16961         $(LIB_PTHREAD_SIGMASK).
16962
16963 2011-07-07  Bruno Haible  <bruno@clisp.org>
16964
16965         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16966         * lib/signal.in.h (pthread_sigmask): Override if
16967         REPLACE_PTHREAD_SIGMASK is 1.
16968         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16969         REPLACE_PTHREAD_SIGMASK.
16970         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16971         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16972         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16973         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16974         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16975
16976 2011-07-07  Bruno Haible  <bruno@clisp.org>
16977
16978         pthread_sigmask: Ensure declaration in <signal.h>.
16979         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16980         include <pthread.h>.
16981         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16982         problem.
16983
16984 2011-07-07  Bruno Haible  <bruno@clisp.org>
16985
16986         pthread_sigmask: Document the module.
16987         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16988
16989 2011-07-07  Bruno Haible  <bruno@clisp.org>
16990
16991         pthread_sigmask: Follow gnulib conventions.
16992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16993         gl_PTHREAD_SIGMASK.
16994         * modules/pthread_sigmask (configure.ac): Update.
16995
16996 2011-07-07  Bruno Haible  <bruno@clisp.org>
16997
16998         pthread_sigmask: Make declaration C++ safe.
16999         * lib/signal.in.h: In two special conditions, just do an #include_next.
17000         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17001         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17002         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17003         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17004         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17005         not REPLACE_PTHREAD_MASK.
17006         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17007         not REPLACE_PTHREAD_MASK.
17008         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17009
17010 2011-07-07  Bruno Haible  <bruno@clisp.org>
17011
17012         pthread_sigmask: Fix return value.
17013         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17014         * lib/pthread_sigmask.c: New file.
17015         * modules/pthread_sigmask (Files): Add it.
17016         (configure.ac): Invoke AC_LIBOBJ.
17017
17018 2011-07-07  Eric Blake  <eblake@redhat.com>
17019
17020         getopt: more portable argv creation
17021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17022         const, use char arrays rather than strings.
17023         Suggested by Paul Eggert.
17024
17025 2011-07-07  Bruno Haible  <bruno@clisp.org>
17026
17027         Tests for module 'sigprocmask'.
17028         * modules/sigprocmask-tests: New file.
17029         * tests/test-sigprocmask.c: New file.
17030
17031 2011-07-07  Bruno Haible  <bruno@clisp.org>
17032
17033         float tests: Tweak.
17034         * tests/test-float.c (main): Tweak skip message.
17035
17036 2011-07-07  Eric Blake  <eblake@redhat.com>
17037
17038         getopt: avoid compiler warning during configure
17039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17040         assigning string literals to non-const pointer.
17041
17042         getopt-gnu: avoid crash in glibc getopt
17043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17044         * tests/test-getopt.h (test_getopt): Enhance test.
17045         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17046         * doc/posix-functions/getopt.texi (getopt): Document it.
17047         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17048         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17049         Likewise.
17050
17051 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17052
17053         getopt: handle W; without long options in getopt [BZ #12922]
17054         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17055         but no long options are defined, just return 'W'.
17056
17057 2011-07-07  Bruno Haible  <bruno@clisp.org>
17058
17059         Avoid literal tabs.
17060         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17061         variable containing a tab instead of a literal tab.
17062         Reported by Jim Meyering.
17063
17064 2011-07-07  Bruno Haible  <bruno@clisp.org>
17065
17066         Comments.
17067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17068
17069 2011-07-06  Bruno Haible  <bruno@clisp.org>
17070
17071         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17072         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17073         <winsock2.h>.
17074         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17075         lib/sys_socket.in.h.
17076         (close, gethostname): Hide declarations from <winsock2.h>.
17077         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17078         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17079         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17080         (select): Don't override if gnulib's <sys/select.h> was already
17081         included.
17082         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17083         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17084         setsockopt, shutdown, select): Tweak indentation.
17085
17086 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17087
17088         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17089         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17090         in an application that does not use the sys_select module.
17091
17092 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17093
17094         poll: do not return 0 on timeout=-1
17095         * lib/poll.c: Loop with yield if no events occurred.
17096
17097 2011-07-06  Eric Blake  <eblake@redhat.com>
17098
17099         pthread_sigmask: always replace when not using pthread
17100         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17101         replacement when using some threading other than pthread.  Fix
17102         logic bug.
17103
17104 2011-07-06  Bruno Haible  <bruno@clisp.org>
17105
17106         Comments.
17107         * m4/printf.m4: Update comments about mingw.
17108
17109 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17110
17111         sys_select: define sigset_t more portably
17112         * lib/sys_select.in.h: Always include <sys/types.h>, since
17113         we now need sigset_t and mingw defines it there.
17114         Include <signal.h> before split inclusion guard, to avoid
17115         mishaps on Solaris, whose <signal.h> eventually includes us.
17116         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17117         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17118         which come from ...
17119         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17120         gl_CHECK_TYPE_SIGSET_T.
17121         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17122         does the real work.
17123         * modules/sys_select (Depends-on): Add 'signal'.
17124
17125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17126         Suggested by Bruno Haible.
17127
17128         pselect: Use pthread_sigmask, not sigprocmask.
17129         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17130         multithreaded apps better than sigprocmask does.
17131         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17132         sigprocmask directly.
17133
17134 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17135
17136         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17137         Don't #undef,  since we don't need any underlying pselect.
17138         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17139         (Depends-on): Add select.
17140         (Link): Add $(LIBSOCKET).
17141         These changes suggested by Bruno Haible.
17142
17143         pselect: document better
17144         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17145         * doc/posix-functions/pselect.texi (pselect): Document new module.
17146
17147         pthread_sigmask: new module
17148         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17149         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17150         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17151         This is done only as a macro; I don't know how well that'll
17152         work for C++.  Move <sys/types.h> include before the include_next,
17153         to avoid mishap on Solaris.
17154         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17155         * modules/signal (Makefile.am): Substitute the check's results.
17156         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17157
17158         test-pselect: new module
17159         * modules/pselect-tests, tests/test-pselect.c: New files.
17160         * tests/test-select.c, tests/test-sys_select-c++.cc:
17161         If TEST_PSELECT is defined, test pselect instead of testing select.
17162
17163         * tests/test-sys_select.c (sigset_t): Test for it, too.
17164         Suggested by Bruno Haible.
17165
17166 2011-07-05  Eric Blake  <eblake@redhat.com>
17167
17168         snprintf: guarantee %1$d, for libintl
17169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17170         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17171         * doc/posix-functions/snprintf.texi (snprintf): Update.
17172         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17173         * tests/test-snprintf.c (main): Enhance test.
17174         * tests/test-vsnprintf.c (main): Likewise.
17175
17176 2011-07-05  Jim Meyering  <meyering@redhat.com>
17177
17178         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17179         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17180         per Bruno's request, to accommodate this idiom (no space after "#")
17181         even when the function is inside an #if block:
17182         char *
17183         gets (char *s)
17184         #undef gets
17185         {
17186           ...
17187         }
17188
17189 2011-07-04  Jim Meyering  <meyering@redhat.com>
17190
17191         maint: indent with spaces, not TABs, and add a rule to check this
17192         * tests/test-userspec.c: Indent with spaces, not TABs.
17193         * tests/test-argp.c: Likewise.
17194         * tests/test-c-stack2.sh: Likewise.
17195         * tests/test-parse-duration.sh: Likewise
17196         * m4/strtod.m4: Likewise.
17197         * m4/alloca.m4: Likewise.
17198         * m4/pselect.m4: Likewise.
17199         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17200
17201 2011-07-03  Jim Meyering  <meyering@redhat.com>
17202
17203         maint.mk: correct omissions in prohibit_argmatch_without_use check
17204         This rule would mistakenly report that argmatch.h is included without
17205         use even when both the argmatch and invalid_arg macro were used.
17206         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17207         of argmatch and invalid_arg.
17208
17209 2011-07-03  Bruno Haible  <bruno@clisp.org>
17210
17211         Comments about EINTR.
17212         * lib/safe-read.h: Explain the purpose of this module.
17213         * lib/safe-write.h: Likewise.
17214         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17215         module.
17216         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17217         module.
17218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17219
17220 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17221
17222         xnanosleep: Rewrite to use new dtotimespec module.
17223         It has the conversion code that used to be in xnanosleep.
17224         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17225         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17226         (TIME_T_MAX): Remove.
17227         (xnanosleep): Rewrite in terms of dtotimespec.
17228         * modules/xnanosleep (Depends-on): Add dtotimespec.
17229         Remove intprops, stdbool.
17230
17231         timespec-add, timespec-sub: new modules
17232         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17233         * lib/timespec-add.c, lib/timespec-sub.c:
17234         * modules/timespec-add, modules/timespec-sub: New files.
17235
17236         dtotimespec: new module
17237         * lib/timespec.h (dtotimespec): New decl.
17238         * lib/dtotimespec.c, modules/dtotimespec: New files.
17239
17240         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17241
17242         pselect: new module
17243         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17244         (pselect): New decls.
17245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17246         since the standard pselect decl uses 'restrict'.
17247         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17248         HAVE_PSELECT, REPLACE_PSELECT.
17249         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17250         HAVE_PSELECT, REPLACE_PSELECT.
17251         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17252
17253         sys_select: don't depend on sys_socket
17254         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17256         This fix works on GNU and GNU-like platforms, but has not been tested
17257         on native Windows.
17258         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17260         gl_HEADER_SYS_SOCKET.
17261         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17262         gl_PREREQ_SYS_H_WINSOCK2.
17263
17264 2011-06-29  Eric Blake  <eblake@redhat.com>
17265
17266         pipe2: fix C89 compile problem
17267         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17268         Reported by Bruno Haible.
17269
17270         pipe, pipe2: don't corrupt fd on error
17271         * lib/pipe.c (pipe): Leave fd unchanged on error.
17272         * lib/pipe2.c (pipe2): Likewise.
17273         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17274         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17275
17276 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17277
17278         mmap-anon: do not use regular expressions inadvertently
17279         * m4/mmap-anon.m4: Remove trailing period from strings sought
17280         in the output.
17281
17282 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17283
17284         nanosleep: fix integer overflow problem
17285         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17286         arithmetic wraps around on overflow.
17287
17288         nanosleep: simplify carrying
17289         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17290         first call to the underyling nanosleep, not for the last one.
17291         This doesn't fix any bugs, but it simplifies the computation of
17292         the remaining delay.  Found while auditing integer overflow issues.
17293
17294         dup2: remove test for existence of fcntl
17295         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17296         "#if HAVE_FCNTL", in the configure-time test program.
17297         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17298         and therefore speeds up "configure" a bit.  Found while
17299         adding the dup2 module to Emacs.
17300
17301 2011-06-24  Eric Blake  <eblake@redhat.com>
17302
17303         maint.mk: enhance useless header checks
17304         * top/maint.mk (_sc_header_without_use): Check both include
17305         styles.
17306         (sc_prohibit_assert_without_use)
17307         (sc_prohibit_close_stream_without_use)
17308         (sc_prohibit_getopt_without_use)
17309         (sc_prohibit_quotearg_without_use)
17310         (sc_prohibit_quote_without_use)
17311         (sc_prohibit_long_options_without_use)
17312         (sc_prohibit_inttostr_without_use)
17313         (sc_prohibit_ignore_value_without_use)
17314         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17315         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17316         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17317         (sc_prohibit_hash_pjw_without_use)
17318         (sc_prohibit_safe_read_without_use)
17319         (sc_prohibit_argmatch_without_use)
17320         (sc_prohibit_canonicalize_without_use)
17321         (sc_prohibit_root_dev_ino_without_use)
17322         (sc_prohibit_openat_without_use)
17323         (sc_prohibit_c_ctype_without_use)
17324         (sc_prohibit_signal_without_use)
17325         (sc_prohibit_stdio--_without_use)
17326         (sc_prohibit_stdio-safer_without_use)
17327         (sc_prohibit_strings_without_use)
17328         (sc_prohibit_intprops_without_use)
17329         (sc_prohibit_stddef_without_use)
17330         (sc_prohibit_xfreopen_without_use): Update clients.
17331
17332 2011-06-24  Jim Meyering  <meyering@redhat.com>
17333
17334         syntax-check: keep one maint.mk rule in sync with its header
17335         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17336         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17337         I prefer to avoid temporary files here, so use <(...), but that
17338         is not supported by /bin/sh, so...
17339         (SHELL): Define to /bin/bash.
17340
17341 2011-06-24  Eric Blake  <eblake@redhat.com>
17342
17343         maint.mk: update sc_prohibit_intprops_without_use
17344         * top/maint.mk (_intprops_names): Match recent changes.
17345
17346 2011-06-24  Bruno Haible  <bruno@clisp.org>
17347
17348         strerror-override: No-op tweak.
17349         * lib/strerror-override.h (strerror_override): Reorder conditions,
17350         for consistency with lib/strerror-override.c.
17351
17352 2011-06-23  Eric Blake  <eblake@redhat.com>
17353
17354         maint.mk: test further PATH_MAX issues
17355         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17356         (sc_prohibit_path_max_allocation): ...and also test alloca.
17357         Suggested by Jim Meyering.
17358
17359 2011-06-22  Eric Blake  <eblake@redhat.com>
17360
17361         maint.mk: add syntax-check to avoid char[PATH_MAX]
17362         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17363
17364         stat: be robust to PATH_MAX definition
17365         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17366         * modules/stat (Depends-on): Add verify.
17367
17368         link: work around IRIX bug
17369         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17370         * lib/link.c (rpl_link): Work around it.
17371         * tests/test-link.h (test_link): Enhance test.
17372         * doc/posix-functions/link.texi (link): Document the bug.
17373
17374         getopt: silence clang warning
17375         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17376         dereference.
17377         Reported by Gustavo Martin Domato.
17378
17379 2011-06-22  Jim Meyering  <meyering@redhat.com>
17380
17381         bootstrap: do not insert a blank line into each .gitignore file
17382         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17383
17384 2011-06-21  Eric Blake  <eblake@redhat.com>
17385
17386         perror: test for output mismatch
17387         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17388         perror on IRIX.
17389
17390         strerror_r: fix OpenBSD behavior on out-of-range
17391         * lib/strerror_r.c (strerror_r): Always use maximal string.
17392         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17393
17394         strerror_r: fix OpenBSD behavior on 0
17395         * lib/strerror-override.c (strerror_override): Also override 0
17396         when needed.
17397         * lib/strerror-override.h (strerror_override): Likewise.
17398         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17399         earlier.
17400         * lib/strerror_r.c (strerror_r): Likewise.
17401         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17402         behavior...
17403         (gl_FUNC_STRERROR_0): ...into new macro.
17404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17405         is overridden.
17406         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17407         * modules/strerror-override (Files): Add strerror.m4.
17408         (configure.ac): Also provide override for 0 when needed.
17409         * doc/posix-functions/strerror.texi (strerror): Document this.
17410         * doc/posix-functions/perror.texi (perror): Likewise.
17411
17412         perror: adjust array size
17413         * modules/perror (Depends-on): Add strerror-override.
17414         * lib/perror.c (perror): Use it to avoid magic number.
17415
17416         strerror-override: reduce size
17417         * lib/strerror-override.c (strerror_override): Use fewer lines.
17418
17419 2011-06-20  Bruno Haible  <bruno@clisp.org>
17420
17421         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17422         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17423
17424 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17425
17426         alloca: port to compilers that can optimize like GCC 4.6.0
17427         * lib/alloca.c (find_stack_direction): New signature, taken from
17428         Autoconf git.  This works with GCC 4.6.0.  This code should never
17429         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17430         be used with other compilers that optimize as well as GCC 4.6.0 does.
17431         (alloca): Adjust to new signature.
17432         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17433         New macro, which patches Autoconf in a similar way.
17434
17435         c-stack: stop worrying about stack direction
17436         * lib/c-stack.c (find_stack_direction): Remove.
17437         (segv_handler): Don't worry about stack direction growth, as it's
17438         too much of a pain to configure this correctly, given how compilers
17439         are optimizing-away our stack-growth detection code.  Instead, assume
17440         that any access to just before or just after the stack is OK.
17441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17442         Don't require AC_FUNC_ALLOCA; no longer needed.
17443
17444 2011-06-20  Eric Blake  <eblake@redhat.com>
17445
17446         test-stat: don't allocate PATH_MAX bytes
17447         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17448         PATH_MAX-sized buffer.
17449         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17450         * modules/stat-tests (Depends-on): Likewise.
17451         * tests/test-fstatat.c (includes): Drop pathmax.h.
17452         * tests/test-stat.c (includes): Likewise.
17453         Reported by Bruno Haible.
17454
17455 2011-06-20  Bruno Haible  <bruno@clisp.org>
17456
17457         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17458         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17459         * lib/float.c: New file.
17460         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17461         REPLACE_FLOAT_LDBL.
17462         * modules/float (Files): Add lib/float.c.
17463         (configure.ac): Invoke AC_LIBOBJ.
17464         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17465
17466 2011-06-20  Bruno Haible  <bruno@clisp.org>
17467
17468         Tests for module 'float'.
17469         * modules/float-tests: New file.
17470         * tests/test-float.c: New file.
17471
17472 2011-06-19  Bruno Haible  <bruno@clisp.org>
17473
17474         isinf: Coding style.
17475         * lib/isinf.c: Use GNU coding style.
17476
17477 2011-06-19  Bruno Haible  <bruno@clisp.org>
17478
17479         linkat test: Avoid test failure on AIX 7.1.
17480         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17481         * tests/test-link.h (test_link): Likewise.
17482
17483 2011-06-19  Bruno Haible  <bruno@clisp.org>
17484
17485         pread test: Avoid test failure on OpenBSD 4.9.
17486         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17487
17488 2011-06-19  Bruno Haible  <bruno@clisp.org>
17489
17490         sprintf-posix: Fix test failure on AIX 7.1.
17491         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17492         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17493         on AIX.
17494         * doc/posix-functions/fprintf.texi: Likewise.
17495         * doc/posix-functions/printf.texi: Likewise.
17496         * doc/posix-functions/snprintf.texi: Likewise.
17497         * doc/posix-functions/sprintf.texi: Likewise.
17498         * doc/posix-functions/vdprintf.texi: Likewise.
17499         * doc/posix-functions/vfprintf.texi: Likewise.
17500         * doc/posix-functions/vprintf.texi: Likewise.
17501         * doc/posix-functions/vsnprintf.texi: Likewise.
17502         * doc/posix-functions/vsprintf.texi: Likewise.
17503
17504 2011-06-19  Bruno Haible  <bruno@clisp.org>
17505
17506         roundl-ieee: Fix test failure on AIX 7.1.
17507         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17508         * doc/posix-functions/roundl.texi: Mention problem with negative
17509         arguments.
17510
17511 2011-06-19  Bruno Haible  <bruno@clisp.org>
17512
17513         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17514         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17515         * doc/posix-functions/round.texi: Mention problem with negative
17516         arguments.
17517         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17518
17519 2011-06-19  Bruno Haible  <bruno@clisp.org>
17520
17521         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17523         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17524         * doc/posix-functions/roundf.texi: Mention problem with negative
17525         arguments.
17526         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17527
17528 2011-06-19  Bruno Haible  <bruno@clisp.org>
17529
17530         ceilf-ieee: Work around bug on MacOS X 10.5.
17531         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17532
17533         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17534         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17535         IEEE compliant, avoid compiler optimizations.
17536         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17537         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17538         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17539         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17540         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17541         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17542         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17544         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17546
17547 2011-06-19  Bruno Haible  <bruno@clisp.org>
17548
17549         ceilf-ieee: Work around bug on AIX 7.1.
17550         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17551         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17552
17553 2011-06-19  Bruno Haible  <bruno@clisp.org>
17554
17555         ceil-ieee: Work around bug on AIX 7.1.
17556         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17557         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17558
17559 2011-06-18  Bruno Haible  <bruno@clisp.org>
17560
17561         fsync test: Avoid test failure on MacOS X and AIX.
17562         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17563         EINVAL.
17564
17565 2011-06-18  Bruno Haible  <bruno@clisp.org>
17566
17567         openat, fdopendir tests: Fix link errors.
17568         * modules/openat-tests (Depends-on): Add progname.
17569         * modules/fdopendir-tests (Depends-on): Likewise.
17570         * tests/test-fchownat.c: Include progname.h.
17571         (main): Call set_program_name.
17572         * tests/test-fstatat.c: Include progname.h.
17573         (main): Call set_program_name.
17574         * tests/test-mkdirat.c: Include progname.h.
17575         (main): Call set_program_name.
17576         * tests/test-openat.c: Include progname.h.
17577         (main): Call set_program_name.
17578         * tests/test-unlinkat.c: Include progname.h.
17579         (main): Call set_program_name.
17580         * tests/test-fdopendir.c: Include progname.h.
17581         (main): Call set_program_name.
17582
17583 2011-06-18  Bruno Haible  <bruno@clisp.org>
17584
17585         Doc update.
17586         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17587         HP-UX.
17588         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17589
17590 2011-06-18  Bruno Haible  <bruno@clisp.org>
17591
17592         getcwd tests: Avoid compilation error on HP-UX 11.31.
17593         * modules/getcwd-tests (Depends-on): Add pathmax.
17594         * tests/test-getcwd.c: Include pathmax.h.
17595
17596 2011-06-18  Bruno Haible  <bruno@clisp.org>
17597
17598         isfinite, isinf: Fix link error on AIX 6 and 7.
17599         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17600         needed, also test the macro with a 'float' argument.
17601         * m4/isinf.m4 (gl_ISINF): Likewise.
17602
17603 2011-06-18  Bruno Haible  <bruno@clisp.org>
17604
17605         getloadavg: Don't clobber LIBS. Regression from previous commit.
17606         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17607         AC_CHECK_LIB from here...
17608         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17609         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17610         gl_func_getloadavg_done.
17611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17612
17613 2011-06-18  Bruno Haible  <bruno@clisp.org>
17614
17615         clean-temp: Improve documentation.
17616         * lib/clean-temp.h: Explain better how to use this module.
17617         Reported by John Darrington <john@darrington.wattle.id.au>.
17618
17619 2011-06-17  Bruno Haible  <bruno@clisp.org>
17620
17621         pread, pwrite: Avoid cc warning on AIX.
17622         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17623         (pwrite): Likewise.
17624
17625 2011-06-17  Bruno Haible  <bruno@clisp.org>
17626
17627         spawn-pipe tests: Fix link error.
17628         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17630
17631 2011-06-17  Bruno Haible  <bruno@clisp.org>
17632
17633         Tests: Remove unnecessary dependency.
17634         * modules/canonicalize-tests (Depends-on): Remove progname.
17635         * modules/chown-tests (Depends-on): Likewise.
17636         * modules/dirname-tests (Depends-on): Likewise.
17637         * modules/fdopendir-tests (Depends-on): Likewise.
17638         * modules/fdutimensat-tests (Depends-on): Likewise.
17639         * modules/hash-tests (Depends-on): Likewise.
17640         * modules/lchown-tests (Depends-on): Likewise.
17641         * modules/linkat-tests (Depends-on): Likewise.
17642         * modules/renameat-tests (Depends-on): Likewise.
17643         * modules/spawn-pipe-tests (Depends-on): Likewise.
17644         * modules/utimensat-tests (Depends-on): Likewise.
17645
17646 2011-06-17  Bruno Haible  <bruno@clisp.org>
17647
17648         spawn-pipe tests: Fix link error.
17649         * tests/test-spawn-pipe-child.c: Undefine fflush.
17650
17651 2011-06-17  Bruno Haible  <bruno@clisp.org>
17652
17653         Fix tests link errors.
17654         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17655         * modules/chown-tests (Makefile.am): Don't link test-chown with
17656         LIBINTL.
17657         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17658         LIBINTL.
17659         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17660         LIBINTL.
17661         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17662         LIBINTL.
17663
17664 2011-06-16  Bruno Haible  <bruno@clisp.org>
17665
17666         crypto/gc-sha1: Fix recent regression.
17667         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17668         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17669
17670         crypto/gc-md5: Fix recent regression.
17671         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17672
17673         crypto/gc-md4: Fix recent regression.
17674         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17675         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17676
17677         crypto/gc-arctwo: Fix recent regression.
17678         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17679         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17680
17681         crypto/gc-rijndael: Fix recent regression.
17682         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17683         (configure.ac): Invoke AC_LIBOBJ here.
17684         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17686
17687         crypto/gc-hmac-sha1: Fix recent regression.
17688         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17689         (configure.ac): Invoke AC_LIBOBJ here.
17690         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17692
17693         crypto/gc-hmac-md5: Fix recent regression.
17694         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17695         (configure.ac): Invoke AC_LIBOBJ here.
17696         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17698
17699         crypto/gc-des: Fix recent regression.
17700         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17701         (configure.ac): Invoke AC_LIBOBJ here.
17702         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17704
17705         crypto/gc-arcfour: Fix recent regression.
17706         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17707         (configure.ac): Invoke AC_LIBOBJ here.
17708         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17710
17711 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17712
17713         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17714         After the 2011-05-21 change, this macro requires
17715         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17716         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17717
17718 2011-06-16  Bruno Haible  <bruno@clisp.org>
17719
17720         fprintftime: Move AC_LIBOBJ invocations to module description.
17721         * m4/fprintftime.m4: Remove file.
17722         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17723         (configure.ac): Remove gl_FPRINTFTIME call.
17724         (Makefile.am): Augment lib_SOURCES.
17725         Reported by Jim Meyering.
17726
17727 2011-06-16  Bruno Haible  <bruno@clisp.org>
17728
17729         tmpfile-safer: Finish 2011-05-23 commit.
17730         * m4/stdio-safer.m4: Really remove file.
17731         Reported by Jim Meyering.
17732
17733 2011-06-16  Bruno Haible  <bruno@clisp.org>
17734
17735         syntax-check: Fix typo.
17736         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17737         printf-posix.m4.
17738         Reported by Jim Meyering.
17739
17740 2011-06-13  Jim Meyering  <meyering@redhat.com>
17741
17742         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17743         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17744
17745 2011-05-23  Bruno Haible  <bruno@clisp.org>
17746
17747         yesno: Move AC_LIBOBJ invocations to module description.
17748         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17749         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17750
17751 2011-05-23  Bruno Haible  <bruno@clisp.org>
17752
17753         xstrtol: Move AC_LIBOBJ invocations to module description.
17754         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17755         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17756
17757 2011-05-23  Bruno Haible  <bruno@clisp.org>
17758
17759         xstrtold: Move AC_LIBOBJ invocations to module description.
17760         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17761         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17762
17763 2011-05-23  Bruno Haible  <bruno@clisp.org>
17764
17765         xstrtod: Move AC_LIBOBJ invocations to module description.
17766         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17767         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17768
17769 2011-05-23  Bruno Haible  <bruno@clisp.org>
17770
17771         xnanosleep: Move AC_LIBOBJ invocations to module description.
17772         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17773         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17774
17775 2011-05-23  Bruno Haible  <bruno@clisp.org>
17776
17777         xgetcwd: Move AC_LIBOBJ invocations to module description.
17778         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17779         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17780
17781 2011-05-23  Bruno Haible  <bruno@clisp.org>
17782
17783         xalloc: Move AC_LIBOBJ invocations to module description.
17784         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17785         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17786
17787 2011-05-23  Bruno Haible  <bruno@clisp.org>
17788
17789         write-any-file: Move AC_LIBOBJ invocations to module description.
17790         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17791         invocation.
17792         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17793
17794 2011-05-23  Bruno Haible  <bruno@clisp.org>
17795
17796         utimens: Move AC_LIBOBJ invocations to module description.
17797         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17798         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17799
17800 2011-05-23  Bruno Haible  <bruno@clisp.org>
17801
17802         utimecmp: Move AC_LIBOBJ invocations to module description.
17803         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17804         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17805
17806 2011-05-23  Bruno Haible  <bruno@clisp.org>
17807
17808         userspec: Move AC_LIBOBJ invocations to module description.
17809         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17810         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17811
17812 2011-05-23  Bruno Haible  <bruno@clisp.org>
17813
17814         unlinkdir: Move AC_LIBOBJ invocations to module description.
17815         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17816         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17817
17818 2011-05-23  Bruno Haible  <bruno@clisp.org>
17819
17820         unistd-safer: Move AC_LIBOBJ invocations to module description.
17821         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17822         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17823
17824 2011-05-23  Bruno Haible  <bruno@clisp.org>
17825
17826         tempname: Move AC_LIBOBJ invocations to module description.
17827         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17828         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17829
17830 2011-05-23  Bruno Haible  <bruno@clisp.org>
17831
17832         strftime: Move AC_LIBOBJ invocations to module description.
17833         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17834         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17835
17836 2011-05-23  Bruno Haible  <bruno@clisp.org>
17837
17838         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17839         * m4/stdlib-safer.m4: Remove file.
17840         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17841         (configure.ac): Remove gl_STDLIB_SAFER call.
17842         (Makefile.am): Augment lib_SOURCES.
17843
17844 2011-05-23  Bruno Haible  <bruno@clisp.org>
17845
17846         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17847         * m4/stdio-safer.m4: Remove file.
17848         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17849         (configure.ac): Remove gl_TMPFILE_SAFER call.
17850         (Makefile.am): Augment lib_SOURCES.
17851
17852 2011-05-23  Bruno Haible  <bruno@clisp.org>
17853
17854         popen-safer: Move AC_LIBOBJ invocations to module description.
17855         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17856         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17857         (configure.ac): Remove gl_POPEN_SAFER call.
17858         (Makefile.am): Augment lib_SOURCES.
17859
17860 2011-05-23  Bruno Haible  <bruno@clisp.org>
17861
17862         freopen-safer: Move AC_LIBOBJ invocations to module description.
17863         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17864         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17865         (configure.ac): Remove gl_FREOPEN_SAFER call.
17866         (Makefile.am): Augment lib_SOURCES.
17867
17868 2011-05-23  Bruno Haible  <bruno@clisp.org>
17869
17870         fopen-safer: Move AC_LIBOBJ invocations to module description.
17871         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17872         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17873         (configure.ac): Remove gl_FOPEN_SAFER call.
17874         (Makefile.am): Augment lib_SOURCES.
17875
17876 2011-05-23  Bruno Haible  <bruno@clisp.org>
17877
17878         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17879         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17880         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17881
17882 2011-05-23  Bruno Haible  <bruno@clisp.org>
17883
17884         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17885         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17886         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17887
17888 2011-05-23  Bruno Haible  <bruno@clisp.org>
17889
17890         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17891         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17892         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17893
17894 2011-05-23  Bruno Haible  <bruno@clisp.org>
17895
17896         settime: Move AC_LIBOBJ invocations to module description.
17897         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17898         * modules/settime (Makefile.am): Augment lib_SOURCES.
17899
17900 2011-05-23  Bruno Haible  <bruno@clisp.org>
17901
17902         savedir: Move AC_LIBOBJ invocations to module description.
17903         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17904         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17905
17906 2011-05-23  Bruno Haible  <bruno@clisp.org>
17907
17908         save-cwd: Move AC_LIBOBJ invocations to module description.
17909         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17910         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17911
17912 2011-05-23  Bruno Haible  <bruno@clisp.org>
17913
17914         same: Move AC_LIBOBJ invocations to module description.
17915         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17916         * modules/same (Makefile.am): Augment lib_SOURCES.
17917
17918 2011-05-23  Bruno Haible  <bruno@clisp.org>
17919
17920         safe-write: Move AC_LIBOBJ invocations to module description.
17921         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17922         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17923         instead of gl_SAFE_WRITE.
17924         (Makefile.am): Augment lib_SOURCES.
17925
17926 2011-05-23  Bruno Haible  <bruno@clisp.org>
17927
17928         safe-read: Move AC_LIBOBJ invocations to module description.
17929         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17930         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17931         of gl_SAFE_READ.
17932         (Makefile.am): Augment lib_SOURCES.
17933
17934 2011-05-23  Bruno Haible  <bruno@clisp.org>
17935
17936         safe-alloc: Move AC_LIBOBJ invocations to module description.
17937         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17938         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17939
17940 2011-05-23  Bruno Haible  <bruno@clisp.org>
17941
17942         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17943         * m4/rijndael.m4: Remove file.
17944         * modules/crypto/rijndael (Files): Remove it.
17945         (configure.ac): Remove gl_RIJNDAEL call.
17946         (Makefile.am): Augment lib_SOURCES.
17947
17948 2011-05-23  Bruno Haible  <bruno@clisp.org>
17949
17950         readtokens: Move AC_LIBOBJ invocations to module description.
17951         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17952         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17953
17954 2011-05-23  Bruno Haible  <bruno@clisp.org>
17955
17956         read-file: Move AC_LIBOBJ invocations to module description.
17957         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17958         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17959         of gl_FUNC_READ_FILE.
17960         (Makefile.am): Augment lib_SOURCES.
17961
17962 2011-05-23  Bruno Haible  <bruno@clisp.org>
17963
17964         quotearg: Move AC_LIBOBJ invocations to module description.
17965         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17966         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17967
17968 2011-05-23  Bruno Haible  <bruno@clisp.org>
17969
17970         quote: Move AC_LIBOBJ invocations to module description.
17971         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17972         * modules/quote (Makefile.am): Augment lib_SOURCES.
17973
17974 2011-05-23  Bruno Haible  <bruno@clisp.org>
17975
17976         posixver: Move AC_LIBOBJ invocations to module description.
17977         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17978         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17979
17980 2011-05-23  Bruno Haible  <bruno@clisp.org>
17981
17982         posixtm: Move AC_LIBOBJ invocations to module description.
17983         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17984         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17985
17986 2011-05-23  Bruno Haible  <bruno@clisp.org>
17987
17988         physmem: Move AC_LIBOBJ invocations to module description.
17989         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17990         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17991
17992 2011-05-23  Bruno Haible  <bruno@clisp.org>
17993
17994         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17995         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17996         invocation.
17997         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17998
17999 2011-05-23  Bruno Haible  <bruno@clisp.org>
18000
18001         mpsort: Move AC_LIBOBJ invocations to module description.
18002         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18003         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18004
18005 2011-05-23  Bruno Haible  <bruno@clisp.org>
18006
18007         modechange: Move AC_LIBOBJ invocations to module description.
18008         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18009         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18010
18011 2011-05-23  Bruno Haible  <bruno@clisp.org>
18012
18013         mkdir-p: Move AC_LIBOBJ invocations to module description.
18014         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18015         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18016
18017 2011-05-23  Bruno Haible  <bruno@clisp.org>
18018
18019         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18020         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18021         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18022
18023 2011-05-23  Bruno Haible  <bruno@clisp.org>
18024
18025         mgetgroups: Move AC_LIBOBJ invocations to module description.
18026         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18027         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18028
18029 2011-05-23  Bruno Haible  <bruno@clisp.org>
18030
18031         memxor: Move AC_LIBOBJ invocations to module description.
18032         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18033         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18034
18035 2011-05-23  Bruno Haible  <bruno@clisp.org>
18036
18037         memcoll: Move AC_LIBOBJ invocations to module description.
18038         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18039         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18040
18041 2011-05-23  Bruno Haible  <bruno@clisp.org>
18042
18043         memcasecmp: Move AC_LIBOBJ invocations to module description.
18044         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18045         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18046
18047 2011-05-23  Bruno Haible  <bruno@clisp.org>
18048
18049         crypto/md5: Move AC_LIBOBJ invocations to module description.
18050         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18051         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18052
18053 2011-05-23  Bruno Haible  <bruno@clisp.org>
18054
18055         crypto/md4: Move AC_LIBOBJ invocations to module description.
18056         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18057         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18058
18059 2011-05-23  Bruno Haible  <bruno@clisp.org>
18060
18061         crypto/md2: Move AC_LIBOBJ invocations to module description.
18062         * m4/md2.m4: Remove file.
18063         * modules/crypto/md2 (Files): Remove it.
18064         (configure.ac): Remove gl_MD2 call.
18065         (Makefile.am): Augment lib_SOURCES.
18066
18067 2011-05-23  Bruno Haible  <bruno@clisp.org>
18068
18069         long-options: Move AC_LIBOBJ invocations to module description.
18070         * m4/long-options.m4: Remove file.
18071         * modules/long-options (Files): Remove it.
18072         (configure.ac): Remove gl_LONG_OPTIONS call.
18073         (Makefile.am): Augment lib_SOURCES.
18074
18075 2011-05-23  Bruno Haible  <bruno@clisp.org>
18076
18077         i-ring: Move AC_LIBOBJ invocations to module description.
18078         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18079         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18080
18081 2011-05-23  Bruno Haible  <bruno@clisp.org>
18082
18083         idcache: Move AC_LIBOBJ invocations to module description.
18084         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18085         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18086
18087 2011-05-23  Bruno Haible  <bruno@clisp.org>
18088
18089         human: Move AC_LIBOBJ invocations to module description.
18090         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18091         * modules/human (Makefile.am): Augment lib_SOURCES.
18092
18093 2011-05-23  Bruno Haible  <bruno@clisp.org>
18094
18095         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18096         * m4/hmac-sha1.m4: Remove file.
18097         * modules/crypto/hmac-sha1 (Files): Remove it.
18098         (configure.ac): Remove gl_HMAC_SHA1 call.
18099         (Makefile.am): Augment lib_SOURCES.
18100
18101 2011-05-23  Bruno Haible  <bruno@clisp.org>
18102
18103         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18104         * m4/hmac-md5.m4: Remove file.
18105         * modules/crypto/hmac-md5 (Files): Remove it.
18106         (configure.ac): Remove gl_HMAC_MD5 call.
18107         (Makefile.am): Augment lib_SOURCES.
18108
18109 2011-05-23  Bruno Haible  <bruno@clisp.org>
18110
18111         hash: Move AC_LIBOBJ invocations to module description.
18112         * m4/hash.m4: Remove file.
18113         * modules/hash (Files): Remove it.
18114         (configure.ac): Remove gl_HASH call.
18115         (Makefile.am): Augment lib_SOURCES.
18116
18117 2011-05-23  Bruno Haible  <bruno@clisp.org>
18118
18119         hard-locale: Move AC_LIBOBJ invocations to module description.
18120         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18121         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18122
18123 2011-05-23  Bruno Haible  <bruno@clisp.org>
18124
18125         getugroups: Move AC_LIBOBJ invocations to module description.
18126         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18127         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18128
18129 2011-05-23  Bruno Haible  <bruno@clisp.org>
18130
18131         gettime: Move AC_LIBOBJ invocations to module description.
18132         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18133         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18134
18135 2011-05-23  Bruno Haible  <bruno@clisp.org>
18136
18137         getndelim2: Move AC_LIBOBJ invocations to module description.
18138         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18139         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18140
18141 2011-05-23  Bruno Haible  <bruno@clisp.org>
18142
18143         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18144         * m4/gc-pbkdf2-sha1.m4: Remove file.
18145         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18146         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18147         (Makefile.am): Augment lib_SOURCES.
18148
18149 2011-05-23  Bruno Haible  <bruno@clisp.org>
18150
18151         fts: Move AC_LIBOBJ invocations to module description.
18152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18153         * modules/fts (configure.ac): ... to here.
18154
18155 2011-05-23  Bruno Haible  <bruno@clisp.org>
18156
18157         file-type: Move AC_LIBOBJ invocations to module description.
18158         * m4/file-type.m4: Remove file.
18159         * modules/file-type (Files): Remove it.
18160         (configure.ac): Remove gl_FILE_TYPE call.
18161         (Makefile.am): Augment lib_SOURCES.
18162
18163 2011-05-23  Bruno Haible  <bruno@clisp.org>
18164
18165         filenamecat*: Respect rules for use of AC_LIBOBJ.
18166         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18167         Remove AC_LIBOBJ invocation.
18168         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18169         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18170
18171 2011-05-23  Bruno Haible  <bruno@clisp.org>
18172
18173         filemode: Move AC_LIBOBJ invocations to module description.
18174         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18175         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18176
18177 2011-05-23  Bruno Haible  <bruno@clisp.org>
18178
18179         openat-safer: Move AC_LIBOBJ invocations to module description.
18180         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18181         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18182
18183 2011-05-23  Bruno Haible  <bruno@clisp.org>
18184
18185         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18186         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18187         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18188
18189 2011-05-23  Bruno Haible  <bruno@clisp.org>
18190
18191         exclude: Move AC_LIBOBJ invocations to module description.
18192         * m4/exclude.m4: Remove file.
18193         * modules/exclude (Files): Remove it.
18194         (configure.ac): Remove gl_EXCLUDE call.
18195         (Makefile.am): Augment lib_SOURCES.
18196
18197 2011-05-23  Bruno Haible  <bruno@clisp.org>
18198
18199         dirname*: Respect rules for use of AC_LIBOBJ.
18200         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18201         invocations.
18202         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18203         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18204
18205 2011-05-23  Bruno Haible  <bruno@clisp.org>
18206
18207         dirent-safer: Move AC_LIBOBJ invocations to module description.
18208         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18209         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18210
18211 2011-05-23  Bruno Haible  <bruno@clisp.org>
18212
18213         crypto/des: Move AC_LIBOBJ invocations to module description.
18214         * m4/des.m4: Remove file.
18215         * modules/crypto/des (Files): Remove it.
18216         (configure.ac): Remove gl_DES call.
18217         (Makefile.am): Augment lib_SOURCES.
18218
18219 2011-05-23  Bruno Haible  <bruno@clisp.org>
18220
18221         cycle-check: Move AC_LIBOBJ invocations to module description.
18222         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18223         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18224
18225 2011-05-23  Bruno Haible  <bruno@clisp.org>
18226
18227         c-strtold: Move AC_LIBOBJ invocations to module description.
18228         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18229         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18230
18231 2011-05-23  Bruno Haible  <bruno@clisp.org>
18232
18233         c-strtod: Move AC_LIBOBJ invocations to module description.
18234         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18235         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18236
18237 2011-05-23  Bruno Haible  <bruno@clisp.org>
18238
18239         crc: Move AC_LIBOBJ invocations to module description.
18240         * m4/crc.m4: Remove file.
18241         * modules/crc (Files): Remove it.
18242         (configure.ac): Remove gl_CRC call.
18243         (Makefile.am): Augment lib_SOURCES.
18244
18245 2011-05-23  Bruno Haible  <bruno@clisp.org>
18246
18247         close-stream: Move AC_LIBOBJ invocations to module description.
18248         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18249         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18250
18251 2011-05-23  Bruno Haible  <bruno@clisp.org>
18252
18253         closeout: Move AC_LIBOBJ invocations to module description.
18254         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18255         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18256
18257 2011-05-23  Bruno Haible  <bruno@clisp.org>
18258
18259         closein: Move AC_LIBOBJ invocations to module description.
18260         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18261         * modules/closein (Makefile.am): Augment lib_SOURCES.
18262
18263 2011-05-23  Bruno Haible  <bruno@clisp.org>
18264
18265         cloexec: Move AC_LIBOBJ invocations to module description.
18266         * m4/cloexec.m4: Remove file.
18267         * modules/cloexec (Files): Remove it.
18268         (configure.ac): Remove gl_CLOEXEC call.
18269         (Makefile.am): Augment lib_SOURCES.
18270
18271 2011-05-23  Bruno Haible  <bruno@clisp.org>
18272
18273         check-version: Move AC_LIBOBJ invocations to module description.
18274         * m4/check-version.m4: Remove file.
18275         * modules/check-version (Files): Remove it.
18276         (configure.ac): Remove gl_CHECK_VERSION call.
18277         (Makefile.am): Augment lib_SOURCES.
18278
18279 2011-05-23  Bruno Haible  <bruno@clisp.org>
18280
18281         chdir-safer: Move AC_LIBOBJ invocations to module description.
18282         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18283         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18284
18285 2011-05-23  Bruno Haible  <bruno@clisp.org>
18286
18287         canonicalize: Move AC_LIBOBJ invocations to module description.
18288         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18289         AC_LIBOBJ invocation.
18290         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18291
18292 2011-05-23  Bruno Haible  <bruno@clisp.org>
18293
18294         canon-host: Move AC_LIBOBJ invocations to module description.
18295         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18296         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18297         instead of gl_CANON_HOST.
18298         (Makefile.am): Augment lib_SOURCES.
18299
18300 2011-05-23  Bruno Haible  <bruno@clisp.org>
18301
18302         backupfile: Move AC_LIBOBJ invocations to module description.
18303         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18304         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18305
18306 2011-05-23  Bruno Haible  <bruno@clisp.org>
18307
18308         argmatch: Move AC_LIBOBJ invocations to module description.
18309         * m4/argmatch.m4: Remove file.
18310         * modules/argmatch (Files): Remove it.
18311         (configure.ac): Remove gl_ARGMATCH call.
18312         (Makefile.am): Augment lib_SOURCES.
18313
18314 2011-05-23  Bruno Haible  <bruno@clisp.org>
18315
18316         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18317         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18318         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18319
18320 2011-05-23  Bruno Haible  <bruno@clisp.org>
18321
18322         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18323         * m4/arcfour.m4: Remove file.
18324         * modules/crypto/arcfour (Files): Remove it.
18325         (configure.ac): Remove gl_ARCFOUR call.
18326         (Makefile.am): Augment lib_SOURCES.
18327
18328 2011-05-22  Bruno Haible  <bruno@clisp.org>
18329
18330         write: Move AC_LIBOBJ invocations to module description.
18331         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18332         * modules/write (configure.ac): ... to here.
18333
18334 2011-05-22  Bruno Haible  <bruno@clisp.org>
18335
18336         wmemset: Move AC_LIBOBJ invocations to module description.
18337         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18338         here...
18339         * modules/wmemset (configure.ac): ... to here.
18340
18341 2011-05-22  Bruno Haible  <bruno@clisp.org>
18342
18343         wmemmove: Move AC_LIBOBJ invocations to module description.
18344         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18345         here...
18346         * modules/wmemmove (configure.ac): ... to here.
18347
18348 2011-05-22  Bruno Haible  <bruno@clisp.org>
18349
18350         wmemcpy: Move AC_LIBOBJ invocations to module description.
18351         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18352         here...
18353         * modules/wmemcpy (configure.ac): ... to here.
18354
18355 2011-05-22  Bruno Haible  <bruno@clisp.org>
18356
18357         wmemcmp: Move AC_LIBOBJ invocations to module description.
18358         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18359         here...
18360         * modules/wmemcmp (configure.ac): ... to here.
18361
18362 2011-05-22  Bruno Haible  <bruno@clisp.org>
18363
18364         wmemchr: Move AC_LIBOBJ invocations to module description.
18365         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18366         here...
18367         * modules/wmemchr (configure.ac): ... to here.
18368
18369 2011-05-22  Bruno Haible  <bruno@clisp.org>
18370
18371         wcswidth: Move AC_LIBOBJ invocations to module description.
18372         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18373         here...
18374         * modules/wcswidth (configure.ac): ... to here.
18375
18376 2011-05-22  Bruno Haible  <bruno@clisp.org>
18377
18378         wcwidth: Respect rules for use of AC_LIBOBJ.
18379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18380         invocation from here...
18381         * modules/wcwidth (configure.ac): ... to here.
18382         (Depends-on): Update conditions.
18383
18384 2011-05-22  Bruno Haible  <bruno@clisp.org>
18385
18386         wctype: Move AC_LIBOBJ invocations to module description.
18387         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18388         invocation from here...
18389         * modules/wctype (configure.ac): ... to here.
18390         (Depends-on): Update conditions.
18391
18392 2011-05-22  Bruno Haible  <bruno@clisp.org>
18393
18394         wctrans: Move AC_LIBOBJ invocations to module description.
18395         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18396         invocation from here...
18397         * modules/wctrans (configure.ac): ... to here.
18398
18399 2011-05-22  Bruno Haible  <bruno@clisp.org>
18400
18401         wctomb: Move AC_LIBOBJ invocations to module description.
18402         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18403         invocations from here...
18404         * modules/wctomb (configure.ac): ... to here.
18405
18406 2011-05-22  Bruno Haible  <bruno@clisp.org>
18407
18408         wctob: Move AC_LIBOBJ invocations to module description.
18409         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18410         gl_PREREQ_WCTOB invocations from here...
18411         * modules/wctob (configure.ac): ... to here.
18412         (Depends-on): Update conditions.
18413
18414 2011-05-22  Bruno Haible  <bruno@clisp.org>
18415
18416         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18417         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18418         here...
18419         * modules/wcsxfrm (configure.ac): ... to here.
18420
18421 2011-05-22  Bruno Haible  <bruno@clisp.org>
18422
18423         wcstok: Move AC_LIBOBJ invocations to module description.
18424         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18425         * modules/wcstok (configure.ac): ... to here.
18426
18427 2011-05-22  Bruno Haible  <bruno@clisp.org>
18428
18429         wcsstr: Move AC_LIBOBJ invocations to module description.
18430         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18431         * modules/wcsstr (configure.ac): ... to here.
18432
18433 2011-05-22  Bruno Haible  <bruno@clisp.org>
18434
18435         wcsspn: Move AC_LIBOBJ invocations to module description.
18436         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18437         * modules/wcsspn (configure.ac): ... to here.
18438
18439 2011-05-22  Bruno Haible  <bruno@clisp.org>
18440
18441         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18442         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18443         gl_PREREQ_WCSRTOMBS invocations from here...
18444         * modules/wcsrtombs (configure.ac): ... to here.
18445
18446 2011-05-22  Bruno Haible  <bruno@clisp.org>
18447
18448         wcsrchr: Move AC_LIBOBJ invocations to module description.
18449         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18450         here...
18451         * modules/wcsrchr (configure.ac): ... to here.
18452
18453 2011-05-22  Bruno Haible  <bruno@clisp.org>
18454
18455         wcspbrk: Move AC_LIBOBJ invocations to module description.
18456         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18457         here...
18458         * modules/wcspbrk (configure.ac): ... to here.
18459
18460 2011-05-22  Bruno Haible  <bruno@clisp.org>
18461
18462         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18463         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18464         gl_PREREQ_WCSNRTOMBS invocations from here...
18465         * modules/wcsnrtombs (configure.ac): ... to here.
18466
18467 2011-05-22  Bruno Haible  <bruno@clisp.org>
18468
18469         wcsnlen: Move AC_LIBOBJ invocations to module description.
18470         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18471         here...
18472         * modules/wcsnlen (configure.ac): ... to here.
18473
18474 2011-05-22  Bruno Haible  <bruno@clisp.org>
18475
18476         wcsncpy: Move AC_LIBOBJ invocations to module description.
18477         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18478         here...
18479         * modules/wcsncpy (configure.ac): ... to here.
18480
18481 2011-05-22  Bruno Haible  <bruno@clisp.org>
18482
18483         wcsncmp: Move AC_LIBOBJ invocations to module description.
18484         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18485         here...
18486         * modules/wcsncmp (configure.ac): ... to here.
18487
18488 2011-05-22  Bruno Haible  <bruno@clisp.org>
18489
18490         wcsncat: Move AC_LIBOBJ invocations to module description.
18491         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18492         here...
18493         * modules/wcsncat (configure.ac): ... to here.
18494
18495 2011-05-22  Bruno Haible  <bruno@clisp.org>
18496
18497         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18498         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18499         from here...
18500         * modules/wcsncasecmp (configure.ac): ... to here.
18501
18502 2011-05-22  Bruno Haible  <bruno@clisp.org>
18503
18504         wcslen: Move AC_LIBOBJ invocations to module description.
18505         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18506         * modules/wcslen (configure.ac): ... to here.
18507
18508 2011-05-22  Bruno Haible  <bruno@clisp.org>
18509
18510         wcsdup: Move AC_LIBOBJ invocations to module description.
18511         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18512         * modules/wcsdup (configure.ac): ... to here.
18513
18514 2011-05-22  Bruno Haible  <bruno@clisp.org>
18515
18516         wcscspn: Move AC_LIBOBJ invocations to module description.
18517         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18518         here...
18519         * modules/wcscspn (configure.ac): ... to here.
18520
18521 2011-05-22  Bruno Haible  <bruno@clisp.org>
18522
18523         wcscpy: Move AC_LIBOBJ invocations to module description.
18524         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18525         * modules/wcscpy (configure.ac): ... to here.
18526
18527 2011-05-22  Bruno Haible  <bruno@clisp.org>
18528
18529         wcscoll: Move AC_LIBOBJ invocations to module description.
18530         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18531         here...
18532         * modules/wcscoll (configure.ac): ... to here.
18533
18534 2011-05-22  Bruno Haible  <bruno@clisp.org>
18535
18536         wcscmp: Move AC_LIBOBJ invocations to module description.
18537         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18538         * modules/wcscmp (configure.ac): ... to here.
18539
18540 2011-05-22  Bruno Haible  <bruno@clisp.org>
18541
18542         wcschr: Move AC_LIBOBJ invocations to module description.
18543         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18544         * modules/wcschr (configure.ac): ... to here.
18545
18546 2011-05-22  Bruno Haible  <bruno@clisp.org>
18547
18548         wcscat: Move AC_LIBOBJ invocations to module description.
18549         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18550         * modules/wcscat (configure.ac): ... to here.
18551
18552 2011-05-22  Bruno Haible  <bruno@clisp.org>
18553
18554         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18555         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18556         here...
18557         * modules/wcscasecmp (configure.ac): ... to here.
18558
18559 2011-05-22  Bruno Haible  <bruno@clisp.org>
18560
18561         wcrtomb: Move AC_LIBOBJ invocations to module description.
18562         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18563         invocations from here...
18564         * modules/wcrtomb (configure.ac): ... to here.
18565
18566 2011-05-22  Bruno Haible  <bruno@clisp.org>
18567
18568         wcpncpy: Move AC_LIBOBJ invocations to module description.
18569         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18570         here...
18571         * modules/wcpncpy (configure.ac): ... to here.
18572
18573 2011-05-22  Bruno Haible  <bruno@clisp.org>
18574
18575         wcpcpy: Move AC_LIBOBJ invocations to module description.
18576         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18577         * modules/wcpcpy (configure.ac): ... to here.
18578
18579 2011-05-22  Bruno Haible  <bruno@clisp.org>
18580
18581         waitpid: Move AC_LIBOBJ invocations to module description.
18582         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18583         invocation from here...
18584         * modules/waitpid (configure.ac): ... to here.
18585
18586 2011-05-22  Bruno Haible  <bruno@clisp.org>
18587
18588         utimensat: Move AC_LIBOBJ invocations to module description.
18589         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18590         here...
18591         * modules/utimensat (configure.ac): ... to here.
18592
18593 2011-05-22  Bruno Haible  <bruno@clisp.org>
18594
18595         usleep: Move AC_LIBOBJ invocations to module description.
18596         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18597         here...
18598         * modules/usleep (configure.ac): ... to here.
18599
18600 2011-05-22  Bruno Haible  <bruno@clisp.org>
18601
18602         unlockpt: Move AC_LIBOBJ invocations to module description.
18603         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18604         gl_PREREQ_UNLOCKPT invocations from here...
18605         * modules/unlockpt (configure.ac): ... to here.
18606
18607 2011-05-22  Bruno Haible  <bruno@clisp.org>
18608
18609         unlink: Respect rules for use of AC_LIBOBJ.
18610         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18611         * modules/unlink (configure.ac): ... to here.
18612
18613 2011-05-22  Bruno Haible  <bruno@clisp.org>
18614
18615         uname: Move AC_LIBOBJ invocations to module description.
18616         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18618         here...
18619         * modules/uname (configure.ac): ... to here.
18620
18621 2011-05-22  Bruno Haible  <bruno@clisp.org>
18622
18623         ttyname_r: Move AC_LIBOBJ invocations to module description.
18624         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18625         gl_PREREQ_TTYNAME_R invocations from here...
18626         * modules/ttyname_r (configure.ac): ... to here.
18627
18628 2011-05-22  Bruno Haible  <bruno@clisp.org>
18629
18630         tsearch: Move AC_LIBOBJ invocations to module description.
18631         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18632         invocations from here...
18633         * modules/tsearch (configure.ac): ... to here.
18634
18635 2011-05-22  Bruno Haible  <bruno@clisp.org>
18636
18637         towctrans: Move AC_LIBOBJ invocations to module description.
18638         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18639         AC_LIBOBJ invocation from here...
18640         * modules/towctrans (configure.ac): ... to here.
18641
18642 2011-05-22  Bruno Haible  <bruno@clisp.org>
18643
18644         tmpfile: Move AC_LIBOBJ invocations to module description.
18645         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18646         invocations from here...
18647         * modules/tmpfile (configure.ac): ... to here.
18648
18649 2011-05-22  Bruno Haible  <bruno@clisp.org>
18650
18651         times: Move AC_LIBOBJ invocations to module description.
18652         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18653         * modules/times (configure.ac): ... to here.
18654
18655 2011-05-22  Bruno Haible  <bruno@clisp.org>
18656
18657         time_r: Move AC_LIBOBJ invocations to module description.
18658         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18659         invocations from here...
18660         * modules/time_r (configure.ac): ... to here.
18661
18662 2011-05-22  Bruno Haible  <bruno@clisp.org>
18663
18664         timegm: Move AC_LIBOBJ invocations to module description.
18665         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18666         invocations from here...
18667         * modules/timegm (configure.ac): ... to here.
18668
18669 2011-05-22  Bruno Haible  <bruno@clisp.org>
18670
18671         tcgetsid: Move AC_LIBOBJ invocations to module description.
18672         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18673         and gl_PREREQ_TCGETSID invocations from here...
18674         * modules/tcgetsid (configure.ac): ... to here.
18675         (Depends-on): Update conditions.
18676
18677 2011-05-22  Bruno Haible  <bruno@clisp.org>
18678
18679         symlinkat: Move AC_LIBOBJ invocations to module description.
18680         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18681         here...
18682         * modules/symlinkat (configure.ac): ... to here.
18683
18684 2011-05-22  Bruno Haible  <bruno@clisp.org>
18685
18686         symlink: Move AC_LIBOBJ invocations to module description.
18687         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18688         here...
18689         * modules/symlink (configure.ac): ... to here.
18690
18691 2011-05-22  Bruno Haible  <bruno@clisp.org>
18692
18693         strverscmp: Move AC_LIBOBJ invocations to module description.
18694         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18696         from here...
18697         * modules/strverscmp (configure.ac): ... to here.
18698
18699 2011-05-22  Bruno Haible  <bruno@clisp.org>
18700
18701         strtok_r: Move AC_LIBOBJ invocations to module description.
18702         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18703         and gl_PREREQ_STRTOK_R invocations from here...
18704         * modules/strtok_r (configure.ac): ... to here.
18705         (Depends-on): Update conditions.
18706
18707 2011-05-22  Bruno Haible  <bruno@clisp.org>
18708
18709         strtoumax: Move AC_LIBOBJ invocations to module description.
18710         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18712         from here...
18713         * modules/strtoumax (configure.ac): ... to here.
18714
18715 2011-05-22  Bruno Haible  <bruno@clisp.org>
18716
18717         strtoimax: Move AC_LIBOBJ invocations to module description.
18718         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18720         from here...
18721         * modules/strtoimax (configure.ac): ... to here.
18722
18723 2011-05-22  Bruno Haible  <bruno@clisp.org>
18724
18725         strtoull: Move AC_LIBOBJ invocations to module description.
18726         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18728         from here...
18729         * modules/strtoull (configure.ac): ... to here.
18730
18731 2011-05-22  Bruno Haible  <bruno@clisp.org>
18732
18733         strtoll: Move AC_LIBOBJ invocations to module description.
18734         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18735         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18736         here...
18737         * modules/strtoll (configure.ac): ... to here.
18738
18739 2011-05-22  Bruno Haible  <bruno@clisp.org>
18740
18741         strtoul: Move AC_LIBOBJ invocations to module description.
18742         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18743         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18744         * modules/strtoul (configure.ac): ... to here.
18745
18746 2011-05-22  Bruno Haible  <bruno@clisp.org>
18747
18748         strtol: Move AC_LIBOBJ invocations to module description.
18749         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18750         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18751         * modules/strtol (configure.ac): ... to here.
18752
18753 2011-05-22  Bruno Haible  <bruno@clisp.org>
18754
18755         strtod: Move AC_LIBOBJ invocations to module description.
18756         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18757         invocations from here...
18758         * modules/strtod (configure.ac): ... to here.
18759
18760 2011-05-22  Bruno Haible  <bruno@clisp.org>
18761
18762         strstr*: Move AC_LIBOBJ invocations to module description.
18763         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18764         invocations from here...
18765         * modules/strstr-simple (configure.ac): ... to here.
18766         * modules/strstr (configure.ac): ... and here.
18767
18768 2011-05-22  Bruno Haible  <bruno@clisp.org>
18769
18770         strsignal: Move AC_LIBOBJ invocations to module description.
18771         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18772         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18773         * modules/strsignal (configure.ac): ... to here.
18774         (Depends-on): Update conditions.
18775
18776 2011-05-22  Bruno Haible  <bruno@clisp.org>
18777
18778         strsep: Move AC_LIBOBJ invocations to module description.
18779         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18781         here...
18782         * modules/strsep (configure.ac): ... to here.
18783
18784 2011-05-22  Bruno Haible  <bruno@clisp.org>
18785
18786         strptime: Move AC_LIBOBJ invocations to module description.
18787         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18788         gl_PREREQ_STRPTIME invocations from here...
18789         * modules/strptime (configure.ac): ... to here.
18790
18791 2011-05-22  Bruno Haible  <bruno@clisp.org>
18792
18793         strpbrk: Move AC_LIBOBJ invocations to module description.
18794         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18796         here...
18797         * modules/strpbrk (configure.ac): ... to here.
18798
18799 2011-05-22  Bruno Haible  <bruno@clisp.org>
18800
18801         strnlen: Move AC_LIBOBJ invocations to module description.
18802         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18803         invocations from here...
18804         * modules/strnlen (configure.ac): ... to here.
18805
18806 2011-05-22  Bruno Haible  <bruno@clisp.org>
18807
18808         strndup: Move AC_LIBOBJ invocations to module description.
18809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18810         invocations from here...
18811         * modules/strndup (configure.ac): ... to here.
18812         (Depends-on): Update conditions.
18813
18814 2011-05-22  Bruno Haible  <bruno@clisp.org>
18815
18816         strncat: Move AC_LIBOBJ invocations to module description.
18817         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18818         invocations from here...
18819         * modules/strncat (configure.ac): ... to here.
18820
18821 2011-05-22  Bruno Haible  <bruno@clisp.org>
18822
18823         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18824         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18825         invocations from here...
18826         * modules/strdup (configure.ac): ... to here.
18827         * modules/strdup-posix (configure.ac): ... and here.
18828
18829 2011-05-22  Bruno Haible  <bruno@clisp.org>
18830
18831         strcspn: Move AC_LIBOBJ invocations to module description.
18832         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18833         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18834         here...
18835         * modules/strcspn (configure.ac): ... to here.
18836
18837 2011-05-22  Bruno Haible  <bruno@clisp.org>
18838
18839         strchrnul: Move AC_LIBOBJ invocations to module description.
18840         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18841         gl_PREREQ_STRCHRNUL invocations from here...
18842         * modules/strchrnul (configure.ac): ... to here.
18843
18844 2011-05-22  Bruno Haible  <bruno@clisp.org>
18845
18846         strcasestr*: Move AC_LIBOBJ invocations to module description.
18847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18848         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18849         * modules/strcasestr-simple (configure.ac): ... to here.
18850         * modules/strcasestr (configure.ac): ... and here.
18851
18852 2011-05-22  Bruno Haible  <bruno@clisp.org>
18853
18854         strcase: Move AC_LIBOBJ invocations to module description.
18855         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18856         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18857         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18858         gl_PREREQ_STRNCASECMP invocations from here...
18859         * modules/strcase (configure.ac): ... to here.
18860
18861 2011-05-22  Bruno Haible  <bruno@clisp.org>
18862
18863         stpncpy: Move AC_LIBOBJ invocations to module description.
18864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18865         here...
18866         * modules/stpncpy (configure.ac): ... to here.
18867
18868 2011-05-22  Bruno Haible  <bruno@clisp.org>
18869
18870         stpcpy: Move AC_LIBOBJ invocations to module description.
18871         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18873         here...
18874         * modules/stpcpy (configure.ac): ... to here.
18875
18876 2011-05-21  Bruno Haible  <bruno@clisp.org>
18877
18878         stat: Move AC_LIBOBJ invocations to module description.
18879         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18880         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18881         here...
18882         * modules/stat (configure.ac): ... to here.
18883
18884 2011-05-21  Bruno Haible  <bruno@clisp.org>
18885
18886         sleep: Move AC_LIBOBJ invocations to module description.
18887         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18888         * modules/sleep (configure.ac): ... to here.
18889
18890 2011-05-21  Bruno Haible  <bruno@clisp.org>
18891
18892         signbit: Move AC_LIBOBJ invocations to module description.
18893         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18894         * modules/signbit (configure.ac): ... to here.
18895
18896 2011-05-21  Bruno Haible  <bruno@clisp.org>
18897
18898         sigprocmask: Move AC_LIBOBJ invocations to module description.
18899         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18900         gl_PREREQ_SIGPROMASK invocations from here...
18901         * modules/sigprocmask (configure.ac): ... to here.
18902
18903 2011-05-21  Bruno Haible  <bruno@clisp.org>
18904
18905         sigaction: Move AC_LIBOBJ invocations to module description.
18906         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18907         gl_PREREQ_SIGACTION invocations from here...
18908         * modules/sigaction (configure.ac): ... to here.
18909
18910 2011-05-21  Bruno Haible  <bruno@clisp.org>
18911
18912         sig2str: Move AC_LIBOBJ invocations to module description.
18913         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18915         here...
18916         * modules/sig2str (configure.ac): ... to here.
18917
18918 2011-05-21  Bruno Haible  <bruno@clisp.org>
18919
18920         setlocale: Move AC_LIBOBJ invocations to module description.
18921         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18922         gl_PREREQ_SETLOCALE invocations from here...
18923         * modules/setlocale (configure.ac): ... to here.
18924
18925 2011-05-21  Bruno Haible  <bruno@clisp.org>
18926
18927         unsetenv: Move AC_LIBOBJ invocations to module description.
18928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18929         and gl_PREREQ_UNSETENV invocations from here...
18930         * modules/unsetenv (configure.ac): ... to here.
18931         (Depends-on): Update.
18932
18933 2011-05-21  Bruno Haible  <bruno@clisp.org>
18934
18935         setenv: Move AC_LIBOBJ invocations to module description.
18936         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18937         here...
18938         * modules/setenv (configure.ac): ... to here.
18939
18940 2011-05-21  Bruno Haible  <bruno@clisp.org>
18941
18942         selinux-h: Move AC_LIBOBJ invocations to module description.
18943         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18944         AC_LIBOBJ invocation from here...
18945         * modules/selinux-h (configure.ac): ... to here.
18946
18947 2011-05-21  Bruno Haible  <bruno@clisp.org>
18948
18949         select: Respect rules for use of AC_LIBOBJ.
18950         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18951         here...
18952         * modules/select (configure.ac): ... to here.
18953
18954 2011-05-21  Bruno Haible  <bruno@clisp.org>
18955
18956         scandir: Move AC_LIBOBJ invocations to module description.
18957         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18958         invocations from here...
18959         * modules/scandir (configure.ac): ... to here.
18960
18961 2011-05-21  Bruno Haible  <bruno@clisp.org>
18962
18963         rpmatch: Move AC_LIBOBJ invocations to module description.
18964         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18966         here...
18967         * modules/rpmatch (configure.ac): ... to here.
18968
18969 2011-05-21  Bruno Haible  <bruno@clisp.org>
18970
18971         rmdir: Respect rules for use of AC_LIBOBJ.
18972         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18973         * modules/rmdir (configure.ac): ... to here.
18974
18975 2011-05-21  Bruno Haible  <bruno@clisp.org>
18976
18977         renameat: Move AC_LIBOBJ invocations to module description.
18978         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18979         here...
18980         * modules/renameat (configure.ac): ... to here.
18981
18982 2011-05-21  Bruno Haible  <bruno@clisp.org>
18983
18984         rename: Respect rules for use of AC_LIBOBJ.
18985         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18986         here...
18987         * modules/rename (configure.ac): ... to here.
18988
18989 2011-05-21  Bruno Haible  <bruno@clisp.org>
18990
18991         remove: Move AC_LIBOBJ invocations to module description.
18992         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18993         here...
18994         * modules/remove (configure.ac): ... to here.
18995
18996 2011-05-21  Bruno Haible  <bruno@clisp.org>
18997
18998         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18999         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19000         macro.
19001         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19002         * modules/relocatable-lib (configure.ac): ... to here.
19003         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19004         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19005
19006 2011-05-21  Bruno Haible  <bruno@clisp.org>
19007
19008         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19009         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19010         here...
19011         * modules/relocatable-prog (configure.ac): ... to here.
19012
19013 2011-05-21  Bruno Haible  <bruno@clisp.org>
19014
19015         regex: Move AC_LIBOBJ invocations to module description.
19016         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19017         invocations from here...
19018         * modules/regex (configure.ac): ... to here.
19019
19020 2011-05-21  Bruno Haible  <bruno@clisp.org>
19021
19022         realloc-*: Move AC_LIBOBJ invocations to module description.
19023         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19024         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19025         AC_LIBOBJ invocations from here...
19026         * modules/realloc-gnu (configure.ac): ... to here.
19027         * modules/realloc-posix (configure.ac): ... and here.
19028
19029 2011-05-21  Bruno Haible  <bruno@clisp.org>
19030
19031         readutmp: Move AC_LIBOBJ invocations to module description.
19032         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19033         * modules/readutmp (configure.ac): ... to here.
19034
19035 2011-05-21  Bruno Haible  <bruno@clisp.org>
19036
19037         readlinkat: Move AC_LIBOBJ invocations to module description.
19038         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19039         here...
19040         * modules/readlinkat (configure.ac): ... to here.
19041
19042 2011-05-21  Bruno Haible  <bruno@clisp.org>
19043
19044         readlink: Move AC_LIBOBJ invocations to module description.
19045         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19046         gl_PREREQ_READLINK invocations from here...
19047         * modules/readlink (configure.ac): ... to here.
19048
19049 2011-05-21  Bruno Haible  <bruno@clisp.org>
19050
19051         readline: Move AC_LIBOBJ invocations to module description.
19052         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19053         gl_PREREQ_READLINE invocations from here...
19054         * modules/readline (configure.ac): ... to here.
19055
19056 2011-05-21  Bruno Haible  <bruno@clisp.org>
19057
19058         read: Move AC_LIBOBJ invocations to module description.
19059         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19060         * modules/read (configure.ac): ... to here.
19061
19062 2011-05-21  Bruno Haible  <bruno@clisp.org>
19063
19064         rawmemchr: Move AC_LIBOBJ invocations to module description.
19065         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19067         from here...
19068         * modules/rawmemchr (configure.ac): ... to here.
19069
19070 2011-05-21  Bruno Haible  <bruno@clisp.org>
19071
19072         random_r: Move AC_LIBOBJ invocations to module description.
19073         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19074         gl_PREREQ_RANDOM_R invocations from here...
19075         * modules/random_r (configure.ac): ... to here.
19076
19077 2011-05-21  Bruno Haible  <bruno@clisp.org>
19078
19079         pwrite: Move AC_LIBOBJ invocations to module description.
19080         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19081         * modules/pwrite (configure.ac): ... to here.
19082
19083 2011-05-21  Bruno Haible  <bruno@clisp.org>
19084
19085         putenv: Move AC_LIBOBJ invocations to module description.
19086         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19087         * modules/putenv (configure.ac): ... to here.
19088
19089 2011-05-21  Bruno Haible  <bruno@clisp.org>
19090
19091         login_tty: Move AC_LIBOBJ invocations to module description.
19092         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19093         * modules/login_tty (configure.ac): ... to here.
19094
19095 2011-05-21  Bruno Haible  <bruno@clisp.org>
19096
19097         openpty: Move AC_LIBOBJ invocations to module description.
19098         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19099         * modules/openpty (configure.ac): ... to here.
19100
19101 2011-05-21  Bruno Haible  <bruno@clisp.org>
19102
19103         forkpty: Move AC_LIBOBJ invocations to module description.
19104         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19105         * modules/forkpty (configure.ac): ... to here.
19106
19107 2011-05-21  Bruno Haible  <bruno@clisp.org>
19108
19109         ptsname: Move AC_LIBOBJ invocations to module description.
19110         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19111         invocations from here...
19112         * modules/ptsname (configure.ac): ... to here.
19113
19114 2011-05-21  Bruno Haible  <bruno@clisp.org>
19115
19116         pread: Move AC_LIBOBJ invocations to module description.
19117         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19118         * modules/pread (configure.ac): ... to here.
19119
19120 2011-05-21  Bruno Haible  <bruno@clisp.org>
19121
19122         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19123         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19124         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19125         * modules/posix_spawn (configure.ac): ... to here.
19126         * modules/posix_spawnp (configure.ac): ... and here.
19127
19128 2011-05-21  Bruno Haible  <bruno@clisp.org>
19129
19130         popen: Move AC_LIBOBJ invocations to module description.
19131         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19132         invocations from here...
19133         * modules/popen (configure.ac): ... to here.
19134
19135 2011-05-21  Bruno Haible  <bruno@clisp.org>
19136
19137         poll: Move AC_LIBOBJ invocations to module description.
19138         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19139         invocations from here...
19140         * modules/poll (configure.ac): ... to here.
19141
19142 2011-05-21  Bruno Haible  <bruno@clisp.org>
19143
19144         pipe-posix: Move AC_LIBOBJ invocations to module description.
19145         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19146         * modules/pipe-posix (configure.ac): ... to here.
19147
19148 2011-05-21  Bruno Haible  <bruno@clisp.org>
19149
19150         openat: Respect rules for use of AC_LIBOBJ.
19151         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19152         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19153         * modules/openat (configure.ac): ... to here.
19154
19155 2011-05-21  Bruno Haible  <bruno@clisp.org>
19156
19157         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19158         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19159         invocation from here...
19160         * modules/obstack-printf (configure.ac): ... to here.
19161         * modules/obstack-printf-posix (configure.ac): ... and here.
19162
19163 2011-05-21  Bruno Haible  <bruno@clisp.org>
19164
19165         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19166         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19167         from here...
19168         * modules/nl_langinfo (configure.ac): ... to here.
19169
19170 2011-05-21  Bruno Haible  <bruno@clisp.org>
19171
19172         nanosleep: Move AC_LIBOBJ invocations to module description.
19173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19174         gl_PREREQ_NANOSLEEP invocations from here...
19175         * modules/nanosleep (configure.ac): ... to here.
19176
19177 2011-05-21  Bruno Haible  <bruno@clisp.org>
19178
19179         mountlist: Move AC_LIBOBJ invocations to module description.
19180         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19181         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19182         * modules/mountlist (configure.ac): ... to here.
19183
19184 2011-05-21  Bruno Haible  <bruno@clisp.org>
19185
19186         mktime: Respect rules for use of AC_LIBOBJ.
19187         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19188         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19189         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19190         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19191         * modules/mktime (configure.ac): ... to here.
19192         * modules/mktime-internal (configure.ac): ... and here.
19193         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19194
19195 2011-05-21  Bruno Haible  <bruno@clisp.org>
19196
19197         mkstemps: Move AC_LIBOBJ invocations to module description.
19198         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19199         here...
19200         * modules/mkstemps (configure.ac): ... to here.
19201
19202 2011-05-21  Bruno Haible  <bruno@clisp.org>
19203
19204         mkstemp: Move AC_LIBOBJ invocations to module description.
19205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19206         gl_PREREQ_MKSTEMP invocations from here...
19207         * modules/mkstemp (configure.ac): ... to here.
19208
19209 2011-05-21  Bruno Haible  <bruno@clisp.org>
19210
19211         mkostemps: Move AC_LIBOBJ invocations to module description.
19212         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19213         here...
19214         * modules/mkostemps (configure.ac): ... to here.
19215
19216 2011-05-21  Bruno Haible  <bruno@clisp.org>
19217
19218         mkostemp: Move AC_LIBOBJ invocations to module description.
19219         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19220         gl_PREREQ_MKOSTEMP invocations from here...
19221         * modules/mkostemp (configure.ac): ... to here.
19222
19223 2011-05-21  Bruno Haible  <bruno@clisp.org>
19224
19225         mknod: Move AC_LIBOBJ invocations to module description.
19226         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19227         * modules/mknod (configure.ac): ... to here.
19228
19229 2011-05-21  Bruno Haible  <bruno@clisp.org>
19230
19231         mkfifoat: Move AC_LIBOBJ invocations to module description.
19232         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19233         here...
19234         * modules/mkfifoat (configure.ac): ... to here.
19235
19236 2011-05-21  Bruno Haible  <bruno@clisp.org>
19237
19238         mkfifo: Respect rules for use of AC_LIBOBJ.
19239         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19240         here...
19241         * modules/mkfifo (configure.ac): ... to here.
19242
19243 2011-05-21  Bruno Haible  <bruno@clisp.org>
19244
19245         mkdtemp: Move AC_LIBOBJ invocations to module description.
19246         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19247         invocations from here...
19248         * modules/mkdtemp (configure.ac): ... to here.
19249
19250 2011-05-21  Bruno Haible  <bruno@clisp.org>
19251
19252         mkdir: Move AC_LIBOBJ invocations to module description.
19253         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19254         * modules/mkdir (configure.ac): ... to here.
19255
19256 2011-05-21  Bruno Haible  <bruno@clisp.org>
19257
19258         memset: Move AC_LIBOBJ invocations to module description.
19259         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19261         here...
19262         * modules/memset (configure.ac): ... to here.
19263
19264 2011-05-21  Bruno Haible  <bruno@clisp.org>
19265
19266         memrchr: Move AC_LIBOBJ invocations to module description.
19267         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19269         here...
19270         * modules/memrchr (configure.ac): ... to here.
19271
19272 2011-05-21  Bruno Haible  <bruno@clisp.org>
19273
19274         mempcpy: Move AC_LIBOBJ invocations to module description.
19275         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19277         here...
19278         * modules/mempcpy (configure.ac): ... to here.
19279
19280 2011-05-21  Bruno Haible  <bruno@clisp.org>
19281
19282         memmove: Move AC_LIBOBJ invocations to module description.
19283         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19285         here...
19286         * modules/memmove (configure.ac): ... to here.
19287
19288 2011-05-21  Bruno Haible  <bruno@clisp.org>
19289
19290         memmem*: Move AC_LIBOBJ invocations to module description.
19291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19292         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19293         here...
19294         (gl_FUNC_MEMMEM): ... and here...
19295         * modules/memmem-simple (configure.ac): ... to here.
19296         * modules/memmem (configure.ac): ... and here.
19297
19298 2011-05-21  Bruno Haible  <bruno@clisp.org>
19299
19300         memcpy: Move AC_LIBOBJ invocations to module description.
19301         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19302         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19303         here...
19304         * modules/memcpy (configure.ac): ... to here.
19305
19306 2011-05-21  Bruno Haible  <bruno@clisp.org>
19307
19308         memcmp: Simplify autoconf macro.
19309         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19310         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19311         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19312
19313 2011-05-21  Bruno Haible  <bruno@clisp.org>
19314
19315         memcmp: Move AC_LIBOBJ invocations to module description.
19316         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19317         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19318         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19319         * modules/memcmp (configure.ac): ... to here.
19320         (Depends-on): Update conditions.
19321
19322 2011-05-21  Bruno Haible  <bruno@clisp.org>
19323
19324         memchr: Respect rules for use of AC_LIBOBJ.
19325         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19326         invocations from here...
19327         * modules/memchr (configure.ac): ... to here.
19328
19329 2011-05-21  Bruno Haible  <bruno@clisp.org>
19330
19331         mbtowc: Move AC_LIBOBJ invocations to module description.
19332         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19333         invocations from here...
19334         * modules/mbtowc (configure.ac): ... to here.
19335
19336 2011-05-21  Bruno Haible  <bruno@clisp.org>
19337
19338         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19339         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19340         gl_PREREQ_MBSRTOWCS invocations from here...
19341         * modules/mbsrtowcs (configure.ac): ... to here.
19342
19343 2011-05-21  Bruno Haible  <bruno@clisp.org>
19344
19345         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19346         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19347         gl_PREREQ_MBSNRTOWCS invocations from here...
19348         * modules/mbsnrtowcs (configure.ac): ... to here.
19349
19350 2011-05-21  Bruno Haible  <bruno@clisp.org>
19351
19352         mbsinit: Move AC_LIBOBJ invocations to module description.
19353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19354         invocations from here...
19355         * modules/mbsinit (configure.ac): ... to here.
19356
19357 2011-05-21  Bruno Haible  <bruno@clisp.org>
19358
19359         mbrlen: Move AC_LIBOBJ invocations to module description.
19360         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19361         invocations from here...
19362         * modules/mbrlen (configure.ac): ... to here.
19363
19364 2011-05-21  Bruno Haible  <bruno@clisp.org>
19365
19366         mbrtowc: Respect rules for use of AC_LIBOBJ.
19367         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19368         invocations from here...
19369         * modules/mbrtowc (configure.ac): ... to here.
19370
19371 2011-05-21  Bruno Haible  <bruno@clisp.org>
19372
19373         malloc-*: Move AC_LIBOBJ invocations to module description.
19374         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19375         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19376         AC_LIBOBJ invocations from here...
19377         * modules/malloc-gnu (configure.ac): ... to here.
19378         * modules/malloc-posix (configure.ac): ... and here.
19379
19380 2011-05-21  Bruno Haible  <bruno@clisp.org>
19381
19382         lstat, openat: Respect rules for use of AC_LIBOBJ.
19383         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19384         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19385         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19386         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19387         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19388         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19389         here.
19390         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19391
19392 2011-05-21  Bruno Haible  <bruno@clisp.org>
19393
19394         lseek: Move AC_LIBOBJ invocations to module description.
19395         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19396         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19397         * modules/lseek (configure.ac): ... to here.
19398
19399 2011-05-21  Bruno Haible  <bruno@clisp.org>
19400
19401         linkat: Move AC_LIBOBJ invocations to module description.
19402         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19403         here...
19404         * modules/linkat (configure.ac): ... to here.
19405
19406 2011-05-21  Bruno Haible  <bruno@clisp.org>
19407
19408         link: Respect rules for use of AC_LIBOBJ.
19409         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19410         * modules/link (configure.ac): ... to here.
19411
19412 2011-05-21  Bruno Haible  <bruno@clisp.org>
19413
19414         lchown: Move AC_LIBOBJ invocations to module description.
19415         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19416         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19417         * modules/lchown (configure.ac): ... to here.
19418
19419 2011-05-21  Bruno Haible  <bruno@clisp.org>
19420
19421         iswctype: Move AC_LIBOBJ invocations to module description.
19422         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19423         here...
19424         * modules/iswctype (configure.ac): ... to here.
19425
19426 2011-05-21  Bruno Haible  <bruno@clisp.org>
19427
19428         iswblank: Move AC_LIBOBJ invocations to module description.
19429         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19430         here...
19431         * modules/iswblank (configure.ac): ... to here.
19432
19433 2011-05-21  Bruno Haible  <bruno@clisp.org>
19434
19435         atanl: Move AC_LIBOBJ invocations to module description.
19436         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19437         * modules/atanl (configure.ac): ... to here.
19438
19439 2011-05-21  Bruno Haible  <bruno@clisp.org>
19440
19441         acosl: Move AC_LIBOBJ invocations to module description.
19442         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19443         * modules/acosl (configure.ac): ... to here.
19444
19445 2011-05-21  Bruno Haible  <bruno@clisp.org>
19446
19447         asinl: Respect rules for use of AC_LIBOBJ.
19448         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19449         * modules/asinl (configure.ac): ... to here.
19450
19451 2011-05-21  Bruno Haible  <bruno@clisp.org>
19452
19453         tanl: Move AC_LIBOBJ invocations to module description.
19454         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19455         * modules/tanl (configure.ac): ... to here.
19456
19457 2011-05-21  Bruno Haible  <bruno@clisp.org>
19458
19459         cosl: Move AC_LIBOBJ invocations to module description.
19460         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19461         * modules/cosl (configure.ac): ... to here.
19462
19463 2011-05-21  Bruno Haible  <bruno@clisp.org>
19464
19465         sinl: Move AC_LIBOBJ invocations to module description.
19466         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19467         * modules/sinl (configure.ac): ... to here.
19468
19469 2011-05-21  Bruno Haible  <bruno@clisp.org>
19470
19471         logl: Move AC_LIBOBJ invocations to module description.
19472         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19473         * modules/logl (configure.ac): ... to here.
19474
19475 2011-05-21  Bruno Haible  <bruno@clisp.org>
19476
19477         expl: Move AC_LIBOBJ invocations to module description.
19478         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19479         * modules/expl (configure.ac): ... to here.
19480
19481 2011-05-21  Bruno Haible  <bruno@clisp.org>
19482
19483         roundl: Move AC_LIBOBJ invocations to module description.
19484         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19485         * modules/roundl (configure.ac): ... to here.
19486
19487 2011-05-21  Bruno Haible  <bruno@clisp.org>
19488
19489         round: Move AC_LIBOBJ invocations to module description.
19490         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19491         * modules/round (configure.ac): ... to here.
19492
19493 2011-05-21  Bruno Haible  <bruno@clisp.org>
19494
19495         roundf: Move AC_LIBOBJ invocations to module description.
19496         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19497         * modules/roundf (configure.ac): ... to here.
19498
19499 2011-05-21  Bruno Haible  <bruno@clisp.org>
19500
19501         truncl: Move AC_LIBOBJ invocations to module description.
19502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19503         * modules/truncl (configure.ac): ... to here.
19504
19505 2011-05-21  Bruno Haible  <bruno@clisp.org>
19506
19507         trunc: Move AC_LIBOBJ invocations to module description.
19508         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19509         * modules/trunc (configure.ac): ... to here.
19510
19511 2011-05-21  Bruno Haible  <bruno@clisp.org>
19512
19513         truncf: Move AC_LIBOBJ invocations to module description.
19514         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19515         * modules/truncf (configure.ac): ... to here.
19516
19517 2011-05-21  Bruno Haible  <bruno@clisp.org>
19518
19519         ceill: Move AC_LIBOBJ invocations to module description.
19520         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19521         * modules/ceill (configure.ac): ... to here.
19522
19523 2011-05-21  Bruno Haible  <bruno@clisp.org>
19524
19525         ceil: Move AC_LIBOBJ invocations to module description.
19526         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19527         * modules/ceil (configure.ac): ... to here.
19528
19529 2011-05-21  Bruno Haible  <bruno@clisp.org>
19530
19531         ceilf: Move AC_LIBOBJ invocations to module description.
19532         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19533         * modules/ceilf (configure.ac): ... to here.
19534
19535 2011-05-21  Bruno Haible  <bruno@clisp.org>
19536
19537         floorl: Respect rules for use of AC_LIBOBJ.
19538         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19539         * modules/floorl (configure.ac): ... to here.
19540
19541 2011-05-21  Bruno Haible  <bruno@clisp.org>
19542
19543         floor: Respect rules for use of AC_LIBOBJ.
19544         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19545         * modules/floor (configure.ac): ... to here.
19546
19547 2011-05-21  Bruno Haible  <bruno@clisp.org>
19548
19549         floorf: Move AC_LIBOBJ invocations to module description.
19550         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19551         * modules/floorf (configure.ac): ... to here.
19552
19553 2011-05-20  Bruno Haible  <bruno@clisp.org>
19554
19555         sqrtl: Respect rules for use of AC_LIBOBJ.
19556         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19557         * modules/sqrtl (configure.ac): ... to here.
19558
19559 2011-05-20  Bruno Haible  <bruno@clisp.org>
19560
19561         ldexpl: Respect rules for use of AC_LIBOBJ.
19562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19563         * modules/ldexpl (configure.ac): ... to here.
19564
19565 2011-05-20  Bruno Haible  <bruno@clisp.org>
19566
19567         frexpl*: Respect rules for use of AC_LIBOBJ.
19568         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19569         invocation from here...
19570         * modules/frexpl (configure.ac): ... to here.
19571         * modules/frexpl-nolibm (configure.ac): ... and here.
19572
19573 2011-05-20  Bruno Haible  <bruno@clisp.org>
19574
19575         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19576         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19577         invocation from here...
19578         * modules/frexp (configure.ac): ... to here.
19579         * modules/frexp-nolibm (configure.ac): ... and here.
19580
19581 2011-05-20  Bruno Haible  <bruno@clisp.org>
19582
19583         isnan: Respect rules for use of AC_LIBOBJ.
19584         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19585         invocations here.
19586         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19587         REPLACE_ISNAN.
19588         * modules/isnand (configure.ac): Likewise.
19589         * modules/isnanl (configure.ac): Likewise.
19590
19591 2011-05-20  Bruno Haible  <bruno@clisp.org>
19592
19593         isnanl*: Respect rules for use of AC_LIBOBJ.
19594         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19595         invocation from here...
19596         * modules/isnanl (configure.ac): ... to here.
19597         * modules/isnanl-nolibm (configure.ac): ... and here.
19598
19599 2011-05-20  Bruno Haible  <bruno@clisp.org>
19600
19601         isnand*: Move AC_LIBOBJ invocations to module description.
19602         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19603         invocation from here...
19604         * modules/isnand (configure.ac): ... to here.
19605         * modules/isnand-nolibm (configure.ac): ... and here.
19606
19607 2011-05-20  Bruno Haible  <bruno@clisp.org>
19608
19609         isnanf*: Move AC_LIBOBJ invocations to module description.
19610         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19611         invocation from here...
19612         * modules/isnanf (configure.ac): ... to here.
19613         * modules/isnanf-nolibm (configure.ac): ... and here.
19614
19615 2011-05-20  Bruno Haible  <bruno@clisp.org>
19616
19617         isnan*: Separate the AC_LIBOBJ invocations.
19618         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19619         AC_LIBOBJ invocation.
19620         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19621         here.
19622         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19623         AC_LIBOBJ invocation.
19624         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19625         here.
19626         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19627         AC_LIBOBJ invocation.
19628         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19629         here.
19630         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19631
19632 2011-05-08  Bruno Haible  <bruno@clisp.org>
19633
19634         isinf: Move AC_LIBOBJ invocations to module description.
19635         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19636         * modules/isinf (configure.ac): ... to here.
19637
19638 2011-05-08  Bruno Haible  <bruno@clisp.org>
19639
19640         isfinite: Move AC_LIBOBJ invocations to module description.
19641         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19642         * modules/isfinite (configure.ac): ... to here.
19643
19644 2011-05-08  Bruno Haible  <bruno@clisp.org>
19645
19646         isblank: Move AC_LIBOBJ invocations to module description.
19647         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19648         here...
19649         * modules/isblank (configure.ac): ... to here.
19650
19651 2011-05-08  Bruno Haible  <bruno@clisp.org>
19652
19653         isapipe: Move AC_LIBOBJ invocations to module description.
19654         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19655         gl_PREREQ_ISAPIPE invocations from here...
19656         * modules/isapipe (configure.ac): ... to here.
19657         (Depends-on): Update condition.
19658
19659 2011-05-08  Bruno Haible  <bruno@clisp.org>
19660
19661         ioctl: Move AC_LIBOBJ invocations to module description.
19662         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19663         invocations from here...
19664         * modules/ioctl (configure.ac): ... to here.
19665         (Depends-on): Update condition.
19666
19667 2011-05-08  Bruno Haible  <bruno@clisp.org>
19668
19669         imaxdiv: Move AC_LIBOBJ invocations to module description.
19670         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19671         invocations from here...
19672         * modules/imaxdiv (configure.ac): ... to here.
19673
19674 2011-05-08  Bruno Haible  <bruno@clisp.org>
19675
19676         imaxabs: Move AC_LIBOBJ invocations to module description.
19677         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19678         invocations from here...
19679         * modules/imaxabs (configure.ac): ... to here.
19680
19681 2011-05-08  Bruno Haible  <bruno@clisp.org>
19682
19683         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19685         AC_LIBOBJ invocations from here...
19686         * modules/getaddrinfo (configure.ac): ... to here.
19687         (Depends-on): Add conditions.
19688
19689 2011-05-08  Bruno Haible  <bruno@clisp.org>
19690
19691         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19692         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19693         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19694         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19695         (gl_PREREQ_INET_PTON): ... from here.
19696         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19697         gl_PREREQ_INET_PTON here.
19698         (Depends-on): Update condition.
19699
19700 2011-05-08  Bruno Haible  <bruno@clisp.org>
19701
19702         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19703         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19704         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19705         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19706         (gl_PREREQ_INET_NTOP): ... from here.
19707         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19708         gl_PREREQ_INET_NTOP here.
19709         (Depends-on): Update condition.
19710
19711 2011-05-08  Bruno Haible  <bruno@clisp.org>
19712
19713         iconv_open: Move AC_LIBOBJ invocations to module description.
19714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19715         AC_LIBOBJ invocations from here...
19716         * modules/iconv_open (configure.ac): ... to here.
19717
19718 2011-05-08  Bruno Haible  <bruno@clisp.org>
19719
19720         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19721         If module 'iconv_open' is among the main modules and module
19722         'iconv_open-utf' is among the tests dependencies, then
19723         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19724         return the special iconv_t values. Therefore iconv() and iconv_close()
19725         must support these special iconv_t values, already in lib, not only in
19726         tests.
19727         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19728         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19729         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19730         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19731         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19732         (Depends-on): Add the dependencies of iconv_open-utf.
19733         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19734         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19735         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19736
19737 2011-05-08  Bruno Haible  <bruno@clisp.org>
19738
19739         group-member: Move AC_LIBOBJ invocations to module description.
19740         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19741         gl_PREREQ_GROUP_MEMBER invocations from here...
19742         * modules/group-member (configure.ac): ... to here.
19743
19744 2011-05-08  Bruno Haible  <bruno@clisp.org>
19745
19746         grantpt: Move AC_LIBOBJ invocations to module description.
19747         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19748         invocations from here...
19749         * modules/grantpt (configure.ac): ... to here.
19750
19751 2011-05-08  Bruno Haible  <bruno@clisp.org>
19752
19753         glob: Move AC_LIBOBJ invocations to module description.
19754         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19755         from here...
19756         * modules/glob (configure.ac): ... to here.
19757
19758 2011-05-08  Bruno Haible  <bruno@clisp.org>
19759
19760         getusershell: Move AC_LIBOBJ invocations to module description.
19761         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19762         Move AC_LIBOBJ invocation from here...
19763         * modules/getusershell (configure.ac): ... to here.
19764         (Depends-on): Update condition.
19765
19766 2011-05-08  Bruno Haible  <bruno@clisp.org>
19767
19768         gettimeofday: Move AC_LIBOBJ invocations to module description.
19769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19770         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19771         gl_PREREQ_GETTIMEOFDAY invocations from here...
19772         * modules/gettimeofday (configure.ac): ... to here.
19773
19774 2011-05-08  Bruno Haible  <bruno@clisp.org>
19775
19776         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19777         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19778         just gl_FUNC_TZSET.
19779         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19780         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19781         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19782         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19783
19784 2011-05-08  Bruno Haible  <bruno@clisp.org>
19785
19786         getsubopt: Move AC_LIBOBJ invocations to module description.
19787         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19788         gl_PREREQ_GETSUBOPT invocations from here...
19789         * modules/getsubopt (configure.ac): ... to here.
19790
19791 2011-05-08  Bruno Haible  <bruno@clisp.org>
19792
19793         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19794         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19795         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19796         * modules/getpass-gnu (configure.ac): ... to here.
19797
19798 2011-05-08  Bruno Haible  <bruno@clisp.org>
19799
19800         getpass: Move AC_LIBOBJ invocations to module description.
19801         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19802         gl_PREREQ_GETPASS invocations from here...
19803         * modules/getpass (configure.ac): ... to here.
19804
19805 2011-05-08  Bruno Haible  <bruno@clisp.org>
19806
19807         getpagesize: Move AC_LIBOBJ invocations to module description.
19808         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19809         from here...
19810         * modules/getpagesize (configure.ac): ... to here.
19811
19812 2011-05-08  Bruno Haible  <bruno@clisp.org>
19813
19814         getopt: Move AC_LIBOBJ invocations to module description.
19815         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19816         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19817         invocations from here...
19818         * modules/getopt-gnu (configure.ac): ... to here.
19819         * modules/getopt-posix (configure.ac): ... and here.
19820         (Depends-on): Update condition.
19821
19822 2011-05-08  Bruno Haible  <bruno@clisp.org>
19823
19824         getopt, argp: Respect rules for use of AC_LIBOBJ.
19825         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19826         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19827         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19828         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19829
19830 2011-05-08  Bruno Haible  <bruno@clisp.org>
19831
19832         getlogin_r: Move AC_LIBOBJ invocations to module description.
19833         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19834         gl_PREREQ_GETLOGIN_R invocations from here...
19835         * modules/getlogin_r (configure.ac): ... to here.
19836
19837 2011-05-08  Bruno Haible  <bruno@clisp.org>
19838
19839         getlogin: Move AC_LIBOBJ invocations to module description.
19840         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19841         here...
19842         * modules/getlogin (configure.ac): ... to here.
19843
19844 2011-05-08  Bruno Haible  <bruno@clisp.org>
19845
19846         getloadavg: Move AC_LIBOBJ invocations to module description.
19847         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19848         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19849         * modules/getloadavg (configure.ac): ... to here.
19850
19851 2011-05-08  Bruno Haible  <bruno@clisp.org>
19852
19853         gethrxtime: Move AC_LIBOBJ invocations to module description.
19854         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19855         LIB_GETHRXTIME from here...
19856         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19857         invocations from here...
19858         * modules/gethrxtime (configure.ac): ... to here.
19859
19860 2011-05-08  Bruno Haible  <bruno@clisp.org>
19861
19862         gethostname: Move AC_LIBOBJ invocations to module description.
19863         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19864         gl_PREREQ_GETHOSTNAME invocations from here...
19865         * modules/gethostname (configure.ac): ... to here.
19866
19867 2011-05-08  Bruno Haible  <bruno@clisp.org>
19868
19869         getgroups: Move AC_LIBOBJ invocations to module description.
19870         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19871         here...
19872         * modules/getgroups (configure.ac): ... to here.
19873
19874 2011-05-08  Bruno Haible  <bruno@clisp.org>
19875
19876         getdtablesize: Move AC_LIBOBJ invocations to module description.
19877         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19878         invocation from here...
19879         * modules/getdtablesize (configure.ac): ... to here.
19880
19881 2011-05-08  Bruno Haible  <bruno@clisp.org>
19882
19883         getdomainname: Move AC_LIBOBJ invocations to module description.
19884         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19885         gl_PREREQ_GETDOMAINNAME invocations from here...
19886         * modules/getdomainname (configure.ac): ... to here.
19887
19888 2011-05-08  Bruno Haible  <bruno@clisp.org>
19889
19890         getline: Move AC_LIBOBJ invocations to module description.
19891         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19892         invocations from here...
19893         * modules/getline (configure.ac): ... to here.
19894
19895 2011-05-08  Bruno Haible  <bruno@clisp.org>
19896
19897         getline: Simplify.
19898         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19899         It's already handled through the module dependency.
19900
19901 2011-05-08  Bruno Haible  <bruno@clisp.org>
19902
19903         getdelim: Move AC_LIBOBJ invocations to module description.
19904         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19905         and gl_PREREQ_GETDELIM invocations from here...
19906         * modules/getdelim (configure.ac): ... to here.
19907         (Depends-on): Fix condition.
19908
19909 2011-05-08  Bruno Haible  <bruno@clisp.org>
19910
19911         getcwd: Move AC_LIBOBJ invocations to module description.
19912         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19913         invocations from here...
19914         * modules/getcwd (configure.ac): ... to here.
19915
19916 2011-05-08  Bruno Haible  <bruno@clisp.org>
19917
19918         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19919         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19920         here...
19921         * modules/getcwd-lgpl (configure.ac): ... to here.
19922
19923 2011-05-07  Bruno Haible  <bruno@clisp.org>
19924
19925         crypto/gc: Move AC_LIBOBJ invocations to module description.
19926         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19927         * modules/crypto/gc (configure.ac): ... to here.
19928
19929 2011-05-07  Bruno Haible  <bruno@clisp.org>
19930
19931         fwriting: Move AC_LIBOBJ invocations to module description.
19932         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19933         here...
19934         * modules/fwriting (configure.ac): ... to here.
19935
19936 2011-05-07  Bruno Haible  <bruno@clisp.org>
19937
19938         fwritable: Move AC_LIBOBJ invocations to module description.
19939         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19940         here...
19941         * modules/fwritable (configure.ac): ... to here.
19942
19943 2011-05-07  Bruno Haible  <bruno@clisp.org>
19944
19945         futimens: Move AC_LIBOBJ invocations to module description.
19946         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19947         here...
19948         * modules/futimens (configure.ac): ... to here.
19949
19950 2011-05-07  Bruno Haible  <bruno@clisp.org>
19951
19952         ftruncate: Move AC_LIBOBJ invocations to module description.
19953         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19954         gl_PREREQ_FTRUNCATE invocations from here...
19955         * modules/ftruncate (configure.ac): ... to here.
19956
19957 2011-05-07  Bruno Haible  <bruno@clisp.org>
19958
19959         fsync: Move AC_LIBOBJ invocations to module description.
19960         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19961         invocations from here...
19962         * modules/fsync (configure.ac): ... to here.
19963
19964 2011-05-07  Bruno Haible  <bruno@clisp.org>
19965
19966         fsusage: Move AC_LIBOBJ invocations to module description.
19967         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19968         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19969         * modules/fsusage (configure.ac): ... to here.
19970
19971 2011-05-07  Bruno Haible  <bruno@clisp.org>
19972
19973         freopen: Move AC_LIBOBJ invocations to module description.
19974         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19975         invocations from here...
19976         * modules/freopen (configure.ac): ... to here.
19977
19978 2011-05-07  Bruno Haible  <bruno@clisp.org>
19979
19980         free: Move AC_LIBOBJ invocations to module description.
19981         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19982         invocations from here...
19983         * modules/free (configure.ac): ... to here.
19984
19985 2011-05-07  Bruno Haible  <bruno@clisp.org>
19986
19987         freadable: Move AC_LIBOBJ invocations to module description.
19988         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19989         here...
19990         * modules/freadable (configure.ac): ... to here.
19991
19992 2011-05-07  Bruno Haible  <bruno@clisp.org>
19993
19994         fpurge: Move AC_LIBOBJ invocations to module description.
19995         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19996         invocations from here...
19997         * modules/fpurge (configure.ac): ... to here.
19998
19999 2011-05-07  Bruno Haible  <bruno@clisp.org>
20000
20001         fpending: Move AC_LIBOBJ invocations to module description.
20002         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20003         gl_FUNC_FPENDING.
20004         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20005         invocations from here...
20006         * modules/fpending (configure.ac): ... to here.
20007
20008 2011-05-07  Bruno Haible  <bruno@clisp.org>
20009
20010         fopen: Move AC_LIBOBJ invocations to module description.
20011         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20012         invocations from here...
20013         * modules/fopen (configure.ac): ... to here.
20014
20015 2011-05-07  Bruno Haible  <bruno@clisp.org>
20016
20017         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20018         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20019         gl_FUNC_FNMATCH_POSIX.
20020         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20021         invocations from here...
20022         * modules/fnmatch (configure.ac): ... to here.
20023         * modules/fnmatch-gnu (configure.ac): ... and here.
20024
20025 2011-05-07  Bruno Haible  <bruno@clisp.org>
20026
20027         flock: Move AC_LIBOBJ invocations to module description.
20028         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20029         invocations from here...
20030         * modules/flock (configure.ac): ... to here.
20031
20032 2011-05-07  Bruno Haible  <bruno@clisp.org>
20033
20034         fileblocks: Move AC_LIBOBJ invocations to module description.
20035         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20036         gl_PREREQ_FILEBLOCKS invocations from here...
20037         * modules/fileblocks (configure.ac): ... to here.
20038
20039 2011-05-06  Bruno Haible  <bruno@clisp.org>
20040
20041         fflush: Move AC_LIBOBJ invocations to module description.
20042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20043         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20044         invocations from here...
20045         * modules/fflush (configure.ac): ... to here.
20046
20047 2011-05-06  Bruno Haible  <bruno@clisp.org>
20048
20049         fdopendir: Move AC_LIBOBJ invocations to module description.
20050         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20051         here...
20052         * modules/fdopendir (configure.ac): ... to here.
20053         (Depends-on): Improve conditions.
20054
20055 2011-05-06  Bruno Haible  <bruno@clisp.org>
20056
20057         _Exit: Move AC_LIBOBJ invocations to module description.
20058         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20059         invocations from here...
20060         * modules/_Exit (configure.ac): ... to here.
20061
20062 2011-05-21  Bruno Haible  <bruno@clisp.org>
20063
20064         euidaccess: Respect rules for use of AC_LIBOBJ.
20065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20067         from here...
20068         * modules/euidaccess (configure.ac): ... to here.
20069
20070 2011-05-06  Bruno Haible  <bruno@clisp.org>
20071
20072         error: Move AC_LIBOBJ invocations to module description.
20073         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20074         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20075         invocations from here...
20076         * modules/error (configure.ac): ... to here.
20077
20078 2011-05-06  Bruno Haible  <bruno@clisp.org>
20079
20080         duplocale: Move AC_LIBOBJ invocations to module description.
20081         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20082         gl_PREREQ_DUPLOCALE invocations from here...
20083         * modules/duplocale (configure.ac): ... to here.
20084
20085 2011-05-05  Bruno Haible  <bruno@clisp.org>
20086
20087         dirfd: Move AC_LIBOBJ invocations to module description.
20088         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20089         gl_FUNC_DIRFD.
20090         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20091         here...
20092         * modules/dirfd (configure.ac): ... to here.
20093         (Depends-on): Fix condition.
20094
20095 2011-05-05  Bruno Haible  <bruno@clisp.org>
20096
20097         chown: Respect rules for use of AC_LIBOBJ.
20098         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20099         * modules/chown (configure.ac): ... to here.
20100
20101 2011-05-05  Bruno Haible  <bruno@clisp.org>
20102
20103         chdir-long: Move AC_LIBOBJ invocations to module description.
20104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20105         gl_PREREQ_CHDIR_LONG invocations from here...
20106         * modules/chdir-long (configure.ac): ... to here.
20107
20108 2011-05-05  Bruno Haible  <bruno@clisp.org>
20109
20110         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20111         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20112         from here...
20113         * modules/canonicalize-lgpl (configure.ac): ... to here.
20114
20115 2011-05-05  Bruno Haible  <bruno@clisp.org>
20116
20117         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20118         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20119         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20120         REPLACE_CALLOC.
20121         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20122         * modules/calloc-gnu (configure.ac): Likewise.
20123
20124 2011-05-05  Bruno Haible  <bruno@clisp.org>
20125
20126         btowc: Move AC_LIBOBJ invocations to module description.
20127         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20128         invocations from here...
20129         * modules/btowc (configure.ac): ... to here.
20130
20131 2011-05-21  Bruno Haible  <bruno@clisp.org>
20132
20133         atexit: Move AC_LIBOBJ invocations to module description.
20134         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20136         here...
20137         * modules/atexit (configure.ac): ... to here.
20138
20139 2011-05-05  Bruno Haible  <bruno@clisp.org>
20140
20141         atoll: Move AC_LIBOBJ invocations to module description.
20142         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20143         invocations from here...
20144         * modules/atoll (configure.ac): ... to here.
20145
20146 2011-05-05  Bruno Haible  <bruno@clisp.org>
20147
20148         argz: Move AC_LIBOBJ invocations to module description.
20149         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20150         * modules/argz (configure.ac): ... to here.
20151
20152 2011-05-05  Bruno Haible  <bruno@clisp.org>
20153
20154         alphasort: Move AC_LIBOBJ invocations to module description.
20155         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20156         gl_PREREQ_ALPHASORT invocations from here...
20157         * modules/alphasort (configure.ac): ... to here.
20158
20159 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20160
20161         verify: new macro verify_expr; verify_true deprecated
20162         * NEWS: Mention this.
20163         * doc/verify.texi (Compile-time Assertions): Document this.
20164         * lib/verify.h (verify_true): Deprecate.
20165         (verify_expr): New macro.
20166         * tests/test-verify.c (function): Test verify_expr.
20167
20168 2011-06-14  Jim Meyering  <meyering@redhat.com>
20169
20170         init.sh: give more portable redirection-related advice in a comment
20171         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20172         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20173         for lots of discussion.  Stefano Lattarini suggested the solution
20174         of putting "9>&2" after the command.  Reported by Bruno Haible.
20175
20176 2011-06-13  Bruno Haible  <bruno@clisp.org>
20177
20178         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20180         'none'.
20181
20182 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20183
20184         ftoastr: use strtof only if HAVE_STRTOF
20185         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20187         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20188         * modules/ftoastr (configure.ac): Check for strtof.
20189
20190 2011-06-13  Bruno Haible  <bruno@clisp.org>
20191
20192         gnulib-tool: Addendum to 2011-06-08 commit.
20193         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20194         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20195
20196 2011-06-13  Bruno Haible  <bruno@clisp.org>
20197
20198         fseeko: Provide a non-inline replacement of fseek().
20199         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20200         * modules/fseeko (Depends-on): Add fseek.
20201         * modules/fseek (License): Change to LGPLv2+.
20202
20203 2011-06-13  Bruno Haible  <bruno@clisp.org>
20204
20205         ftello: Provide a non-inline replacement of ftell().
20206         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20207         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20208         not have ftello() (such as on mingw).
20209         * modules/ftello (Depends-on): Add ftell.
20210         * modules/ftell (License): Change to LGPLv2+.
20211
20212 2011-05-07  Bruno Haible  <bruno@clisp.org>
20213
20214         ftell: Move AC_LIBOBJ invocations to module description.
20215         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20216         * modules/ftell (configure.ac): ... to here.
20217
20218 2011-05-07  Bruno Haible  <bruno@clisp.org>
20219
20220         ftello: Respect rules for use of AC_LIBOBJ.
20221         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20222         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20223         here...
20224         * modules/ftello (configure.ac): ... to here.
20225
20226 2011-05-07  Bruno Haible  <bruno@clisp.org>
20227
20228         fseeko: Simplify.
20229         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20230         (gl_FUNC_FSEEKO): Inline it here.
20231
20232 2011-05-07  Bruno Haible  <bruno@clisp.org>
20233
20234         fseek: Move AC_LIBOBJ invocations to module description.
20235         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20236         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20237         * modules/fseek (configure.ac): ... to here.
20238
20239 2011-05-07  Bruno Haible  <bruno@clisp.org>
20240
20241         fseek: Respect rules for use of AC_LIBOBJ.
20242         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20243         here...
20244         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20245
20246 2011-05-07  Bruno Haible  <bruno@clisp.org>
20247
20248         fseeko: Respect rules for use of AC_LIBOBJ.
20249         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20250         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20251         here...
20252         * modules/fseeko (configure.ac): ... to here.
20253
20254 2011-06-13  Bruno Haible  <bruno@clisp.org>
20255
20256         gnulib-tool: Allow comments in the 'Depends-on' section.
20257         * doc/gnulib.texi (Module description): Mention comment syntax in the
20258         Depends-on section.
20259         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20260
20261 2011-06-13  Bruno Haible  <bruno@clisp.org>
20262
20263         file-set.h: guard __attibute__ use, now that it's not always defined
20264         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20265         versions that support it.  This fixes a coreutils build failure with
20266         the vendor cc on HP-UX 11.31.
20267
20268 2011-06-12  Bruno Haible  <bruno@clisp.org>
20269
20270         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20271         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20272         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20273         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20274         (acl, aclsort): New declarations.
20275         (aclv_nontrivial): New declaration.
20276         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20277         (file_has_acl): Read also the second kind of HP-UX ACLs.
20278         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20279         kind of HP-UX ACLs if the first kind fails.
20280         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20281         second kind of HP-UX ACLs.
20282         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20283         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20284         agree.
20285         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20286         hpuxjfs.
20287         Handle hpuxjfs.
20288         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20289         hpuxjfs.
20290         Handle hpuxjfs.
20291         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20292         (func_test_same_acls): Use both lsacl and getacl.
20293         Handle hpuxjfs.
20294         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20295         (func_test_same_acls): Use both lsacl and getacl.
20296         Handle hpuxjfs.
20297
20298 2011-06-12  Bruno Haible  <bruno@clisp.org>
20299
20300         acl: Complete the 2010-08-10 fix.
20301         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20302         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20303         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20304         explicitly.
20305         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20306         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20307
20308 2011-06-12  Bruno Haible  <bruno@clisp.org>
20309
20310         spawn-pipe tests: Comments.
20311         * tests/test-spawn-pipe-child.c (main): Update comment.
20312         Reported by James Youngman <jay@gnu.org>.
20313
20314 2011-06-11  James Youngman  <jay@gnu.org>
20315
20316         New module 'stat-size'.
20317         * modules/stat-size: New module.  Provides macros for accessing
20318         file size information in instances of struct stat.  Depends on the
20319         fileblocks module because it calls st_blocks.
20320         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20321         * doc/gnulib.texi: Include stat-size.texi.
20322         * doc/stat-size.texi: Documentation for this module.
20323         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20324         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20325         AC_STRUCT_ST_BLOCKS.
20326
20327 2011-06-09  Bruno Haible  <bruno@clisp.org>
20328
20329         thread: Support pthreads-win32.
20330         * lib/glthread/thread.h (gl_thread_self): Define differently on
20331         pthreads-win32.
20332         (gl_null_thread): New declaration.
20333         (gl_thread_self_pointer): New macro.
20334         * lib/glthread/thread.c (gl_null_thread): New constant.
20335         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20336         gl_thread_self.
20337         * tests/test-tls.c: Likewise.
20338         Suggested by Paul Eggert. Reported by Eric Blake.
20339
20340 2011-06-09  Bruno Haible  <bruno@clisp.org>
20341
20342         thread: Fix confusion between NULL and 0.
20343         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20344         Reported by Paul Eggert.
20345
20346 2011-06-09  Bruno Haible  <bruno@clisp.org>
20347
20348         spawn-pipe tests: Avoid test failure on HP-UX 11.
20349         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20350         is closed.
20351
20352 2011-06-09  Bruno Haible  <bruno@clisp.org>
20353
20354         acl tests: Fix compilation error on HP-UX 11.
20355         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20356
20357 2011-06-09  Bruno Haible  <bruno@clisp.org>
20358
20359         rmdir: Avoid test failure on HP-UX 10.20.
20360         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20361         EEXIST.
20362
20363 2011-06-08  Eric Blake  <eblake@redhat.com>
20364
20365         perror: fix test on mingw
20366         * modules/perror-tests (Depends-on): Add dup2.
20367
20368         strerror_r-posix: fix on MacOS
20369         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20371         logic bug.
20372         * lib/strerror_r.c (strerror_r): Fix the bug.
20373         * lib/strerror.c (strerror): Likewise.
20374         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20375         problem.
20376         * doc/posix-functions/strerror.texi (strerror): Likewise.
20377         * doc/posix-functions/perror.texi (perror): Likewise.
20378         * tests/test-strerror.c (main): Enhance test.
20379         * tests/test-strerror_r.c (main): Likewise.
20380
20381 2011-06-08  Bruno Haible  <bruno@clisp.org>
20382
20383         gnulib-tool: Better isolation between different gnulib-tool invocations.
20384         * gnulib-tool: New option --witness-c-macro.
20385         (witness_c_macro): New variable.
20386         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20387         AM_CPPFLAGS define it as a C macro.
20388         (func_emit_tests_Makefile_am): Likewise.
20389         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20390         read it from there.
20391         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20392         m4_define, not AC_DEFUN.
20393         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20394         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20395         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20396         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20397         s|...|...|, to substitute the values of the GNULIB_* module indicator
20398         variables.
20399         * modules/dirent (Makefile.am): Likewise.
20400         * modules/fcntl-h (Makefile.am): Likewise.
20401         * modules/iconv-h (Makefile.am): Likewise.
20402         * modules/langinfo (Makefile.am): Likewise.
20403         * modules/locale (Makefile.am): Likewise.
20404         * modules/math (Makefile.am): Likewise.
20405         * modules/netdb (Makefile.am): Likewise.
20406         * modules/poll-h (Makefile.am): Likewise.
20407         * modules/pty (Makefile.am): Likewise.
20408         * modules/search (Makefile.am): Likewise.
20409         * modules/signal (Makefile.am): Likewise.
20410         * modules/spawn (Makefile.am): Likewise.
20411         * modules/stdio (Makefile.am): Likewise.
20412         * modules/stdlib (Makefile.am): Likewise.
20413         * modules/string (Makefile.am): Likewise.
20414         * modules/sys_ioctl (Makefile.am): Likewise.
20415         * modules/sys_select (Makefile.am): Likewise.
20416         * modules/sys_socket (Makefile.am): Likewise.
20417         * modules/sys_stat (Makefile.am): Likewise.
20418         * modules/sys_times (Makefile.am): Likewise.
20419         * modules/sys_utsname (Makefile.am): Likewise.
20420         * modules/sys_wait (Makefile.am): Likewise.
20421         * modules/termios (Makefile.am): Likewise.
20422         * modules/time (Makefile.am): Likewise.
20423         * modules/unistd (Makefile.am): Likewise.
20424         * modules/wchar (Makefile.am): Likewise.
20425
20426 2011-06-08  Eric Blake  <eblake@redhat.com>
20427
20428         strerror: simplify replacement
20429         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20430         * modules/strerror (configure.ac): No prereqs needed here...
20431         * modules/strerror-override (configure.ac): ...but this needs it.
20432         (Files): Add file for needed prereq macro.
20433
20434 2011-06-08  Bruno Haible  <bruno@clisp.org>
20435
20436         strerror_r-posix: Tweaks.
20437         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20438         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20439         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20440         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20441         (gl_FUNC_STRERROR_R): ... to here.
20442         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20443
20444 2011-06-07  Eric Blake  <eblake@redhat.com>
20445
20446         perror: document fixed bugs
20447         * doc/posix-functions/perror.texi (perror): Document recent
20448         patches.
20449
20450 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20451
20452         stat-time: get_stat_birthtime failure is better-defined
20453         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20454         return a timestamp whose tv_sec and tv_nsec values are both -1.
20455         Previously, the spec said only that the tv_nsec value was negative.
20456         This upward-compatible change simplifies GNU tar a bit.
20457
20458 2011-06-07  Eric Blake  <eblake@redhat.com>
20459
20460         strerror_r-posix: work around cygwin 1.7.9
20461         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20462         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20463         bug without replacing strerror_r.
20464         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20465         strerror_r is buggy, but without requiring strerror_r compilation.
20466         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20467
20468         test-perror: relax test to ignore cygwin bug
20469         * tests/test-perror2.c (main): Relax test on requiring detection
20470         of stream errors, and use unbuffered stream.
20471         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20472         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20473         * doc/posix-functions/fputc.texi (fputc): Likewise.
20474         * doc/posix-functions/fputs.texi (fputs): Likewise.
20475         * doc/posix-functions/fputws.texi (fputws): Likewise.
20476         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20477         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20478         * doc/posix-functions/getopt.texi (getopt): Likewise.
20479         * doc/posix-functions/perror.texi (perror): Likewise.
20480         * doc/posix-functions/printf.texi (printf): Likewise.
20481         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20482         * doc/posix-functions/psignal.texi (psignal): Likewise.
20483         * doc/posix-functions/putc.texi (putc): Likewise.
20484         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20485         Likewise.
20486         * doc/posix-functions/putchar.texi (putchar): Likewise.
20487         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20488         Likewise.
20489         * doc/posix-functions/puts.texi (puts): Likewise.
20490         * doc/posix-functions/putwc.texi (putwc): Likewise.
20491         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20492         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20493         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20494         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20495         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20496         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20497         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20498         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20499
20500 2011-05-22  Bruno Haible  <bruno@clisp.org>
20501
20502         strerror: Move AC_LIBOBJ invocations to module description.
20503         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20504         gl_PREREQ_STRERROR invocations from here...
20505         * modules/strerror (configure.ac): ... to here.
20506
20507 2011-05-21  Bruno Haible  <bruno@clisp.org>
20508
20509         perror: Use common idiom.
20510         * modules/perror (configure.ac): Reorder statements.
20511
20512 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20513
20514         tests: fix usage message in 'mktempd_'
20515         * tests/init.sh (mktempd_): In the usage message, use literal
20516         'mktempd_', not '$ME' (which is even undefined), as the name of
20517         the subroutine.
20518
20519 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20520
20521         tests init: new function 'fatal_', for hard errors
20522         Before this patch, the only way offered by tests/init.sh to
20523         properly signal a hard error was the `framework_failure_'
20524         function.  But the error message issued by that function,
20525         as its name would suggest, refers to a set-up failure in the
20526         testsuite, while hard errors can obviously also be due to
20527         other reasons.  The best way to fix this inconsistency is to
20528         introduce a new function with a more general error message.
20529         * tests/init.sh (fatal_): New function.
20530
20531 2011-06-06  Eric Blake  <eblake@redhat.com>
20532
20533         canonicalize-lgpl: use common idiom
20534         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20535         over newer POSIX -Rf.
20536         Reported by Bruno Haible.
20537
20538         canonicalize-lgpl: work around AIX realpath bug
20539         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20540         * doc/posix-functions/realpath.texi (realpath): Document it.
20541         Reported by Bruno Haible.
20542
20543         strerror: work around FreeBSD bug
20544         * lib/strerror.c (strerror): Special case 0.
20545         Reported by Bruno Haible.
20546
20547         strerror-override: avoid bloating errno module
20548         * modules/errno (Files, configure.ac): Move replacement strings...
20549         * modules/strerror-override: ...to new module.
20550         * modules/strerror (Depends-on): Add strerror-override.
20551         * modules/strerror_r-posix (Depends-on): Likewise.
20552         * MODULES.html.sh: Document new module.
20553         Reported by Bruno Haible.
20554
20555 2011-06-06  Bruno Haible  <bruno@clisp.org>
20556
20557         spawn-pipe tests: Rename program.
20558         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20559         * tests/test-spawn-pipe-child.c: Update comment.
20560         * tests/test-spawn-pipe.sh: Update.
20561         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20562
20563         spawn-pipe tests: Link the child program only against libc.
20564         * tests/test-spawn-pipe-child.c: New file, extracted from
20565         tests/test-spawn-pipe.c.
20566         (main): Expect only one argument.
20567         (is_open): New function, copied from tests/test-pipe.c.
20568         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20569         (child_main): Remove function.
20570         (test_pipe): Pass only one argument to the child program.
20571         (main): Remove child process code. Expect the child program's name as
20572         first argument.
20573         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20574         argument.
20575         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20576         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20577         test-spawn-pipe-child against no libraries.
20578
20579 2011-06-06  Bruno Haible  <bruno@clisp.org>
20580
20581         careadlinkat: Avoid mismatch between ssize_t and int.
20582         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20583         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20584
20585 2011-06-06  Jim Meyering  <meyering@redhat.com>
20586
20587         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20588         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20589         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20590
20591 2011-06-05  Bruno Haible  <bruno@clisp.org>
20592
20593         ansi-c++-opt: Interoperability with libtool.
20594         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20595         set the variable to "no", not to ":".
20596         * NEWS: Mention the change.
20597
20598 2011-06-05  Bruno Haible  <bruno@clisp.org>
20599
20600         acl: Fix test failure on AIX 7.
20601         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20602         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20603
20604 2011-06-05  Bruno Haible  <bruno@clisp.org>
20605
20606         pipe-filter-ii: Fix test failure on AIX and IRIX.
20607         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20608         with EAGAIN, retry with a smaller buffer size.
20609
20610 2011-06-05  Bruno Haible  <bruno@clisp.org>
20611
20612         localename: Fix link dependencies.
20613         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20614         * modules/localename-tests (Makefile.am): Link test-localename with
20615         $(LIBTHREAD).
20616
20617 2011-06-05  Bruno Haible  <bruno@clisp.org>
20618
20619         error: Avoid gcc warning.
20620         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20621
20622 2011-06-05  Bruno Haible  <bruno@clisp.org>
20623
20624         unsetenv: Avoid gcc warning.
20625         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20626
20627 2011-06-05  Bruno Haible  <bruno@clisp.org>
20628
20629         setenv: Avoid gcc warning.
20630         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20631
20632 2011-06-05  Bruno Haible  <bruno@clisp.org>
20633
20634         sys_select: Ensure memset is declared also on AIX 7.
20635         * lib/sys_select.in.h: Include <string.h> also on AIX.
20636         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20637         self-contained also on AIX 7.1.
20638
20639 2011-06-04  Jim Meyering  <meyering@redhat.com>
20640
20641         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20642         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20643         function name, "error".
20644         (_gl_translatable_diag_func_re): New configurable variable.
20645
20646 2011-06-04  Bruno Haible  <bruno@clisp.org>
20647
20648         getopt: Avoid gcc warning.
20649         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20650
20651 2011-06-04  Bruno Haible  <bruno@clisp.org>
20652
20653         strerror_r: Fix comments.
20654         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20655         commit.
20656
20657 2011-06-04  Bruno Haible  <bruno@clisp.org>
20658
20659         perror: Fix compilation error.
20660         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20661         Undefine fprintf, not sprintf.
20662         * modules/perror (Depends-on): Remove intprops, verify.
20663
20664 2011-06-04  Bruno Haible  <bruno@clisp.org>
20665
20666         setlocale: Enable replacement on Cygwin 1.5.
20667         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20668         Cygwin 1.5.x.
20669         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20670         LC_CTYPE category also exists on Cygwin 1.5.x.
20671
20672 2011-06-04  Bruno Haible  <bruno@clisp.org>
20673
20674         strerror-override: Don't disable symbol renamings.
20675         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20676         * lib/strerror-override.c: Include config.h.
20677         (strerror_override): Don't undefine.
20678
20679 2011-06-03  Bruno Haible  <bruno@clisp.org>
20680
20681         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20682         * lib/localename.h: Update copyright header.
20683         * lib/localename.c: Likewise.
20684         * lib/relocatable.h: Likewise.
20685         * lib/relocatable.c: Likewise.
20686
20687 2011-06-02  Bruno Haible  <bruno@clisp.org>
20688
20689         doc: Fix a module name.
20690         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20691
20692 2011-06-02  Bruno Haible  <bruno@clisp.org>
20693
20694         pipe2: Remove dependency on 'nonblocking' module.
20695         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20696         O_NONBLOCK is defined by gnulib.
20697         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20698         is zero.
20699         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20700         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20701         defined by gnulib.
20702         (get_nonblocking_flag): New function.
20703         (main): Test O_NONBLOCK flag only if it is nonzero.
20704         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20705
20706 2011-06-03  Jim Meyering  <meyering@redhat.com>
20707
20708         maint: three new prohibit-header-without-use rules
20709         Prohibit use of cloexec.h, posixver.h, same.h without use.
20710         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20711         (sc_prohibit_posixver_without_use): Likewise.
20712         (sc_prohibit_same_without_use): Likewise.
20713
20714 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20715
20716         allocator: 'die' routine is now given requested size
20717         * lib/allocator.h (struct allocator.die): New size arg.
20718         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20719         If the actual problem is an ssize_t limitation, not a size_t or
20720         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20721
20722 2011-06-01  Eric Blake  <eblake@redhat.com>
20723
20724         strerror: drop strerror_r dependency
20725         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20726         * lib/strerror-override.c (strerror_override): ...to new file.
20727         * lib/strerror-override.h: Add prototype.
20728         * lib/strerror-impl.h: Delete.
20729         * lib/strerror.c (strerror): New implementation.
20730         * modules/errno (Files): Add new files.
20731         (configure.ac): Compile new file as appropriate.
20732         * modules/strerror (Files): Drop unused file.
20733         (Depends-on): Drop strerror_r-posix.
20734         * MODULES.html.sh: Document strerror_r-posix.
20735         Requested by Sam Steingold.
20736
20737         perror: call strerror_r directly
20738         * modules/perror (Files): Drop strerror-impl.h.
20739         * lib/perror.c (perror): Use our own stack buffer, rather than
20740         calling a wrapper that uses static storage.
20741         * doc/posix-functions/perror.texi (perror): Document a limitation
20742         of our replacement.
20743
20744         strerror_r: fix includes for FreeBSD
20745         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20746         since we use abort on some platforms.
20747         Reported by Matthias Bolte.
20748
20749 2011-05-31  Bruno Haible  <bruno@clisp.org>
20750
20751         Fix link errors in tests: openat-die uses gettext-h.
20752         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20753         against $(LIBINTL).
20754         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20755         against $(LIBINTL).
20756         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20757         $(LIBINTL).
20758         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20759         against $(LIBINTL).
20760         * modules/linkat-tests (Makefile.am): Link test-linkat against
20761         $(LIBINTL).
20762         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20763         $(LIBINTL).
20764         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20765         against $(LIBINTL).
20766         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20767         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20768         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20769         $(LIBINTL).
20770         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20771         $(LIBINTL).
20772         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20773         $(LIBINTL).
20774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20775
20776 2011-05-31  Bruno Haible  <bruno@clisp.org>
20777
20778         Fix link errors in tests: wait-process uses gettext-h.
20779         * modules/nonblocking-pipe-tests (Makefile.am): Set
20780         test_nonblocking_pipe_main_LDADD.
20781         * modules/nonblocking-socket-tests (Makefile.am): Link
20782         test-nonblocking-socket-main against $(LIBINTL).
20783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20784
20785 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20786
20787         assert-h: work around 'verify' incompatibility
20788         * lib/verify.h: Use @...@ directives, not ifdef.
20789         * modules/assert-h (assert.h): Implement the directives.
20790         (assert.h): Substitute the symbol-prefix more consistently.
20791
20792 2011-05-29  Jim Meyering  <meyering@redhat.com>
20793
20794         trim: remove three superfluous assignments
20795         * lib/trim.c (trim2): Remove three superfluous assignments
20796         and correct brace positioning.
20797
20798 2011-05-29  Bruno Haible  <bruno@clisp.org>
20799
20800         wctype-h: Avoid namespace pollution on Solaris 2.6.
20801         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20802         identifiers.
20803         * doc/posix-headers/wctype.texi: Mention the problem.
20804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20805
20806 2011-05-28  Jim Meyering  <meyering@redhat.com>
20807
20808         parse-datetime.y: accommodate -Wstrict-overflow
20809         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20810         placate -Wstrict-overflow.
20811
20812         trim: avoid a warning from -O2 -Wstrict-overflow
20813         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20814
20815 2011-05-29  Bruno Haible  <bruno@clisp.org>
20816
20817         gnulib-tool: Fix bug in yesterday's commit.
20818         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20819         twice.
20820
20821 2011-05-29  Bruno Haible  <bruno@clisp.org>
20822
20823         Allow multiple gnulib generated include files to be combined.
20824         * gnulib-tool (func_compute_include_guard_prefix): New function.
20825         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20826         ${gl_include_guard_prefix} references.
20827         (func_import, func_create_testdir): Invoke
20828         func_compute_include_guard_prefix.
20829         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20830         * lib/ctype.in.h: Likewise.
20831         * lib/dirent.in.h: Likewise.
20832         * lib/errno.in.h: Likewise.
20833         * lib/fcntl.in.h: Likewise.
20834         * lib/float.in.h: Likewise.
20835         * lib/getopt.in.h: Likewise.
20836         * lib/iconv.in.h: Likewise.
20837         * lib/langinfo.in.h: Likewise.
20838         * lib/locale.in.h: Likewise.
20839         * lib/math.in.h: Likewise.
20840         * lib/netdb.in.h: Likewise.
20841         * lib/netinet_in.in.h: Likewise.
20842         * lib/poll.in.h: Likewise.
20843         * lib/pthread.in.h: Likewise.
20844         * lib/pty.in.h: Likewise.
20845         * lib/sched.in.h: Likewise.
20846         * lib/se-selinux.in.h: Likewise.
20847         * lib/search.in.h: Likewise.
20848         * lib/signal.in.h: Likewise.
20849         * lib/spawn.in.h: Likewise.
20850         * lib/stdarg.in.h: Likewise.
20851         * lib/stddef.in.h: Likewise.
20852         * lib/stdint.in.h: Likewise.
20853         * lib/stdio.in.h: Likewise.
20854         * lib/stdlib.in.h: Likewise.
20855         * lib/string.in.h: Likewise.
20856         * lib/strings.in.h: Likewise.
20857         * lib/sys_file.in.h: Likewise.
20858         * lib/sys_ioctl.in.h: Likewise.
20859         * lib/sys_select.in.h: Likewise.
20860         * lib/sys_socket.in.h: Likewise.
20861         * lib/sys_stat.in.h: Likewise.
20862         * lib/sys_time.in.h: Likewise.
20863         * lib/sys_times.in.h: Likewise.
20864         * lib/sys_uio.in.h: Likewise.
20865         * lib/sys_utsname.in.h: Likewise.
20866         * lib/sys_wait.in.h: Likewise.
20867         * lib/sysexits.in.h: Likewise.
20868         * lib/termios.in.h: Likewise.
20869         * lib/time.in.h: Likewise.
20870         * lib/unistd.in.h: Likewise.
20871         * lib/wchar.in.h: Likewise.
20872         * lib/wctype.in.h: Likewise.
20873         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20874         * modules/ctype (Makefile.am): Likewise.
20875         * modules/dirent (Makefile.am): Likewise.
20876         * modules/errno (Makefile.am): Likewise.
20877         * modules/fcntl-h (Makefile.am): Likewise.
20878         * modules/float (Makefile.am): Likewise.
20879         * modules/getopt-posix (Makefile.am): Likewise.
20880         * modules/iconv-h (Makefile.am): Likewise.
20881         * modules/langinfo (Makefile.am): Likewise.
20882         * modules/locale (Makefile.am): Likewise.
20883         * modules/math (Makefile.am): Likewise.
20884         * modules/netdb (Makefile.am): Likewise.
20885         * modules/netinet_in (Makefile.am): Likewise.
20886         * modules/poll-h (Makefile.am): Likewise.
20887         * modules/pthread (Makefile.am): Likewise.
20888         * modules/pty (Makefile.am): Likewise.
20889         * modules/sched (Makefile.am): Likewise.
20890         * modules/search (Makefile.am): Likewise.
20891         * modules/selinux-h (Makefile.am): Likewise.
20892         * modules/signal (Makefile.am): Likewise.
20893         * modules/spawn (Makefile.am): Likewise.
20894         * modules/stdarg (Makefile.am): Likewise.
20895         * modules/stddef (Makefile.am): Likewise.
20896         * modules/stdint (Makefile.am): Likewise.
20897         * modules/stdio (Makefile.am): Likewise.
20898         * modules/stdlib (Makefile.am): Likewise.
20899         * modules/string (Makefile.am): Likewise.
20900         * modules/strings (Makefile.am): Likewise.
20901         * modules/sys_file (Makefile.am): Likewise.
20902         * modules/sys_ioctl (Makefile.am): Likewise.
20903         * modules/sys_select (Makefile.am): Likewise.
20904         * modules/sys_socket (Makefile.am): Likewise.
20905         * modules/sys_stat (Makefile.am): Likewise.
20906         * modules/sys_time (Makefile.am): Likewise.
20907         * modules/sys_times (Makefile.am): Likewise.
20908         * modules/sys_uio (Makefile.am): Likewise.
20909         * modules/sys_utsname (Makefile.am): Likewise.
20910         * modules/sys_wait (Makefile.am): Likewise.
20911         * modules/sysexits (Makefile.am): Likewise.
20912         * modules/termios (Makefile.am): Likewise.
20913         * modules/time (Makefile.am): Likewise.
20914         * modules/unistd (Makefile.am): Likewise.
20915         * modules/wchar (Makefile.am): Likewise.
20916         * modules/wctype-h (Makefile.am): Likewise.
20917         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20918
20919 2011-05-29  Bruno Haible  <bruno@clisp.org>
20920
20921         assert-h: Allow multiple gnulib generated replacements to coexist.
20922         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20923
20924 2011-05-29  Bruno Haible  <bruno@clisp.org>
20925
20926         argp: Allow coexistence with strerror_r-posix module.
20927         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20928         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20929         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20930         not the glibc signature.
20931
20932 2011-05-28  Bruno Haible  <bruno@clisp.org>
20933
20934         gnulib-tool: Alternative structure of testdirs, similar to --import.
20935         * gnulib-tool: New option --single-configure.
20936         (func_usage): Document it.
20937         (single_configure): New variable.
20938         (func_modules_transitive_closure_separately,
20939         func_modules_transitive_closure_separately,
20940         func_determine_use_libtests, func_modules_add_dummy_separately,
20941         func_modules_to_filelist_separately): New functions, extracted from
20942         func_import.
20943         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20944         (func_import): Use the new functions.
20945         (func_create_testdir): Set final_modules. Handle $single_configure =
20946         true case.
20947
20948 2011-05-28  Bruno Haible  <bruno@clisp.org>
20949
20950         getloadavg: Remove an unreliable safety check.
20951         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20952         getloadavg.c is in place.
20953         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20954         Reported by Sam Steingold <sds@gnu.org>.
20955
20956 2011-05-28  Bruno Haible  <bruno@clisp.org>
20957
20958         doc: Cleanup yet another file produced by texinfo.tex.
20959         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20960
20961 2011-05-28  Bruno Haible  <bruno@clisp.org>
20962
20963         Finish the conditional dependencies mechanism.
20964         * gnulib-tool: New option --no-conditional-dependencies.
20965         (func_usage): Document it. Don't mark --conditional-dependencies as
20966         experimental.
20967         (cond_dependencies): The possible values can now be true, false, empty.
20968         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20969         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20970         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20971
20972 2011-05-28  Bruno Haible  <bruno@clisp.org>
20973
20974         doc: Use a recent texinfo.tex.
20975         * doc/Makefile (tex_opts): New variable.
20976         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20977
20978 2011-05-28  Jim Meyering  <meyering@redhat.com>
20979
20980         intprops.h: adjust comment to match code change
20981         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20982         only once, it *may* have side effects.  Also fix an unrelated typo.
20983         (_GL_INT_SIGNED): Likewise.
20984
20985 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20986
20987         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20988
20989 2011-05-26  Bruno Haible  <bruno@clisp.org>
20990
20991         mbsrchr: Avoid collision with system function on Interix.
20992         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20993         Reported by Markus Duft <mduft@gentoo.org>.
20994
20995 2011-05-15  James Youngman  <jay@gnu.org>
20996
20997         getopt: for ambiguous options, enumerate the possibilities.
20998         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20999         the ambiguous options when an ambiguous prefix is given. This was
21000         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21001         glibc change was
21002         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21003
21004 2011-05-25  Eric Blake  <eblake@redhat.com>
21005
21006         getcwd: work around mingw bug
21007         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21008         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21009         Reported by Matthias Bolte.
21010
21011 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21012
21013         test-intprops: disable -Wtype-limits diagnostics
21014         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21015         diagnostics.  Otherwise, the integer overflow macros generate many
21016         diagnostics.  Reported by Jim Meyering in
21017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21018
21019         intprops: shorten, to pacify gcc -Woverlength-strings
21020         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21021         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21022         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21023         likely to run afoul of C compiler limits for string constant lengths.
21024         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21025
21026 2011-05-24  Eric Blake  <eblake@redhat.com>
21027
21028         docs: document recently fixed glibc printf bug
21029         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21030         * doc/posix-functions/printf.texi (printf): Likewise.
21031         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21032         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21033
21034         closein-tests: convert to init.sh
21035         * modules/closein-tests (Files): Add init.sh
21036         * tests/test-closein.sh Use it.
21037
21038         yesno-tests: convert to init.sh
21039         * modules/yesno-tests (Files): Add init.sh.
21040         * tests/test-yesno.sh: Use it.
21041
21042         atexit-tests: ensure reliable exit status
21043         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21044         Reported by Bruno Haible.
21045
21046 2011-05-24  Bruno Haible  <bruno@clisp.org>
21047
21048         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21050         gl_PREREQ_STRERROR_R invocations from here...
21051         * modules/strerror_r-posix (configure.ac): ... to here.
21052
21053 2011-05-24  Eric Blake  <eblake@redhat.com>
21054
21055         strerror_r: fix missing header
21056         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21057
21058         strerror_r: fix AIX test failures
21059         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21060         ERANGE failure.
21061
21062         strerror_r: fix Solaris test failures
21063         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21064         failures.
21065         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21066
21067         strerror_r: enforce POSIX recommendations
21068         * lib/strerror_r.c (safe_copy): New helper method.
21069         (strerror_r): Guarantee a non-empty string.
21070         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21071         recent POSIX rulings and to match our strerror guarantees.
21072         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21073
21074 2011-05-24  Jim Meyering  <meyering@redhat.com>
21075
21076         test-perror2.c: avoid warning about unused variable
21077         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21078
21079 2011-05-24  Eric Blake  <eblake@redhat.com>
21080
21081         perror: avoid spurious test failure on HP-UX
21082         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21083
21084         tests: fix logic bug in init.sh
21085         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21086         shell.
21087
21088 2011-05-24  Jim Meyering  <meyering@redhat.com>
21089
21090         utimensat: do not reference an out-of-scope buffer
21091         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21092         declared in an inner scope, yet "times" would be dereferenced outside
21093         the scope in which "ts" was valid.
21094         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21095         of ts[2] "out/up", so that the use of aliased "times" (via
21096         "times = ts;") does not end up referencing an out-of-scope "ts"
21097
21098         opendir-safer.c: don't clobber errno; don't close negative FD
21099         * lib/opendir-safer.c (opendir_safer):
21100         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21101         file descriptor, and more importantly, don't clobber the
21102         offending errno value with EINVAL.  Before, upon failure
21103         of dup_safer, we would pass the negative file descriptor to
21104         fdopendir, which would clobber errno.
21105
21106 2011-05-23  Bruno Haible  <bruno@clisp.org>
21107
21108         idcache: Fix module description.
21109         * modules/idcache (Include): Set to "idcache.h".
21110
21111 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21112
21113         gnulib-tool: fix portability problem with MacOS sed
21114         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21115         before the "}".  Problem reported by Leo in
21116         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21117         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21118         sed_extract_condition1, sed_extract_condition2.
21119
21120 2011-05-23  Bruno Haible  <bruno@clisp.org>
21121
21122         hash: Simplify autoconf macro.
21123         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21124
21125 2011-05-23  Bruno Haible  <bruno@clisp.org>
21126
21127         getugroups: Fix module description.
21128         * modules/getugroups (Include): Set to "getugroups.h".
21129
21130 2011-05-23  Bruno Haible  <bruno@clisp.org>
21131
21132         linkat: Simplify autoconf macro.
21133         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21134
21135 2011-05-23  Bruno Haible  <bruno@clisp.org>
21136             Eric Blake  <eblake@redhat.com>
21137
21138         linkat, renameat: Update dependencies.
21139         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21140         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21141         symlinkat.
21142
21143 2011-05-23  Jim Meyering  <meyering@redhat.com>
21144
21145         maint.mk: more tight_scope improvements
21146         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21147         (_gl_TS_headers): Define only in if-0'd block.
21148         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21149         sometimes we must *not* use it.  Adjust uses accordingly.
21150         (sc_tight_scope): Use much simpler grep-based test to determine
21151         whether we skip this rule.
21152
21153         maint.mk: generalize/improve the tight-scope rule
21154         * top/maint.mk: Emit a warning when the test is skipped.
21155         (_gl_TS_dir): Add $(srcdir)/ prefix.
21156         (_gl_TS_function_match): Simplify, rather than trying
21157         to enumerate common types.  Otherwise, it would fail to match an
21158         "extern unsigned char const *" declaration in idutils.
21159         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21160         a way to support use of that type of macro.
21161         (_gl_TS_var_match): Simplify regexp.
21162         (_gl_TS_obj_files): New configurable variable.
21163         (_gl_TS_headers): Likewise.
21164
21165 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21166
21167         verify: fix bug when gnulib <assert.h> is also included
21168         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21169         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21170         Perhaps there's a better way, but this fixes the immediate problem.
21171         Problem reported by Bruno Haible in
21172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21173
21174 2011-05-22  Bruno Haible  <bruno@clisp.org>
21175
21176         xgetcwd: Simplify autoconf macro.
21177         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21178
21179 2011-05-22  Bruno Haible  <bruno@clisp.org>
21180
21181         New module 'mktime-internal'.
21182         * modules/mktime-internal: New file.
21183         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21184         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21185         mktime_internal as a C macro if libc has __mktime_internal.
21186         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21187         conditions.
21188         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21189
21190 2011-05-22  Bruno Haible  <bruno@clisp.org>
21191
21192         timegm: Correct mktime replacement statements.
21193         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21194         defining mktime as a C macro. This completes a 2009-07-28 commit.
21195
21196 2011-05-22  Bruno Haible  <bruno@clisp.org>
21197
21198         timegm: Simplify autoconf macro.
21199         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21200
21201 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21202
21203         clock-time: change to LGPLv2+.
21204         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21205         BSD-like but we have no mark for that; this is good enough for now.
21206
21207 2011-05-21  Bruno Haible  <bruno@clisp.org>
21208
21209         strerror_r: Fix comments.
21210         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21211
21212 2011-05-21  Bruno Haible  <bruno@clisp.org>
21213
21214         relocatable-prog-wrapper: Fix possible link error.
21215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21216         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21217         (gl_FUNC_SETENV): ... to here.
21218         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21219         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21220
21221 2011-05-21  Bruno Haible  <bruno@clisp.org>
21222
21223         relocatable-prog-wrapper: Assume strerror() exists.
21224         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21225         m4/strerror.m4.
21226         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21227         * lib/relocwrapper.c: Remove mention of strerror module.
21228         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21229         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21230         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21231         C macro.
21232
21233 2011-05-21  Bruno Haible  <bruno@clisp.org>
21234
21235         select: Simplify replacement idiom.
21236         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21237         Win32 platforms.
21238         * lib/sys_select.in.h (select): Simplify accordingly.
21239         * modules/select (Depends-on): Likewise.
21240
21241 2011-05-21  Bruno Haible  <bruno@clisp.org>
21242
21243         mkdir-p: Simplify autoconf macro.
21244         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21245         gl_FUNC_LCHOWN.
21246
21247 2011-05-21  Eric Blake  <eblake@redhat.com>
21248
21249         strerror_r: avoid clobbering strerror on cygwin
21250         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21251         fall back instead to sys_errlist.
21252         * modules/strerror (configure.ac): Add witness.
21253         * tests/test-strerror_r.c (main): Enhance test.
21254         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21255         * tests/test-perror2.c (main): Free memory before exit.
21256
21257 2011-05-21  Bruno Haible  <bruno@clisp.org>
21258
21259         mkdtemp: Use gnulib naming conventions.
21260         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21261         * modules/mkdtemp (configure.ac): Update.
21262
21263 2011-05-20  Eric Blake  <eblake@redhat.com>
21264
21265         strerror_r: avoid corrupting errno on Solaris
21266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21267         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21268
21269         strerror_r: avoid compiler warning
21270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21271
21272         strerror_r: simplify AIX code
21273         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21274
21275         test-perror: avoid spurious failure on FreeBSD
21276         * modules/perror-tests (Depends-on): Add strerror, now that
21277         strerror_r no longer pulls it in.
21278
21279 2011-05-20  Bruno Haible  <bruno@clisp.org>
21280
21281         strerror_r-posix: Remove unused dependencies.
21282         * modules/strerror_r-posix (Depends-on): Remove strerror.
21283         Reported by Eric Blake.
21284
21285 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21286
21287         intprops: remove assumption about A|B representation
21288         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21289         is a valid integer if both A and B are.  Although this is true for
21290         all known practical hosts, the C standard doesn't guarantee it,
21291         and the code need not assume it.  Also, this change may work around
21292         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21294
21295 2011-05-20  Eric Blake  <eblake@redhat.com>
21296
21297         perror: work around FreeBSD bug
21298         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21299         is broken.  Move AC_LIBOBJ...
21300         * modules/perror (configure.ac): Here.
21301         * doc/posix-functions/perror.texi (perror): Document this.
21302         * tests/test-perror2.c (main): Enhance test.
21303
21304         test-perror: check for strerror interactions
21305         * tests/macros.h (STREQ): Add macro.
21306         * modules/perror-tests (Files): Add second test.
21307         * tests/test-perror2.c (main): New file.
21308         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21309
21310         test-perror: rewrite to use init script
21311         * modules/perror-tests (Files): Add init.sh.
21312         * tests/test-perror.sh: Use temporary directory.
21313
21314 2011-05-20  Jim Meyering  <meyering@redhat.com>
21315
21316         maint: replace misused "a" with "an"
21317         * doc/intprops.texi: "a integer"
21318         * doc/regex.texi: "a explanation"
21319         * lib/alignof.h: "a object"
21320         * lib/argmatch.h: "a explanation"
21321         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21322         * lib/stdint.in.h: "a integer"
21323         * lib/userspec.c: "a owner"
21324         * doc/gnulib.texi: Fix "a idea", and reword.
21325
21326 2011-05-19  Jim Meyering  <meyering@redhat.com>
21327
21328         maint: correct misuse of "a" and "an"
21329         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21330         * lib/argp-help.c: "an docum...": s/an/a/
21331         * lib/argp-parse.c: "An vector": s/An/A/
21332         * lib/execute.c: "an native": s/an/a/
21333         * lib/spawn-pipe.c: Likewise.
21334         * lib/gc.h: "an Gc_rc": s/an/a/
21335         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21336         * lib/fts.c: "an stat.st_dev": s/an/a/
21337
21338 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21339
21340         intprops-tests: work around HP-UX 11.23 cc bug with constants
21341         * tests/test-intprops.c (VERIFY): New macro.
21342         (main): Use it, instead of verify, to work around the compiler bug; see
21343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21344
21345         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21346         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21347         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21348         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21349         (_GL_REMAINDER_OVERFLOW): Use it.
21350
21351         intprops-tests: revert unsigned part of previous change
21352         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21353         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21354         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21356
21357 2011-05-19  Bruno Haible  <bruno@clisp.org>
21358
21359         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21360         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21361         strerror_r() returned without filling the buffer.
21362         Reported by Eric Blake.
21363
21364 2011-05-19  Eric Blake  <eblake@redhat.com>
21365
21366         strerror_r: guarantee unchanged errno
21367         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21368         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21369         failure.
21370         * tests/test-strerror_r.c (main): Enhance test.
21371
21372 2011-05-19  Bruno Haible  <bruno@clisp.org>
21373
21374         strerror_r: Reorder #if blocks.
21375         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21376         for consistency with the previous commit.
21377
21378 2011-05-19  Bruno Haible  <bruno@clisp.org>
21379
21380         perror: Avoid clobbering the strerror buffer when possible.
21381         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21382         * lib/strerror.c: Include it.
21383         * modules/strerror (Files): Add lib/strerror-impl.h.
21384         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21385         (my_strerror): New function, defined through lib/strerror-impl.h.
21386         (perror): Use it instead of strerror.
21387         * modules/perror (Files): Add lib/strerror-impl.h.
21388         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21389
21390 2011-05-19  Eric Blake  <eblake@redhat.com>
21391
21392         strerror_r: fix on newer cygwin
21393         * lib/strerror_r.c (strerror_r): Cygwin now has
21394         __xpg_strerror_r, use it.
21395
21396 2011-05-19  Bruno Haible  <bruno@clisp.org>
21397
21398         strerror_r: Avoid clobbering the strerror buffer when possible.
21399         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21400         (sys_nerr, sys_errlist): New declarations.
21401         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21402         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21403         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21404
21405 2011-05-19  Bruno Haible  <bruno@clisp.org>
21406
21407         strerror_r: Fix test failure on mingw.
21408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21409         EXTEND_STRERROR_R.
21410         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21411         macros from errno.in.h instead.
21412
21413 2011-05-19  Eric Blake  <eblake@redhat.com>
21414
21415         strerror: relax test for Solaris
21416         * tests/test-strerror.c (main): Permit Solaris behavior.
21417         * tests/test-strerror_r.c (main): Likewise.
21418
21419         strerror: enforce POSIX ruling on strerror(0)
21420         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21422         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21423         * doc/posix-functions/strerror.texi (strerror): Document it.
21424         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21425         * tests/test-strerror.c (main): Strengthen test.
21426         * tests/test-strerror_r.c (main): Likewise.
21427
21428 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21429
21430         intprop-tests: port to older and more-pedantic compilers
21431         * modules/intprops-tests (Files): Add tests/macros.h.
21432         * tests/test-intprops.c: Include macros.h.
21433         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21434         it's no longer documented to expand to an integer constant expression.
21435         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21436         argument is floating point, as it's no longer documented to expand
21437         to an integer constant expression in that case.
21438         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21439         compiler bugs reported by Bruno Haible.  See
21440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21441         (U0, U1): New constants, to work around the same bugs.  Also,
21442         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21443
21444         intprops: work around C compiler bugs
21445         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21446         bug in Sun C 5.11 2010/08/13 and other compilers; see
21447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21448
21449         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21450         * doc/intprops.texi (Integer Type Determination): Fix
21451         documentation for TYPE_IS_INTEGER: it returns an constant
21452         expression, not an integer constant expression.  Fix doc for
21453         TYPE_SIGNED: it returns an integer constant expression only if its
21454         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21455         hardly worth documented that way....)
21456
21457 2011-05-18  Bruno Haible  <bruno@clisp.org>
21458
21459         strerror_r: Avoid clobbering the strerror buffer when possible.
21460         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21461         Handle gnulib defined errno values here. When strerror() returns NULL
21462         or an empty string, return EINVAL.
21463         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21464         gnulib defined errno values here.
21465         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21466
21467 2011-05-18  Eric Blake  <eblake@redhat.com>
21468
21469         fnmatch: avoid compiler warning
21470         * lib/fnmatch_loop.c (FCT): Use correct type.
21471         Reported by Matthias Bolte.
21472
21473 2011-05-13  Jim Meyering  <meyering@redhat.com>
21474
21475         maint.mk: three new prohibit_<HDR>_without_use rules
21476         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21477         (sc_prohibit_stdio-safer_without_use): Likewise.
21478         (sc_prohibit_xfreopen_without_use): Likewise.
21479
21480 2011-05-17  Jim Meyering  <meyering@redhat.com>
21481
21482         announce-gen: fail if the NEWS delta is empty
21483         If there's nothing noteworthy in NEWS, then either you forgot
21484         or you shouldn't be releasing.
21485         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21486
21487 2011-05-17  Pádraig Brady <P@draigBrady.com>
21488
21489         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21490         reserved symbols starting with double underscore from the check.
21491
21492 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21493
21494         intprops: add doc
21495         * doc/intprops.texi: New file, documenting intprops.
21496         * doc/gnulib.texi (Particular Modules): Include it.
21497
21498         verify: add doc to gnulib manual and fix example
21499         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21500         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21501         (Compile-time Assertions): Fix example so it can't overflow.
21502
21503 2011-05-17  Jim Meyering  <meyering@redhat.com>
21504
21505         warnings.m4: don't usurp save_CPPFLAGS variable name
21506         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21507
21508         doc: fix typo
21509         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21510
21511 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21512             Bruno Haible  <bruno@clisp.org>
21513
21514         doc: Tweak recent change.
21515         * README (Portability guidelines): Tweak new text.
21516         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21517         Interix 6.1.
21518
21519 2011-05-16  Eric Blake  <eblake@redhat.com>
21520
21521         inttypes: avoid autoconf warning
21522         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21523         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21524
21525 2011-05-16  Sam Steingold <sds@gnu.org>
21526         and Eric Blake  <eblake@redhat.com>
21527
21528         vc-list-files: accept multiple directory operands
21529         * build-aux/vc-list-files: Iterate over all remaining operands.
21530
21531 2011-05-16  Bruno Haible  <bruno@clisp.org>
21532
21533         Fix confusion regarding deprecated modules.
21534         * modules/calloc (Status, Notice): Mark module as deprecated, not
21535         obsolete.
21536         * modules/fnmatch-posix (Status, Notice): Likewise.
21537         * modules/getdate (Status, Notice): Likewise.
21538         * modules/getopt (Status, Notice): Likewise.
21539         * modules/malloc (Status, Notice): Likewise.
21540         * modules/pipe (Status, Notice): Likewise.
21541         * modules/realloc (Status, Notice): Likewise.
21542         * modules/rename-dest-slash (Status, Notice): Likewise.
21543         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21544         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21545         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21546         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21547         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21548
21549 2011-05-16  Bruno Haible  <bruno@clisp.org>
21550
21551         doc: List the target platforms.
21552         * doc/gnulib-intro.texi (Target Platforms): New section.
21553         * doc/gnulib.texi (Introduction): Update menu.
21554         * README (Portability guidelines): Refer to the new section. Update
21555         statement about oldest supported environment. Remove rationale why
21556         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21557         unportable C89 function.
21558         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21559         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21560
21561 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21562
21563         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21564
21565 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         intprops-tests: new module
21568         * modules/intprops-tests, tests/test-intprops.c: New files.
21569
21570         intprops: add safe, portable integer overflow checking
21571         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21572         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21573         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21574         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21575         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21576         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21577         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21578         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21579         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21580         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21581         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21582
21583 2011-05-12  James Youngman  <jay@gnu.org>
21584
21585         Add a test for glibc's Bugzilla bug #12378.
21586         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21587         doesn't allow the literal matching of a lone "[" (which is
21588         required by POSIX).
21589         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21590
21591 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21592
21593         Sync glibc change fixing Bugzilla bug #12378.
21594         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21595         beginning and fall back to matching as normal character if the
21596         string ends before the matching ']' is found.  This is what POSIX
21597         requires.
21598
21599 2011-05-13  Eric Blake  <eblake@redhat.com>
21600
21601         getcwd-lgpl: relax test for FreeBSD
21602         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21603         issue.
21604         * tests/test-getcwd-lgpl.c (main): Relax test.
21605         Reported by Matthias Bolte.
21606
21607 2011-05-11  Eric Blake  <eblake@redhat.com>
21608
21609         test-fflush: silence compiler warning
21610         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21611
21612 2011-05-11  Bruno Haible  <bruno@clisp.org>
21613
21614         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21615         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21616         * modules/canonicalize (Depends-on): Add 'nocrash'.
21617         * modules/canonicalize-lgpl (Depends-on): Likewise.
21618         * doc/posix-functions/realpath.texi: Update platforms list.
21619         Reported by Ryan Schmidt <ryandesign@macports.org>.
21620
21621 2011-05-11  Bruno Haible  <bruno@clisp.org>
21622
21623         group-member: Declare function in <unistd.h>.
21624         * lib/unistd.in.h (group_member): New declaration.
21625         * lib/group-member.h: Remove file.
21626         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21627         * tests/test-unistd-c++.cc: Check signature of group_member.
21628         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21629         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21630         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21631         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21632         HAVE_GROUP_MEMBER.
21633         * modules/group-member (Files): Remove lib/group-member.h.
21634         (Depends-on): Add unistd. Specify conditions.
21635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21636         (Include): Change to <unistd.h>.
21637         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21638         HAVE_GROUP_MEMBER.
21639         * NEWS: Mention the change.
21640         * lib/euidaccess.c: Don't include group-member.h.
21641
21642 2011-05-11  Bruno Haible  <bruno@clisp.org>
21643
21644         group-member: Document module.
21645         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21646         module.
21647
21648 2011-05-11  Bruno Haible  <bruno@clisp.org>
21649
21650         fclose: Fix mistake earlier today.
21651         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21652
21653 2011-05-11  Eric Blake  <eblake@redhat.com>
21654
21655         fclose: preserve fflush errors
21656         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21657         Reported by Jim Meyering.
21658
21659         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21660         * build-aux/bootstrap (check_versions): When no specific version
21661         is required, merely check that the app produces an exit status
21662         that indicates its existence.
21663
21664         maint.mk: drop redundant check
21665         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21666         the same but better.
21667
21668 2011-05-11  Bruno Haible  <bruno@clisp.org>
21669
21670         fclose: Fix possible link error.
21671         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21672         unregister_shadow_fd. Improve comments.
21673         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21674         Eric Blake.
21675
21676 2011-05-11  Jim Meyering  <meyering@redhat.com>
21677
21678         maint.mk: improve "can not" detection and generalize rule name
21679         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21680         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21681         Use the same technique as in sc_prohibit_doubled_word, so that
21682         we recognize "can not" also when the words are separated by a newline.
21683         Suggested by Eric Blake.
21684         (perl_filename_lineno_text_): Define.  Factored out of...
21685         (prohibit_doubled_word_): ...here.  Use the new definition.
21686         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21687         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21688         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21689
21690 2011-05-10  Eric Blake  <eblake@redhat.com>
21691
21692         fclose: avoid double close race when possible
21693         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21694         all but WINDOWS_SOCKETS.
21695
21696 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21697
21698         openat: correct new comment
21699         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21700
21701 2011-05-10  Jim Meyering  <meyering@redhat.com>
21702
21703         openat: add comments
21704         * lib/openat-proc.c (openat_proc_name): Add comments,
21705         mostly from Eric Blake.
21706
21707 2011-05-09  Eric Blake  <eblake@redhat.com>
21708
21709         openat: reduce syscalls in first probe of /proc
21710         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21711         be a directory.  Simplify the probe for .. bugs.
21712         * modules/openat (Depends-on): Drop same-inode.
21713         Reported by Bastien ROUCARIES.
21714
21715 2011-05-09  Jim Meyering  <meyering@redhat.com>
21716
21717         maint.mk: change semantics/name of tight_scope variables
21718         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21719         Rename variables to align with semantics that make them more useful.
21720
21721         maint.mk: tweak new rule's name not to impinge
21722         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21723         (sc_tight_scope): Use new rule name rather than $@-0.
21724
21725         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21726         * top/maint.mk (sc_tight_scope): New rule.
21727         (sc_tight_scope-0): New rule, ifdef'd out.
21728         (_gl_TS_dir): Default.
21729         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21730         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21731
21732 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21733
21734         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21735         Haible <bruno@clisp.org>.
21736
21737 2011-05-08  Bruno Haible  <bruno@clisp.org>
21738
21739         Comments.
21740         * m4/isnanf.m4: Add comment.
21741         * m4/isnanl.m4: Likewise.
21742
21743 2011-05-08  Bruno Haible  <bruno@clisp.org>
21744
21745         glob: Remove obsolete macro.
21746         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21747
21748 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21749
21750         intprops: Sun C 5.11 supports __typeof__
21751         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21752         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21753         which is new.
21754         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21755
21756         intprops: switch to usual gnulib indenting and naming
21757         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21758         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21759
21760         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21761
21762 2011-05-08  Jim Meyering  <meyering@redhat.com>
21763
21764         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21765         * top/maint.mk (release-prep): Use make's --no-print-directory
21766         option when generating the announcement.  This eliminates the
21767         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21768         generated announcement template.
21769
21770 2011-05-08  Bruno Haible  <bruno@clisp.org>
21771
21772         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21773         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21774         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21775
21776 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21777
21778         ignore-value, verify: Omit include files from lib_SOURCES.
21779         * modules/ignore-value, modules/verify (Makefile.am):
21780         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21781         that leads Automake to duplicate use of am__objects_... variables
21782         in Makefile.in.  See
21783         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21784
21785 2011-05-07  Bruno Haible  <bruno@clisp.org>
21786
21787         fclose: Simplify autoconf macro.
21788         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21789         defined.
21790
21791 2011-05-07  Bruno Haible  <bruno@clisp.org>
21792
21793         canonicalize-lgpl: Fix autoconf macro ordering bug.
21794         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21795         gl_STDLIB_H_DEFAULTS.
21796
21797 2011-05-06  Eric Blake  <eblake@redhat.com>
21798
21799         maintainer-makefile: make sc_po_check easier to tune
21800         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21801         to probe for strings, such as an alternate location for gnulib.
21802
21803         fclose: guarantee behavior on seekable stdin
21804         * modules/fclose (Depends-on): Add fflush.
21805         * doc/posix-functions/fclose.texi (fclose): Document this.
21806         * tests/test-fclose.c (main): Make test for this unconditional.
21807
21808 2011-05-06  Bruno Haible  <bruno@clisp.org>
21809
21810         fflush, fpurge: Relicense under LGPLv2+.
21811         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21812         * modules/fpurge (License): Likewise.
21813         With permission from Eric Blake and Jim Meyering.
21814         Suggested by Eric Blake.
21815
21816 2011-05-06  Karl Berry  <karl@gnu.org>
21817
21818         * MODULES.html.sh (func_all_modules): remove exit.
21819
21820 2011-05-06  Jim Meyering  <meyering@redhat.com>
21821
21822         maint.mk: use info-gnu@ as the default only for a stable release
21823         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21824         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21825         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21827
21828 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21829
21830         assert-h: new module, which supports C1X-style static_assert
21831         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21832         * lib/verify.h: Revamp so that this can be copied into assert.h,
21833         while retaining the ability to use it standalone as before.
21834         Rename private identifiers so as not to encroach on the
21835         standard C namespace, since this is now used by assert.h.
21836         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21837         the old verify_true.
21838         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21839         the old verify_true.  Use _GL_VERIFY_TYPE.
21840         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21841         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21842         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21843         defined when this file is copied into the replacement assert.h.
21844         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21845         and _Static_assert is not built in.
21846         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21847         defined, and use the new macros mentioned above.
21848         * doc/posix-headers/assert.texi: Document this.
21849
21850 2011-05-05  Bruno Haible  <bruno@clisp.org>
21851
21852         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21853         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21854         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21855         gl_REPLACE_FCLOSE here.
21856         * modules/fflush (Depends-on): Remove fclose.
21857         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21858         combination with module 'fclose'.
21859
21860 2011-05-05  Bruno Haible  <bruno@clisp.org>
21861
21862         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21863         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21864         gl_FUNC_FFLUSH.
21865         (gl_FUNC_FFLUSH): Use it.
21866         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21867         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21868         gl_REPLACE_FSEEKO here.
21869
21870 2011-05-05  Bruno Haible  <bruno@clisp.org>
21871
21872         tzset: Relicense under LGPL.
21873         * modules/tzset (License): Change to LGPL.
21874         No agreement needed; it's a no-op.
21875
21876         strtoimax, strtoumax: Relicense under LGPL.
21877         * modules/strtoimax (License): Change to LGPL.
21878         * modules/strtoumax (License): Likewise.
21879         With permission from Jim Meyering, Paul Eggert:
21880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21882
21883         getgroups: Relicense under LGPL.
21884         * modules/getgroups (License): Change to LGPL.
21885         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21889
21890         nanosleep: Relicense under LGPL.
21891         * modules/nanosleep (License): Change to LGPL.
21892         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21893         Haible:
21894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21898
21899         futimens: Relicense under LGPL.
21900         * modules/futimens (License): Change to LGPL.
21901         With permission from Eric Blake:
21902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21903
21904         fflush: Relicense under LGPL.
21905         * modules/fflush (License): Change to LGPL.
21906         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21910
21911         tmpfile: Relicense under LGPL.
21912         * modules/tmpfile (License): Change to LGPL.
21913         With permission from Ben Pfaff:
21914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21915
21916         isfinite: Relicense under LGPL.
21917         * modules/isfinite (License): Change to LGPL.
21918         With permission from Ben Pfaff, Bruno Haible:
21919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21921
21922         acosl..tanl: Relicense under LGPL.
21923         * modules/acosl (License): Change to LGPL.
21924         * modules/asinl (License): Likewise.
21925         * modules/atanl (License): Likewise.
21926         * modules/cosl (License): Likewise.
21927         * modules/expl (License): Likewise.
21928         * modules/logl (License): Likewise.
21929         * modules/sinl (License): Likewise.
21930         * modules/sqrtl (License): Likewise.
21931         * modules/tanl (License): Likewise.
21932         Source code originally from glibc and Paolo Bonzini. Agreements:
21933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21935
21936 2011-05-05  Bruno Haible  <bruno@clisp.org>
21937
21938         signal: Define sighandler_t.
21939         * lib/signal.in.h (sighandler_t): New type.
21940         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21941         whether sighandler_t is defined.
21942         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21943         * modules/signal (Depends-on): Add extensions.
21944         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21945         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21946         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21947
21948 2011-05-05  Eric Blake  <eblake@redhat.com>
21949
21950         maint: remove useless REPLACE_*_H macros
21951         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21952         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21953         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21954         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21955         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21956         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21957         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21958         * m4/btowc.m4: Update callers.
21959         * m4/dirfd.m4: Likewise.
21960         * m4/duplocale.m4: Likewise.
21961         * m4/fchdir.m4: Likewise.
21962         * m4/fdopendir.m4: Likewise.
21963         * m4/inet_ntop.m4: Likewise.
21964         * m4/inet_pton.m4: Likewise.
21965         * m4/ioctl.m4: Likewise.
21966         * m4/mbrlen.m4: Likewise.
21967         * m4/mbrtowc.m4: Likewise.
21968         * m4/mbsinit.m4: Likewise.
21969         * m4/mbsnrtowcs.m4: Likewise.
21970         * m4/mbsrtowcs.m4: Likewise.
21971         * m4/poll.m4: Likewise.
21972         * m4/setlocale.m4: Likewise.
21973         * m4/wcrtomb.m4: Likewise.
21974         * m4/wcsnrtombs.m4: Likewise.
21975         * m4/wcsrtombs.m4: Likewise.
21976         * m4/wctob.m4: Likewise.
21977         * m4/wcwidth.m4: Likewise.
21978         * modules/posix_spawn: Likewise.
21979         * modules/posix_spawn_file_actions_addclose: Likewise.
21980         * modules/posix_spawn_file_actions_adddup2: Likewise.
21981         * modules/posix_spawn_file_actions_addopen: Likewise.
21982         * modules/posix_spawn_file_actions_destroy: Likewise.
21983         * modules/posix_spawn_file_actions_init: Likewise.
21984         * modules/posix_spawnattr_destroy: Likewise.
21985         * modules/posix_spawnattr_getflags: Likewise.
21986         * modules/posix_spawnattr_getpgroup: Likewise.
21987         * modules/posix_spawnattr_getschedparam: Likewise.
21988         * modules/posix_spawnattr_getschedpolicy: Likewise.
21989         * modules/posix_spawnattr_getsigdefault: Likewise.
21990         * modules/posix_spawnattr_getsigmask: Likewise.
21991         * modules/posix_spawnattr_init: Likewise.
21992         * modules/posix_spawnattr_setflags: Likewise.
21993         * modules/posix_spawnattr_setpgroup: Likewise.
21994         * modules/posix_spawnattr_setschedparam: Likewise.
21995         * modules/posix_spawnattr_setschedpolicy: Likewise.
21996         * modules/posix_spawnattr_setsigdefault: Likewise.
21997         * modules/posix_spawnattr_setsigmask: Likewise.
21998         * modules/posix_spawnp: Likewise.
21999
22000 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22001
22002         Add option to do-release-commit-and-tag to specify branch.
22003         * build-aux/do-release-commit-and-tag: Add --branch.
22004
22005 2011-05-03  Bruno Haible  <bruno@clisp.org>
22006
22007         Avoid unnecessary compilation units, through conditional dependencies.
22008         * modules/accept (Depends-on): Add conditions to the dependencies.
22009         * modules/acosl (Depends-on): Likewise.
22010         * modules/argz (Depends-on): Likewise.
22011         * modules/asinl (Depends-on): Likewise.
22012         * modules/atanl (Depends-on): Likewise.
22013         * modules/atoll (Depends-on): Likewise.
22014         * modules/bind (Depends-on): Likewise.
22015         * modules/btowc (Depends-on): Likewise.
22016         * modules/canonicalize-lgpl (Depends-on): Likewise.
22017         * modules/ceil (Depends-on): Likewise.
22018         * modules/ceilf (Depends-on): Likewise.
22019         * modules/ceill (Depends-on): Likewise.
22020         * modules/chdir-long (Depends-on): Likewise.
22021         * modules/chown (Depends-on): Likewise.
22022         * modules/close (Depends-on): Likewise.
22023         * modules/connect (Depends-on): Likewise.
22024         * modules/cosl (Depends-on): Likewise.
22025         * modules/dirfd (Depends-on): Likewise.
22026         * modules/dprintf (Depends-on): Likewise.
22027         * modules/dprintf-posix (Depends-on): Likewise.
22028         * modules/error (Depends-on): Likewise.
22029         * modules/euidaccess (Depends-on): Likewise.
22030         * modules/expl (Depends-on): Likewise.
22031         * modules/faccessat (Depends-on): Likewise.
22032         * modules/fchdir (Depends-on): Likewise.
22033         * modules/fclose (Depends-on): Likewise.
22034         * modules/fcntl (Depends-on): Likewise.
22035         * modules/fdopendir (Depends-on): Likewise.
22036         * modules/fflush (Depends-on): Likewise.
22037         * modules/floor (Depends-on): Likewise.
22038         * modules/floorf (Depends-on): Likewise.
22039         * modules/floorl (Depends-on): Likewise.
22040         * modules/fnmatch (Depends-on): Likewise.
22041         * modules/fopen (Depends-on): Likewise.
22042         * modules/fprintf-posix (Depends-on): Likewise.
22043         * modules/frexp (Depends-on): Likewise.
22044         * modules/frexp-nolibm (Depends-on): Likewise.
22045         * modules/frexpl (Depends-on): Likewise.
22046         * modules/frexpl-nolibm (Depends-on): Likewise.
22047         * modules/fseek (Depends-on): Likewise.
22048         * modules/fsusage (Depends-on): Likewise.
22049         * modules/ftell (Depends-on): Likewise.
22050         * modules/ftello (Depends-on): Likewise.
22051         * modules/futimens (Depends-on): Likewise.
22052         * modules/getcwd (Depends-on): Likewise.
22053         * modules/getcwd-lgpl (Depends-on): Likewise.
22054         * modules/getdelim (Depends-on): Likewise.
22055         * modules/getdomainname (Depends-on): Likewise.
22056         * modules/getgroups (Depends-on): Likewise.
22057         * modules/gethostname (Depends-on): Likewise.
22058         * modules/getline (Depends-on): Likewise.
22059         * modules/getlogin_r (Depends-on): Likewise.
22060         * modules/getopt-posix (Depends-on): Likewise.
22061         * modules/getpeername (Depends-on): Likewise.
22062         * modules/getsockname (Depends-on): Likewise.
22063         * modules/getsockopt (Depends-on): Likewise.
22064         * modules/getsubopt (Depends-on): Likewise.
22065         * modules/getusershell (Depends-on): Likewise.
22066         * modules/glob (Depends-on): Likewise.
22067         * modules/grantpt (Depends-on): Likewise.
22068         * modules/iconv_open (Depends-on): Likewise.
22069         * modules/iconv_open-utf (Depends-on): Likewise.
22070         * modules/inet_ntop (Depends-on): Likewise.
22071         * modules/inet_pton (Depends-on): Likewise.
22072         * modules/ioctl (Depends-on): Likewise.
22073         * modules/isapipe (Depends-on): Likewise.
22074         * modules/isfinite (Depends-on): Likewise.
22075         * modules/isinf (Depends-on): Likewise.
22076         * modules/lchown (Depends-on): Likewise.
22077         * modules/ldexpl (Depends-on): Likewise.
22078         * modules/link (Depends-on): Likewise.
22079         * modules/linkat (Depends-on): Likewise.
22080         * modules/listen (Depends-on): Likewise.
22081         * modules/logl (Depends-on): Likewise.
22082         * modules/lstat (Depends-on): Likewise.
22083         * modules/mbrlen (Depends-on): Likewise.
22084         * modules/mbrtowc (Depends-on): Likewise.
22085         * modules/mbsinit (Depends-on): Likewise.
22086         * modules/mbsnrtowcs (Depends-on): Likewise.
22087         * modules/mbsrtowcs (Depends-on): Likewise.
22088         * modules/mbtowc (Depends-on): Likewise.
22089         * modules/memcmp (Depends-on): Likewise.
22090         * modules/mkdir (Depends-on): Likewise.
22091         * modules/mkdtemp (Depends-on): Likewise.
22092         * modules/mkfifo (Depends-on): Likewise.
22093         * modules/mkfifoat (Depends-on): Likewise.
22094         * modules/mknod (Depends-on): Likewise.
22095         * modules/mkostemp (Depends-on): Likewise.
22096         * modules/mkostemps (Depends-on): Likewise.
22097         * modules/mkstemp (Depends-on): Likewise.
22098         * modules/mkstemps (Depends-on): Likewise.
22099         * modules/mktime (Depends-on): Likewise.
22100         * modules/nanosleep (Depends-on): Likewise.
22101         * modules/open (Depends-on): Likewise.
22102         * modules/openat (Depends-on): Likewise.
22103         * modules/perror (Depends-on): Likewise.
22104         * modules/poll (Depends-on): Likewise.
22105         * modules/popen (Depends-on): Likewise.
22106         * modules/posix_spawn (Depends-on): Likewise.
22107         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22108         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22109         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22110         * modules/posix_spawnp (Depends-on): Likewise.
22111         * modules/pread (Depends-on): Likewise.
22112         * modules/printf-posix (Depends-on): Likewise.
22113         * modules/ptsname (Depends-on): Likewise.
22114         * modules/putenv (Depends-on): Likewise.
22115         * modules/pwrite (Depends-on): Likewise.
22116         * modules/readline (Depends-on): Likewise.
22117         * modules/readlink (Depends-on): Likewise.
22118         * modules/readlinkat (Depends-on): Likewise.
22119         * modules/recv (Depends-on): Likewise.
22120         * modules/recvfrom (Depends-on): Likewise.
22121         * modules/regex (Depends-on): Likewise.
22122         * modules/remove (Depends-on): Likewise.
22123         * modules/rename (Depends-on): Likewise.
22124         * modules/renameat (Depends-on): Likewise.
22125         * modules/rmdir (Depends-on): Likewise.
22126         * modules/round (Depends-on): Likewise.
22127         * modules/roundf (Depends-on): Likewise.
22128         * modules/roundl (Depends-on): Likewise.
22129         * modules/rpmatch (Depends-on): Likewise.
22130         * modules/select (Depends-on): Likewise.
22131         * modules/send (Depends-on): Likewise.
22132         * modules/sendto (Depends-on): Likewise.
22133         * modules/setenv (Depends-on): Likewise.
22134         * modules/setlocale (Depends-on): Likewise.
22135         * modules/setsockopt (Depends-on): Likewise.
22136         * modules/shutdown (Depends-on): Likewise.
22137         * modules/sigaction (Depends-on): Likewise.
22138         * modules/signbit (Depends-on): Likewise.
22139         * modules/sigprocmask (Depends-on): Likewise.
22140         * modules/sinl (Depends-on): Likewise.
22141         * modules/sleep (Depends-on): Likewise.
22142         * modules/snprintf (Depends-on): Likewise.
22143         * modules/snprintf-posix (Depends-on): Likewise.
22144         * modules/socket (Depends-on): Likewise.
22145         * modules/sprintf-posix (Depends-on): Likewise.
22146         * modules/sqrtl (Depends-on): Likewise.
22147         * modules/stat (Depends-on): Likewise.
22148         * modules/strchrnul (Depends-on): Likewise.
22149         * modules/strdup-posix (Depends-on): Likewise.
22150         * modules/strerror (Depends-on): Likewise.
22151         * modules/strerror_r-posix (Depends-on): Likewise.
22152         * modules/strndup (Depends-on): Likewise.
22153         * modules/strnlen (Depends-on): Likewise.
22154         * modules/strptime (Depends-on): Likewise.
22155         * modules/strsep (Depends-on): Likewise.
22156         * modules/strsignal (Depends-on): Likewise.
22157         * modules/strstr-simple (Depends-on): Likewise.
22158         * modules/strtod (Depends-on): Likewise.
22159         * modules/strtoimax (Depends-on): Likewise.
22160         * modules/strtok_r (Depends-on): Likewise.
22161         * modules/strtoumax (Depends-on): Likewise.
22162         * modules/symlink (Depends-on): Likewise.
22163         * modules/symlinkat (Depends-on): Likewise.
22164         * modules/tanl (Depends-on): Likewise.
22165         * modules/tcgetsid (Depends-on): Likewise.
22166         * modules/tmpfile (Depends-on): Likewise.
22167         * modules/trunc (Depends-on): Likewise.
22168         * modules/truncf (Depends-on): Likewise.
22169         * modules/truncl (Depends-on): Likewise.
22170         * modules/uname (Depends-on): Likewise.
22171         * modules/unlink (Depends-on): Likewise.
22172         * modules/unlockpt (Depends-on): Likewise.
22173         * modules/unsetenv (Depends-on): Likewise.
22174         * modules/usleep (Depends-on): Likewise.
22175         * modules/utimensat (Depends-on): Likewise.
22176         * modules/vasprintf (Depends-on): Likewise.
22177         * modules/vdprintf (Depends-on): Likewise.
22178         * modules/vdprintf-posix (Depends-on): Likewise.
22179         * modules/vfprintf-posix (Depends-on): Likewise.
22180         * modules/vprintf-posix (Depends-on): Likewise.
22181         * modules/vsnprintf (Depends-on): Likewise.
22182         * modules/vsnprintf-posix (Depends-on): Likewise.
22183         * modules/vsprintf-posix (Depends-on): Likewise.
22184         * modules/wcrtomb (Depends-on): Likewise.
22185         * modules/wcscasecmp (Depends-on): Likewise.
22186         * modules/wcscspn (Depends-on): Likewise.
22187         * modules/wcsdup (Depends-on): Likewise.
22188         * modules/wcsncasecmp (Depends-on): Likewise.
22189         * modules/wcsnrtombs (Depends-on): Likewise.
22190         * modules/wcspbrk (Depends-on): Likewise.
22191         * modules/wcsrtombs (Depends-on): Likewise.
22192         * modules/wcsspn (Depends-on): Likewise.
22193         * modules/wcsstr (Depends-on): Likewise.
22194         * modules/wcstok (Depends-on): Likewise.
22195         * modules/wcswidth (Depends-on): Likewise.
22196         * modules/wctob (Depends-on): Likewise.
22197         * modules/wctomb (Depends-on): Likewise.
22198         * modules/wctype (Depends-on): Likewise.
22199         * modules/wcwidth (Depends-on): Likewise.
22200         * modules/write (Depends-on): Likewise.
22201
22202 2011-05-03  Bruno Haible  <bruno@clisp.org>
22203
22204         Support for conditional dependencies.
22205         * doc/gnulib.texi (Module description): Document the syntax of
22206         conditional dependencies.
22207         * gnulib-tool: New option --conditional-dependencies.
22208         (func_usage): Document it.
22209         (cond_dependencies): New variable.
22210         (func_get_automake_snippet_conditional,
22211         func_get_automake_snippet_unconditional): New functions, extracted from
22212         func_get_automake_snippet.
22213         (func_get_automake_snippet): Use them.
22214         (sed_first_32_chars): New variable.
22215         (func_module_shellfunc_name): New function.
22216         (func_module_shellvar_name): New function.
22217         (func_module_conditional_name): New function.
22218         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22219         func_cond_module_condition): New functions.
22220         (func_modules_transitive_closure): Add support for conditional
22221         dependencies.
22222         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22223         conditional automake snippet in an automake conditional.
22224         (func_emit_autoconf_snippets): Emit shell functions that contain the
22225         code for conditional modules.
22226         (func_import, func_create_testdir): Update specification.
22227
22228 2011-05-03  Eric Blake  <eblake@redhat.com>
22229
22230         test-getaddrinfo: report error information
22231         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22232
22233 2011-05-03  Jim Meyering  <meyering@redhat.com>
22234
22235         bootstrap: avoid build failure when $GZIP is set
22236         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22237         program name.  If defined at all, it is supposed to list gzip options.
22238         Reported by Alan Curry in http://debbugs.gnu.org/8609
22239
22240 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22241
22242         readme-release: new module with release instructions
22243         * modules/readme-release: New module.
22244         * top/README-release: New file, from coreutils, grep, diffutils.
22245         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22246
22247 2011-05-02  Eric Blake  <eblake@redhat.com>
22248
22249         fflush: also replace fclose when fixing fflush
22250         * modules/fflush (Depends-on): Add fclose.
22251         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22252         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22253         memstreams with no backing fd.
22254         * doc/posix-functions/fclose.texi (fclose): Document the use of
22255         fflush module to fix the bug.
22256         * tests/test-fclose.c (main): Relax test when fclose is used in
22257         isolation.
22258
22259         fclose: add some tests
22260         * modules/fclose-tests: New test module.
22261         * tests/test-fclose.c: New file.
22262         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22263
22264         fclose: reduced dependencies
22265         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22266         simpler lseek.
22267         * lib/fclose.c (rpl_fclose): Likewise.
22268         Reported by Simon Josefsson.
22269
22270         exit: drop remaining clients
22271         * modules/argmatch (Depends-on): Replace exit with stdlib.
22272         * modules/copy-file (Depends-on): Likewise.
22273         * modules/execute (Depends-on): Likewise.
22274         * modules/exitfail (Depends-on): Likewise.
22275         * modules/obstack (Depends-on): Likewise.
22276         * modules/pagealign_alloc (Depends-on): Likewise.
22277         * modules/pipe-filter-gi (Depends-on): Likewise.
22278         * modules/pipe-filter-ii (Depends-on): Likewise.
22279         * modules/savewd (Depends-on): Likewise.
22280         * modules/spawn-pipe (Depends-on): Likewise.
22281         * modules/wait-process (Depends-on): Likewise.
22282         * modules/xsetenv (Depends-on): Likewise.
22283         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22284         * modules/git-merge-changelog (Depends-on): Likewise.
22285         * modules/long-options (Depends-on): Likewise.
22286         * modules/pt_chown (Depends-on): Likewise.
22287         * modules/sysexits (Depends-on): Likewise.
22288
22289         freading: relax license from LGPLv3+ to LGPLv2+
22290         * modules/freading (License): Relax LGPL version.
22291
22292 2011-05-02  Bruno Haible  <bruno@clisp.org>
22293
22294         fchdir: Remove unused dependencies.
22295         * modules/fchdir (Depends-on): Remove include_next.
22296
22297 2011-05-02  Bruno Haible  <bruno@clisp.org>
22298
22299         gnulib-tool: Refactor.
22300         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22301         from func_emit_autoconf_snippets.
22302         (func_emit_autoconf_snippets): Use it.
22303
22304 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22305
22306         * NEWS: Document removal of 'exit'.
22307         * modules/exit: Remove file.
22308
22309 2011-05-01  Bruno Haible  <bruno@clisp.org>
22310
22311         Update DEPENDENCIES.
22312         * DEPENDENCIES (gettext): Recommend the newest release.
22313         Reported by Simon Josefsson.
22314
22315 2011-05-01  Bruno Haible  <bruno@clisp.org>
22316
22317         gnulib-tool: Reduce code duplication.
22318         * gnulib-tool (func_emit_autoconf_snippets): New function.
22319         (func_import, func_create_testdir): Use it.
22320
22321 2011-04-30  Eric Blake  <eblake@redhat.com>
22322
22323         fclose: don't fail on non-seekable input stream
22324         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22325         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22326         since fflush is allowed to fail in that case.
22327
22328 2011-04-30  Bruno Haible  <bruno@clisp.org>
22329
22330         dup3: cleanup
22331         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22332
22333 2011-04-30  Bruno Haible  <bruno@clisp.org>
22334
22335         netdb: Make it work in C++ mode.
22336         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22337         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22338         module.
22339         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22340         gl_MODULE_INDICATOR_FOR_TESTS.
22341         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22342         * modules/netdb-c++-tests: New file.
22343         * tests/test-netdb-c++.cc: New file.
22344
22345 2011-04-30  Bruno Haible  <bruno@clisp.org>
22346
22347         New modules 'vfscanf', 'vscanf'.
22348         * modules/vfscanf: New file.
22349         * modules/vscanf: New file.
22350         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22351         here.
22352         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22353         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22354
22355 2011-04-30  Bruno Haible  <bruno@clisp.org>
22356
22357         passfd: Add comments.
22358         * lib/passfd.c: Add comments about platforms.
22359
22360 2011-04-30  Bruno Haible  <bruno@clisp.org>
22361
22362         sys_uio: Make <sys/uio.h> self-contained.
22363         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22364         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22365
22366 2011-04-30  Bruno Haible  <bruno@clisp.org>
22367
22368         sys_socket: Ensure 'struct iovec' definition.
22369         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22370         <sys/socket.h>.
22371         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22372
22373 2011-04-30  Bruno Haible  <bruno@clisp.org>
22374
22375         sys_uio: Protect definition of 'struct iovec'.
22376         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22377         it as a C struct.
22378
22379 2011-04-30  Bruno Haible  <bruno@clisp.org>
22380
22381         manywarnings: fix indentation
22382         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22383
22384 2011-04-30  Pádraig Brady <P@draigBrady.com>
22385
22386         manywarnings: add -Wno-missing-field-initializers if needed.
22387         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22388         option if it's needed to allow initialization with { 0, }
22389
22390 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22391
22392         announce-gen: cosmetic improvement
22393         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22394
22395 2011-04-29  Jim Meyering  <meyering@redhat.com>
22396
22397         vc-list-files: indent with spaces, not TABs
22398         * build-aux/vc-list-files: Convert leading TABs to spaces,
22399         to match the style of most other files in gnulib.
22400
22401         announce-gen: indent with spaces, not TABs
22402         * build-aux/announce-gen: Convert all TABs to spaces, to match
22403         the style of most other files in gnulib.
22404
22405 2011-04-29  Eric Blake  <eblake@redhat.com>
22406
22407         quotearg: avoid uninitialized variable use
22408         * lib/quotearg.c (quoting_options_from_style): Initialize
22409         remaining fields, and ensure that custom styles are only used via
22410         quoting_options rather than quoting_style.
22411
22412 2011-04-29  Jim Meyering  <meyering@redhat.com>
22413
22414         maint.mk: remove unused VC-tag variable
22415         * top/maint.mk (VC-tag): Remove unused variable.
22416
22417 2011-04-29  Bruno Haible  <bruno@clisp.org>
22418
22419         netdb: fix gai_strerror replacements
22420         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22421         * modules/netdb: Substitute it.
22422
22423 2011-04-29  Jim Meyering  <meyering@redhat.com>
22424
22425         test-getcwd.c: avoid new set-but-not-used warning
22426         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22427         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22428         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22429         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22430
22431         test-hash.c: avoid a new shadowing warning
22432         * tests/test-hash.c (main): Don't shadow "dup".
22433
22434 2011-04-28  Eric Blake  <eblake@redhat.com>
22435
22436         getaddrinfo: fix gai_strerror signature
22437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22438         and work around mingw with UNICODE defined.
22439         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22440         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22441         * modules/netdb (Makefile.am): Substitute it.
22442         * lib/netdb.in.h (gai_strerror): Declare replacement.
22443         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22444         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22445         the fix.
22446
22447         getsockopt: avoid compiler warning
22448         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22449         Reported by Matthias Bolte.
22450
22451         tests: drop unused link dependency
22452         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22453         * modules/dirent-safer-tests (Makefile.am): Likewise.
22454         * modules/fdopendir-tests (Makefile.am): Likewise.
22455         * modules/mkfifoat-tests (Makefile.am): Likewise.
22456         * modules/openat-safer-tests (Makefile.am): Likewise.
22457         * modules/openat-tests (Makefile.am): Likewise.
22458         * modules/readlinkat-tests (Makefile.am): Likewise.
22459         * modules/symlinkat-tests (Makefile.am): Likewise.
22460         * modules/linkat-tests (Makefile.am): Likewise.
22461         (Depends-on): Switch to filenamecat-lgpl.
22462         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22463         LIBINTL.
22464         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22465         * tests/test-linkat.c (main): Don't require xalloc.
22466
22467         hash, mgetgroups: drop xalloc dependency
22468         * lib/hash.c (includes): Adjust includes.
22469         * lib/mgetgroups.c (includes): Likewise.
22470         (xgetgroups): Move...
22471         * lib/xgetgroups.c: ...to new file.
22472         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22473         * modules/xgetgroups: New file, split from...
22474         * modules/mgetgroups: ...here.
22475         (Depends-on): Add xalloc-oversized.
22476         * modules/hash (Depends-on): Likewise.
22477         * modules/hash-tests (Depends-on): Drop xalloc.
22478         (test_hash_LDADD): Drop unused library.
22479         * tests/test-hash.c (main): Break xalloc dependency.
22480         (includes): Drop unused include.
22481
22482         xalloc-oversized: new module
22483         * modules/xalloc-oversized: New module.
22484         * modules/xalloc (Depends-on): Add it.
22485         * lib/xalloc.h (xalloc_oversized): Move...
22486         * lib/xalloc-oversized.h: ...into new file.
22487
22488         utimecmp: drop dependency on xmalloc
22489         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22490         due to memory pressure.
22491         * modules/utimecmp (Depends-on): Drop xalloc.
22492
22493 2011-04-27  Eric Blake  <eblake@redhat.com>
22494
22495         getcwd: fix mingw bugs
22496         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22497         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22498         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22499
22500 2011-04-27  Bruno Haible  <bruno@clisp.org>
22501
22502         mkstemps: Ensure declaration on MacOS X 10.5.
22503         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22504         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22505         MacOS X.
22506
22507 2011-04-27  Bruno Haible  <bruno@clisp.org>
22508
22509         mkstemp: More documentation.
22510         * doc/posix-functions/mkstemp.texi: Document header file problem on
22511         MacOS X.
22512
22513 2011-04-27  Bruno Haible  <bruno@clisp.org>
22514
22515         mkstemp: Tweak configure message when cross-compiling.
22516         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22517         result as a guess.
22518
22519 2011-04-27  Bruno Haible  <bruno@clisp.org>
22520
22521         clean-temp: Clarify what it does.
22522         * lib/clean-temp.h: Add more comments.
22523         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22524         module.
22525         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22526         * doc/glibc-functions/mkstemps.texi: Likewise.
22527         * doc/glibc-functions/mkostemps.texi: Likewise.
22528
22529 2011-04-27  Eric Blake  <eblake@redhat.com>
22530
22531         fchdir: avoid extra chdir and fix test
22532         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22533         getcwd-lgpl.
22534         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22535         have to be canonical.
22536         (canonicalize_file_name): Drop unused macro.
22537         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22538
22539         filenamecat-lgpl: fix licence
22540         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22541         when it was first created.
22542
22543         linkat, renameat: add missing dependency
22544         * modules/linkat (Depends-on): Require getcwd-lgpl.
22545         * modules/renameat (Depends-on): Likewise.
22546
22547         tests: reduce dependencies
22548         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22549         * tests/test-renameat.c (main): Likewise.
22550         * modules/linkat-tests (Depends-on): Relax dependency.
22551         * modules/renameat-tests (Depends-on): Likewise.
22552         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22553         dependency explicit.
22554
22555         save-cwd: reduce default dependency
22556         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22557         * lib/save-cwd.c: Update comments.
22558         * NEWS: Document the semantic change.
22559
22560         getcwd: enhance tests
22561         * tests/test-getcwd-lgpl.c: New file, taken from...
22562         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22563         repeat long path stress tests from m4 probe.
22564         * modules/getcwd-lgpl-tests: New module.
22565         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22566         * m4/getcwd-abort-bug.m4: Update comment.
22567         * m4/getcwd-path-max.m4: Likewise.
22568
22569         getcwd-lgpl: new module
22570         * modules/getcwd-lgpl: New module.
22571         * lib/getcwd-lgpl.c: New file.
22572         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22573         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22574         * modules/getcwd (configure.ac): Set C witness.
22575         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22576
22577         getcwd: tweak comments
22578         * m4/getcwd-abort-bug.m4: Fix comments.
22579         * m4/getcwd-path-max.m4: Likewise.
22580         * m4/getcwd.m4: Likewise.
22581
22582 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22583         and Eric Blake  <eblake@redhat.com>
22584
22585         mkstemp: replace if system version uses wrong permissions
22586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22587         read/write mode bits set in file created by mkstemp.
22588         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22589
22590 2011-04-27  Eric Blake  <eblake@redhat.com>
22591
22592         passfd: avoid compiler warning
22593         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22594         Reported by Laine Stump.
22595
22596 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22597
22598         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22599         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22600
22601 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22602         and Eric Blake  <eblake@redhat.com>
22603
22604         mkstemp: mention clean-temp module
22605         * lib/mkstemp.c: Add comment.
22606         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22607
22608 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22609
22610         inttypes: also provide default values for 32-bit tests
22611         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22612         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22613
22614 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22615
22616         strtoumax: remove dependency on strtoimax
22617         This is like the strtoull change of yesterday.
22618         * modules/strtoumax (Files): Add lib/strtoimax.c.
22619         (Depends-on): Remove strtoimax and add verify.
22620
22621         inttypes-incomplete: new module
22622         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22623         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22624         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22625         of gl_INTTYPES_H.
22626         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22627         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22628         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22629         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22630         * modules/strtoumax, modules/xstrtol (Depends-on):
22631         Depend on inttypes-incomplete, not inttypes.
22632         * modules/inttypes-incomplete: New module, containing the contents
22633         of the old modules/inttypes module, except that the Files: section
22634         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22635         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22636         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22637         (Depends-on): Depend only on inttypes-incomplete.
22638         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22639
22640         inttypes: omit now-redundant strtoimax and strtoumax work
22641         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22642         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22643
22644         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22645         This supports apps that need pointers to strtoimax and strtoumax,
22646         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22647         nonexistent functions.  See
22648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22649         et seq.
22650         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22652         a macro.
22653         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22654
22655 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22656
22657         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22658
22659 2011-04-25  Bruno Haible  <bruno@clisp.org>
22660
22661         strtol, strtoul: Mark modules as obsolete.
22662         * modules/strtol (Status, Notice): New sections.
22663         * modules/strtoul (Status, Notice): New sections.
22664
22665 2011-04-25  Bruno Haible  <bruno@clisp.org>
22666
22667         strtod: Remove check for strtod, unless supporting old platforms.
22668         * modules/strtod-obsolete: New file.
22669         * m4/strtod-obsolete.m4: New file.
22670         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22671         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22672         * modules/strtod (Depends-on): Add strtod-obsolete.
22673         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22674
22675 2011-04-25  Bruno Haible  <bruno@clisp.org>
22676
22677         strcase: Make module obsolete.
22678         * modules/strcase (Status, Notice): New sections.
22679
22680 2011-04-25  Bruno Haible  <bruno@clisp.org>
22681
22682         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22683         * modules/dup2-obsolete: New file.
22684         * m4/dup2-obsolete.m4: New file.
22685         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22686         gl_FUNC_DUP2_OBSOLETE is not also defined.
22687         * modules/dup2 (Depends-on): Add dup2-obsolete.
22688         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22689
22690 2011-04-25  Bruno Haible  <bruno@clisp.org>
22691
22692         strnlen: Avoid memchr related link error on old obsolete platforms.
22693         * modules/memchr-obsolete: New file.
22694         * m4/memchr-obsolete.m4: New file.
22695         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22696         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22697         * modules/memchr (Depends-on): Add memchr-obsolete.
22698         * modules/strnlen (Depends-on): Likewise.
22699         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22700
22701 2011-04-25  Jim Meyering  <meyering@redhat.com>
22702
22703         maint.mk: makefile_at_at_check extend and clean up
22704         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22705         in addition to */Makefile.am.
22706         Exempt legitimate uses of @VAR@ notation, e.g.,
22707         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22708         Remove obsolete coreutils-specific comment.
22709         Prompted by discussion here:
22710         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22711
22712 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         strtoul: remove dependency on strtol
22715         This is so that 'configure' need not check for strtol merely because
22716         the application needs strtoul.
22717         * modules/strtoul (Files): Add lib/strtol.c.
22718         (Depends-on): Remove strtol.
22719
22720         strtoull: remove dependency on strtoul
22721         This is like the strtoll change.
22722         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22723         (Depends-on): Remove strtoul.
22724
22725         strtoll: remove dependency on strtol
22726         This is so that 'configure' need not check for strtol merely because
22727         the application needs strtoll.
22728         * modules/strtoll (Files): Add lib/strtol.c.
22729         (Depends-on): Remove strtol.
22730
22731 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22732
22733         inttypes: Move some configure check to module 'imaxdiv'.
22734         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22735         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22736         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22737
22738 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22739
22740         inttypes: Move some configure check to module 'imaxabs'.
22741         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22742         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22743         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22744
22745 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22746
22747         inttypes: Remove configure tests that are not needed since 2009-12-31.
22748         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22749         gl_cv_header_working_inttypes_h.
22750
22751 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22752
22753         * modules/strnlen (Depends-on): Remove memchr.
22754         The strnlen implementation doesn't need the memchr module's fixes; see
22755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22756
22757         strtol: remove dependency on wchar
22758         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22759         * modules/strtol (Depends-on): Remove wchar.
22760
22761 2011-04-21  Eric Blake  <eblake@redhat.com>
22762
22763         passfd: fix test regression on Linux
22764         * modules/passfd-tests (configure.ac): Correct socketpair check.
22765
22766         passfd: speed up configure and drop unused code
22767         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22768         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22769         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22770         Instead of probing at configure for unix_scm_rights_bsd44_way,
22771         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22772         check to a struct member probe.
22773         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22774         (sendfd, recvfd): Update preprocessor checks.
22775         * modules/passfd (Files): Reflect rename, and drop unused file.
22776         (Depends-on): Drop unused dependency.
22777
22778         passfd: allow compilation on mingw
22779         * modules/sys_socket (Depends-on): Add sys_uio.
22780         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22781         iovec and a minimal struct msghdr.
22782         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22783         * tests/test-sys_socket.c (main): Enhance test.
22784         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22785         guaranteed to provide what we need.
22786         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22787         * modules/passfd-tests (Depends-on): Add sys_wait.
22788         * tests/test-passfd.c (main): Skip test on mingw, for now.
22789         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22790         partial 'struct msghdr' implementation.
22791
22792         sys_uio: new module
22793         * modules/sys_uio: New module.
22794         * modules/sys_uio-tests: Likewise.
22795         * lib/sys_uio.in.h: New file.
22796         * m4/sys_uio_h.m4: Likewise.
22797         * tests/test-sys_uio.c: Likewise.
22798         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22799         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22800
22801 2011-04-20  Jim Meyering  <meyering@redhat.com>
22802
22803         useless-if-before-free: avoid false-positive
22804         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22805         disjunct so that it too requires a terminating ";".  Without that,
22806         this script would identify as useless one statement from gcc that
22807         was not:
22808           if (aligned_ptr)
22809             free (((void **) aligned_ptr) [-1]);
22810
22811 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22812
22813         doc: update users.txt.
22814         * users.txt: Add barcode.
22815
22816 2011-04-19  Bruno Haible  <bruno@clisp.org>
22817
22818         ioctl: Remove link dependency on native Windows.
22819         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22820         (gl_close_fn, gl_ioctl_fn): New types.
22821         (struct fd_hook): Renamed from struct close_hook. Change type of
22822         private_close_fn field. Add private_ioctl_fn field.
22823         (close_hook_fn): Add parameter for primary close method.
22824         (execute_close_hooks, execute_all_close_hooks): Likewise.
22825         (ioctl_hook_fn): New type.
22826         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22827         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22828         argument.
22829         (unregister_fd_hook): Renamed from unregister_close_hook.
22830         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22831         Don't include <unistd.h>.
22832         (close): Remove undef.
22833         (anchor): Update.
22834         (execute_close_hooks): Add argument for primary close method.
22835         (execute_all_close_hooks): Likewise.
22836         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22837         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22838         argument. Allow each argument to be NULL.
22839         (unregister_fd_hook): Renamed from unregister_close_hook.
22840         * lib/close.c (rpl_close): Pass 'close' function pointer to
22841         execute_all_close_hooks.
22842         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22843         (primary_ioctl): New function.
22844         (ioctl): Don't call ioctlsocket here. Instead, call
22845         execute_all_ioctl_hooks.
22846         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22847         close method.
22848         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22849         (fd_sockets_hook): Renamed from close_sockets_hook.
22850         (gl_sockets_startup, gl_sockets_cleanup): Update.
22851         * modules/fd-hook: Renamed from modules/close-hook. Update.
22852         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22853         * modules/sockets (Depends-on): Likewise.
22854         * modules/ioctl (Depends-on): Add fd-hook.
22855         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22856         GNULIB_SOCKET.
22857
22858 2011-04-19  Bruno Haible  <bruno@clisp.org>
22859
22860         Move the support of O_NONBLOCK in open() to the 'open' module.
22861         * modules/nonblocking (Depends-on): Remove 'open'.
22862         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22863         gl_cv_have_open_O_NONBLOCK.
22864         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22865         O_NONBLOCK support.
22866         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22867
22868 2011-04-17  Bruno Haible  <bruno@clisp.org>
22869
22870         pipe2: Simplify code.
22871         * lib/pipe2.c (pipe2): Reduce code duplication.
22872
22873 2011-04-17  Bruno Haible  <bruno@clisp.org>
22874
22875         nonblocking: Add comment.
22876         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22877
22878 2011-04-17  Bruno Haible  <bruno@clisp.org>
22879
22880         nonblocking: Add tests for sockets.
22881         * tests/test-nonblocking-socket.sh: New file.
22882         * tests/test-nonblocking-socket-main.c: New file.
22883         * tests/test-nonblocking-socket-child.c: New file.
22884         * tests/test-nonblocking-socket.h: New file.
22885         * tests/socket-server.h: New file.
22886         * tests/socket-client.h: New file.
22887         * modules/nonblocking-socket-tests: New file.
22888         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22889
22890 2011-04-17  Bruno Haible  <bruno@clisp.org>
22891
22892         nonblocking: Add tests for pipes.
22893         * tests/test-nonblocking-pipe.sh: New file.
22894         * tests/test-nonblocking-pipe-main.c: New file.
22895         * tests/test-nonblocking-pipe-child.c: New file.
22896         * tests/test-nonblocking-pipe.h: New file.
22897         * tests/test-nonblocking-writer.h: New file.
22898         * tests/test-nonblocking-reader.h: New file.
22899         * tests/test-nonblocking-misc.h: New file.
22900         * modules/nonblocking-pipe-tests: New file.
22901         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22902
22903 2011-04-16  Bruno Haible  <bruno@clisp.org>
22904
22905         gettext: Clarify the needed programmer actions.
22906         * modules/gettext (Notice): New field.
22907         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22908
22909 2011-04-16  Bruno Haible  <bruno@clisp.org>
22910
22911         strchrnul: Tweak last commit.
22912         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22913         bug.
22914         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22915         as in _GL_FUNCDECL_SYS.
22916         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22917         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22918
22919 2011-04-15  Eric Blake  <eblake@redhat.com>
22920
22921         strchrnul: work around cygwin bug
22922         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22923         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22925         * modules/string (Makefile.am): Substitute it.
22926         * lib/string.in.h (strchrnul): Use it.
22927
22928 2011-04-15  Bruno Haible  <bruno@clisp.org>
22929
22930         Don't require lib/stdio-write.c when only module 'stdio' is used.
22931         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22932         invocation.
22933         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22934
22935 2011-04-14  Bruno Haible  <bruno@clisp.org>
22936
22937         Support non-blocking pipe I/O in read() on native Windows.
22938         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22939         (read): New declaration.
22940         * lib/read.c: New file.
22941         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22942         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22943         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22944         vscanf): New declarations.
22945         * lib/stdio-read.c: New file.
22946         * m4/read.m4: New file.
22947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22948         REPLACE_READ.
22949         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22950         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22951         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22952         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22953         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22954         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22955         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22956         * modules/read: New file.
22957         * modules/nonblocking (Files): Add lib/stdio-read.c.
22958         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22959         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22960         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22961         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22962         * modules/pread (Depends-on): Add read.
22963         * modules/safe-read (Depends-on): Likewise.
22964         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22965         gets, scanf, vfscanf, vscanf): Verify signatures.
22966         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22967         problem with non-blocking pipes.
22968         * doc/posix-functions/fgetc.texi: Likewise.
22969         * doc/posix-functions/fgets.texi: Likewise.
22970         * doc/posix-functions/fread.texi: Likewise.
22971         * doc/posix-functions/fscanf.texi: Likewise.
22972         * doc/posix-functions/getc.texi: Likewise.
22973         * doc/posix-functions/getchar.texi: Likewise.
22974         * doc/posix-functions/gets.texi: Likewise.
22975         * doc/posix-functions/scanf.texi: Likewise.
22976         * doc/posix-functions/vfscanf.texi: Likewise.
22977         * doc/posix-functions/vscanf.texi: Likewise.
22978
22979 2011-04-14  Bruno Haible  <bruno@clisp.org>
22980
22981         Support non-blocking pipe I/O in write() on native Windows.
22982         * lib/write.c (rpl_write): Split a write request that failed merely
22983         because the byte count was larger than the pipe buffer's size.
22984         * doc/posix-functions/write.texi: Mention the problem with large byte
22985         counts.
22986
22987 2011-04-14  Bruno Haible  <bruno@clisp.org>
22988
22989         wchar: Ensure that wchar_t gets defined on uClibc.
22990         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22991         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22992
22993 2011-04-13  Bruno Haible  <bruno@clisp.org>
22994
22995         safe-write, full-read: Avoid unnecessary compilation units.
22996         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22997         (Depends-on): Remove safe-read. Add ssize_t.
22998         * modules/full-read (Files): Add lib/full-write.c.
22999         (Depends-on): Add full-write.
23000
23001 2011-04-13  Bruno Haible  <bruno@clisp.org>
23002
23003         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23004         * modules/pwrite (Depends-on): Add 'write'.
23005
23006 2011-04-13  Bruno Haible  <bruno@clisp.org>
23007
23008         Support non-blocking pipe I/O in write() on native Windows.
23009         * lib/unistd.in.h (write): Enable replacement also if
23010         GNULIB_UNISTD_H_NONBLOCKING is 1.
23011         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23012         (rpl_write): When failing to write on a non-blocking pipe, change
23013         errno from ENOSPC to EAGAIN.
23014         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23015         putchar, puts, vfprintf, vprintf): Enable replacement also if
23016         GNULIB_STDIO_H_NONBLOCKING is 1.
23017         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23018         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23019         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23020         CALL_WITH_SIGPIPE_EMULATION.
23021         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23022         * m4/nonblocking.m4: New file.
23023         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23024         for non-blocking I/O support.
23025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23026         GNULIB_UNISTD_H_NONBLOCKING.
23027         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23028         required for non-blocking I/O support.
23029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23030         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23031         lib/stdio-write.c, m4/asm-underscore.m4.
23032         (Depends-on): Add stdio, unistd.
23033         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23034         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23035         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23036         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23037         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23038         problem with non-blocking pipes.
23039         * doc/posix-functions/fputc.texi: Likewise.
23040         * doc/posix-functions/fputs.texi: Likewise.
23041         * doc/posix-functions/fwrite.texi: Likewise.
23042         * doc/posix-functions/printf.texi: Likewise.
23043         * doc/posix-functions/putc.texi: Likewise.
23044         * doc/posix-functions/putchar.texi: Likewise.
23045         * doc/posix-functions/puts.texi: Likewise.
23046         * doc/posix-functions/vfprintf.texi: Likewise.
23047         * doc/posix-functions/vprintf.texi: Likewise.
23048         * doc/posix-functions/write.texi: Likewise.
23049
23050 2011-04-10  Jim Meyering  <meyering@redhat.com>
23051
23052         maint.mk: prohibit doubled words
23053         Detect them also when they're separated by a newline.
23054         There are 3 ways to customize it:
23055           - disable the test on a per file basis, as usual with rules using
23056             $(VC_LIST_EXCEPT)
23057           - replace the default doubled-word-selecting regexp (affects all files)
23058           - ignore a particular file-vs-doubled-word match
23059         I nearly used that last one to ignore the "is is" match in
23060         coreutils' NEWS file, since the text was "ls -is is ..."
23061         To do that, I would have added this line to cfg.mk:
23062           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23063         but it would have ignored any "is is" match in NEWS.
23064         Low probability, but still...
23065         Instead, I changed the text, slightly:
23066           -  ls -is is now consistent with ls -lis in ignoring values returned
23067           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23068         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23069         (prohibit_doubled_word_): Define.
23070         (sc_prohibit_doubled_word): New rule.
23071         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23072
23073 2011-04-10  Jim Meyering  <meyering@redhat.com>
23074
23075         maint: fix doubled-word typo in comment
23076         * m4/gethostname.m4: s/is is/it is/
23077         * m4/getdomainname.m4: Likewise.
23078
23079 2011-04-10  Jim Meyering  <meyering@redhat.com>
23080
23081         maint: remove doubled word: s/it it/it/
23082         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23083
23084 2011-04-10  Jim Meyering  <meyering@redhat.com>
23085
23086         maint.mk: remove useless semicolon and backslash
23087         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23088         semicolon and backslash.
23089
23090 2011-04-10  Bruno Haible  <bruno@clisp.org>
23091
23092         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23093         * modules/stdint-tests (Depends-on): Add wchar.
23094
23095 2011-04-10  Jim Meyering  <meyering@redhat.com>
23096
23097         maint: remove doubled words in comments, e.g., s/a a/a/
23098         * lib/strptime.c (day_of_the_week): s/the the/the/
23099         * tests/test-chown.h (test_chown): s/a a/a/
23100
23101         test-chown.h: correct a cast
23102         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23103         when the destination is a stat.st_gid.
23104
23105 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23106
23107         getaddrinfo: Fix test for sa_len member.
23108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23109         include <sys/types.h> before <sys/socket.h>.
23110
23111 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23112
23113         maint: change "can not" to "cannot"
23114         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23115         boundaries.
23116
23117 2011-04-09  Jim Meyering  <meyering@redhat.com>
23118
23119         maint: change "a a" to "a"
23120         * tests/test-lchown.h (test_lchown): s/a a/a/
23121
23122         maint.mk: prohibit \<the the\>
23123         * top/maint.mk (sc_prohibit_the_the): New rule.
23124
23125         maint: fix "the the" in comment
23126         * lib/count-one-bits.h: s/the the/the/
23127
23128         maint: change "can not" to "cannot"
23129         But do not change the occurrences in maintain.texi or in
23130         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23131         * doc/gnulib-tool.texi: s/can not/cannot/
23132         * doc/posix-functions/accept.texi (accept): Likewise.
23133         * doc/posix-functions/socket.texi (socket): Likewise.
23134         * lib/mbrtowc.c: Likewise.
23135
23136         maint.mk: prohibit use of "can not"
23137         * top/maint.mk (sc_prohibit_can_not): New rule.
23138         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23139
23140 2011-04-09  Bruno Haible  <bruno@clisp.org>
23141
23142         careadlinkat: Guard against misuse of careadlinkatcwd.
23143         * lib/careadlinkat.c: Include <stdlib.h>.
23144         (careadlinkatcwd): Check that the fd argument is as expected.
23145
23146 2011-04-09  Bruno Haible  <bruno@clisp.org>
23147
23148         careadlinkat: Use common coding style.
23149         * lib/careadlinkat.c: Move gnulib includes after system includes.
23150
23151 2011-04-09  Bruno Haible  <bruno@clisp.org>
23152
23153         careadlinkat: Clarify specification.
23154         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23155         (careadlinkatcwd): Add comment.
23156         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23157
23158 2011-04-09  Bruno Haible  <bruno@clisp.org>
23159
23160         areadlinkat: Avoid link error on many platforms.
23161         * modules/areadlinkat (Depends-on): Add areadlink.
23162
23163 2011-04-09  Bruno Haible  <bruno@clisp.org>
23164
23165         allocator, careadlinkat: Fix double-inclusion guard.
23166         * lib/allocator.h: Fix double-inclusion guard.
23167         * lib/careadlinkat.h: Likewise.
23168
23169 2011-04-09  Bruno Haible  <bruno@clisp.org>
23170
23171         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23172         * lib/relocwrapper.c: Update dependencies hierarchy.
23173         * build-aux/install-reloc: Update list of files to be compiled.
23174         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23175         lib/allocator.[hc].
23176
23177 2011-04-08  Eric Blake  <eblake@redhat.com>
23178
23179         strftime: silence gnulib-tool warning
23180         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23181
23182 2011-04-08  Bruno Haible  <bruno@clisp.org>
23183
23184         verify: Fix syntax error with GCC 4.6 in C++ mode.
23185         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23186         (HAVE_STATIC_ASSERT): New macro.
23187         (verify_true, verify): Use 'static_assert' if it is supported and
23188         '_Static_assert' is not supported.
23189
23190 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23191
23192         allocator: New module.
23193         * modules/allocator, lib/allocator.c: New files.
23194         * lib/allocator.h (stdlib_allocator): New decl.
23195         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23196         Remove.  Do not include <stdlib.h>.
23197         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23198         * modules/careadlinkat (Files): Remove lib/allocator.h.
23199         (Depends-on): Add allocator.
23200
23201         stdlib: let modules use system malloc, realloc
23202         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23203         if !_GL_USE_STDLIB_ALLOC.
23204         (malloc, realloc): Limit this change to a smaller scope.
23205
23206         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23207         (malloc, realloc): Don't #undef; no longer needed.
23208         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23209         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23210         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23211         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23212         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23213         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23214         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23215         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23216
23217         careadlinkat: rename members to avoid problem
23218         * lib/allocator.h (struct allocator): Rename members from
23219         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23220         and realloc are #define'd.  Reported by Eric Blake in
23221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23222         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23223
23224 2011-04-08  Eric Blake  <eblake@redhat.com>
23225
23226         nonblocking: reduce dependency
23227         * tests/test-nonblocking.c: Only test sockets when in use.
23228         * modules/nonblocking-tests (Depends-on): Drop socket.
23229         (Makefile.am): Link even if sockets are not present.
23230         * modules/pipe2-tests (Makefile.am): Likewise.
23231         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23232
23233         pipe2: fix O_NONBLOCK support on mingw
23234         * modules/pipe2 (Depends-on): Add nonblocking.
23235         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23236         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23237         * tests/test-nonblocking.c (main): Likewise.
23238         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23239
23240         fcntl-h: fix O_ACCMODE on cygwin
23241         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23242         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23243
23244         pipe-filter: drop O_NONBLOCK workarounds
23245         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23246         * modules/pipe-filter-ii (Depends-on): Likewise.
23247         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23248
23249         nonblocking: provide O_NONBLOCK for mingw
23250         * modules/nonblocking (Depends-on): Add open.
23251         (configure.ac): Set new witness macro.
23252         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23253         * modules/fcntl-h (Makefile.am): Substitute it.
23254         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23255         nonblocking module is in use.
23256         * lib/nonblocking.c: Adjust portability test.
23257         * lib/open.c (open): Don't let native open see gnulib flag.
23258         * tests/test-fcntl-h.c (main): Enhance test.
23259         * tests/test-open.h (test_open): Likewise.
23260         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23261
23262         careadlinkat: fix compilation error on mingw
23263         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23264         within struct allocator.
23265
23266 2011-04-06  Eric Blake  <eblake@redhat.com>
23267
23268         binary-io: relicense under LGPLv2+
23269         * modules/binary-io (License): Relax to LGPLv2+.
23270         Requested for libvirt, and required by pipe2.
23271
23272 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23273
23274         verify: use _Static_assert if available
23275         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23276         (verify_true, verify): Use it if available.  This generates better
23277         diagnostics with GCC 4.6.0 and later.
23278
23279 2011-04-05  Bruno Haible  <bruno@clisp.org>
23280
23281         Remove leftover generated .h files after config.status changed.
23282
23283         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23284         GL_GENERATE_ALLOCA_H.
23285         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23286         GL_GENERATE_ALLOCA_H evaluates to false.
23287
23288         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23289         GL_GENERATE_ARGZ_H.
23290         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23291         evaluates to false.
23292
23293         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23294         GL_GENERATE_BYTESWAP_H.
23295         * modules/byteswap (Makefile.am): Remove byteswap.h if
23296         GL_GENERATE_BYTESWAP_H evaluates to false.
23297
23298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23299         GL_GENERATE_ERRNO_H.
23300         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23301         evaluates to false.
23302
23303         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23304         GL_GENERATE_FLOAT_H.
23305         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23306         evaluates to false.
23307
23308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23309         GL_GENERATE_FNMATCH_H.
23310         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23311         GL_GENERATE_FNMATCH_H evaluates to false.
23312
23313         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23314         GL_GENERATE_GLOB_H.
23315         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23316         evaluates to false.
23317
23318         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23319         automake conditional GL_GENERATE_ICONV_H.
23320         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23321         evaluates to false.
23322
23323         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23324         GL_GENERATE_NETINET_IN_H.
23325         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23326         GL_GENERATE_NETINET_IN_H evaluates to false.
23327
23328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23329         conditional GL_GENERATE_PTHREAD_H.
23330         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23331         * modules/pthread (Makefile.am): Remove pthread.h if
23332         GL_GENERATE_PTHREAD_H evaluates to false.
23333
23334         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23335         GL_GENERATE_SCHED_H.
23336         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23337         evaluates to false.
23338
23339         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23340         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23341         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23342         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23343
23344         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23345         GL_GENERATE_STDARG_H.
23346         * modules/stdarg (Makefile.am): Remove stdarg.h if
23347         GL_GENERATE_STDARG_H evaluates to false.
23348
23349         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23350         GL_GENERATE_STDBOOL_H.
23351         * modules/stdbool (Makefile.am): Remove stdbool.h if
23352         GL_GENERATE_STDBOOL_H evaluates to false.
23353
23354         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23355         conditional GL_GENERATE_STDDEF_H.
23356         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23357         * modules/stddef (Makefile.am): Remove stddef.h if
23358         GL_GENERATE_STDDEF_H evaluates to false.
23359
23360         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23361         GL_GENERATE_STDINT_H.
23362         * modules/stdint (Makefile.am): Remove stdint.h if
23363         GL_GENERATE_STDINT_H evaluates to false.
23364
23365         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23366         GL_GENERATE_SYSEXITS_H.
23367         * modules/sysexits (Makefile.am): Remove sysexits.h if
23368         GL_GENERATE_SYSEXITS_H evaluates to false.
23369
23370         Reported by Karl Berry and Ralf Wildenhues.
23371
23372 2011-04-05  Bruno Haible  <bruno@clisp.org>
23373
23374         Ensure to rebuild generated .h files when config.status has changed.
23375         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23376         config.status.
23377         * modules/ctype (Makefile.am): Likewise.
23378         * modules/dirent (Makefile.am): Likewise.
23379         * modules/errno (Makefile.am): Likewise.
23380         * modules/fcntl-h (Makefile.am): Likewise.
23381         * modules/float (Makefile.am): Likewise.
23382         * modules/getopt-posix (Makefile.am): Likewise.
23383         * modules/glob (Makefile.am): Likewise.
23384         * modules/iconv-h (Makefile.am): Likewise.
23385         * modules/inttypes (Makefile.am): Likewise.
23386         * modules/langinfo (Makefile.am): Likewise.
23387         * modules/locale (Makefile.am): Likewise.
23388         * modules/math (Makefile.am): Likewise.
23389         * modules/netdb (Makefile.am): Likewise.
23390         * modules/netinet_in (Makefile.am): Likewise.
23391         * modules/poll-h (Makefile.am): Likewise.
23392         * modules/pthread (Makefile.am): Likewise.
23393         * modules/pty (Makefile.am): Likewise.
23394         * modules/sched (Makefile.am): Likewise.
23395         * modules/search (Makefile.am): Likewise.
23396         * modules/selinux-h (Makefile.am): Likewise.
23397         * modules/signal (Makefile.am): Likewise.
23398         * modules/spawn (Makefile.am): Likewise.
23399         * modules/stdarg (Makefile.am): Likewise.
23400         * modules/stdbool (Makefile.am): Likewise.
23401         * modules/stddef (Makefile.am): Likewise.
23402         * modules/stdint (Makefile.am): Likewise.
23403         * modules/stdio (Makefile.am): Likewise.
23404         * modules/stdlib (Makefile.am): Likewise.
23405         * modules/string (Makefile.am): Likewise.
23406         * modules/strings (Makefile.am): Likewise.
23407         * modules/sys_file (Makefile.am): Likewise.
23408         * modules/sys_ioctl (Makefile.am): Likewise.
23409         * modules/sys_select (Makefile.am): Likewise.
23410         * modules/sys_socket (Makefile.am): Likewise.
23411         * modules/sys_stat (Makefile.am): Likewise.
23412         * modules/sys_time (Makefile.am): Likewise.
23413         * modules/sys_times (Makefile.am): Likewise.
23414         * modules/sys_utsname (Makefile.am): Likewise.
23415         * modules/sys_wait (Makefile.am): Likewise.
23416         * modules/sysexits (Makefile.am): Likewise.
23417         * modules/termios (Makefile.am): Likewise.
23418         * modules/time (Makefile.am): Likewise.
23419         * modules/unistd (Makefile.am): Likewise.
23420         * modules/wchar (Makefile.am): Likewise.
23421         * modules/wctype-h (Makefile.am): Likewise.
23422         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23423
23424 2011-04-05  Bruno Haible  <bruno@clisp.org>
23425
23426         pipe2: Relicense under LGPLv2+.
23427         * modules/pipe2 (License): Change to LGPLv2+.
23428         Requested by Eric Blake, for libvirt.
23429
23430 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23431
23432         bootstrap: compute gnulib_extra_files after updating build_aux
23433         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23434         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23435
23436 2011-04-05  Eric Blake  <eblake@redhat.com>
23437
23438         bootstrap: preserve git whitelist item sorting
23439         * build-aux/bootstrap (sort_patterns): New function.
23440         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23441
23442 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23443
23444         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23445         sc_space_tab check.
23446
23447 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23448
23449         areadlink, areadlinkat: rewrite in terms of careadlinkat
23450         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23451         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23452         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23453         (malloc, realloc): Remove #undefs.
23454         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23455         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23456         readlink, ssize_t, stdint, unistd.
23457         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23458         areadlink, stdint.
23459
23460         careadlinkat: new module
23461         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23462         * modules/careadlinkat: New files, written by me with
23463         a review and feedback from Ben Pfaff in
23464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23465
23466 2011-04-01  Bruno Haible  <bruno@clisp.org>
23467
23468         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23469         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23470         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23471         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23472         Reported by Bruce Korb <bruce.korb@gmail.com>.
23473
23474 2011-04-01  Bruno Haible  <bruno@clisp.org>
23475
23476         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23477         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23478         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23479         * modules/wcpcpy (Depends-on): Add extensions.
23480         * modules/wcpncpy (Depends-on): Likewise.
23481         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23482         systems.
23483         * doc/posix-functions/wcpncpy.texi: Likewise.
23484         * doc/posix-functions/wcwidth.texi: Likewise.
23485
23486 2011-03-31  Eric Blake  <eblake@redhat.com>
23487
23488         nonblocking: fix mingw test failures
23489         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23490         non-blocking flag on regular file.
23491         (get_nonblocking_flag): Set errno on invalid fd.
23492         * tests/test-nonblocking.c (main): Avoid test failure on
23493         directories if fchdir is not active.
23494         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23495
23496 2011-03-31  Bruno Haible  <bruno@clisp.org>
23497
23498         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23499         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23500         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23501         Reported by Simon Josefsson <simon@josefsson.org>.
23502
23503 2011-03-31  Bruno Haible  <bruno@clisp.org>
23504         and Eric Blake  <eblake@redhat.com>
23505
23506         nonblocking: new module
23507         * modules/nonblocking: New module.
23508         * modules/nonblocking-tests: Likewise.
23509         * lib/nonblocking.h: New file.
23510         * lib/nonblocking.c: Likewise.
23511         * tests/test-nonblocking.c: New test.
23512         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23513
23514 2011-03-30  Bruno Haible  <bruno@clisp.org>
23515
23516         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23517         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23518         instead of 'printf' format for GCC >= 4.4.
23519         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23520         (fprintf, printf, vfprintf, vprintf): Declare with
23521         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23522         the system's vfprintf() function.
23523         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23524
23525 2011-03-30  Eric Blake  <eblake@redhat.com>
23526
23527         passfd: fix scoping bug
23528         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23529         before sendmsg/recvmsg.
23530
23531         passfd: standardize coding conventions
23532         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23533         can be learned at compile time.
23534         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23535         ifdefs.
23536         (sendfd, recvfd): Follow gnulib code conventions.
23537
23538         passfd: fix incorrect sendmsg arguments
23539         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23540         incorrect msg_controllen value.
23541         * modules/passfd-tests (Depends-on): Check for alarm.
23542         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23543         Reported by Bastien ROUCARIES.
23544
23545 2011-03-30  Bruno Haible  <bruno@clisp.org>
23546
23547         c-strcasestr: Relicense under LGPLv2+.
23548         * modules/c-strcasestr (License): Change to LGPLv2+.
23549         Requested by Eric Blake, for libvirt.
23550
23551 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23552
23553         * users.txt: Add libidn2.  Fix libtasn1 link.
23554
23555 2011-03-30  Jim Meyering  <meyering@redhat.com>
23556
23557         tests: readlink* ("",... fails with EINVAL on newer kernels
23558         readlink and readlinkat have typically failed with ENOENT for
23559         the invalid, empty file name,  "".  However, with the advent
23560         of linux-2.6.39, they fail with EINVAL.
23561         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23562         when operating on the empty file name.
23563         * tests/test-readlink.h (test_readlink): Likewise.
23564
23565 2011-03-29  Bruno Haible  <bruno@clisp.org>
23566
23567         Relicense some modules under LGPLv2+, for libidn2.
23568         * modules/array-mergesort (License): Change to LGPLv2+.
23569         * modules/c-strcaseeq (License): Likewise.
23570         * modules/striconveh (License): Likewise.
23571         * modules/striconveha (License): Likewise.
23572         * modules/uniconv/base (License): Likewise.
23573         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23574         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23575         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23576         * modules/unictype/base (License): Likewise.
23577         * modules/unictype/bidiclass-of (License): Likewise.
23578         * modules/unictype/category-M (License): Likewise.
23579         * modules/unictype/category-none (License): Likewise.
23580         * modules/unictype/category-of (License): Likewise.
23581         * modules/unictype/category-test (License): Likewise.
23582         * modules/unictype/category-test-withtable (License): Likewise.
23583         * modules/unictype/combining-class (License): Likewise.
23584         * modules/unictype/joiningtype-of (License): Likewise.
23585         * modules/unictype/scripts (License): Likewise.
23586         * modules/uninorm/base (License): Likewise.
23587         * modules/uninorm/canonical-decomposition (License): Likewise.
23588         * modules/uninorm/composition (License): Likewise.
23589         * modules/uninorm/decompose-internal (License): Likewise.
23590         * modules/uninorm/decomposition-table (License): Likewise.
23591         * modules/uninorm/nfc (License): Likewise.
23592         * modules/uninorm/nfd (License): Likewise.
23593         * modules/uninorm/u32-normalize (License): Likewise.
23594         * modules/unistr/base (License): Likewise.
23595         * modules/unistr/u32-cpy (License): Likewise.
23596         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23597         * modules/unistr/u32-to-u8 (License): Likewise.
23598         * modules/unistr/u32-uctomb (License): Likewise.
23599         * modules/unistr/u8-check (License): Likewise.
23600         * modules/unistr/u8-mblen (License): Likewise.
23601         * modules/unistr/u8-mbtouc (License): Likewise.
23602         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23603         * modules/unistr/u8-mbtoucr (License): Likewise.
23604         * modules/unistr/u8-prev (License): Likewise.
23605         * modules/unistr/u8-strlen (License): Likewise.
23606         * modules/unistr/u8-to-u32 (License): Likewise.
23607         * modules/unistr/u8-uctomb (License): Likewise.
23608         * modules/unitypes (License): Likewise.
23609         Requested by Simon Josefsson.
23610
23611 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23612
23613         lib-symbol-visibility: Add a notice.
23614         * modules/lib-symbol-visibility (Notice): New field.
23615
23616 2011-03-29  Bruno Haible  <bruno@clisp.org>
23617
23618         getaddrinfo: Doc fix.
23619         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23620         section "fixed in Gnulib".
23621
23622 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23623
23624         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23625         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23626
23627 2011-03-26  Bruno Haible  <bruno@clisp.org>
23628
23629         unictype/property-byname: Reduce the number of load-time relocations.
23630         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23631         (UC_PROPERTY_INDEX_*): New enumeration values.
23632         (uc_property_byname): Convert an index from the lookup table to an
23633         uc_property_t.
23634         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23635         values.
23636
23637 2011-03-26  Bruno Haible  <bruno@clisp.org>
23638
23639         unictype/property-byname: Allow omitted word separators and aliases.
23640         * lib/unictype/pr_byname.gperf: Add property names without word
23641         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23642         for 'space'.
23643
23644 2011-03-26  Bruno Haible  <bruno@clisp.org>
23645
23646         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23647         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23648         also hyphens to space.
23649         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23650         without spaces.
23651         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23652
23653 2011-03-26  Bruno Haible  <bruno@clisp.org>
23654
23655         unictype/joiningtype-byname: Recognize long names as well.
23656         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23657         a long name.
23658         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23659         unictype/joiningtype_byname.h.
23660         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23661         * lib/unictype/joiningtype_byname.gperf: New file.
23662         * modules/unictype/joiningtype-byname (Files): Add
23663         lib/unictype/joiningtype_byname.gperf.
23664         (Depends-on): Add gperf.
23665         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23666         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23667         long names.
23668
23669         Tests for module 'unictype/joiningtype-longname'.
23670         * modules/unictype/joiningtype-longname-tests: New file.
23671         * tests/unictype/test-joiningtype_longname.c: New file.
23672
23673         New module 'unictype/joiningtype-longname'.
23674         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23675         * lib/unictype/joiningtype_longname.c: New file.
23676         * modules/unictype/joiningtype-longname: New file.
23677         * modules/unictype/joiningtype-all (Depends-on): Add
23678         unictype/joiningtype-longname.
23679
23680 2011-03-26  Bruno Haible  <bruno@clisp.org>
23681
23682         unictype/bidiclass-byname: Recognize long names as well.
23683         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23684         name.
23685         * lib/unictype/bidi_byname.c: Include <string.h>,
23686         unictype/bidi_byname.h.
23687         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23688         * lib/unictype/bidi_byname.gperf: New file.
23689         * modules/unictype/bidiclass-byname (Files): Add
23690         lib/unictype/bidi_byname.gperf.
23691         (Depends-on): Add gperf.
23692         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23693         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23694         long names.
23695
23696         Tests for module 'unictype/bidiclass-longname'.
23697         * modules/unictype/bidiclass-longname-tests: New file.
23698         * tests/unictype/test-bidi_longname.c: New file.
23699
23700         New module 'unictype/bidiclass-longname'.
23701         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23702         * lib/unictype/bidi_longname.c: New file.
23703         * modules/unictype/bidiclass-longname: New file.
23704         * modules/unictype/bidiclass-all (Depends-on): Add
23705         unictype/bidiclass-longname.
23706
23707 2011-03-26  Bruno Haible  <bruno@clisp.org>
23708
23709         unictype/bidi*: Rename modules.
23710         * modules/unictype/bidiclass-all: Renamed from
23711         modules/unictype/bidicategory-all.
23712         * modules/unictype/bidiclass-name: Renamed from
23713         modules/unictype/bidiclass-name.
23714         (Description): Update.
23715         * modules/unictype/bidiclass-name-tests: Renamed from
23716         modules/unictype/bidicategory-name-tests.
23717         * modules/unictype/bidiclass-byname: Renamed from
23718         modules/unictype/bidicategory-byname.
23719         (Description): Update.
23720         * modules/unictype/bidiclass-byname-tests: Renamed from
23721         modules/unictype/bidicategory-byname-tests.
23722         * modules/unictype/bidiclass-of: Renamed from
23723         modules/unictype/bidicategory-of.
23724         (Description): Update.
23725         * modules/unictype/bidiclass-of-tests: Renamed from
23726         modules/unictype/bidicategory-of-tests.
23727         * modules/unictype/bidiclass-test: Renamed from
23728         modules/unictype/bidicategory-test.
23729         (Description): Update.
23730         * modules/unictype/bidiclass-test-tests: Renamed from
23731         modules/unictype/bidicategory-test-tests.
23732         * modules/unictype/bidicategory-all: New file, a simple redirection.
23733         * modules/unictype/bidicategory-name: Likewise.
23734         * modules/unictype/bidicategory-byname: Likewise.
23735         * modules/unictype/bidicategory-of: Likewise.
23736         * modules/unictype/bidicategory-test: Likewise.
23737         * modules/unictype/property-bidi-* (Dependencies): Update.
23738         * lib/unictype/bidi_*.c: Update comment.
23739
23740 2011-03-26  Bruno Haible  <bruno@clisp.org>
23741
23742         unictype/bidi*: Rename functions, part 2.
23743         * modules/unictype/bidicategory-name (configure.ac): Update required
23744         libunistring version.
23745         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23746
23747 2011-03-25  Bruno Haible  <bruno@clisp.org>
23748
23749         New module 'unictype/combining-class-all'.
23750         * modules/unictype/combining-class-all: New file.
23751
23752         Tests for module 'unictype/combining-class-byname'.
23753         * modules/unictype/combining-class-byname-tests: New file.
23754         * tests/unictype/test-combiningclass_byname.c: New file.
23755
23756         New module 'unictype/combining-class-byname'.
23757         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23758         * lib/unictype/combiningclass_byname.c: New file.
23759         * lib/unictype/combiningclass_byname.gperf: New file.
23760         * modules/unictype/combining-class-byname: New file.
23761
23762         Tests for module 'unictype/combining-class-longname'.
23763         * modules/unictype/combining-class-longname-tests: New file.
23764         * tests/unictype/test-combiningclass_longname.c: New file.
23765
23766         New module 'unictype/combining-class-longname'.
23767         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23768         * lib/unictype/combiningclass_longname.c: New file.
23769         * modules/unictype/combining-class-longname: New file.
23770
23771         Tests for module 'unictype/combining-class-name'.
23772         * modules/unictype/combining-class-name-tests: New file.
23773         * tests/unictype/test-combiningclass_name.c: New file.
23774
23775         New module 'unictype/combining-class-name'.
23776         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23777         * lib/unictype/combiningclass_name.c: New file.
23778         * modules/unictype/combining-class-name: New file.
23779
23780 2011-03-25  Bruno Haible  <bruno@clisp.org>
23781
23782         unictype/combining-class: Rename source files.
23783         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23784         of unictype/combining.h.
23785         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23786         Update.
23787         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23788         * modules/unictype/combining-class (Description): Fix.
23789         (Files, Makefile.am): Update.
23790         * tests/unictype/test-combiningclass.c: Renamed from
23791         tests/unictype/test-combining.c.
23792         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23793
23794 2011-03-25  Bruno Haible  <bruno@clisp.org>
23795
23796         unictype: Update list of canonical combining classes.
23797         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23798
23799 2011-03-25  Bruno Haible  <bruno@clisp.org>
23800
23801         unictype/category-byname: Recognize long names as well.
23802         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23803         a long name.
23804         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23805         unictype/categ_byname.h.
23806         (UC_CATEGORY_INDEX_*): New enumeration values.
23807         (uc_general_category_byname): Use uc_general_category_lookup and
23808         convert from index to value.
23809         * lib/unictype/categ_byname.gperf: New file.
23810         * modules/unictype/category-byname (Files): Add
23811         lib/unictype/categ_byname.gperf.
23812         (Depends-on): Add gperf.
23813         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23814         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23815         long names.
23816
23817         Tests for module 'unictype/category-longname'.
23818         * modules/unictype/category-longname-tests: New file.
23819         * tests/unictype/test-categ_longname.c: New file.
23820
23821         New module 'unictype/category-longname'.
23822         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23823         * lib/unictype/categ_longname.c: New file.
23824         * modules/unictype/category-longname: New file.
23825         * modules/unictype/category-all (Depends-on): Add it.
23826
23827 2011-03-25  Bruno Haible  <bruno@clisp.org>
23828
23829         Tests for module 'unictype/category-LC'.
23830         * modules/unictype/category-LC-tests: New file.
23831         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23832
23833         New module 'unictype/category-LC'.
23834         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23835         (UC_CATEGORY_LC): New declaration.
23836         (UC_CASED_LETTER): New macro.
23837         * lib/gen-uni-tables.c (is_category_LC): New function.
23838         (output_categories): Also handle category LC.
23839         (UC_CATEGORY_MASK_LC): New enumeration value.
23840         (general_category_byname): Also handle category LC.
23841         * lib/unictype/categ_LC.c: New file.
23842         * lib/unictype/categ_LC.h: New file, automatically generated.
23843         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23844         category LC.
23845         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23846         * modules/unictype/category-LC: New file.
23847         * modules/unictype/category-byname (Depends-on): Add
23848         unictype/category-LC.
23849         * modules/unictype/category-all (Depends-on): Likewise.
23850
23851 2011-03-25  Eric Blake  <eblake@redhat.com>
23852
23853         xmalloc: revert yesterday's regression
23854         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23855         realloc's underlying behavior (allowing allocation of zero-size
23856         objects, especially if malloc-gnu is also in use).
23857
23858 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23859
23860         maint.mk: add missing version to VC-tag
23861         * top/maint.mk: git tag was missing actual tag name; add it.
23862
23863         valgrind: do leak checking, and exit with code 1 on error (not 0)
23864         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23865         to VALGRIND.
23866
23867 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23868
23869         posix-modules: say what it does.
23870         * posix-modules: Add a line to the --help output saying what it does.
23871
23872 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23873
23874         xmalloc: Do not leak if underlying realloc is C99 compatible.
23875         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23876         This avoids a leak on C99-based systems.  See
23877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23878
23879 2011-03-24  Eric Blake  <eblake@redhat.com>
23880
23881         realloc: document portability problem
23882         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23883         passing 0 size to realloc.
23884
23885 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23886
23887         doc: update users.txt
23888         * users.txt: Add cvsps, tmpwatch
23889
23890 2011-03-23  Matt Rice  <ratmice@gmail.com>
23891
23892         doc: update users.txt
23893         * users.txt: Add gdb.
23894
23895 2011-03-23  Jim Meyering  <meyering@redhat.com>
23896
23897         doc: update users.txt
23898         Looking through matches up to the following URL (there are still
23899         several more pages), I found several projects that use gnulib:
23900         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23901         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23902         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23903
23904 2011-03-22  Bruno Haible  <bruno@clisp.org>
23905
23906         unictype/bidi*: Rename functions.
23907         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23908         uc_bidi_class, uc_is_bidi_class): New declarations.
23909         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23910         uc_bidi_category_byname.
23911         (uc_bidi_category_byname): New function.
23912         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23913         u_bidi_category_name.
23914         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23915         (uc_bidi_category_name): New function.
23916         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23917         uc_bidi_category.
23918         (uc_bidi_category): New function.
23919         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23920         uc_is_bidi_category. Invoke uc_bidi_class.
23921         (uc_is_bidi_category): New function.
23922         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23923         instead of uc_bidi_category_byname.
23924         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23925         instead of uc_bidi_category_name.
23926         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23927         uc_bidi_category.
23928         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23929         instead of uc_is_bidi_category.
23930
23931 2011-03-21  Bruno Haible  <bruno@clisp.org>
23932
23933         New module 'unictype/joininggroup-all'.
23934         * modules/unictype/joininggroup-all: New file.
23935
23936         Tests for module 'unictype/joininggroup-of'.
23937         * modules/unictype/joininggroup-of-tests: New file.
23938         * tests/unictype/test-joininggroup_of.c: New file.
23939         * tests/unictype/test-joininggroup_of.h: New file, automatically
23940         generated by gen-uni-tables.
23941
23942         New module 'unictype/joininggroup-of'.
23943         * modules/unictype/joininggroup-of: New file.
23944         * lib/unictype/joininggroup_of.c: New file.
23945         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23946         gen-uni-tables.
23947
23948         Tests for module 'unictype/joininggroup-byname'.
23949         * modules/unictype/joininggroup-byname-tests: New file.
23950         * tests/unictype/test-joininggroup_byname.c: New file.
23951
23952         New module 'unictype/joininggroup-byname'.
23953         * modules/unictype/joininggroup-byname: New file.
23954         * lib/unictype/joininggroup_byname.c: New file.
23955         * lib/unictype/joininggroup_byname.gperf: New file.
23956
23957         Tests for module 'unictype/joininggroup-name'.
23958         * modules/unictype/joininggroup-name-tests: New file.
23959         * tests/unictype/test-joininggroup_name.c: New file.
23960
23961         New module 'unictype/joininggroup-name'.
23962         * modules/unictype/joininggroup-name: New file.
23963         * lib/unictype/joininggroup_name.c: New file.
23964         * lib/unictype/joininggroup_name.h: New file.
23965
23966         New module 'unictype/joiningtype-all'.
23967         * modules/unictype/joiningtype-all: New file.
23968
23969         Tests for module 'unictype/joiningtype-of'.
23970         * modules/unictype/joiningtype-of-tests: New file.
23971         * tests/unictype/test-joiningtype_of.c: New file.
23972         * tests/unictype/test-joiningtype_of.h: New file, automatically
23973         generated by gen-uni-tables.
23974
23975         New module 'unictype/joiningtype-of'.
23976         * modules/unictype/joiningtype-of: New file.
23977         * lib/unictype/joiningtype_of.c: New file.
23978         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23979         gen-uni-tables.
23980
23981         Tests for module 'unictype/joiningtype-byname'.
23982         * modules/unictype/joiningtype-byname-tests: New file.
23983         * tests/unictype/test-joiningtype_byname.c: New file.
23984
23985         New module 'unictype/joiningtype-byname'.
23986         * modules/unictype/joiningtype-byname: New file.
23987         * lib/unictype/joiningtype_byname.c: New file.
23988
23989         Tests for module 'unictype/joiningtype-name'.
23990         * modules/unictype/joiningtype-name-tests: New file.
23991         * tests/unictype/test-joiningtype_name.c: New file.
23992
23993         New module 'unictype/joiningtype-name'.
23994         * modules/unictype/joiningtype-name: New file.
23995         * lib/unictype/joiningtype_name.c: New file.
23996
23997         unictype: Add support for Arabic shaping properties.
23998         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23999         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24000         declarations.
24001         (UC_JOINING_GROUP_*): New enumeration values.
24002         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24003         declarations.
24004         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24005         (unicode_joining_type): New variable.
24006         (UC_JOINING_GROUP_*): New enumeration values.
24007         (unicode_joining_group): New variable.
24008         (fill_arabicshaping, joining_type_as_c_identifier,
24009         output_joining_type_test, output_joining_type,
24010         joining_group_as_c_identifier, output_joining_group_test,
24011         output_joining_group): New functions.
24012         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24013         fill_arabicshaping and output_joining_type_test, output_joining_type,
24014         output_joining_group_test, output_joining_group.
24015         Reported by Simon Josefsson.
24016
24017 2011-03-21  Jim Meyering  <meyering@redhat.com>
24018
24019         strftime: fix a bug in yesterday's change
24020         * lib/strftime.c (add): Accommodate width's initial value of -1.
24021         Otherwise, nstrftime would copy uninitialized data into
24022         the result buffer.
24023
24024 2011-03-21  Jim Meyering  <meyering@redhat.com>
24025
24026         tests: add strftime-tests module
24027         * tests/test-strftime.c: New file.
24028         * modules/strftime-tests: New module.
24029
24030 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24031
24032         strftime: don't assume a byte count fits in 'int'
24033         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24034         found this problem by static analysis, using gcc -Wstrict-overflow
24035         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24036         on an integer overflow having undefined behavior, but it turns out
24037         that the argument is a size, which might not fit in 'int' anyway,
24038
24039 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24040
24041         stdio: don't require ignore_value around fwrite
24042
24043         This patch works around libc bug 11959
24044         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24045         Without this patch, applications must often write
24046         ignore_value (fwrite (...)) even though the ignore_value is
24047         not helpful here.  It's common to write many objects, using
24048         fwrite/printf/etc., and then use ferror to detect output error.
24049
24050         I considered making this patch optional, but decided against it,
24051         because libc is obviously being inconsistent here: there is no
24052         reason libc should insist that user code must inspect fwrite
24053         return's value without also insisting that it inspect printf's,
24054         putchar's, etc.  If user code wants to have a strict style where
24055         all these functions' values are checked (so that ferror need not
24056         be checked), we could add support for that style in a new gnulib
24057         module, but in the meantime it's better to be consistent and to
24058         support common usage.
24059
24060         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24061         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24062         that we are compiling in checking mode, and if not C++, and
24063         if not already wrapping fwrite for some other reason.
24064         (fwrite): #define to rpl_fwrite if the latter is defined.
24065
24066 2011-03-20  Bruno Haible  <bruno@clisp.org>
24067
24068         verror: Fix compilation error introduced on 2011-02-13.
24069         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24070         instead of __attribute__.
24071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24072
24073 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24074             Bruno Haible  <bruno@clisp.org>
24075
24076         socklen: do not depend on sys_socket
24077         While trying to modify Emacs to use gnulib's socklen module,
24078         I discovered a circular dependency: socklen depends on sys_socket
24079         and vice versa.  Emacs can use socklen, but it does not need
24080         sys_socket because it has its own substitute for sys/socket.h.
24081         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24082         gl_TYPE_SOCKLEN_T.
24083         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24084         gl_PREREQ_SYS_H_SOCKET.
24085         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24086         gl_PREREQ_SYS_H_SOCKET.
24087         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24088         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24089         * modules/socklen (Depends-on): Do not depend on sys_socket.
24090         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24091
24092 2011-03-20  Jim Meyering  <meyering@redhat.com>
24093
24094         maint.mk: sort file names *after* new transformation
24095         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24096         prefix would have led to an unwarranted failure in GNU parted.
24097         Sort after that transformation.
24098
24099 2011-03-19  Jim Meyering  <meyering@redhat.com>
24100
24101         maint.mk: fix po-file syntax-check rule
24102         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24103         Patch by Bruno Haible.
24104
24105 2011-03-19  Bruno Haible  <bruno@clisp.org>
24106
24107         socklen: Update comment.
24108         * m4/socklen.m4: Update comment about platforms.
24109
24110 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24111             Bruno Haible  <bruno@clisp.org>
24112
24113         inet_ntop, inet_pton: Simplify.
24114         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24115         documented to provide socklen_t and we already depend on sys_socket.
24116         * modules/inet_pton (Depends-on): Likewise.
24117         * lib/arpa_inet.in.h: Adjust comment.
24118
24119 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24120             Bruno Haible  <bruno@clisp.org>
24121
24122         netdb: Simplify.
24123         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24124         documented to provide socklen_t and we already depend on sys_socket.
24125         * lib/netdb.in.h: Adjust comment.
24126
24127 2011-03-19  Bruno Haible  <bruno@clisp.org>
24128
24129         sys_socket, netdb: Document problem with socklen_t.
24130         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24131         platforms.
24132         * doc/posix-headers/netdb.texi: Likewise.
24133
24134 2011-03-18  Eric Blake  <eblake@redhat.com>
24135
24136         maint.mk: let po check work in VPATH build
24137         * top/maint.mk (po_file): Allow cfg.mk override.
24138         (sc_po_check): Allow VPATH use.
24139         Reported by Jiri Denemark.
24140
24141 2011-03-16  Jim Meyering  <meyering@redhat.com>
24142
24143         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24144         Before, you would have had to create one .x-sc_ file per rule in order
24145         to exempt offending files.  Now, you may instead use a Make variable --
24146         usually defined in cfg.mk -- whose name identifies the affected rule.
24147         * top/maint.mk (_sc_excl): Define.
24148         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24149         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24150
24151 2011-03-13  Bruno Haible  <bruno@clisp.org>
24152
24153         ignore-value tests: Avoid warnings.
24154         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24155         empty for gcc < 3.4.
24156
24157 2011-03-13  Bruno Haible  <bruno@clisp.org>
24158
24159         passfd: Fix link error on Solaris.
24160         * modules/passfd (Description): Correct.
24161         (Depends-on): Add socketlib.
24162         (Link): New section.
24163         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24164
24165 2011-03-13  Bruno Haible  <bruno@clisp.org>
24166
24167         passfd: Fix link error on AIX 5.2.
24168         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24169
24170 2011-03-13  Bruno Haible  <bruno@clisp.org>
24171
24172         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24173         * lib/sys_socket.in.h: Include <stddef.h>.
24174         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24175         CMSG_FIRSTHDR. Remove unused variable.
24176
24177 2011-03-13  Bruno Haible  <bruno@clisp.org>
24178
24179         passfd: Fix compilation error on OpenBSD.
24180         * lib/passfd.c: Include <sys/uio.h>.
24181
24182 2011-03-13  Bruno Haible  <bruno@clisp.org>
24183
24184         passfd test: Fix warnings.
24185         * tests/test-passfd.c: Include <sys/wait.h>.
24186         (main): Fix typo.
24187
24188 2011-03-13  Bruno Haible  <bruno@clisp.org>
24189
24190         passfd module, part 4, tweaks.
24191         * tests/test-passfd.c: Reorder includes.
24192         (main): Fix perror and printf calls.
24193
24194 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24195
24196         passfd module, part 4.
24197         * modules/passfd-tests: New file.
24198         * tests/test-passfd.c: New file.
24199
24200 2011-03-13  Jim Meyering  <meyering@redhat.com>
24201
24202         Makefile: rely on GNU make; derive syntax-check rule names
24203         Rather than requiring that each sc_ rule be listed as a dependent
24204         of "check", use features of GNU make to derive the list.
24205         * Makefile (syntax-check-rules): Define.
24206         (check): Depend on the new variable, not the hard-coded list.
24207
24208 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24209             Bruno Haible  <bruno@clisp.org>
24210
24211         passfd module, part 3.
24212         * lib/passfd.h (recvfd): Add a flags argument.
24213         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24214         (recvfd): Add a flags argument.
24215         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24216         exists.
24217         * modules/passfd (Depends-on): Add cloexec.
24218         Suggested by Eric Blake.
24219
24220 2011-03-13  Bruno Haible  <bruno@clisp.org>
24221
24222         passfd module, part 2, tweaks.
24223         * modules/passfd (Files): Reorder.
24224         (Depends-on): Remove errno.
24225         (Include): Remove <sys/socket.h>, <sys/un.h>.
24226         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24227         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24228         specification header. Include <sys/socket.h> always. Don't include
24229         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24230         (sendfd): Clarify that it sets errno when it fails.
24231         (recvfd): Fix specification.
24232
24233 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24234
24235         passfd module, part 2.
24236         * modules/passfd: New file.
24237         * lib/passfd.h: New file.
24238         * lib/passfd.c: New file.
24239
24240 2011-03-12  Bruno Haible  <bruno@clisp.org>
24241
24242         wcswidth, mbswidth: Avoid integer overflow.
24243         * lib/wcswidth.c: Include <limits.h>.
24244         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24245         * lib/mbswidth.c: Include <limits.h>.
24246         (mbsnwidth): Avoid 'int' overflow.
24247         Reported by Jim Meyering.
24248
24249 2011-03-12  Bruno Haible  <bruno@clisp.org>
24250
24251         futimens, utimensat: Avoid endless recursion on Solaris 10.
24252         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24253         Solaris.
24254         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24255         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24256
24257 2011-03-11  Jim Meyering  <meyering@redhat.com>
24258
24259         maint.mk: relax a regexp to accommodate other formatting styles
24260         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24261         between "ngettext" and the following "(".
24262
24263 2011-03-11  Pádraig Brady <P@draigBrady.com>
24264
24265         maint.mk: suppress a false positive warning
24266         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24267         diagnostics are marked with ngettext.
24268
24269 2011-03-10  Eric Blake  <eblake@redhat.com>
24270
24271         wchar: add explicit dependencies, for Tru64
24272         * modules/mbmemcasecoll (Depends-on): Add wchar.
24273         * modules/mbtowc (Depends-on): Likewise.
24274         * modules/vasnprintf (Depends-on): Likewise.
24275         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24276         * modules/wctomb (Depends-on): Likewise.
24277         Reported by Peter O'Gorman.
24278
24279 2011-03-08  Bruno Haible  <bruno@clisp.org>
24280
24281         passfd module, part 1, tweaks.
24282         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24283         Improve indentation. Improve AC_MSG_CHECKING messages.
24284         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24285         gl_SOCKET_FAMILIES.
24286
24287 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24288
24289         passfd module, part 1.
24290         * m4/afunix.m4: New file.
24291         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24292         sockets.
24293
24294 2011-03-08  Bruno Haible  <bruno@clisp.org>
24295
24296         regex-quote: New API.
24297         * lib/regex-quote.h: Include <stdbool.h>.
24298         (struct regex_quote_spec): New type.
24299         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24300         New declarations.
24301         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24302         'const struct regex_quote_spec *' argument.
24303         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24304         (pcre_special): New constant.
24305         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24306         New functions.
24307         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24308         'const struct regex_quote_spec *' argument.
24309         * modules/regex-quote (Depends-on): Add stdbool.
24310         * tests/test-regex-quote.c (check): Update for new API. Add test for
24311         anchored results.
24312         * NEWS: Mention the API change.
24313         Reported by Reuben Thomas and Eric Blake.
24314
24315 2011-03-06  Bruno Haible  <bruno@clisp.org>
24316
24317         regex-quote: Fix creation of POSIX extended regular expressions.
24318         * lib/regex-quote.c (ere_special): Add grouping and alternation
24319         operators.
24320
24321 2011-03-05  Bruno Haible  <bruno@clisp.org>
24322
24323         doc: Improve doc regarding autopoint vs. gnulib.
24324         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24325         disable autopoint while running autoreconf.
24326         Suggested by Ralf Wildenhues.
24327
24328 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24329
24330         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24331         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24332
24333 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24334
24335         parse-duration: remove xalloc.h dependency
24336         * lib/parse-duration.c (parse_period): handle NULL return from
24337         strdup instead of calling xstrdup().
24338         * modules/parse-duration: remove "xalloc" dependency
24339
24340 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24341
24342         bootstrap: honor m4_base when running aclocal
24343         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24344
24345 2011-03-02  Jim Meyering  <meyering@redhat.com>
24346
24347         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24348         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24349         on request from Matt Booth.
24350
24351 2011-03-01  Eric Blake  <eblake@redhat.com>
24352
24353         test-link: work on Hurd
24354         * tests/test-link.h (test_link): Hurd rejects linking directories
24355         with EISDIR instead of the POSIX-mandated EPERM.
24356
24357 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24358
24359         stdio: simplify by moving files to printf-posix, sigpipe
24360         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24361         since this symbol is needed only if printf is replaced.
24362         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24363         Require gl_ASM_SYMBOL_PREFIX.
24364         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24365         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24366         (Depends-on): Add 'raise'.
24367         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24368         * modules/stdio (Files): Remove lib/stdio-write.c,
24369         m4/asm-underscore.m4.
24370         (Depends-on): Remove 'raise'.
24371
24372         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24373         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24374         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24375         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24376
24377 2011-02-28  Bruno Haible  <bruno@clisp.org>
24378
24379         localcharset: Assume ANSI C behaviour of free().
24380         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24381         calling free().
24382         Suggested by Simon Josefsson <simon@josefsson.org>.
24383
24384 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24385             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24386             Bruno Haible  <bruno@clisp.org>  (tiny change)
24387
24388         On Cygwin, use /proc file system instead of win32 API.
24389         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24390         Win32 file names.
24391         (DllMain): Simplify by removing Cygwin specific code.
24392         (find_shared_library_fullname): Use Linux specific implementation also
24393         for Cygwin.
24394         (get_shared_library_fullname): Update accordingly.
24395         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24396         Win32 file names.
24397         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24398         Cygwin specific code.
24399
24400 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24401             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24402
24403         Fix OpenMP flag detection for various Fortran compilers.
24404         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24405         OpenMP-conditional compilation construct, to force compile
24406         failure with missing OpenMP flag.
24407         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24408
24409 2011-02-25  Eric Blake  <eblake@redhat.com>
24410
24411         strstr: expand test coverage
24412         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24413         compilation.
24414         * tests/test-memmem.c (main): Duplicate tests.
24415         * tests/test-strcasestr.c (main): Likewise.
24416         * tests/test-c-strcasestr.c (main): Likewise.
24417
24418 2011-02-25  Jim Meyering  <meyering@redhat.com>
24419
24420         maint.mk: detect missing-NL-at-EOF, too
24421         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24422         it also detects when a file lacks a newline at EOF.
24423         (require_exactly_one_NL_at_EOF_): Renamed from
24424         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24425         since people may well have .x-sc_... file names tied to the
24426         existing name.  Suggested by Eric Blake.
24427
24428 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24429
24430         dirname: move m4/dos.m4 functionality into lib/dosname.h
24431
24432         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24433         extracts symbols from it, puts them into config.h; but it's much
24434         easier to use the symbols directly.  filename.h already does this,
24435         but it disagrees with dos.m4 in some respects.  This patch
24436         introduces a different include file dosname.h that packages up
24437         dos.m4, and then later we can work on merging filename.h and
24438         dosname.h.  Applications that need only the easy-to-configure
24439         symbols should consider including dosname.h rather than dirname.h.
24440         * NEWS: Mention incompatible changes.
24441         * m4/dos.m4: Remove.
24442         * lib/dosname.h, modules/dosname: New files.
24443         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24444         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24445         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24446         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24447         Include dosname.h, not dirname.h.
24448         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24449         Include dosname.h, for definitions of symbols like ISSLASH
24450         that used to be in config.h.
24451         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24452         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24453         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24454         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24455         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24456         * modules/rmdir (Files): Likewise.
24457         * modules/stat (Files): Likewise.
24458         * modules/unlink (Files): Likewise.
24459         * modules/dirname-lgpl (Depends-on): Add dosname.
24460         * modules/lstat (Depends-on): Likewise.
24461         * modules/openat (Depends-on): Likewise.
24462         * modules/rmdir (Depends-on): Likewise.
24463         * modules/savewd (Depends-on): Likewise.
24464         * modules/stat (Depends-on): Likewise.
24465         * modules/unlink (Depends-on): Likewise.
24466         * modules/openat (Depends-on): Remove dirname-lgpl.
24467         * modules/savewd (Depends-on): Likewise.
24468         * tests/test-dirname.c: Do not use removed symbols like
24469         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24470         the remaining symbols, e.g., ISSLASH ('\\').
24471
24472 2011-02-25  Eric Blake  <eblake@redhat.com>
24473
24474         strstr: revert patches that introduced bug and pessimization
24475         * lib/str-two-way.h: Add another reference.
24476         (two_way_short_needle, two_way_long_needle): Revert changes from
24477         2011-02-24; they pessimize search speed.
24478         (critical_factorization): Partially revert changes from
24479         2010-06-22; they violate the requirement that the left half of the
24480         needle be smaller than the period of the needle.
24481
24482 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24483
24484         filenamecat: remove unnecessary dependency on dirname-lgpl
24485         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24486         is no direct dependency, just an indirect one via filenamecat-lgpl.
24487
24488         remove: remove unnecessary use of m4/dos.m4
24489         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24490         * modules/remove (FILES): Remove m4/dos.m4.
24491
24492         * lib/openat-proc.c: Don't include dirname.h; not needed.
24493
24494         backupfile: remove unnecessary use of m4/dos.m4
24495         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24496         of its symbols are used by the backupfile code.  backupfile.c does
24497         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24498         for the rare case of programs that want all their backup file
24499         names to live within 8+3 limits, and dos.m4 doesn't address that.
24500         * modules/backupfile (Files): Remove m4/dos.m4.
24501
24502 2011-02-24  Jim Meyering  <meyering@redhat.com>
24503
24504         strstr: fix a bug whereby strstr would mistakenly return NULL
24505         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24506         in period calculation.
24507         (two_way_long_needle): Likewise.
24508         The original problem was reported by Mike Stump in
24509         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24510         Ralf Wildenhues provided the short needle and haystack.
24511         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24512         Add a more involved test to trigger the bug in two_way_long_needle.
24513
24514 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24515
24516         gnulib-tool: remove use of bold display in help screen
24517         * gnulib-tool (func_usage): Do not use bold display anymore in the
24518         help screen.  That was just meant to be a temporary emphasis for a
24519         backward-incompatible change.
24520
24521 2011-02-23  Bruno Haible  <bruno@clisp.org>
24522
24523         Fix misindentation of preprocessor directives.
24524         * lib/argp-namefrob.h: Reindent preprocessor directives.
24525         * lib/getopt_int.h (struct _getopt_data): Likewise.
24526         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24527         * lib/vasnprintf.c (decode_long_double): Likewise.
24528         * tests/test-argmatch.c: Insert blank lines, for clarity.
24529         * tests/test-exclude.c: Likewise.
24530
24531 2011-02-22  Bruno Haible  <bruno@clisp.org>
24532
24533         ioctl: Fix for MacOS X in 64-bit mode.
24534         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24535         value.
24536         Suggested by Eric Blake.
24537         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24538
24539 2011-02-22  Jim Meyering  <meyering@redhat.com>
24540
24541         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24542         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24543         in lib/.
24544
24545 2011-02-22  Eric Blake  <eblake@redhat.com>
24546
24547         maint: avoid any CDPATH issue
24548         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24549
24550         maint: adjust cpp indentation for my modules, as well
24551         * Makefile (sc_cpp_indent_check): Add my name.
24552         * lib/fbufmode.c: Filter through cppi.
24553         * lib/fpurge.c: Likewise.
24554         * lib/freadable.c: Likewise.
24555         * lib/freading.c: Likewise.
24556         * lib/fwritable.c: Likewise.
24557         * lib/fwriting.c: Likewise.
24558         * lib/sigaction.c: Likewise.
24559
24560 2011-02-22  Jim Meyering  <meyering@redhat.com>
24561
24562         maint: adjust cpp indentation to reflect nesting depth
24563         I.e., in a block of code that begins with an unnested "#if",
24564         put one space between the "#" in column 1 and following token.
24565         For example,
24566         -#include <sys/vfs.h>
24567         +# include <sys/vfs.h>
24568         Do this only in .c files that are part of a module I maintain.
24569         * lib/linkat.c: Filter through cppi.
24570         * lib/nanosleep.c: Likewise.
24571         * lib/openat.c: Likewise.
24572         * lib/openat-die.c: Likewise.
24573         * lib/dup3.c: Likewise.
24574         * lib/fchownat.c: Likewise.
24575         * lib/flock.c: Likewise.
24576         * lib/fsync.c: Likewise.
24577         * lib/fts.c: Likewise.
24578         * lib/getpass.c: Likewise.
24579         * lib/gettimeofday.c: Likewise.
24580         * lib/userspec.c: Likewise.
24581         * Makefile (sc_cpp_indent_check): New rule, to check this.
24582
24583 2011-02-22  Bruno Haible  <bruno@clisp.org>
24584
24585         New module 'wctomb'.
24586         * lib/stdlib.in.h (wctomb): New declaration.
24587         * lib/wctomb.c: New file.
24588         * lib/wctomb-impl.h: New file.
24589         * m4/wctomb.m4: New file.
24590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24591         REPLACE_WCTOMB.
24592         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24593         REPLACE_WCTOMB.
24594         * modules/wctomb: New file.
24595         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24596         * doc/posix-functions/wctomb.texi: Mention the new module.
24597         * modules/wctob (Depends-on): Add wctomb.
24598
24599 2011-02-22  Bruno Haible  <bruno@clisp.org>
24600
24601         New module 'mbtowc'.
24602         * lib/stdlib.in.h (mbtowc): New declaration.
24603         * lib/mbtowc.c: New file.
24604         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24605         * m4/mbtowc.m4: New file.
24606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24607         REPLACE_MBTOWC.
24608         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24609         REPLACE_MBTOWC.
24610         * modules/mbtowc: New file.
24611         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24612         * doc/posix-functions/mbtowc.texi: Mention the new module.
24613         * modules/btowc (Depends-on): Add mbtowc.
24614
24615 2011-02-22  Bruno Haible  <bruno@clisp.org>
24616
24617         wcrtomb: Add more tests for native Windows platforms.
24618         * tests/test-wcrtomb-w32-1.sh: New file.
24619         * tests/test-wcrtomb-w32-2.sh: New file.
24620         * tests/test-wcrtomb-w32-3.sh: New file.
24621         * tests/test-wcrtomb-w32-4.sh: New file.
24622         * tests/test-wcrtomb-w32-5.sh: New file.
24623         * tests/test-wcrtomb-w32.c: New file.
24624         * modules/wcrtomb-tests (Files): Add them.
24625         (Makefile.am): Arrange to run these tests.
24626         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24627         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24628
24629 2011-02-20  Bruno Haible  <bruno@clisp.org>
24630
24631         wcrtomb: Enhance test.
24632         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24633
24634 2011-02-20  Bruno Haible  <bruno@clisp.org>
24635
24636         mbrtowc: Tiny optimization.
24637         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24638
24639 2011-02-20  Jim Meyering  <meyering@redhat.com>
24640
24641         test-exclude.c: remove unmatched #endif
24642         * tests/test-exclude.c: Remove stray #endif, left over from
24643         the change of a week ago.
24644
24645 2011-02-19  Jim Meyering  <meyering@redhat.com>
24646
24647         git-version-gen: skip "-dirty" check when appropriate
24648         * build-aux/git-version-gen: Don't run any git commands when the
24649         version string comes from .tarball-version.  Prior to this, we
24650         would run git update-index --refresh even from a just-unpacked
24651         tarball directory, and that could affect a .git/ directory in a
24652         parent of the build directory.  Reported by Mike Frysinger.
24653
24654 2011-02-19  Bruno Haible  <bruno@clisp.org>
24655
24656         unictype/property-byname: Reduce the size of the 'data' segment.
24657         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24658
24659 2011-02-19  Bruno Haible  <bruno@clisp.org>
24660
24661         unictype/scripts: Reduce the size of the 'data' segment.
24662         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24663         '%pic'.
24664         * lib/unictype/scripts_byname.gperf: Regenerated.
24665
24666 2011-02-19  Bruno Haible  <bruno@clisp.org>
24667
24668         stdint: Update documentation.
24669         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24670
24671 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24672
24673         stdint: omit redundant check for wchar.h
24674         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24675         always tests whether wchar.h exists, so remove the now-redundant test.
24676
24677 2011-02-18  Bruno Haible  <bruno@clisp.org>
24678
24679         stdint: Cut dependency to module 'wchar'.
24680         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24681         include the necessary prerequisites.
24682         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24683         * modules/stdint (Depends-on): Remove wchar.
24684         (Makefile.am): Substitute HAVE_WCHAR_H.
24685         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24686
24687 2011-02-18  Eric Blake  <eblake@redhat.com>
24688
24689         longlong: skip, rather than fail, on cross-compilation
24690         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24691         when cross-compiling; regression from 2011-02-16.
24692
24693 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24694
24695         * NEWS: Mention 2011-02-08 change to stdlib.
24696
24697 2011-02-17  Bruno Haible  <bruno@clisp.org>
24698
24699         getloadavg: Add comments about platforms.
24700         * m4/getloadavg.m4: Add comment.
24701         * lib/getloadavg.c: Likewise.
24702
24703 2011-02-17  Bruno Haible  <bruno@clisp.org>
24704
24705         getloadavg: Fix link error on Solaris 2.6.
24706         * modules/getloadavg (Link): New section.
24707         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24708         linking test-getloadavg.
24709         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24710         getloadavg.
24711
24712 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24713
24714         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24715         It was 'int', but this doesn't match the IRIX 6.5 manual.
24716         Suggested by Bruno Haible in
24717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24718
24719 2011-02-17  Bruno Haible  <bruno@clisp.org>
24720
24721         havelib: Fix comments.
24722         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24723         change.
24724
24725 2011-02-17  Bruno Haible  <bruno@clisp.org>
24726
24727         havelib: Update config.rpath.
24728         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24729
24730 2011-02-17  Bruno Haible  <bruno@clisp.org>
24731
24732         getloadavg test: Add some plausibility checks.
24733         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24734         is improbable.
24735
24736 2011-02-16  Eric Blake  <eblake@redhat.com>
24737
24738         maintainer-makefile: make syntax-check a no-op from tarballs
24739         * top/maint.mk (no-vc-detected): New rule.
24740         (local-checks-available): Use it to avoid hanging if someone tries
24741         'make syntax-check' from a tarball.  Also append to any non-syntax
24742         checks already defined in cfg.mk.
24743
24744 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24745
24746         longlong: tune, particularly for common case of c99
24747
24748         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24749         or running anything if c99, or if unsigned long long int does not
24750         work.  In either case, we know the answer without further tests.
24751         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24752         it at most once, and use its results for both long long int and
24753         unsigned long long int.  This is more likely to be efficient in
24754         the common case where the program wants to check for both long
24755         long int and unsigned long long int.
24756         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24757         since the answer is already known.
24758
24759 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24760
24761         getloadavg: set errno
24762         * lib/getloadavg.c: Set errno when returning -1.  If no other
24763         error number looks appropriate, set it to ENOSYS if the getloadavg
24764         looks like it can't possibly ever work, ENOTSUP otherwise.
24765         Suggested by Bruno Haible in
24766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24767
24768         getloadavg: trim unused parts and speed up 'configure'
24769         * NEWS: Document this.
24770         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24771         always compiled if getloadavg is absent.
24772         Move test code to ...
24773         * tests/test-getloadavg.c: New file, containing previous
24774         contents of test from lib/getloadavg.c.  It also contains
24775         suggestions by Bruno Haible in
24776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24777         * modules/getloadavg-tests: New file.
24778         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24779         Do tests in the same order as they're needed for getloadavg.c.
24780         Omit setgid-related tests that generate symbols KMEM_GROUP,
24781         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24782         Do only the tests that are needed to see whether the system has
24783         getloadavg, moving the other tests into ...
24784         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24785         NLIST_NAME_UNION; nobody should be using it.  Do not define
24786         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24787         relevant, as the user of this module shouldn't care how getloadavg
24788         is implemented.
24789
24790         getloadavg: omit unused var
24791         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24792
24793 2011-02-15  Jim Meyering  <meyering@redhat.com>
24794
24795         doc: update users.txt
24796         * users.txt: Update iwhd's URL.
24797
24798 2011-02-13  Bruno Haible  <bruno@clisp.org>
24799
24800         Consistent macro naming for macros that use GCC __attribute__.
24801         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24802         _ATTRIBUTE_NONNULL_.
24803         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24804         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24805         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24806         ATTRIBUTE_DEPRECATED.
24807         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24808         ATTRIBUTE_NORETURN.
24809         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24810         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24811         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24812         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24813         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24814         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24815         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24816         ATTRIBUTE_SENTINEL.
24817         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24818         ATTRIBUTE_RETURN_CHECK.
24819         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24820         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24821         ATTRIBUTE_NORETURN.
24822         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24823         Reported by Paul Eggert.
24824
24825 2011-02-13  Bruno Haible  <bruno@clisp.org>
24826
24827         Don't interfere with a program's definition of __attribute__.
24828         * lib/argp.h (__attribute__): Remove definition.
24829         (_GL_ATTRIBUTE_FORMAT): New macro.
24830         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24831         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24832         (_GL_ATTRIBUTE_FORMAT): New macro.
24833         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24834         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24835         GCC 3 or newer.
24836         * lib/error.h (__attribute__): Remove definition.
24837         (_GL_ATTRIBUTE_FORMAT): New macro.
24838         (error, error_at_line): Use it.
24839         * lib/hash.h (__attribute__): Remove definition.
24840         (ATTRIBUTE_WUR): Update definition. Define always.
24841         * lib/openat.h (__attribute__): Remove definition.
24842         (ATTRIBUTE_NORETURN): Update definition. Define always.
24843         * lib/sigpipe-die.h (__attribute__): Remove definition.
24844         (ATTRIBUTE_NORETURN): Update definition. Define always.
24845         * lib/vasnprintf.h (__attribute__): Remove definition.
24846         (_GL_ATTRIBUTE_FORMAT): New macro.
24847         (asnprintf, vasnprintf): Use it.
24848         * lib/xalloc.h (__attribute__): Remove definition.
24849         (ATTRIBUTE_NORETURN): Update definition. Define always.
24850         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24851         * lib/xmemdup0.h (__attribute__): Remove definition.
24852         (ATTRIBUTE_NORETURN): Update definition. Define always.
24853         * lib/xprintf.h (__attribute__): Remove definition.
24854         (_GL_ATTRIBUTE_FORMAT): New macro.
24855         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24856         * lib/xstrtol.h (__attribute__): Remove definition.
24857         (ATTRIBUTE_NORETURN): Update definition. Define always.
24858         * lib/xvasprintf.h (__attribute__): Remove definition.
24859         (_GL_ATTRIBUTE_FORMAT): New macro.
24860         (xasprintf, xvasprintf): Use it.
24861         * tests/test-argmatch.c (__attribute__): Remove definition.
24862         (ATTRIBUTE_NORETURN): Update definition. Define always.
24863         * tests/test-exclude.c (__attribute__): Remove definition.
24864         (ATTRIBUTE_NORETURN): Update definition. Define always.
24865         Reported by Paul Eggert.
24866
24867 2011-02-13  Bruno Haible  <bruno@clisp.org>
24868
24869         mbrtowc: Add more tests for native Windows platforms.
24870         * tests/test-mbrtowc-w32-1.sh: New file.
24871         * tests/test-mbrtowc-w32-2.sh: New file.
24872         * tests/test-mbrtowc-w32-3.sh: New file.
24873         * tests/test-mbrtowc-w32-4.sh: New file.
24874         * tests/test-mbrtowc-w32-5.sh: New file.
24875         * tests/test-mbrtowc-w32.c: New file.
24876         * modules/mbrtowc-tests (Files): Add them.
24877         (Makefile.am): Arrange to run these tests.
24878         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24879         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24880
24881 2011-02-13  Bruno Haible  <bruno@clisp.org>
24882
24883         mbrtowc: Work around native Windows bug.
24884         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24885         guess when no suitable locale for testing was found.
24886         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24887
24888 2011-02-13  Bruno Haible  <bruno@clisp.org>
24889
24890         mbsinit: Work around mingw bug.
24891         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24892         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24893         Windows.
24894         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24895
24896 2011-02-13  Bruno Haible  <bruno@clisp.org>
24897
24898         mbsinit: Don't crash for a NULL argument.
24899         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24900         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24901
24902 2011-02-13  Bruno Haible  <bruno@clisp.org>
24903
24904         Don't interfere with a program's definition of __attribute__.
24905         * lib/stdio.in.h (__attribute__): Remove definition.
24906         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24907         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24908         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24909         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24910         * lib/string.in.h (__attribute__): Remove definition.
24911         Reported by Paul Eggert.
24912
24913 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24914
24915         stdlib: don't get in the way of non-GCC __attribute__
24916         See thread starting at
24917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24918         Revert previous stdlib change, installing the following instead:
24919         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24920         to get in the way of a non-GCC compiler that supports __attribute__.
24921         (_GL_ATTRIBUTE_RETURN): New macro.
24922         (_Exit): Use it instead of __attribute__.
24923
24924 2011-02-12  Bruno Haible  <bruno@clisp.org>
24925
24926         quotearg test: Avoid test failure on mingw.
24927         * tests/test-quotearg.sh: Convert the locale identifier from native
24928         Windows syntax to Unix syntax.
24929
24930 2011-02-12  Bruno Haible  <bruno@clisp.org>
24931
24932         setlocale: Prefer gnulib's override over libintl's override.
24933         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24934         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24935         GNULIB_defined_setlocale is set.
24936
24937 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24938
24939         stdlib: support non-GCC __attribute__
24940
24941         Fix a serious and tricky problem encountered when attempting to
24942         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24943         5.5, but it crashed due to memory corruption on Solaris 10 with
24944         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24945         bits that are otherwise zero.  This tagging is optional inside
24946         Emacs but is preferred and is used when __attribute__ ((__aligned
24947         (8))) works, as it does with both recent-enough GCC and with Sun C
24948         5.11.  However, Sun C 5.11 is not GCC and does not #define
24949         __GNUC__ and __GNUC_MINOR__.
24950
24951         When I added the getloadavg module to Emacs, it brought in
24952         stdlib.in.h, which contained this fragment:
24953
24954            #ifndef __attribute__
24955            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24956            #  define __attribute__(Spec)   /* empty */
24957            # endif
24958            #endif
24959
24960         When files that include <stdlib.h> were compiled with Sun C 5.11,
24961         the above code disabled __attribute__ ((__aligned (8))), which
24962         caused variables to not be properly aligned, which eventually led
24963         to the pointer corruption mentioned above.  (This was a bit hard
24964         to diagnose, unfortunately.)
24965
24966         Several "#define __attribute__(X) /* empty */" code snippets need
24967         to be eradicated from Gnulib to work with non-GCC compilers that
24968         support __attribute__.  The Autoconf way to do this is to test for
24969         each kind of attribute that we want support for, and selectively
24970         enable that in source code.
24971
24972         Fix this problem just for stdlib.h, by adding a test for the
24973         __noreturn__ attribute, and change stdlib.in.h to use that test
24974         when needed.  This technique can be easily generalized to the
24975         other *.in.h files and attributes, and a similar technique can be
24976         used for *.h and *.c files.  This patch is enough to solve the
24977         problem for Emacs + getloadavg, and I thought I'd publish it for
24978         feedback before undertaking further, similar fixes in other
24979         modules.
24980
24981         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24982         because it's not needed for stdlib.h.  It merely substitutes the
24983         value directly into stdlib.h.  We may well need to #define it, or
24984         similar symbols, for other modules, but it's nice to also have an
24985         option to not #define it for applications like Emacs that do not
24986         need it.
24987
24988         * lib/stdlib.in.h (__attribute__): Do not #define.
24989         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24990         be defined only if the _Exit module is also used.
24991         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24993         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24994         platforms.
24995         * modules/_Exit (Files): Add m4/attribute.m4.
24996         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24997         * m4/attribute.m4: New file.
24998
24999 2011-02-12  Bruno Haible  <bruno@clisp.org>
25000
25001         wcsrtombs: Work around bug on native Windows.
25002         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25003         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25004         instead of len.
25005         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25006
25007 2011-02-12  Bruno Haible  <bruno@clisp.org>
25008
25009         mbsrtowcs: Work around bug on native Windows.
25010         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25011         against mingw bug.
25012         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25013
25014 2011-02-12  Bruno Haible  <bruno@clisp.org>
25015
25016         Avoid setlocale bugs in tests.
25017         * modules/btowc (Dependencies): Add setlocale.
25018         * modules/c-strcase (Dependencies): Likewise.
25019         * modules/mbmemcasecmp (Dependencies): Likewise.
25020         * modules/mbmemcasecoll (Dependencies): Likewise.
25021         * modules/mbrtowc (Dependencies): Likewise.
25022         * modules/mbscasecmp (Dependencies): Likewise.
25023         * modules/mbscasestr (Dependencies): Likewise.
25024         * modules/mbschr (Dependencies): Likewise.
25025         * modules/mbscspn (Dependencies): Likewise.
25026         * modules/mbsinit (Dependencies): Likewise.
25027         * modules/mbsncasecmp (Dependencies): Likewise.
25028         * modules/mbsnrtowcs (Dependencies): Likewise.
25029         * modules/mbspbrk (Dependencies): Likewise.
25030         * modules/mbspcasecmp (Dependencies): Likewise.
25031         * modules/mbsrchr (Dependencies): Likewise.
25032         * modules/mbsrtowcs (Dependencies): Likewise.
25033         * modules/mbsspn (Dependencies): Likewise.
25034         * modules/mbsstr (Dependencies): Likewise.
25035         * modules/nl_langinfo (Dependencies): Likewise.
25036         * modules/quotearg (Dependencies): Likewise.
25037         * modules/unicase/locale-language (Dependencies): Likewise.
25038         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25039         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25040         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25041         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25042         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25043         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25044         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25045         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25046         * modules/vasnprintf-posix (Dependencies): Likewise.
25047         * modules/wcrtomb (Dependencies): Likewise.
25048         * modules/wcsnrtombs (Dependencies): Likewise.
25049         * modules/wcsrtombs (Dependencies): Likewise.
25050
25051 2011-02-12  Bruno Haible  <bruno@clisp.org>
25052
25053         setlocale: Workaround native Windows bug.
25054         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25055         succeeds but sets LC_CTYPE to "C", report a failure.
25056         * tests/test-setlocale2.sh: New file.
25057         * tests/test-setlocale2.c: New file.
25058         * modules/setlocale-tests (Files): Add the new files.
25059         (Makefile.am): Enable test-setlocale2.sh test.
25060         * doc/posix-functions/setlocale.texi: Mention workaround.
25061
25062 2011-02-11  Bruno Haible  <bruno@clisp.org>
25063
25064         Tests for module 'setlocale'.
25065         * modules/setlocale-tests: New file.
25066         * tests/test-setlocale1.sh: New file.
25067         * tests/test-setlocale1.c: New file.
25068
25069         New module 'setlocale'.
25070         * lib/locale.in.h (setlocale): New declaration.
25071         * lib/setlocale.c: New file, based on
25072         gettext/gettext-runtime/intl/setlocale.c.
25073         * m4/setlocale.m4: New file.
25074         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25075         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25076         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25077         REPLACE_SETLOCALE.
25078         * modules/setlocale: New file.
25079         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25080         * doc/posix-functions/setlocale.texi: Mention the new module.
25081
25082 2011-02-11  Bruno Haible  <bruno@clisp.org>
25083
25084         Prepare for locale dependent tests on mingw.
25085         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25086         because it has the wrong locale encoding.
25087         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25088         French_France.1252 instead of "fr".
25089         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25090         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25091         because it has the wrong locale encoding.
25092         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25093         native Windows, try Turkish_Turkey.65001.
25094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25095         Chinese_China.54936.
25096
25097         Prepare for locale dependent tests on mingw.
25098         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25099         differently.
25100         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25101         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25102         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25104
25105 2011-02-11  Eric Blake  <eblake@redhat.com>
25106
25107         strptime: avoid compiler warnings
25108         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25109         compiler warnings about dead code.
25110         Reported by Daniel P. Berrange.
25111
25112 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25113
25114         doc: update users.txt
25115         * users.txt: Add rcs.
25116
25117 2011-02-10  John W. Eaton  <jwe@gnu.org>
25118
25119         doc: update users.txt
25120         * users.txt: Add octave.
25121
25122 2011-02-10  Jim Meyering  <meyering@redhat.com>
25123
25124         doc: update users.txt
25125         * users.txt: Add iwhd.
25126
25127 2011-02-09  Bruno Haible  <bruno@clisp.org>
25128
25129         gnulib-tool: Make copyright notice adjustment more robust.
25130         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25131         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25132         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25133         License".
25134         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25135
25136 2011-02-06  Bruno Haible  <bruno@clisp.org>
25137
25138         New module 'towctrans'.
25139         * modules/towctrans: New file.
25140         * lib/wctype.in.h (towctrans): New declaration.
25141         * lib/towctrans.c: New file.
25142         * lib/towctrans-impl.h: New file.
25143         * m4/towctrans.m4: New file.
25144         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25145         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25146         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25147         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25148         * doc/posix-functions/towctrans.texi: Mention the new module.
25149
25150 2011-02-06  Bruno Haible  <bruno@clisp.org>
25151
25152         New module 'wctrans'.
25153         * modules/wctrans: New file.
25154         * lib/wctype.in.h (wctrans): New declaration.
25155         * lib/wctrans.c: New file.
25156         * lib/wctrans-impl.h: New file.
25157         * m4/wctrans.m4: New file.
25158         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25159         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25160         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25161         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25162         * doc/posix-functions/wctrans.texi: Mention the new module.
25163
25164 2011-02-06  Bruno Haible  <bruno@clisp.org>
25165
25166         New module 'iswctype'.
25167         * modules/iswctype: New file.
25168         * lib/wctype.in.h (iswctype): New declaration.
25169         * lib/iswctype.c: New file.
25170         * lib/iswctype-impl.h: New file.
25171         * m4/iswctype.m4: New file.
25172         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25173         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25174         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25175         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25176         * doc/posix-functions/iswctype.texi: Mention the new module and the
25177         HP-UX 11.00 problem.
25178
25179 2011-02-06  Bruno Haible  <bruno@clisp.org>
25180
25181         New module 'wctype'.
25182         * modules/wctype: Change to represent the wctype() substitute.
25183         * lib/wctype.in.h (wctype): New declaration.
25184         * lib/wctype.c: New file.
25185         * lib/wctype-impl.h: New file.
25186         * m4/wctype.m4: New file.
25187         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25188         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25189         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25190         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25191         * doc/posix-functions/wctype.texi: Mention the new module and the
25192         HP-UX 11.00 problem.
25193
25194 2011-02-06  Bruno Haible  <bruno@clisp.org>
25195
25196         wctype-h: Ensure wctype_t and wctrans_t are defined.
25197         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25198         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25199         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25200         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25201         HAVE_WCTRANS_T.
25202         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25203
25204 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25205
25206         flock: fix license typo
25207
25208         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25209         omitted.
25210
25211 2011-02-08  Bruno Haible  <bruno@clisp.org>
25212
25213         Split large sed scripts, for HP-UX sed.
25214         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25215         to avoid HP-UX limit of 99 commands, in the near future.
25216         * modules/stdlib (Makefile.am): Likewise.
25217         * modules/unistd (Makefile.am): Likewise.
25218         * modules/wchar (Makefile.am): Likewise.
25219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25220         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25222
25223 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25224             Bruno Haible  <bruno@clisp.org>
25225
25226         stdlib: improve random_r modularization
25227         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25228         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25229         you also need the random_r module to get this material right.
25230         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25231         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25232         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25233
25234 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25235
25236         stdlib: don't depend on stdint
25237         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25238         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25239         be independent of whether stdint.h is needed.
25240         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25241         here, instead of ...
25242         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25243         struct random_data should be using the random_r module, not just
25244         the stdlib module (which wouldn't make sense: what package needs
25245         just struct random_data without also needing random_r?).
25246         * modules/stdlib (Depends-on): Remove stdint.
25247
25248         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25249         See the thread rooted at
25250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25251         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25252         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25253         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25254         __VMS)); previously it was always included (via fcntl--.h).
25255         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25256         hand; this is good enough for load averages.  Also, do not use
25257         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25258         flags directly if available and don't bother otherwise.  (Packages
25259         that need the extra reliability should use the modules that define
25260         these flags on older platforms that lack them.)
25261         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25262         fcntl-safer.
25263
25264 2011-02-08  Jim Meyering  <meyering@redhat.com>
25265
25266         di-set.h, ino-map.h: add multiple-inclusion guard
25267         Technically, the guard is required only for ino-map.h, due to its
25268         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25269         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25270         * lib/ino-map.h: Likewise.
25271
25272 2011-02-06  Bruno Haible  <bruno@clisp.org>
25273
25274         iswblank: Ensure declaration on glibc systems.
25275         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25276         * modules/iswblank (Dependencies): Add 'extensions'.
25277         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25278
25279 2011-02-06  Bruno Haible  <bruno@clisp.org>
25280
25281         New module 'iswblank'.
25282         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25283         * modules/iswblank: New file.
25284         * modules/wctype-h (Files): Remove lib/iswblank.c.
25285         (Makefile.am): Substitute GNULIB_ISWBLANK.
25286         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25287         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25288         (gl_WCTYPE_H_DEFAULTS): New macro.
25289         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25290         * modules/iswblank-tests: New file.
25291         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25292         * tests/test-wctype-h.c (main): Remove iswblank tests.
25293         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25294         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25295         of 'wctype-h'.
25296         * NEWS: Mention the change.
25297         * modules/mbchar (Depends-on): Add iswblank.
25298
25299 2011-02-08  Bruno Haible  <bruno@clisp.org>
25300
25301         di-set tests: Refactor.
25302         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25303         unnecessary includes.
25304         (ASSERT): Remove macro.
25305         (main): Make C90 compliant by avoiding variable declaration after
25306         statement.
25307         * modules/di-set-tests (Files): Add tests/macros.h.
25308
25309 2011-02-08  Bruno Haible  <bruno@clisp.org>
25310
25311         ino-map tests: Refactor.
25312         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25313         unnecessary includes.
25314         (ASSERT): Remove macro.
25315         (main): Make C90 compliant by avoiding variable declaration after
25316         statement.
25317         * modules/ino-map-tests (Files): Add tests/macros.h.
25318
25319 2011-02-08  Jim Meyering  <meyering@redhat.com>
25320
25321         di-set: add "const" to a cast
25322         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25323         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25324
25325 2011-02-06  Bruno Haible  <bruno@clisp.org>
25326
25327         Rename module 'wctype' to 'wctype-h'.
25328         * modules/wctype-h: Renamed from modules/wctype.
25329         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25330         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25331         (Files, Depends-on, Makefile.am): Update.
25332         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25333         (Files, Makefile.am): Update.
25334         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25335         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25336         * doc/posix-headers/wctype.texi: Update.
25337         * doc/posix-functions/iswalnum.texi: Update.
25338         * doc/posix-functions/iswalpha.texi: Update.
25339         * doc/posix-functions/iswblank.texi: Update.
25340         * doc/posix-functions/iswcntrl.texi: Update.
25341         * doc/posix-functions/iswdigit.texi: Update.
25342         * doc/posix-functions/iswgraph.texi: Update.
25343         * doc/posix-functions/iswlower.texi: Update.
25344         * doc/posix-functions/iswprint.texi: Update.
25345         * doc/posix-functions/iswpunct.texi: Update.
25346         * doc/posix-functions/iswspace.texi: Update.
25347         * doc/posix-functions/iswupper.texi: Update.
25348         * doc/posix-functions/iswxdigit.texi: Update.
25349         * doc/posix-functions/towlower.texi: Update.
25350         * doc/posix-functions/towupper.texi: Update.
25351         * NEWS: Mention the change.
25352         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25353         * modules/mbchar (Dependencies): Likewise.
25354         * modules/mbswidth (Dependencies): Likewise.
25355         * modules/quotearg (Dependencies): Likewise.
25356         * modules/regex (Dependencies): Likewise.
25357         * modules/wcscasecmp (Dependencies): Likewise.
25358         * modules/wcsncasecmp (Dependencies): Likewise.
25359         * modules/wcwidth (Dependencies): Likewise.
25360
25361 2011-02-06  Bruno Haible  <bruno@clisp.org>
25362
25363         New module 'wcswidth'.
25364         * modules/wcswidth: New file.
25365         * lib/wchar.in.h (wcswidth): New declaration.
25366         * lib/wcswidth.c: New file.
25367         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25368         * m4/wcswidth.m4: New file.
25369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25371         REPLACE_WCSWIDTH.
25372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25373         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25374         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25375         * doc/posix-functions/wcswidth.texi: Mention the new module.
25376
25377 2011-02-06  Bruno Haible  <bruno@clisp.org>
25378
25379         New module 'wcstok'.
25380         * modules/wcstok: New file.
25381         * lib/wchar.in.h (wcstok): New declaration.
25382         * lib/wcstok.c: New file.
25383         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25384         * m4/wcstok.m4: New file.
25385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25388         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25389         * doc/posix-functions/wcstok.texi: Mention the new module.
25390
25391 2011-02-06  Bruno Haible  <bruno@clisp.org>
25392
25393         New module 'wcsstr'.
25394         * modules/wcsstr: New file.
25395         * lib/wchar.in.h (wcsstr): New declaration.
25396         * lib/wcsstr.c: New file.
25397         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25398         * m4/wcsstr.m4: New file.
25399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25402         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25403         * doc/posix-functions/wcsstr.texi: Mention the new module.
25404
25405 2011-02-06  Bruno Haible  <bruno@clisp.org>
25406
25407         New module 'wcspbrk'.
25408         * modules/wcspbrk: New file.
25409         * lib/wchar.in.h (wcspbrk): New declaration.
25410         * lib/wcspbrk.c: New file.
25411         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25412         * m4/wcspbrk.m4: New file.
25413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25416         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25417         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25418
25419 2011-02-06  Bruno Haible  <bruno@clisp.org>
25420
25421         New module 'wcsspn'.
25422         * modules/wcsspn: New file.
25423         * lib/wchar.in.h (wcsspn): New declaration.
25424         * lib/wcsspn.c: New file.
25425         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25426         * m4/wcsspn.m4: New file.
25427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25430         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25431         * doc/posix-functions/wcsspn.texi: Mention the new module.
25432
25433 2011-02-06  Bruno Haible  <bruno@clisp.org>
25434
25435         New module 'wcscspn'.
25436         * modules/wcscspn: New file.
25437         * lib/wchar.in.h (wcscspn): New declaration.
25438         * lib/wcscspn.c: New file.
25439         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25440         * m4/wcscspn.m4: New file.
25441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25444         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25445         * doc/posix-functions/wcscspn.texi: Mention the new module.
25446
25447 2011-02-06  Bruno Haible  <bruno@clisp.org>
25448
25449         New module 'wcsrchr'.
25450         * modules/wcsrchr: New file.
25451         * lib/wchar.in.h (wcsrchr): New declaration.
25452         * lib/wcsrchr.c: New file.
25453         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25454         * m4/wcsrchr.m4: New file.
25455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25458         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25459         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25460
25461 2011-02-06  Bruno Haible  <bruno@clisp.org>
25462
25463         New module 'wcschr'.
25464         * modules/wcschr: New file.
25465         * lib/wchar.in.h (wcschr): New declaration.
25466         * lib/wcschr.c: New file.
25467         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25468         * m4/wcschr.m4: New file.
25469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25472         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25473         * doc/posix-functions/wcschr.texi: Mention the new module.
25474
25475 2011-02-06  Bruno Haible  <bruno@clisp.org>
25476
25477         New module 'wcsdup'.
25478         * modules/wcsdup: New file.
25479         * lib/wchar.in.h (wcsdup): New declaration.
25480         * lib/wcsdup.c: New file.
25481         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25482         * m4/wcsdup.m4: New file.
25483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25486         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25487         * doc/posix-functions/wcsdup.texi: Mention the new module.
25488
25489 2011-02-06  Bruno Haible  <bruno@clisp.org>
25490
25491         New module 'wcsxfrm'.
25492         * modules/wcsxfrm: New file.
25493         * lib/wchar.in.h (wcsxfrm): New declaration.
25494         * lib/wcsxfrm.c: New file.
25495         * lib/wcsxfrm-impl.h: New file.
25496         * m4/wcsxfrm.m4: New file.
25497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25500         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25501         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25502
25503 2011-02-06  Bruno Haible  <bruno@clisp.org>
25504
25505         New module 'wcscoll'.
25506         * modules/wcscoll: New file.
25507         * lib/wchar.in.h (wcscoll): New declaration.
25508         * lib/wcscoll.c: New file.
25509         * lib/wcscoll-impl.h: New file.
25510         * m4/wcscoll.m4: New file.
25511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25514         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25515         * doc/posix-functions/wcscoll.texi: Mention the new module.
25516
25517 2011-02-06  Bruno Haible  <bruno@clisp.org>
25518
25519         New module 'wcsncasecmp'.
25520         * modules/wcsncasecmp: New file.
25521         * lib/wchar.in.h (wcsncasecmp): New declaration.
25522         * lib/wcsncasecmp.c: New file.
25523         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25524         * m4/wcsncasecmp.m4: New file.
25525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25528         HAVE_WCSNCASECMP.
25529         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25530         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25531
25532 2011-02-06  Bruno Haible  <bruno@clisp.org>
25533
25534         New module 'wcscasecmp'.
25535         * modules/wcscasecmp: New file.
25536         * lib/wchar.in.h (wcscasecmp): New declaration.
25537         * lib/wcscasecmp.c: New file.
25538         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25539         * m4/wcscasecmp.m4: New file.
25540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25543         HAVE_WCSCASECMP.
25544         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25545         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25546
25547 2011-02-05  Bruno Haible  <bruno@clisp.org>
25548
25549         New module 'wcsncmp'.
25550         * modules/wcsncmp: New file.
25551         * lib/wchar.in.h (wcsncmp): New declaration.
25552         * lib/wcsncmp.c: New file.
25553         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25554         * m4/wcsncmp.m4: New file.
25555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25558         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25559         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25560
25561 2011-02-05  Bruno Haible  <bruno@clisp.org>
25562
25563         New module 'wcscmp'.
25564         * modules/wcscmp: New file.
25565         * lib/wchar.in.h (wcscmp): New declaration.
25566         * lib/wcscmp.c: New file.
25567         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25568         * m4/wcscmp.m4: New file.
25569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25572         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25573         * doc/posix-functions/wcscmp.texi: Mention the new module.
25574
25575 2011-02-05  Bruno Haible  <bruno@clisp.org>
25576
25577         New module 'wcsncat'.
25578         * modules/wcsncat: New file.
25579         * lib/wchar.in.h (wcsncat): New declaration.
25580         * lib/wcsncat.c: New file.
25581         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25582         * m4/wcsncat.m4: New file.
25583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25586         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25587         * doc/posix-functions/wcsncat.texi: Mention the new module.
25588
25589 2011-02-05  Bruno Haible  <bruno@clisp.org>
25590
25591         New module 'wcscat'.
25592         * modules/wcscat: New file.
25593         * lib/wchar.in.h (wcscat): New declaration.
25594         * lib/wcscat.c: New file.
25595         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25596         * m4/wcscat.m4: New file.
25597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25600         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25601         * doc/posix-functions/wcscat.texi: Mention the new module.
25602
25603 2011-02-05  Bruno Haible  <bruno@clisp.org>
25604
25605         New module 'wcpncpy'.
25606         * modules/wcpncpy: New file.
25607         * lib/wchar.in.h (wcpncpy): New declaration.
25608         * lib/wcpncpy.c: New file.
25609         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25610         * m4/wcpncpy.m4: New file.
25611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25613         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25614         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25615         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25616
25617 2011-02-05  Bruno Haible  <bruno@clisp.org>
25618
25619         New module 'wcsncpy'.
25620         * modules/wcsncpy: New file.
25621         * lib/wchar.in.h (wcsncpy): New declaration.
25622         * lib/wcsncpy.c: New file.
25623         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25624         * m4/wcsncpy.m4: New file.
25625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25628         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25629         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25630
25631 2011-02-05  Bruno Haible  <bruno@clisp.org>
25632
25633         New module 'wcpcpy'.
25634         * modules/wcpcpy: New file.
25635         * lib/wchar.in.h (wcpcpy): New declaration.
25636         * lib/wcpcpy.c: New file.
25637         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25638         * m4/wcpcpy.m4: New file.
25639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25641         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25642         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25643         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25644
25645 2011-02-05  Bruno Haible  <bruno@clisp.org>
25646
25647         New module 'wcscpy'.
25648         * modules/wcscpy: New file.
25649         * lib/wchar.in.h (wcscpy): New declaration.
25650         * lib/wcscpy.c: New file.
25651         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25652         * m4/wcscpy.m4: New file.
25653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25656         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25657         * doc/posix-functions/wcscpy.texi: Mention the new module.
25658
25659 2011-02-05  Bruno Haible  <bruno@clisp.org>
25660
25661         New module 'wcsnlen'.
25662         * modules/wcsnlen: New file.
25663         * lib/wchar.in.h (wcsnlen): New declaration.
25664         * lib/wcsnlen.c: New file.
25665         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25666         * m4/wcsnlen.m4: New file.
25667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25670         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25671         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25672
25673 2011-02-05  Bruno Haible  <bruno@clisp.org>
25674
25675         New module 'wcslen'.
25676         * modules/wcslen: New file.
25677         * lib/wchar.in.h (wcslen): New declaration.
25678         * lib/wcslen.c: New file.
25679         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25680         * m4/wcslen.m4: New file.
25681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25684         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25685         * doc/posix-functions/wcslen.texi: Mention the new module.
25686
25687 2011-02-05  Bruno Haible  <bruno@clisp.org>
25688
25689         New module 'wmemset'.
25690         * modules/wmemset: New file.
25691         * lib/wchar.in.h (wmemset): New declaration.
25692         * lib/wmemset.c: New file.
25693         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25694         * m4/wmemset.m4: New file.
25695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25697         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25698         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25699         * doc/posix-functions/wmemset.texi: Mention the new module.
25700
25701 2011-02-05  Bruno Haible  <bruno@clisp.org>
25702
25703         New module 'wmemmove'.
25704         * modules/wmemmove: New file.
25705         * lib/wchar.in.h (wmemmove): New declaration.
25706         * lib/wmemmove.c: New file.
25707         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25708         * m4/wmemmove.m4: New file.
25709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25711         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25712         HAVE_WMEMMOVE.
25713         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25714         * doc/posix-functions/wmemmove.texi: Mention the new module.
25715
25716 2011-02-05  Bruno Haible  <bruno@clisp.org>
25717
25718         New module 'wmemcpy'.
25719         * modules/wmemcpy: New file.
25720         * lib/wchar.in.h (wmemcpy): New declaration.
25721         * lib/wmemcpy.c: New file.
25722         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25723         * m4/wmemcpy.m4: New file.
25724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25726         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25727         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25728         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25729
25730 2011-02-05  Bruno Haible  <bruno@clisp.org>
25731
25732         New module 'wmemcmp'.
25733         * modules/wmemcmp: New file.
25734         * lib/wchar.in.h (wmemcmp): New declaration.
25735         * lib/wmemcmp.c: New file.
25736         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25737         * m4/wmemcmp.m4: New file.
25738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25740         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25741         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25742         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25743
25744 2011-02-07  Jim Meyering  <meyering@redhat.com>
25745
25746         di-set, ino-map: new modules, from coreutils
25747         * lib/di-set.c: New file.
25748         * lib/di-set.h: Likewise.
25749         * lib/ino-map.c: Likewise.
25750         * lib/ino-map.h: Likewise.
25751         * modules/di-set: Likewise.
25752         * modules/di-set-tests: Likewise.
25753         * modules/ino-map: Likewise.
25754         * modules/ino-map-tests: Likewise.
25755         * tests/test-di-set.c: Likewise.
25756         * tests/test-ino-map.c: Likewise.
25757
25758 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25759
25760         getloadavg: merge minor changes from Emacs
25761
25762         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25763         (getloadavg): Use memset, not bzero.
25764
25765         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25766         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25767         clash (bug#86).
25768
25769 2010-11-14  Bruno Haible  <bruno@clisp.org>
25770
25771         Allow multiple gnulib generated replacements to coexist.
25772         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25773         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25774         * lib/langinfo.in.h (nl_item): Likewise.
25775         * lib/math.in.h (_NaN, NAN): Likewise.
25776         * lib/netdb.in.h (struct addrinfo): Likewise.
25777         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25778         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25779         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25780         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25781         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25782         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25783         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25784         pthread_mutexattr_init, pthread_mutexattr_settype,
25785         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25786         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25787         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25788         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25789         * lib/sched.in.h (struct sched_param): Likewise.
25790         * lib/se-selinux.in.h (security_class_t, security_context_t,
25791         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25792         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25793         lsetfilecon, fsetfilecon, security_check_context,
25794         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25795         Likewise.
25796         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25797         Likewise.
25798         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25799         _gl_function_taking_int_returning_void_t, union sigval,
25800         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25801         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25802         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25803         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25804         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25805         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25806         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25807         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25808         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25809         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25810         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25811         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25812         socklen_t, rpl_fd_isset): Likewise.
25813         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25814         * lib/sys_time.in.h (struct timeval): Likewise.
25815         * lib/sys_times.in.h (struct tms): Likewise.
25816         * lib/sys_utsname.in.h (struct utsname):
25817         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25818         * lib/unistd.in.h (getpagesize): Likewise.
25819         * lib/wchar.in.h (mbstate_t): Likewise.
25820         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25821         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25822         towlower, towupper): Likewise.
25823         Reported by Sam Steingold <sds@gnu.org>.
25824
25825 2011-02-05  Eric Blake  <eblake@redhat.com>
25826
25827         unsetenv: work around Haiku issues
25828         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25829         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25830
25831 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25832
25833         libposix: avoid calling error() within libposix
25834         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25835         is defined.
25836
25837 2011-02-05  Eric Blake  <eblake@redhat.com>
25838
25839         strerror_r-posix: port to cygwin
25840         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25841         implementation.
25842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25843         * tests/test-strerror_r.c (main): Fix test.
25844         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25845         issue.
25846
25847 2011-02-05  Bruno Haible  <bruno@clisp.org>
25848
25849         New module 'wmemchr'.
25850         * modules/wmemchr: New file.
25851         * lib/wchar.in.h (wmemchr): New declaration.
25852         * lib/wmemchr.c: New file.
25853         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25854         * m4/wmemchr.m4: New file.
25855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25857         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25858         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25859         * doc/posix-functions/wmemchr.texi: Mention the new module.
25860
25861 2011-02-04  Eric Blake  <eblake@redhat.com>
25862
25863         fdopendir: detect FreeBSD bug
25864         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25865         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25866
25867 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25868
25869         stdbool: do not define HAVE_STDBOOL_H
25870         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25871         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25872         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25873         imported from the latest Autoconf git.  It was motivated by Emacs,
25874         which uses gnulib but does not need HAVE_STDBOOL_H.
25875
25876 2011-02-04  Bruno Haible  <bruno@clisp.org>
25877
25878         wcsnrtombs: Prepare for new module wwcsnrtombs.
25879         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25880         * lib/wcsnrtombs.c: Include it.
25881         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25882
25883         wcsrtombs: Prepare for new module wwcsrtombs.
25884         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25885         * lib/wcsrtombs.c: Include it.
25886         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25887
25888         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25889         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25890         * lib/mbsnrtowcs.c: Include it.
25891         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25892
25893         mbsrtowcs: Prepare for new module mbsrtowwcs.
25894         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25895         * lib/mbsrtowcs.c: Include it.
25896         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25897
25898 2011-02-04  Bruno Haible  <bruno@clisp.org>
25899
25900         vasnprintf: Reduce use of malloc for small format strings.
25901         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25902         (arguments): Add room for the first 7 arguments.
25903         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25904         (char_directives, u8_directives, u16_directives, u32_directives): Add
25905         room for the first 7 directives.
25906         * lib/printf-parse.c: Include <string.h>.
25907         (PRINTF_PARSE): Change memory handling code so that it uses the first
25908         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25909         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25910         Reported by Pádraig Brady <P@draigbrady.com>.
25911
25912 2011-01-31  Eric Blake  <eblake@redhat.com>
25913
25914         dup2: work around Haiku bug
25915         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25916         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25917         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25918         * tests/test-dup2.c (main): Enhance test.
25919
25920 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25921
25922         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25923         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25924         declared by eglibc 2.11.2.
25925         * lib/stdio.in.h: Likewise.
25926
25927 2011-01-31  Eric Blake  <eblake@redhat.com>
25928
25929         ignore-value: add missing test dependency
25930         * tests/test-ignore-value.c: Revert previous change; stdio.h
25931         provides off_t.
25932         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25933
25934 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25935
25936         mktime: clarify long_int width checking
25937         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25938         the top level, to make it clearer that the assumption about
25939         long_int width is being checked.  See
25940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25941
25942 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25943
25944         ignore-value: Fix self-test.
25945         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25946
25947 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25948
25949         TYPE_MAXIMUM: avoid theoretically undefined behavior
25950         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25951         negative number, which the C Standard says has undefined behavior.
25952         In practice this is not a problem, but might as well do it by the book.
25953         Reported by Rich Felker and Eric Blake; see
25954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25955         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25956         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25958         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25959         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25960         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25961
25962         mktime: #undef mktime before #defining it
25963         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25964
25965         mktime: systematically normalize tm_isdst comparisons
25966         * lib/mktime.c (isdst_differ): New function.
25967         (__mktime_internal): Use it systematically for all isdst comparisons.
25968         This completes the fix for libc BZ #6723, and removes the need for
25969         normalizing tm_isdst.  See
25970         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25971         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25972
25973         mktime: fix some integer overflow issues and sidestep the rest
25974
25975         This was prompted by a bug report by Benjamin Lindner for MinGW
25976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25977         His bug is due to signed integer overflow (0 - INT_MIN), and I
25978         I scanned through mktime.c looking for other integer overflow
25979         problems, fixing all the bugs I found.
25980
25981         Although the C Standard says the resulting code is still not safe
25982         in the presence of integer overflow, in practice it should be good
25983         enough for all real-world two's-complement implementations, except
25984         for debugging environments that deliberately trap on integer
25985         overflow (e.g., gcc -ftrapv).
25986
25987         * lib/mktime.c (WRAPV): New macro.
25988         (SHR): Also check that long_int and time_t shift right in the
25989         usual way, before using the fast-but-unportable method.
25990         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25991         used.  The code already assumed two's complement, so there's
25992         no need to test for alternatives.  All uses removed.
25993         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25994         the C standard.  Problem reported by Rich Felker in
25995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25996         (twos_complement_arithmetic): Also check long_int and time_t.
25997         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25998         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25999         (__mktime_internal): Avoid integer overflow with unary subtraction
26000         in two instances where -1 - X is an adequate replacement for -X,
26001         since the calculations are approximate.
26002
26003 2011-01-29  Eric Blake  <eblake@redhat.com>
26004
26005         mktime: avoid infinite loop
26006         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26007         type; behavior is still undefined but portable to all known targets.
26008         Reported by Rich Felker.
26009
26010 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26011
26012         rename, unlink, same-inode: Relicense.
26013         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26014         * modules/unlink (License): Likewise.
26015         * modules/same-inode (License): Likewise.
26016
26017 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         mktime: avoid problems on NetBSD 5 / i386
26020         * lib/mktime.c (long_int): New type.  This works around a problem
26021         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26022         but time_t is 64 bits, and where I expect the existing code is
26023         wrong in some cases.
26024         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26025         (ydhms_diff): Bring back the compile-time check for wide-enough
26026         year and yday.
26027
26028         mktime: fix misspelling in comment
26029         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26030         This merges all recent glibc changes of importance.
26031
26032 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26033
26034         move-if-change: cope with concurrent mv of identical file.
26035         * build-aux/move-if-change (CMPPROG): Accept environment
26036         variable as an override for `cmp'.
26037         (usage): Document CMPPROG.
26038         Adjust comparison to drop stdout.  Cope with failure of mv if
26039         the target file exists and is identical to the source, for
26040         parallel builds.
26041         Report from H.J. Lu against binutils in PR binutils/12283.
26042
26043 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26044
26045         * users.txt: Mention sharutils.
26046
26047 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26048
26049         * users.txt: Mention OATH Toolkit.
26050
26051 2011-01-27  Bruno Haible  <bruno@clisp.org>
26052
26053         Prepare for supporting FreeBSD 10.
26054         * build-aux/config.libpath: Remove handling of freebsd1*.
26055
26056 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26057
26058         Prepare for supporting FreeBSD 10.
26059         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26060         match FreeBSD 10.0.
26061
26062 2011-01-27  Bruno Haible  <bruno@clisp.org>
26063
26064         vma-iter, get-rusage-as: Add OpenBSD support.
26065         * modules/vma-iter (configure.ac): Test for mquery.
26066         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26067         * lib/vma-iter.c: Include <sys/mman.h>.
26068         (vma_iterate): Add an implementation based on mquery().
26069         * lib/resource-ext.h (get_rusage_as): Update comments.
26070         * lib/get-rusage-as.c: Likewise.
26071         * lib/get-rusage-data.c: Likewise.
26072
26073 2011-01-26  Karl Berry  <karl@gnu.org>
26074
26075         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26076         variables to make it easier to override the makeinfo program used.
26077
26078 2011-01-26  Eric Blake  <eblake@redhat.com>
26079
26080         fcntl: work around Haiku F_DUPFD bugs
26081         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26082         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26083         cloexec bit on duplication.
26084         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26085
26086 2011-01-26  Bruno Haible  <bruno@clisp.org>
26087
26088         Enable memory leak tests on AIX.
26089         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26090         * tests/test-fprintf-posix3.c (main): Likewise.
26091
26092 2011-01-26  Bruno Haible  <bruno@clisp.org>
26093
26094         Tests for module 'get-rusage-data'.
26095         * modules/get-rusage-data-tests: New file.
26096         * tests/test-get-rusage-data.c: New file.
26097
26098         New module 'get-rusage-data'.
26099         * lib/resource-ext.h (get_rusage_data): New declaration.
26100         * lib/get-rusage-data.c: New file.
26101         * modules/get-rusage-data: New file.
26102
26103 2011-01-25  Bruno Haible  <bruno@clisp.org>
26104
26105         get-rusage-as: Allow for easier testing.
26106         * lib/resource-ext.h (get_rusage_as): Add comment.
26107         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26108         (main): New function for interactive testing.
26109
26110 2011-01-25  Bruno Haible  <bruno@clisp.org>
26111
26112         vma-iter: Treat Haiku like BeOS.
26113         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26114         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26115
26116 2011-01-25  Eric Blake  <eblake@redhat.com>
26117
26118         c-stack: fix regression on cygwin when libsigsegv is present
26119         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26120
26121 2011-01-24  Bruno Haible  <bruno@clisp.org>
26122
26123         vma-iter: Avoid empty intervals.
26124         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26125         on an empty interval.
26126
26127 2011-01-24  Jim Meyering  <meyering@redhat.com>
26128
26129         u64: remove unnecessary #include
26130         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26131
26132 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26133
26134         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26135         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26136
26137 2011-01-23  Bruno Haible  <bruno@clisp.org>
26138
26139         New module 'vma-iter'.
26140         * lib/vma-iter.h: New file.
26141         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26142         * modules/vma-iter: New file.
26143         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26144         for get_rusage_as_via_iterator.
26145         (vma_iterate_callback): New function.
26146         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26147         * modules/get-rusage-as (Depends-on): Add vma-iter.
26148
26149 2011-01-23  Bruno Haible  <bruno@clisp.org>
26150
26151         uninorm: Tweak includes.
26152         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26153         Reported by Jim Meyering.
26154
26155 2011-01-23  Bruno Haible  <bruno@clisp.org>
26156
26157         get-rusage-as: Improve on NetBSD.
26158         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26159         /proc, like on FreeBSD.
26160
26161 2011-01-23  Jim Meyering  <meyering@redhat.com>
26162
26163         xreadlink.h: remove unnecessary #include
26164         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26165
26166         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26167         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26168
26169 2011-01-23  Bruno Haible  <bruno@clisp.org>
26170
26171         get-rusage-as: Fix bug.
26172         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26173         original limit when aborting the first loop.
26174
26175 2011-01-23  Bruno Haible  <bruno@clisp.org>
26176
26177         wctype: Ensure valid C syntax.
26178         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26179         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26180
26181 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26182
26183         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26185         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26186         as they are needed only for configure's test case.
26187         This removes two unnecessary symbols from config.h.
26188
26189         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26190         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26192         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26193         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26194         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26195         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26196         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26197         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26198         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26199         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26201         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26202         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26203         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26204         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26205         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26206         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26207
26208 2011-01-21  Eric Blake  <eblake@redhat.com>
26209
26210         maintainer-makefile: work with older git for submodule check
26211         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26212         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26213         Reported by Matthias Bolte.
26214
26215         bootstrap: minor portability fixes
26216         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26217         (usage): Omit leading capital and trailing . on help phrases, per
26218         GNU Coding Standards.
26219         (check_versions, top level): Prefix messages with script name.
26220
26221 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26222
26223         bootstrap: support --no-git option
26224         * build-aux/bootstrap: Add --no-git option, to be used when
26225         --gnulib-srcdir points to the exact desired checkout.
26226
26227 2011-01-21  Eric Blake  <eblake@redhat.com>
26228
26229         strerror_r-posix: work with glibc 2.13
26230         * lib/strerror_r.c (strerror_r): Fix return type.
26231
26232 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26233             Bruno Haible  <bruno@clisp.org>
26234
26235         uN_strstr: New unit tests.
26236         * modules/unistr/u8-strstr-tests: New file.
26237         * modules/unistr/u16-strstr-tests: New file.
26238         * modules/unistr/u32-strstr-tests: New file.
26239         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26240         * tests/unistr/test-u8-strstr.c: New file.
26241         * tests/unistr/test-u16-strstr.c: New file.
26242         * tests/unistr/test-u32-strstr.c: New file.
26243
26244 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26245             Bruno Haible  <bruno@clisp.org>
26246
26247         Make uN_strstr functions O(n) worst-case.
26248         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26249         16-bit and 32-bit unit cases, use the unibyte algorithm from
26250         lib/mbsstr.c.
26251         * lib/unistr/u8-strstr.c: Include <string.h>.
26252         (UNIT_IS_UINT8_T): New macro.
26253         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26254         (U_STRLEN, U_STRNLEN): New macros.
26255         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26256         (U_STRLEN, U_STRNLEN): New macros.
26257         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26258         (configure.ac): Update required libunistring version.
26259         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26260         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26261         malloca.
26262         (configure.ac): Update required libunistring version.
26263         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26264         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26265         malloca.
26266         (configure.ac): Update required libunistring version.
26267
26268 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26269             Bruno Haible  <bruno@clisp.org>
26270
26271         Prepare for faster uN_strstr functions.
26272         * lib/str-kmp.h: Support definable UNITs.
26273         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26274         needle_len argument.
26275         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26276         * lib/mbscasestr.c (mbscasestr): Likewise.
26277
26278 2011-01-21  Pádraig Brady <P@draigBrady.com>
26279
26280         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26281         * tests/test-malloca.c (main): Unset the environment variable
26282         to greatly speed up the test.
26283         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26284         * modules/malloca-tests: Depend on unsetenv.
26285
26286 2011-01-21  Pádraig Brady <P@draigBrady.com>
26287
26288         ignore-value: remove stdint dependency
26289         * lib/ignore-value.h: Remove <stdint.h>
26290         * modules/ignore-value: Remove stdint dependency.
26291
26292 2011-01-21  Jim Meyering  <meyering@redhat.com>
26293
26294         maint.mk: adjust variable name to be consistent with other gl_ vars
26295         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26296         to be lower case.
26297
26298 2011-01-20  Jim Meyering  <meyering@redhat.com>
26299
26300         maint.mk: make "check" depend on public-submodule-commit by default
26301         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26302
26303 2011-01-20  Bruno Haible  <bruno@clisp.org>
26304
26305         mbfile, mbiter: Complete change from 2008-12-21.
26306         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26307         * m4/mbiter.m4 (gl_MBITER): Likewise.
26308
26309 2011-01-20  Jim Meyering  <meyering@redhat.com>
26310
26311         init.sh: insert space between each function name and "()"
26312         * tests/init.sh: Make it a little easier to see that a function's
26313         name is "warn_", and not "warn" when looking at the first part of
26314         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26315
26316 2011-01-20  Jim Meyering  <meyering@redhat.com>
26317
26318         mountlist: clean up code formatting
26319         * lib/mountlist.c (read_file_system_list): Split a long line,
26320         correct bracing style, use NULL in place of "(struct statfs *)0",
26321         don't parenthesize return value, add spaces around "=" and after
26322         ";-in-for-stmt".
26323
26324 2011-01-14  Markus Duft <mduft@gentoo.org>
26325
26326         mountlist: add support for Interix
26327         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26328         Apply statvfs to all entries of /dev/fs.
26329         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26330         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26331
26332 2011-01-20  Jim Meyering  <meyering@redhat.com>
26333
26334         maint.mk: improve the public-submodule-commit rule
26335         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26336         to suppress printing of its commands... unless V=1.
26337         Add git submodule's --quiet option to suppress printing of e.g.,
26338         "Entering gnulib" output.
26339         "cd" into $(srcdir) before running git submodule.
26340
26341 2011-01-20  Bruno Haible  <bruno@clisp.org>
26342
26343         include_next: Fix bug introduced on 2011-01-18.
26344         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26345         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26346         ac_cv_header_... variable if the second argument is not 'check'.
26347         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26348         gl_NEXT_HEADERS_INTERNAL.
26349
26350 2011-01-20  Bruno Haible  <bruno@clisp.org>
26351
26352         Allow the user to avoid the GNULIB_TEST_* macros.
26353         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26354         Suggested by Paul Eggert.
26355
26356 2011-01-14  Jim Meyering  <meyering@redhat.com>
26357
26358         bootstrap: avoid failure when there is no .gitmodules file
26359         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26360         has been assigned to, even when its value is the empty string.
26361         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26362         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26363         Reported by John W. Eaton <jwe@gnu.org>.
26364
26365 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26366
26367         assume <ctype.h>, ..., <time.h> exist
26368         For years gnulib has been assuming the existence of the headers
26369         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26370         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26371         them, since they don't appear to be needed.
26372         * README (Portability guidelines): Document this.
26373         * lib/flock.c: Assume <fcntl.h> exists.
26374         * lib/regex_internal.h: Assume <locale.h> exists.
26375         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26376         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26377         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26378         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26379         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26380         * m4/regex.m4 (gl_REGEX): Likewise.
26381         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26382         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26383         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26384         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26385         * tests/test-argp.c: Likewise.
26386         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26387
26388         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26389         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26390         AA_APPLE_UNIVERSAL_BUILD.  See
26391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26392         * NEWS: Document this.
26393
26394 2011-01-19  Eric Blake  <eblake@redhat.com>
26395
26396         c-stack: assume stack overflow if SA_SIGINFO unsupported
26397         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26398         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26399         sigaction will work.
26400         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26401         behavior match Linux.
26402         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26403
26404         stdbool-tests: accommodate Haiku
26405         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26406
26407         binary-io: fix O_TEXT on Haiku
26408         * modules/binary-io (Depends-on): Add fcntl-h.
26409         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26410         than blindly undefining O_TEXT.
26411         Reported by Scott McCreary.
26412
26413 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26414
26415         include_next: do not check for standard headers like stddef.h
26416
26417         I found this problem when modifying Emacs to use gnulib.
26418         I noticed that it added HAVE_STDDEF_H to config.h, even though
26419         gnulib always assumes <stddef.h> exists as per README and this
26420         symbol is unnecessary.
26421         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26422         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26423         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26424         faster for headers like stddef.h that are known to exist.
26425         (gl_CHECK_NEXT_HEADERS): Use it.
26426         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26427         rather than gl_CHECK_NEXT_HEADERS.
26428         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26429         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26430
26431 2011-01-18  Eric Blake  <eblake@redhat.com>
26432
26433         ansi-c++-opt: skip C++ dependency style if C++ is unused
26434         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26435         tests when we know C++ compilation is not desired.
26436         Reported by Scott McCreary.
26437
26438 2011-01-18  Bruno Haible  <bruno@clisp.org>
26439
26440         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26441         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26442         (main): Perform test also when getrlimit and setrlimit don't exist or
26443         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26444         limiting the address space size using setrlimit, compare the address
26445         space size before and after the the test.
26446         * tests/test-dprintf-posix2.c: Likewise.
26447         * tests/test-fprintf-posix3.sh: Update skip messages.
26448         * tests/test-dprintf-posix2.sh: Likewise.
26449         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26450         * modules/dprintf-posix-tests (Depends-on): Likewise.
26451         Reported by Bruce Korb <bkorb@gnu.org> and
26452         Gary V. Vaughan <gary@gnu.org>.
26453
26454 2011-01-18  Bruno Haible  <bruno@clisp.org>
26455
26456         get-rusage-as: Improvement for Cygwin.
26457         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26458         areas that are merely reserved.
26459
26460 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26461
26462         strftime: remove dependencies on multibyte modules
26463
26464         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26465         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26466         only if __osf__ is defined, and I suspect OSF doesn't need these
26467         other modules.  If my guess is wrong, we'll need to come up with a
26468         variant of strftime that doesn't need the multibyte modules.
26469
26470         I discovered this problem when attempting modify Emacs to use the
26471         strftime module.  With the previous gnulib, this caused Emacs to
26472         need 31 new files, ranging from lib/config.charset to
26473         m4/wint_t.m4.  This was overkill and I expect would be offputting
26474         to the Emacs maintainers.  After this change, only 6 new files are
26475         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26476         stdbool.m4, and tm_gmtoff.m4.
26477
26478         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26479         Suggested by Bruno Haible in
26480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26481         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26482         and do not check for wchar.h.
26483         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26484         (Depends-on): Remove mbrlen, mbsinit, wchar.
26485
26486 2011-01-18  Bruno Haible  <bruno@clisp.org>
26487
26488         Tests for module 'get-rusage-as'.
26489         * modules/get-rusage-as-tests: New file.
26490         * tests/test-get-rusage-as.c: New file.
26491
26492         New module 'get-rusage-as'.
26493         * modules/get-rusage-as: New file.
26494         * lib/resource-ext.h: New file.
26495         * lib/get-rusage-as.c: New file.
26496
26497 2011-01-17  Eric Blake  <eblake@redhat.com>
26498
26499         sigaction: relax license from LGPLv3+ to LGPLv2+
26500         * modules/sigaction (License): Relax to LGPLv2+.
26501
26502 2011-01-14  Bruno Haible  <bruno@clisp.org>
26503
26504         filemode: Make function declarations usable in C++ mode.
26505         * lib/filemode.h: Enclose function declarations in extern "C" block.
26506         Reported by John W. Eaton <jwe@gnu.org>.
26507
26508 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26509
26510         save-cwd: no longer include "xgetcwd.h"
26511         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26512         This avoids a compilation failure in projects that use save-cwd
26513         without also using the xgetcwd module.
26514
26515 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26516
26517         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26518         This is so that a program like Emacs, which needs only dtoastr,
26519         does not have to bother with distributing and compiling ftoastr
26520         and ldtoastr.
26521         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26522         * modules/dtoastr, modules/ldtoastr: New files.
26523         * modules/ftoastr: Now works just for 'float'.
26524         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26525         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26526         dtoastr.c, ldtoastr.c.
26527
26528 2011-01-11  Jim Meyering  <meyering@redhat.com>
26529
26530         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26531         There is no need to work around the lack of the fchdir function,
26532         since gnulib can now provide a replacement when required.
26533         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26534         * modules/save-cwd (Depends-on): Add fchdir.
26535
26536 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         openat, save-cwd: avoid xmalloc
26539
26540         This removes a direct (but undocumented) dependency of openat on
26541         xalloc, along with an indirect dependency via save-cwd.  It also
26542         removes a dependency of save-cwd on xgetcwd, and thereby
26543         indirectly on xalloc.  This change causes the openat substitute
26544         to fall back on save_cwd when memory is tight, and for save_cwd to
26545         fail instead of dying when memory is tight, but that's good enough.
26546         Problem and initial idea for fix reported by Bastien Roucaries in
26547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26548
26549         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26550         xalloc.h (for xmalloc).
26551         (openat_proc_name): Use malloc, not xmalloc.
26552         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26553         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26554
26555         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26556         This avoids heap allocation for file names whose lengths are in
26557         the range 512..1023, with the upper bound increasing to at most
26558         4031 depending on the platform's PATH_MAX.  (We do not want
26559         pathmax.h here as it might supply a non-constant PATH_MAX.)
26560         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26561         Perhaps they should be moved to malloca.h?
26562         (OPENAT_BUFFER_SIZE): Use them.
26563
26564 2011-01-10  Bruno Haible  <bruno@clisp.org>
26565
26566         doc: Update users.txt.
26567         * users.txt: Add recutils.
26568
26569 2011-01-09  Karl Berry  <karl@gnu.org>
26570
26571         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26572
26573         * doc/configmake.texi: New file.
26574         * doc/gnulib.texi: Include it.
26575         * modules/configmake: Move documentation from here.
26576
26577 2011-01-09  Bruno Haible  <bruno@clisp.org>
26578
26579         Update to Unicode 6.0.0.
26580         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26581         (get_lbp): Update for Unicode 6.0.0.
26582         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26583         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26584         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26585         U+11001, U+11038..U+11046. Remove U+06DE.
26586         (uc_width): Fix bounds of planes.
26587         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26588         lib/uniwidth/width.c.
26589         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26590         trailing whitespace removed.
26591         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26592         without comments, but with the original copyright notice.
26593         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26594         * lib/unicase/ignorable.h: Likewise.
26595         * lib/unicase/tocasefold.h: Likewise.
26596         * lib/unicase/tolower.h: Likewise.
26597         * lib/unicase/totitle.h: Likewise.
26598         * lib/unicase/toupper.h: Likewise.
26599         * lib/unictype/bidi_of.h: Likewise.
26600         * lib/unictype/blocks.h: Likewise.
26601         * lib/unictype/categ_C.h: Likewise.
26602         * lib/unictype/categ_Cn.h: Likewise.
26603         * lib/unictype/categ_L.h: Likewise.
26604         * lib/unictype/categ_Ll.h: Likewise.
26605         * lib/unictype/categ_Lm.h: Likewise.
26606         * lib/unictype/categ_Lo.h: Likewise.
26607         * lib/unictype/categ_Lu.h: Likewise.
26608         * lib/unictype/categ_M.h: Likewise.
26609         * lib/unictype/categ_Mc.h: Likewise.
26610         * lib/unictype/categ_Me.h: Likewise.
26611         * lib/unictype/categ_Mn.h: Likewise.
26612         * lib/unictype/categ_N.h: Likewise.
26613         * lib/unictype/categ_Nd.h: Likewise.
26614         * lib/unictype/categ_No.h: Likewise.
26615         * lib/unictype/categ_P.h: Likewise.
26616         * lib/unictype/categ_Po.h: Likewise.
26617         * lib/unictype/categ_S.h: Likewise.
26618         * lib/unictype/categ_Sc.h: Likewise.
26619         * lib/unictype/categ_Sk.h: Likewise.
26620         * lib/unictype/categ_Sm.h: Likewise.
26621         * lib/unictype/categ_So.h: Likewise.
26622         * lib/unictype/categ_of.h: Likewise.
26623         * lib/unictype/combining.h: Likewise.
26624         * lib/unictype/ctype_alnum.h: Likewise.
26625         * lib/unictype/ctype_alpha.h: Likewise.
26626         * lib/unictype/ctype_graph.h: Likewise.
26627         * lib/unictype/ctype_lower.h: Likewise.
26628         * lib/unictype/ctype_print.h: Likewise.
26629         * lib/unictype/ctype_punct.h: Likewise.
26630         * lib/unictype/ctype_upper.h: Likewise.
26631         * lib/unictype/decdigit.h: Likewise.
26632         * lib/unictype/digit.h: Likewise.
26633         * lib/unictype/numeric.h: Likewise.
26634         * lib/unictype/pr_alphabetic.h: Likewise.
26635         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26636         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26637         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26638         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26639         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26640         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26641         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26642         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26643         * lib/unictype/pr_case_ignorable.h: Likewise.
26644         * lib/unictype/pr_cased.h: Likewise.
26645         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26646         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26647         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26648         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26649         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26650         * lib/unictype/pr_combining.h: Likewise.
26651         * lib/unictype/pr_composite.h: Likewise.
26652         * lib/unictype/pr_currency_symbol.h: Likewise.
26653         * lib/unictype/pr_decimal_digit.h: Likewise.
26654         * lib/unictype/pr_deprecated.h: Likewise.
26655         * lib/unictype/pr_format_control.h: Likewise.
26656         * lib/unictype/pr_grapheme_base.h: Likewise.
26657         * lib/unictype/pr_grapheme_extend.h: Likewise.
26658         * lib/unictype/pr_grapheme_link.h: Likewise.
26659         * lib/unictype/pr_id_continue.h: Likewise.
26660         * lib/unictype/pr_id_start.h: Likewise.
26661         * lib/unictype/pr_ideographic.h: Likewise.
26662         * lib/unictype/pr_lowercase.h: Likewise.
26663         * lib/unictype/pr_math.h: Likewise.
26664         * lib/unictype/pr_numeric.h: Likewise.
26665         * lib/unictype/pr_other_alphabetic.h: Likewise.
26666         * lib/unictype/pr_other_id_continue.h: Likewise.
26667         * lib/unictype/pr_other_math.h: Likewise.
26668         * lib/unictype/pr_punctuation.h: Likewise.
26669         * lib/unictype/pr_sentence_terminal.h: Likewise.
26670         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26671         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26672         * lib/unictype/pr_unified_ideograph.h: Likewise.
26673         * lib/unictype/pr_uppercase.h: Likewise.
26674         * lib/unictype/pr_xid_continue.h: Likewise.
26675         * lib/unictype/pr_xid_start.h: Likewise.
26676         * lib/unictype/scripts.h: Likewise.
26677         * lib/unictype/scripts_byname.gperf: Likewise.
26678         * lib/unictype/sy_java_ident.h: Likewise.
26679         * lib/unigbrk/gbrkprop.h: Likewise.
26680         * lib/unilbrk/lbrkprop1.h: Likewise.
26681         * lib/unilbrk/lbrkprop2.h: Likewise.
26682         * lib/uninorm/decomposition-table2.h: Likewise.
26683         * lib/uniwbrk/wbrkprop.h: Likewise.
26684         * tests/unicase/test-cased.c: Likewise.
26685         * tests/unicase/test-ignorable.c: Likewise.
26686         * tests/unicase/test-uc_tolower.c: Likewise.
26687         * tests/unicase/test-uc_totitle.c: Likewise.
26688         * tests/unicase/test-uc_toupper.c: Likewise.
26689         * tests/unictype/test-categ_C.c: Likewise.
26690         * tests/unictype/test-categ_Cn.c: Likewise.
26691         * tests/unictype/test-categ_L.c: Likewise.
26692         * tests/unictype/test-categ_Ll.c: Likewise.
26693         * tests/unictype/test-categ_Lm.c: Likewise.
26694         * tests/unictype/test-categ_Lo.c: Likewise.
26695         * tests/unictype/test-categ_Lu.c: Likewise.
26696         * tests/unictype/test-categ_M.c: Likewise.
26697         * tests/unictype/test-categ_Mc.c: Likewise.
26698         * tests/unictype/test-categ_Me.c: Likewise.
26699         * tests/unictype/test-categ_Mn.c: Likewise.
26700         * tests/unictype/test-categ_N.c: Likewise.
26701         * tests/unictype/test-categ_Nd.c: Likewise.
26702         * tests/unictype/test-categ_No.c: Likewise.
26703         * tests/unictype/test-categ_P.c: Likewise.
26704         * tests/unictype/test-categ_Po.c: Likewise.
26705         * tests/unictype/test-categ_S.c: Likewise.
26706         * tests/unictype/test-categ_Sc.c: Likewise.
26707         * tests/unictype/test-categ_Sk.c: Likewise.
26708         * tests/unictype/test-categ_Sm.c: Likewise.
26709         * tests/unictype/test-categ_So.c: Likewise.
26710         * tests/unictype/test-ctype_alnum.c: Likewise.
26711         * tests/unictype/test-ctype_alpha.c: Likewise.
26712         * tests/unictype/test-ctype_graph.c: Likewise.
26713         * tests/unictype/test-ctype_lower.c: Likewise.
26714         * tests/unictype/test-ctype_print.c: Likewise.
26715         * tests/unictype/test-ctype_punct.c: Likewise.
26716         * tests/unictype/test-ctype_upper.c: Likewise.
26717         * tests/unictype/test-decdigit.h: Likewise.
26718         * tests/unictype/test-digit.h: Likewise.
26719         * tests/unictype/test-numeric.h: Likewise.
26720         * tests/unictype/test-pr_alphabetic.c: Likewise.
26721         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26722         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26723         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26724         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26725         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26726         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26727         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26728         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26729         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26730         * tests/unictype/test-pr_cased.c: Likewise.
26731         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26732         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26733         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26734         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26735         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26736         * tests/unictype/test-pr_combining.c: Likewise.
26737         * tests/unictype/test-pr_composite.c: Likewise.
26738         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26739         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26740         * tests/unictype/test-pr_deprecated.c: Likewise.
26741         * tests/unictype/test-pr_format_control.c: Likewise.
26742         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26743         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26744         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26745         * tests/unictype/test-pr_id_continue.c: Likewise.
26746         * tests/unictype/test-pr_id_start.c: Likewise.
26747         * tests/unictype/test-pr_ideographic.c: Likewise.
26748         * tests/unictype/test-pr_lowercase.c: Likewise.
26749         * tests/unictype/test-pr_math.c: Likewise.
26750         * tests/unictype/test-pr_numeric.c: Likewise.
26751         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26752         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26753         * tests/unictype/test-pr_other_math.c: Likewise.
26754         * tests/unictype/test-pr_punctuation.c: Likewise.
26755         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26756         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26757         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26758         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26759         * tests/unictype/test-pr_uppercase.c: Likewise.
26760         * tests/unictype/test-pr_xid_continue.c: Likewise.
26761         * tests/unictype/test-pr_xid_start.c: Likewise.
26762         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26763         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26764         changes.
26765         * lib/unictype/categ_Cc.h: Likewise.
26766         * lib/unictype/categ_Cf.h: Likewise.
26767         * lib/unictype/categ_Co.h: Likewise.
26768         * lib/unictype/categ_Cs.h: Likewise.
26769         * lib/unictype/categ_Lt.h: Likewise.
26770         * lib/unictype/categ_Nl.h: Likewise.
26771         * lib/unictype/categ_Pc.h: Likewise.
26772         * lib/unictype/categ_Pd.h: Likewise.
26773         * lib/unictype/categ_Pe.h: Likewise.
26774         * lib/unictype/categ_Pf.h: Likewise.
26775         * lib/unictype/categ_Pi.h: Likewise.
26776         * lib/unictype/categ_Ps.h: Likewise.
26777         * lib/unictype/categ_Z.h: Likewise.
26778         * lib/unictype/categ_Zl.h: Likewise.
26779         * lib/unictype/categ_Zp.h: Likewise.
26780         * lib/unictype/categ_Zs.h: Likewise.
26781         * lib/unictype/ctype_blank.h: Likewise.
26782         * lib/unictype/ctype_cntrl.h: Likewise.
26783         * lib/unictype/ctype_digit.h: Likewise.
26784         * lib/unictype/ctype_space.h: Likewise.
26785         * lib/unictype/ctype_xdigit.h: Likewise.
26786         * lib/unictype/mirror.h: Likewise.
26787         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26788         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26789         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26790         * lib/unictype/pr_bidi_control.h: Likewise.
26791         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26792         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26793         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26794         * lib/unictype/pr_bidi_pdf.h: Likewise.
26795         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26796         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26797         * lib/unictype/pr_dash.h: Likewise.
26798         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26799         * lib/unictype/pr_diacritic.h: Likewise.
26800         * lib/unictype/pr_extender.h: Likewise.
26801         * lib/unictype/pr_hex_digit.h: Likewise.
26802         * lib/unictype/pr_hyphen.h: Likewise.
26803         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26804         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26805         * lib/unictype/pr_ignorable_control.h: Likewise.
26806         * lib/unictype/pr_iso_control.h: Likewise.
26807         * lib/unictype/pr_join_control.h: Likewise.
26808         * lib/unictype/pr_left_of_pair.h: Likewise.
26809         * lib/unictype/pr_line_separator.h: Likewise.
26810         * lib/unictype/pr_logical_order_exception.h: Likewise.
26811         * lib/unictype/pr_non_break.h: Likewise.
26812         * lib/unictype/pr_not_a_character.h: Likewise.
26813         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26814         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26815         * lib/unictype/pr_other_id_start.h: Likewise.
26816         * lib/unictype/pr_other_lowercase.h: Likewise.
26817         * lib/unictype/pr_other_uppercase.h: Likewise.
26818         * lib/unictype/pr_paired_punctuation.h: Likewise.
26819         * lib/unictype/pr_paragraph_separator.h: Likewise.
26820         * lib/unictype/pr_pattern_syntax.h: Likewise.
26821         * lib/unictype/pr_pattern_white_space.h: Likewise.
26822         * lib/unictype/pr_private_use.h: Likewise.
26823         * lib/unictype/pr_quotation_mark.h: Likewise.
26824         * lib/unictype/pr_radical.h: Likewise.
26825         * lib/unictype/pr_soft_dotted.h: Likewise.
26826         * lib/unictype/pr_space.h: Likewise.
26827         * lib/unictype/pr_titlecase.h: Likewise.
26828         * lib/unictype/pr_variation_selector.h: Likewise.
26829         * lib/unictype/pr_white_space.h: Likewise.
26830         * lib/unictype/pr_zero_width.h: Likewise.
26831         * lib/unictype/sy_c_ident.h: Likewise.
26832         * lib/unictype/sy_c_whitespace.h: Likewise.
26833         * lib/unictype/sy_java_whitespace.h: Likewise.
26834         * lib/uninorm/composition-table.gperf: Likewise.
26835         * lib/uninorm/decomposition-table1.h: Likewise.
26836         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26837         LB8.
26838         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26839         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26840         * modules/unictype/*: Bump version number of expected libunistring
26841         version.
26842
26843 2011-01-09  Bruno Haible  <bruno@clisp.org>
26844
26845         Update to Unicode 5.2.0.
26846         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26847         trailing whitespace removed.
26848
26849 2011-01-09  Bruno Haible  <bruno@clisp.org>
26850
26851         New Unicode character properties, from Unicode 5.2.0.
26852         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26853         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26854         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26855         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26856         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26857         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26858         uc_is_property_cased, uc_is_property_case_ignorable,
26859         uc_is_property_changes_when_lowercased,
26860         uc_is_property_changes_when_uppercased,
26861         uc_is_property_changes_when_titlecased,
26862         uc_is_property_changes_when_casefolded,
26863         uc_is_property_changes_when_casemapped): New declarations.
26864         * lib/unictype/pr_byname.gperf: Add the new properties.
26865         * modules/unictype/property-byname (Depends-on): Depend on the new
26866         properties modules.
26867         * modules/unictype/property-all (Depends-on): Likewise.
26868         * MODULES.html.sh (Unicode string functions): Add
26869         unictype/property-case-ignorable, unictype/property-cased,
26870         unictype/property-changes-when-casefolded,
26871         unictype/property-changes-when-casemapped,
26872         unictype/property-changes-when-lowercased,
26873         unictype/property-changes-when-titlecased,
26874         unictype/property-changes-when-uppercased.
26875
26876         New module 'unictype/property-changes-when-casemapped'.
26877         * modules/unictype/property-changes-when-casemapped: New file.
26878         * lib/unictype/pr_changes_when_casemapped.c: New file.
26879         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26880         generated by gen-uni-tables.
26881         * modules/unictype/property-changes-when-casemapped-tests: New file.
26882         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26883         automatically generated by gen-uni-tables.
26884
26885         New module 'unictype/property-changes-when-casefolded'.
26886         * modules/unictype/property-changes-when-casefolded: New file.
26887         * lib/unictype/pr_changes_when_casefolded.c: New file.
26888         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26889         generated by gen-uni-tables.
26890         * modules/unictype/property-changes-when-casefolded-tests: New file.
26891         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26892         automatically generated by gen-uni-tables.
26893
26894         New module 'unictype/property-changes-when-titlecased'.
26895         * modules/unictype/property-changes-when-titlecased: New file.
26896         * lib/unictype/pr_changes_when_titlecased.c: New file.
26897         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26898         generated by gen-uni-tables.
26899         * modules/unictype/property-changes-when-titlecased-tests: New file.
26900         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26901         automatically generated by gen-uni-tables.
26902
26903         New module 'unictype/property-changes-when-uppercased'.
26904         * modules/unictype/property-changes-when-uppercased: New file.
26905         * lib/unictype/pr_changes_when_uppercased.c: New file.
26906         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26907         generated by gen-uni-tables.
26908         * modules/unictype/property-changes-when-uppercased-tests: New file.
26909         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26910         automatically generated by gen-uni-tables.
26911
26912         New module 'unictype/property-changes-when-lowercased'.
26913         * modules/unictype/property-changes-when-lowercased: New file.
26914         * lib/unictype/pr_changes_when_lowercased.c: New file.
26915         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26916         generated by gen-uni-tables.
26917         * modules/unictype/property-changes-when-lowercased-tests: New file.
26918         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26919         automatically generated by gen-uni-tables.
26920
26921         New module 'unictype/property-case-ignorable'.
26922         * modules/unictype/property-case-ignorable: New file.
26923         * lib/unictype/pr_case_ignorable.c: New file.
26924         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26925         by gen-uni-tables.
26926         * modules/unictype/property-case-ignorable-tests: New file.
26927         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26928         generated by gen-uni-tables.
26929
26930         New module 'unictype/property-cased'.
26931         * modules/unictype/property-cased: New file.
26932         * lib/unictype/pr_cased.c: New file.
26933         * lib/unictype/pr_cased.h: New file, automatically generated by
26934         gen-uni-tables.
26935         * modules/unictype/property-cased-tests: New file.
26936         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26937         gen-uni-tables.
26938
26939 2011-01-09  Bruno Haible  <bruno@clisp.org>
26940
26941         Update to Unicode 5.2.0.
26942         * lib/gen-uni-tables.c (output_predicate, output_category,
26943         output_combclass, output_bidi_category, output_decimal_digit_test,
26944         output_decimal_digit, output_digit_test, output_digit,
26945         output_numeric_test, output_numeric, output_mirror, output_scripts,
26946         output_scripts_byname, output_blocks, output_ident_category): Fix
26947         comment header.
26948         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26949         get_wbp.
26950         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26951         items.
26952         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26953         Changes_When_Lowercased, Changes_When_Uppercased,
26954         Changes_When_Titlecased, Changes_When_Casefolded,
26955         Changes_When_Casemapped.
26956         (is_property_alphabetic, is_property_default_ignorable_code_point):
26957         Update for Unicode 5.2.0.
26958         (is_property_cased, is_property_case_ignorable,
26959         is_property_changes_when_lowercased,
26960         is_property_changes_when_uppercased,
26961         is_property_changes_when_titlecased,
26962         is_property_changes_when_casefolded,
26963         is_property_changes_when_casemapped): New functions.
26964         (output_properties): Output also the properties cased, case_ignorable,
26965         changes_when_lowercased, changes_when_uppercased,
26966         changes_when_titlecased, changes_when_casefolded,
26967         changes_when_casemapped.
26968         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26969         Unicode TR#11 revision 17 -> 19.
26970         (LBP_CP): New enumeration value.
26971         (LBP_*): Adjust values accordingly.
26972         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26973         TR#14 revision 22 -> 24.
26974         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26975         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26976         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26977         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26978         is_WBP_MIDLETTER.
26979         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26980         the code1 and code2 of each composition rule.
26981         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26982         * lib/unicase/ignorable.h: Likewise.
26983         * lib/unicase/tocasefold.h: Likewise.
26984         * lib/unicase/tolower.h: Likewise.
26985         * lib/unicase/totitle.h: Likewise.
26986         * lib/unicase/toupper.h: Likewise.
26987         * lib/unictype/bidi_of.h: Likewise.
26988         * lib/unictype/blocks.h: Likewise.
26989         * lib/unictype/categ_C.h: Likewise.
26990         * lib/unictype/categ_Cf.h: Likewise.
26991         * lib/unictype/categ_Cn.h: Likewise.
26992         * lib/unictype/categ_L.h: Likewise.
26993         * lib/unictype/categ_Ll.h: Likewise.
26994         * lib/unictype/categ_Lm.h: Likewise.
26995         * lib/unictype/categ_Lo.h: Likewise.
26996         * lib/unictype/categ_Lu.h: Likewise.
26997         * lib/unictype/categ_M.h: Likewise.
26998         * lib/unictype/categ_Mc.h: Likewise.
26999         * lib/unictype/categ_Mn.h: Likewise.
27000         * lib/unictype/categ_N.h: Likewise.
27001         * lib/unictype/categ_Nd.h: Likewise.
27002         * lib/unictype/categ_Nl.h: Likewise.
27003         * lib/unictype/categ_No.h: Likewise.
27004         * lib/unictype/categ_P.h: Likewise.
27005         * lib/unictype/categ_Pd.h: Likewise.
27006         * lib/unictype/categ_Po.h: Likewise.
27007         * lib/unictype/categ_S.h: Likewise.
27008         * lib/unictype/categ_Sc.h: Likewise.
27009         * lib/unictype/categ_So.h: Likewise.
27010         * lib/unictype/categ_of.h: Likewise.
27011         * lib/unictype/combining.h: Likewise.
27012         * lib/unictype/ctype_alnum.h: Likewise.
27013         * lib/unictype/ctype_alpha.h: Likewise.
27014         * lib/unictype/ctype_graph.h: Likewise.
27015         * lib/unictype/ctype_lower.h: Likewise.
27016         * lib/unictype/ctype_print.h: Likewise.
27017         * lib/unictype/ctype_punct.h: Likewise.
27018         * lib/unictype/ctype_upper.h: Likewise.
27019         * lib/unictype/decdigit.h: Likewise.
27020         * lib/unictype/digit.h: Likewise.
27021         * lib/unictype/numeric.h: Likewise.
27022         * lib/unictype/pr_alphabetic.h: Likewise.
27023         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27024         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27025         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27026         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27027         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27028         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27029         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27030         * lib/unictype/pr_combining.h: Likewise.
27031         * lib/unictype/pr_composite.h: Likewise.
27032         * lib/unictype/pr_currency_symbol.h: Likewise.
27033         * lib/unictype/pr_dash.h: Likewise.
27034         * lib/unictype/pr_decimal_digit.h: Likewise.
27035         * lib/unictype/pr_deprecated.h: Likewise.
27036         * lib/unictype/pr_diacritic.h: Likewise.
27037         * lib/unictype/pr_extender.h: Likewise.
27038         * lib/unictype/pr_grapheme_base.h: Likewise.
27039         * lib/unictype/pr_grapheme_extend.h: Likewise.
27040         * lib/unictype/pr_grapheme_link.h: Likewise.
27041         * lib/unictype/pr_id_continue.h: Likewise.
27042         * lib/unictype/pr_id_start.h: Likewise.
27043         * lib/unictype/pr_ideographic.h: Likewise.
27044         * lib/unictype/pr_ignorable_control.h: Likewise.
27045         * lib/unictype/pr_logical_order_exception.h: Likewise.
27046         * lib/unictype/pr_lowercase.h: Likewise.
27047         * lib/unictype/pr_numeric.h: Likewise.
27048         * lib/unictype/pr_other_alphabetic.h: Likewise.
27049         * lib/unictype/pr_punctuation.h: Likewise.
27050         * lib/unictype/pr_sentence_terminal.h: Likewise.
27051         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27052         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27053         * lib/unictype/pr_unified_ideograph.h: Likewise.
27054         * lib/unictype/pr_uppercase.h: Likewise.
27055         * lib/unictype/pr_xid_continue.h: Likewise.
27056         * lib/unictype/pr_xid_start.h: Likewise.
27057         * lib/unictype/pr_zero_width.h: Likewise.
27058         * lib/unictype/scripts.h: Likewise.
27059         * lib/unictype/scripts_byname.gperf: Likewise.
27060         * lib/unictype/sy_java_ident.h: Likewise.
27061         * lib/unigbrk/gbrkprop.h: Likewise.
27062         * lib/unilbrk/lbrkprop1.h: Likewise.
27063         * lib/unilbrk/lbrkprop2.h: Likewise.
27064         * lib/unilbrk/lbrktables.h: Likewise.
27065         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27066         LBP_CP. Implement rule LB30.
27067         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27068         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27069         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27070         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27071         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27072         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27073         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27074         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27075         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27076         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27077         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27078         bits instead of 16 bits in the code1 and code2 of each composition
27079         rule.
27080         (uc_composition): Update for Unicode 5.2.0.
27081         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27082         * lib/uninorm/decomposition-table2.h: Likewise.
27083         * lib/uniwbrk/wbrkprop.h: Likewise.
27084         * tests/unicase/test-cased.c: Likewise.
27085         * tests/unicase/test-ignorable.c: Likewise.
27086         * tests/unicase/test-uc_tolower.c: Likewise.
27087         * tests/unicase/test-uc_totitle.c: Likewise.
27088         * tests/unicase/test-uc_toupper.c: Likewise.
27089         * tests/unictype/test-categ_C.c: Likewise.
27090         * tests/unictype/test-categ_Cf.c: Likewise.
27091         * tests/unictype/test-categ_Cn.c: Likewise.
27092         * tests/unictype/test-categ_L.c: Likewise.
27093         * tests/unictype/test-categ_Ll.c: Likewise.
27094         * tests/unictype/test-categ_Lm.c: Likewise.
27095         * tests/unictype/test-categ_Lo.c: Likewise.
27096         * tests/unictype/test-categ_Lu.c: Likewise.
27097         * tests/unictype/test-categ_M.c: Likewise.
27098         * tests/unictype/test-categ_Mc.c: Likewise.
27099         * tests/unictype/test-categ_Mn.c: Likewise.
27100         * tests/unictype/test-categ_N.c: Likewise.
27101         * tests/unictype/test-categ_Nd.c: Likewise.
27102         * tests/unictype/test-categ_Nl.c: Likewise.
27103         * tests/unictype/test-categ_No.c: Likewise.
27104         * tests/unictype/test-categ_P.c: Likewise.
27105         * tests/unictype/test-categ_Pd.c: Likewise.
27106         * tests/unictype/test-categ_Po.c: Likewise.
27107         * tests/unictype/test-categ_S.c: Likewise.
27108         * tests/unictype/test-categ_Sc.c: Likewise.
27109         * tests/unictype/test-categ_So.c: Likewise.
27110         * tests/unictype/test-ctype_alnum.c: Likewise.
27111         * tests/unictype/test-ctype_alpha.c: Likewise.
27112         * tests/unictype/test-ctype_graph.c: Likewise.
27113         * tests/unictype/test-ctype_lower.c: Likewise.
27114         * tests/unictype/test-ctype_print.c: Likewise.
27115         * tests/unictype/test-ctype_punct.c: Likewise.
27116         * tests/unictype/test-ctype_upper.c: Likewise.
27117         * tests/unictype/test-decdigit.h: Likewise.
27118         * tests/unictype/test-digit.h: Likewise.
27119         * tests/unictype/test-numeric.h: Likewise.
27120         * tests/unictype/test-pr_alphabetic.c: Likewise.
27121         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27122         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27123         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27124         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27125         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27126         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27127         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27128         * tests/unictype/test-pr_combining.c: Likewise.
27129         * tests/unictype/test-pr_composite.c: Likewise.
27130         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27131         * tests/unictype/test-pr_dash.c: Likewise.
27132         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27133         * tests/unictype/test-pr_deprecated.c: Likewise.
27134         * tests/unictype/test-pr_diacritic.c: Likewise.
27135         * tests/unictype/test-pr_extender.c: Likewise.
27136         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27137         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27138         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27139         * tests/unictype/test-pr_id_continue.c: Likewise.
27140         * tests/unictype/test-pr_id_start.c: Likewise.
27141         * tests/unictype/test-pr_ideographic.c: Likewise.
27142         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27143         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27144         * tests/unictype/test-pr_lowercase.c: Likewise.
27145         * tests/unictype/test-pr_numeric.c: Likewise.
27146         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27147         * tests/unictype/test-pr_punctuation.c: Likewise.
27148         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27149         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27150         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27151         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27152         * tests/unictype/test-pr_uppercase.c: Likewise.
27153         * tests/unictype/test-pr_xid_continue.c: Likewise.
27154         * tests/unictype/test-pr_xid_start.c: Likewise.
27155         * tests/unictype/test-pr_zero_width.c: Likewise.
27156         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27157         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27158         changed behaviour: line breaking is now disallowed between a letter
27159         or '=' and '('.
27160         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27161         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27162         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27163         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27164         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27165         lib/uniwidth/width.c.
27166         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27167         without comments, but with the original copyright notice.
27168         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27169         changes.
27170         * lib/unictype/categ_Cc.h: Likewise.
27171         * lib/unictype/categ_Co.h: Likewise.
27172         * lib/unictype/categ_Cs.h: Likewise.
27173         * lib/unictype/categ_Lt.h: Likewise.
27174         * lib/unictype/categ_Me.h: Likewise.
27175         * lib/unictype/categ_Pc.h: Likewise.
27176         * lib/unictype/categ_Pe.h: Likewise.
27177         * lib/unictype/categ_Pf.h: Likewise.
27178         * lib/unictype/categ_Pi.h: Likewise.
27179         * lib/unictype/categ_Ps.h: Likewise.
27180         * lib/unictype/categ_Sk.h: Likewise.
27181         * lib/unictype/categ_Sm.h: Likewise.
27182         * lib/unictype/categ_Z.h: Likewise.
27183         * lib/unictype/categ_Zl.h: Likewise.
27184         * lib/unictype/categ_Zp.h: Likewise.
27185         * lib/unictype/categ_Zs.h: Likewise.
27186         * lib/unictype/ctype_blank.h: Likewise.
27187         * lib/unictype/ctype_cntrl.h: Likewise.
27188         * lib/unictype/ctype_digit.h: Likewise.
27189         * lib/unictype/ctype_space.h: Likewise.
27190         * lib/unictype/ctype_xdigit.h: Likewise.
27191         * lib/unictype/mirror.h: Likewise.
27192         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27193         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27194         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27195         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27196         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27197         * lib/unictype/pr_bidi_control.h: Likewise.
27198         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27199         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27200         * lib/unictype/pr_bidi_pdf.h: Likewise.
27201         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27202         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27203         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27204         * lib/unictype/pr_format_control.h: Likewise.
27205         * lib/unictype/pr_hex_digit.h: Likewise.
27206         * lib/unictype/pr_hyphen.h: Likewise.
27207         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27208         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27209         * lib/unictype/pr_iso_control.h: Likewise.
27210         * lib/unictype/pr_join_control.h: Likewise.
27211         * lib/unictype/pr_left_of_pair.h: Likewise.
27212         * lib/unictype/pr_line_separator.h: Likewise.
27213         * lib/unictype/pr_math.h: Likewise.
27214         * lib/unictype/pr_non_break.h: Likewise.
27215         * lib/unictype/pr_not_a_character.h: Likewise.
27216         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27217         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27218         * lib/unictype/pr_other_id_continue.h: Likewise.
27219         * lib/unictype/pr_other_id_start.h: Likewise.
27220         * lib/unictype/pr_other_lowercase.h: Likewise.
27221         * lib/unictype/pr_other_math.h: Likewise.
27222         * lib/unictype/pr_other_uppercase.h: Likewise.
27223         * lib/unictype/pr_paired_punctuation.h: Likewise.
27224         * lib/unictype/pr_paragraph_separator.h: Likewise.
27225         * lib/unictype/pr_pattern_syntax.h: Likewise.
27226         * lib/unictype/pr_pattern_white_space.h: Likewise.
27227         * lib/unictype/pr_private_use.h: Likewise.
27228         * lib/unictype/pr_quotation_mark.h: Likewise.
27229         * lib/unictype/pr_radical.h: Likewise.
27230         * lib/unictype/pr_soft_dotted.h: Likewise.
27231         * lib/unictype/pr_space.h: Likewise.
27232         * lib/unictype/pr_titlecase.h: Likewise.
27233         * lib/unictype/pr_variation_selector.h: Likewise.
27234         * lib/unictype/pr_white_space.h: Likewise.
27235         * lib/unictype/sy_c_ident.h: Likewise.
27236         * lib/unictype/sy_c_whitespace.h: Likewise.
27237         * lib/unictype/sy_java_whitespace.h: Likewise.
27238         * modules/uni*/*: Bump version number of expected libunistring version.
27239         Reported by Simon Josefsson.
27240
27241 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27242
27243         useless-if-before-free: fix typo in --help and make the internal,
27244         automatic version date update process work once again.
27245         --help output contained a NUL character instead of the
27246         backslash-zero that was intended.  Also, the "must lie within
27247         the first 8 lines" line is on line 9, and hence not getting
27248         automatically updated.
27249         * build-aux/useless-if-before-free: Fix the former by adding a
27250         backslash, and the latter by condensing the three lines of what-it-does
27251         to a single line, leaving one line of slack for the future.
27252
27253 2011-01-09  Bruno Haible  <bruno@clisp.org>
27254
27255         uniwidth/width: Fix width of U+1D173..U+1D17A.
27256         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27257         symbolic_width, output_width_property_test): New functions.
27258         (main): Invoke output_nonspacing_property, output_width_property_test.
27259         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27260         U+1D173..U+1D17A.
27261         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27262         1.
27263         * modules/uniwidth/*: Bump version number of expected libunistring
27264         version.
27265         * modules/unilbrk/*: Likewise.
27266
27267 2011-01-08  Bruno Haible  <bruno@clisp.org>
27268
27269         uninorm tests: Preserve copyright of Unicode data file.
27270         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27271         Mention modifications.
27272
27273 2011-01-08  Bruno Haible  <bruno@clisp.org>
27274
27275         gen-uni-tables: Prepare for Unicode 5.2.0.
27276         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27277         (debug_output_lbp, output_lbp): Update.
27278
27279 2011-01-08  Bruno Haible  <bruno@clisp.org>
27280
27281         unilbrk: Clarify gen-uni-tables.c code.
27282         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27283         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27284         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27285
27286 2011-01-07  Bruno Haible  <bruno@clisp.org>
27287
27288         strtod: Restore errno when successfully parsing Infinity or NaN.
27289         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27290         restore the original errno.
27291
27292 2011-01-07  Bruno Haible  <bruno@clisp.org>
27293
27294         remove test: Avoid failure on HP-UX 11.
27295         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27296
27297 2011-01-07  Bruno Haible  <bruno@clisp.org>
27298
27299         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27300         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27301         error code.
27302
27303 2011-01-07  Pádraig Brady <P@draigBrady.com>
27304
27305         ignore-value: fixup comments, and add Eric Blake
27306         as an author since he rewrote the macros.
27307         * lib/ignore-value.h (ignore_value):  State that
27308         we now support aggregates.  Also specify exactly
27309         when the GCC warn_unused_result feature was added.
27310
27311 2011-01-06  Eric Blake  <eblake@redhat.com>
27312
27313         ignore-value: support aggregate types
27314         * lib/ignore-value.h (ignore_value): Provide separate gcc
27315         definition.
27316         * modules/ignore-value-tests: New test module.
27317         * tests/test-ignore-value.c: New test.
27318
27319         maint.mk: improve sc_prohibit_strcmp regex
27320         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27321         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27322         definition of STRNEQ.
27323
27324         signal: work around Haiku issue with SIGBUS
27325         * lib/siglist.h: Add comment.
27326         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27327         strsignal's favoring of SIGSEGV.
27328         * tests/test-signal.c (main): Avoid test failure.
27329         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27330         Reported by Scott McCreary.
27331
27332         maint.mk: add pre-release check to ensure submodule commits are public
27333         * top/maint.mk (public-submodule-commit): New rule.
27334         (submodule-checks): New variable.
27335         (alpha beta stable): Depend on the variable.
27336
27337 2011-01-05  Pádraig Brady <P@draigBrady.com>
27338         and Jim Meyering  <meyering@redhat.com>
27339
27340         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27341         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27342         (ATTRIBUTE_DEPRECATED): Define.
27343         (_ignore_case): New function.
27344         (ignore_value): New macro, to replace the old function.
27345         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27346         * modules/ignore-value (Depends-on): Add stdint.
27347
27348 2011-01-04  Eric Blake  <eblake@redhat.com>
27349
27350         doc: regenerate INSTALL
27351         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27352         @firstparagraphindent support, now that autoconf dropped it.
27353         (INSTALL_PRELUDE): Reinstate old macro.
27354         * doc/install.texi: Resync from autoconf.
27355         * doc/INSTALL: Reflect recent autoconf update.
27356         * doc/INSTALL.ISO: Likewise.
27357         * doc/INSTALL.UTF-8: Likewise.
27358         Reported by Karl Berry.
27359
27360 2011-01-04  Bruce Korb  <address@hidden>
27361
27362         git-version-gen: avoid a sub-shell
27363         * build-aux/git-version-gen: Redirect stderr in `...` via
27364         "exec 2>...", rather than via an added sub-shell.
27365
27366 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27367
27368         git-version-gen: use (...) rather than sh -c '...'
27369         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27370         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27371
27372 2011-01-03  Jim Meyering  <meyering@redhat.com>
27373
27374         git-version-gen: convert leading TABs to spaces
27375         * build-aux/git-version-gen: Expand leading TABs.
27376
27377         git-version-gen: handle failed "git rev-list"
27378         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27379         from git and proceeding as if it had succeeded but printed no SHA1
27380         checksums, suppress the diagnostic and handle the failure.
27381         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27382
27383         git-version-gen: include command name in one more diagnostic
27384         * build-aux/git-version-gen: When the required .tarball-version file
27385         was missing or unreadable, you might see the diagnostic from "cat",
27386         but no trace of the name of the invoking script.  Now, you still see
27387         the diagnostic from cat, but also get one from "git-version-gen: ".
27388         Inspired by a patch from Bruce Korb.
27389
27390         update-copyright: adjust test to match changed code
27391         * tests/test-update-copyright.sh: Change test's expected output
27392         to match new actual output.
27393
27394 2011-01-02  Bruno Haible  <bruno@clisp.org>
27395
27396         getlogin_r: Avoid test failure on HP-UX 11.
27397         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27398         ERANGE when the second argument is zero.
27399         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27400         portability problem.
27401
27402 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27403
27404         * build-aux/update-copyright: doc Simon's changes
27405
27406 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27407
27408         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27409         environment variable.
27410
27411 2011-01-02  Bruno Haible  <bruno@clisp.org>
27412
27413         unigbrk: Avoid gcc warnings.
27414         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27415         unused variable.
27416         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27417         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27418         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27419         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27420         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27421         Change type of first argument to 'const char *'.
27422         (main): Remove unused variable.
27423         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27424         type of first argument to 'const char *'.
27425         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27426         Likewise.
27427         (main): Change type of variable 's'.
27428         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27429         to 'int'.
27430
27431 2011-01-02  Bruno Haible  <bruno@clisp.org>
27432
27433         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27434         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27435         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27436         bug.
27437         * lib/pwrite.c: Undo 2010-12-31 patch.
27438         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27439
27440 2011-01-02  Bruno Haible  <bruno@clisp.org>
27441
27442         pread: Fix test whether it works.
27443         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27444
27445 2011-01-02  Bruno Haible  <bruno@clisp.org>
27446
27447         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27448         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27449         ends in "6". Don't require a specific month name. Try also the locale
27450         names found on HP-UX 11 and Solaris 7.
27451
27452 2011-01-02  Bruno Haible  <bruno@clisp.org>
27453
27454         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27455         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27456         C linkage.
27457         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27458
27459 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27460
27461         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27462         for consistency, since the "cluster" term is not used elsewhere.
27463         * lib/unigbrk.in.h: Update name.
27464         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27465         * lib/unigbrk/u16-grapheme-next.c: Update name.
27466         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27467         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27468         * lib/unigbrk/u32-grapheme-next.c: Update name.
27469         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27470         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27471         * lib/unigbrk/u8-grapheme-next.c: Update name.
27472         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27473         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27474         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27475         Suggested by Bruno Haible.
27476
27477 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27478
27479         Remove module 'u8-grapheme-len' as too redundant with
27480         'u8-grapheme-next'.
27481         * modules/unigbrk/u8-grapheme-len: Delete file.
27482         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27483         * lib/unigbrk.in.h: Remove prototype for deleted function.
27484         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27485         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27486
27487         Remove module 'u16-grapheme-len' as too redundant with
27488         'u16-grapheme-next'.
27489         * modules/unigbrk/u16-grapheme-len: Delete file.
27490         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27491         * lib/unigbrk.in.h: Remove prototype for deleted function.
27492         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27493         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27494
27495         Remove module 'u32-grapheme-len' as too redundant with
27496         'u32-grapheme-next'.
27497         * modules/unigbrk/u32-grapheme-len: Delete file.
27498         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27499         * lib/unigbrk.in.h: Remove prototype for deleted function.
27500         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27501         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27502
27503         Suggested by Bruno Haible.
27504
27505 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27506
27507         * unigbrk.in.h: Fix typo: "ben" => "been".
27508         Reported by Bruno Haible.
27509
27510 2011-01-01  Jim Meyering  <meyering@redhat.com>
27511
27512         maint: update almost all copyright ranges to include 2011
27513         Run the new "make update-copyright" rule.
27514
27515 2011-01-01  Jim Meyering  <meyering@redhat.com>
27516
27517         maint: update-copyright: exempt doc/INSTALL*
27518         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27519         since they are generated.  Suggested by Bruno Haible.
27520
27521 2011-01-01  Jim Meyering  <meyering@redhat.com>
27522
27523         maint: refine the update-copyright rule
27524         * Makefile (update-copyright): Also exclude any file that includes
27525         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27526         code that merely generates the comment.
27527
27528 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27529
27530         New module 'u8-grapheme-len'.
27531         * modules/unigbrk/u8-grapheme-len: New file.
27532         * modules/unigbrk/u8-grapheme-len-tests: New file.
27533         * lib/unigbrk.in.h: Add prototype for new function.
27534         * lib/unigbrk/u8-grapheme-len.c: New file.
27535         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27536
27537         New module 'u16-grapheme-len'.
27538         * modules/unigbrk/u16-grapheme-len: New file.
27539         * modules/unigbrk/u16-grapheme-len-tests: New file.
27540         * lib/unigbrk.in.h: Add prototype for new function.
27541         * lib/unigbrk/u16-grapheme-len.c: New file.
27542         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27543
27544         New module 'u32-grapheme-len'.
27545         * modules/unigbrk/u32-grapheme-len: New file.
27546         * modules/unigbrk/u32-grapheme-len-tests: New file.
27547         * lib/unigbrk.in.h: Add prototype for new function.
27548         * lib/unigbrk/u32-grapheme-len.c: New file.
27549         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27550
27551         New module 'u8-grapheme-next'.
27552         * modules/unigbrk/u8-grapheme-next: New file.
27553         * modules/unigbrk/u8-grapheme-next-tests: New file.
27554         * lib/unigbrk.in.h: Add prototype for new function.
27555         * lib/unigbrk/u8-grapheme-next.c: New file.
27556         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27557
27558         New module 'u16-grapheme-next'.
27559         * modules/unigbrk/u16-grapheme-next: New file.
27560         * modules/unigbrk/u16-grapheme-next-tests: New file.
27561         * lib/unigbrk.in.h: Add prototype for new function.
27562         * lib/unigbrk/u16-grapheme-next.c: New file.
27563         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27564
27565         New module 'u32-grapheme-next'.
27566         * modules/unigbrk/u32-grapheme-next: New file.
27567         * modules/unigbrk/u32-grapheme-next-tests: New file.
27568         * lib/unigbrk.in.h: Add prototype for new function.
27569         * lib/unigbrk/u32-grapheme-next.c: New file.
27570         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27571
27572         New module 'u8-grapheme-prev'.
27573         * modules/unigbrk/u8-grapheme-prev: New file.
27574         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27575         * lib/unigbrk.in.h: Add prototype for new function.
27576         * lib/unigbrk/u8-grapheme-prev.c: New file.
27577         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27578
27579         New module 'u16-grapheme-prev'.
27580         * modules/unigbrk/u16-grapheme-prev: New file.
27581         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27582         * lib/unigbrk.in.h: Add prototype for new function.
27583         * lib/unigbrk/u16-grapheme-prev.c: New file.
27584         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27585
27586         New module 'u32-grapheme-prev'.
27587         * modules/unigbrk/u32-grapheme-prev: New file.
27588         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27589         * lib/unigbrk.in.h: Add prototype for new function.
27590         * lib/unigbrk/u32-grapheme-prev.c: New file.
27591         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27592
27593         New module 'u8-grapheme-breaks'.
27594         * modules/unigbrk/u8-grapheme-breaks: New file.
27595         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27596         * lib/unigbrk.in.h: Add prototype for new function.
27597         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27598         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27599
27600         New module 'u16-grapheme-breaks'.
27601         * modules/unigbrk/u16-grapheme-breaks: New file.
27602         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27603         * lib/unigbrk.in.h: Add prototype for new function.
27604         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27605         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27606
27607         New module 'u32-grapheme-breaks'.
27608         * modules/unigbrk/u32-grapheme-breaks: New file.
27609         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27610         * lib/unigbrk.in.h: Add prototype for new function.
27611         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27612         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27613
27614         New module 'ulc-grapheme-breaks'.
27615         * modules/unigbrk/ulc-grapheme-breaks: New file.
27616         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27617         * m4/locale-ar.m4: New file.
27618         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27619         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27620         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27621
27622 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27623
27624         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27625         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27626         modified how this file was generated before I initially submitted
27627         the module, but failed to regenerate it.  This meant that several
27628         of the level2 entries were wrong.
27629         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27630         Remove the division-by-2 that is folded into the table now that
27631         gbrkprop.h has been regenerated properly.  Now -1 entries are
27632         handled correctly.
27633
27634         New module 'unigbrk/uc-gbrk-prop-tests'.
27635         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27636         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27637         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27638         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27639
27640 2011-01-01  Bruno Haible  <bruno@clisp.org>
27641
27642         Avoid use of hexadecimal escapes.
27643         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27644         instead of hexadecimal escapes.
27645
27646 2011-01-01  Jim Meyering  <meyering@redhat.com>
27647
27648         maint: new rule to update copyright year ranges
27649         * Makefile (update-copyright): New rule.
27650
27651         maint: indent with TABs in Makefile
27652         * Makefile: Expand leading sequences of spaces to TABs
27653
27654         version-etc: update the copyright year it reports
27655         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27656
27657 2010-12-31  Bruno Haible  <bruno@clisp.org>
27658
27659         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27660         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27661         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27662         zero.
27663
27664 2010-12-31  Bruno Haible  <bruno@clisp.org>
27665
27666         pwrite: Work around HP-UX 11.11 bug.
27667         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27668         works and set REPLACE_PWRITE if not.
27669         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27670         function.
27671         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27672
27673 2010-12-31  Bruno Haible  <bruno@clisp.org>
27674
27675         pread: Work around HP-UX 11 bugs.
27676         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27677         and set REPLACE_PREAD if not.
27678         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27679
27680 2010-12-31  Eric Blake  <eblake@redhat.com>
27681
27682         nl_langinfo: fix YESEXPR on Irix 6.5
27683         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27684         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27685         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27686         it.
27687
27688 2010-12-31  Bruno Haible  <bruno@clisp.org>
27689
27690         iconv: Document HP-UX 11 bug.
27691         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27692
27693 2010-12-31  Bruno Haible  <bruno@clisp.org>
27694
27695         ldexpl: Fix link error on HP-UX 11.
27696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27697         LDEXPL_LIBM, using $ISNANL_LIBM.
27698
27699 2010-12-31  Eric Blake  <eblake@redhat.com>
27700
27701         ftello: avoid compilation failure with SunStudio c89
27702         * lib/ftello.c (ftello): Use lseek, not llseek.
27703
27704         tests: avoid failing coreutils tests on cygwin
27705         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27706         (create_exe_shims_): Return 0 when skipping.
27707
27708 2010-12-31  Bruno Haible  <bruno@clisp.org>
27709
27710         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27711         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27712
27713 2010-12-31  Bruno Haible  <bruno@clisp.org>
27714
27715         waitpid: Fix link error in C++ mode.
27716         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27717
27718 2010-12-31  Bruno Haible  <bruno@clisp.org>
27719
27720         isnan: Use GCC built-ins when possible.
27721         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27722         __builtin_isnan.
27723         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27724         (isnan): Define using GCC built-ins for GCC >= 4.0.
27725
27726 2010-12-31  Bruno Haible  <bruno@clisp.org>
27727
27728         isnand: Fix mistake.
27729         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27730         __builtin_isnand.
27731
27732 2010-12-31  Bruno Haible  <bruno@clisp.org>
27733
27734         open: Avoid C++ error on HP-UX 11.
27735         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27736
27737 2010-12-31  Bruno Haible  <bruno@clisp.org>
27738
27739         time_r: Add missing declarations on HP-UX 11.
27740         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27741         instead of HAVE_LOCALTIME_R.
27742         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27743         HAVE_LOCALTIME_R always.
27744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27745         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27746         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27747         HAVE_LOCALTIME_R.
27748         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27749         * doc/posix-functions/localtime_r.texi: Likewise.
27750
27751 2010-12-29  Eric Blake  <eblake@redhat.com>
27752
27753         mountlist: tweak previous commit
27754         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27755         Reported by Paul Eggert.
27756
27757         mountlist: fix local drive detection on cygwin
27758         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27759         that works for cygwin.
27760
27761 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27762
27763         ftoastr, snprintf: ftoastr + snprintf module
27764         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27765         since the snprintf module now should be good enough here.
27766         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27767         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27768         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27769         GNULIB_SNPRINTF only for the test directory, and the latter
27770         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27771         seems to suffice by itself.
27772
27773 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27774
27775         alloca: one step towards thread-safety
27776         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27777         need for a static variable.  All callers changed.  This does not
27778         make the alloca replacement thread-safe, but it's one step.
27779
27780         tests: minor indenting change
27781         * tests/init.sh: Sync from coreutils housekeeping patch
27782         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27783         to keep lines within 80 columns.
27784
27785 2010-12-28  Jim Meyering  <meyering@redhat.com>
27786
27787         regex: don't infloop on persistent failing calloc
27788         * lib/regexec.c (build_trtable): Return failure indication upon
27789         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27790         In glibc, this was fixed for version 2.13:
27791         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27792
27793 2010-12-28  Bruno Haible  <bruno@clisp.org>
27794             Paul Eggert <eggert@cs.ucla.edu>
27795
27796         linkat: Make implementation robust against system behaviour variations.
27797         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27798         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27799         way, and to -2 if it needs a generic runtime test.
27800         * lib/linkat.c (solaris_optimized_link_immediate,
27801         solaris_optimized_link_follow): New functions.
27802         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27803         (check_same_link): Use it.
27804
27805 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27806
27807         New module 'unigbrk/base'.
27808         * modules/unigbrk/base: New file.
27809         * lib/unigbrk.in.h: New file.
27810
27811         New module 'unigbrk/uc-gbrk-prop'.
27812         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27813         * modules/unigbrk/uc-gbrk-prop: New file.
27814         * lib/unigbrk/gbrkprop.h: New file.
27815         * lib/unigbrk/uc-gbrk-prop.c: New file.
27816
27817         New module 'unigbrk/uc-is-grapheme-break'.
27818         * modules/unigbrk/uc-is-grapheme-break: New file.
27819         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27820         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27821         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27822         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27823         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27824
27825         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27826
27827 2010-12-27  Bruno Haible  <bruno@clisp.org>
27828
27829         linkat test: Avoid failure on Solaris 11 2010-11.
27830         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27831
27832 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27833
27834         utimens: work around glibc rounding bug on more platforms
27835         * lib/utimens.c (fdutimens): Work around rounding bug even if
27836         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27838
27839 2010-12-27  Bruno Haible  <bruno@clisp.org>
27840
27841         select tests: Improve comments.
27842         * tests/test-select.c (do_select): Add comments.
27843
27844 2010-12-27  Bruno Haible  <bruno@clisp.org>
27845
27846         select tests: Safer way of handling timeout.
27847         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27848         at every invocation.
27849
27850 2010-12-27  Bruno Haible  <bruno@clisp.org>
27851
27852         select tests: Use 'bool' where appropriate.
27853         * tests/test-select.c (connect_to_socket): Change argument type to
27854         'bool'.
27855
27856 2010-12-27  Bruno Haible  <bruno@clisp.org>
27857
27858         select tests: Use existing modules.
27859         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27860         (configure.ac): Don't test for unistd.h.
27861         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27862         declared in <unistd.h>.
27863
27864 2010-12-27  Bruno Haible  <bruno@clisp.org>
27865
27866         mbrtowc: Work around a Solaris 7 bug.
27867         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27868         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27869         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27870         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27871         MBRTOWC_NULL_ARG1_BUG.
27872         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27873         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27874         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27875         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27876
27877 2010-12-27  Jim Meyering  <meyering@redhat.com>
27878
27879         read-file.c: tweak syntax
27880         * lib/read-file.c (fread_file): Remove space after "*" in function
27881         definitions.
27882
27883 2010-12-27  Bruno Haible  <bruno@clisp.org>
27884
27885         times test: Avoid gcc warnings on OSF/1.
27886         * tests/test-times.c (main): Cast printf arguments from clock_t to
27887         'long int'.
27888
27889 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27890
27891         utimens: work around glibc rounding bug on older Linux kernels
27892         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27893         on Linux with a glibc whose utimes might not work, then work
27894         around a longstanding glibc bug involving rounding rather than
27895         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27897
27898 2010-12-26  Bruno Haible  <bruno@clisp.org>
27899
27900         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27901         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27902         _GL_CXXALIAS_SYS.
27903         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27904
27905 2010-12-26  Bruno Haible  <bruno@clisp.org>
27906
27907         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27908         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27909         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27910         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27911         looking for the declaration.
27912         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27913         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27914         problem.
27915         * doc/posix-functions/inet_pton.texi: Likewise.
27916
27917 2010-12-26  Bruno Haible  <bruno@clisp.org>
27918
27919         arpa_inet: Use the common idioms with C++ support.
27920         * lib/arpa_inet.in.h: Include c++defs.h.
27921         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27922         support.
27923         * modules/arpa_inet (Depends-on): Add c++defs.
27924         (Makefile.am): Substitute the contents of c++defs.h.
27925         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27926         * modules/arpa_inet-c++-tests: New file.
27927         * tests/test-arpa_inet-c++.cc: New file.
27928
27929 2010-12-25  Bruno Haible  <bruno@clisp.org>
27930
27931         Fix more C++ link errors on Solaris 8.
27932         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27933         $(LIB_EACCESS).
27934         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27935         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27936         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27937         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27938         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27939
27940 2010-12-25  Bruno Haible  <bruno@clisp.org>
27941
27942         printf-posix: Fix link error when a non-GCC compiler is used.
27943         * lib/stdio.in.h (printf): When not using GCC, override printf
27944         correctly.
27945         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27946
27947 2010-12-25  Bruno Haible  <bruno@clisp.org>
27948
27949         strerror_r-posix: Update doc.
27950         * doc/posix-functions/strerror_r.texi: Update doc about the return
27951         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27952
27953 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         utimens: simplify the logic of the previous change
27956         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27957         This should not affect whether the test succeeds or fails.
27958
27959         utimens: configure better on hosts with NFS clock skew
27960         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27961         uses the clock of the local host.  It might use the clock of the
27962         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27963         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27964
27965 2010-12-25  Bruno Haible  <bruno@clisp.org>
27966
27967         ptsname test: Avoid failure on Solaris.
27968         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27969         open a pseudo-terminal; don't use BSD-style ptys.
27970         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27971
27972 2010-12-25  Bruno Haible  <bruno@clisp.org>
27973
27974         ptsname: Avoid ERANGE failure on some systems.
27975         * lib/ptsname.c (buffer): Increase size.
27976
27977 2010-12-25  Bruno Haible  <bruno@clisp.org>
27978
27979         rename, renameat: Avoid test failures at NFS mounted locations.
27980         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27981         so that subsequent mkdir calls succeed.
27982
27983 2010-12-25  Bruno Haible  <bruno@clisp.org>
27984
27985         iswblank: Fix C++ link error on Solaris 8.
27986         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27987         _GL_FUNCDECL_SYS.
27988
27989 2010-12-25  Bruno Haible  <bruno@clisp.org>
27990
27991         unistd: Fix C++ link error on Solaris 8.
27992         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27993
27994 2010-12-25  Bruno Haible  <bruno@clisp.org>
27995
27996         readlink doc: Mention an old glibc bug.
27997         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27998
27999 2010-12-25  Bruno Haible  <bruno@clisp.org>
28000
28001         fcntl-h: Fix for use of C++ on glibc systems.
28002         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28003         also on glibc systems in C++ mode.
28004         Reported by Gary V. Vaughan <gary@gnu.org>.
28005
28006 2010-12-25  Bruno Haible  <bruno@clisp.org>
28007
28008         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28009         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28010
28011 2010-12-25  Bruno Haible  <bruno@clisp.org>
28012
28013         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28014         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28015         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28016         test whether truncl works according to ISO C 99 with IEC 60559.
28017         * m4/truncl-ieee.m4: New file.
28018         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28019         m4/signbit.m4.
28020         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28021
28022 2010-12-25  Bruno Haible  <bruno@clisp.org>
28023
28024         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28025         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28026         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28027         test whether ceill works according to ISO C 99 with IEC 60559.
28028         * m4/ceill-ieee.m4: New file.
28029         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28030         m4/signbit.m4.
28031         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28032
28033 2010-12-25  Bruno Haible  <bruno@clisp.org>
28034
28035         Ensure all prerequisites of <wchar.h> are included.
28036         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28037         before <wchar.h>.
28038         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28039         gl_MBRLEN_NUL_RETVAL): Likewise.
28040         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28041         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28042         AC_FUNC_MBRTOWC): Likewise.
28043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28044         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28045         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28046         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28047         Likewise.
28048         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28049         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28050         (gl_WCHAR_H): Improve comments.
28051         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28052
28053 2010-12-25  Bruno Haible  <bruno@clisp.org>
28054
28055         strtok_r: Fix C syntax error in autoconf macro.
28056         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28057         characters in test program.
28058
28059 2010-12-24  Bruno Haible  <bruno@clisp.org>
28060
28061         ceil, trunc, round: Fix gcc warnings.
28062         * lib/ceil.c (MIN): Undefine before redefining.
28063         * lib/trunc.c (MIN): Likewise.
28064         * lib/round.c (MIN): Likewise.
28065         Include <math.h> first.
28066
28067 2010-12-24  Bruno Haible  <bruno@clisp.org>
28068
28069         select tests: Avoid failures on OSF/1 5.1.
28070         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28071         failure of closing the last socket; it may fail with ECONNRESET.
28072
28073 2010-12-24  Eric Blake  <eblake@redhat.com>
28074
28075         stdint: avoid HP-UX 10.20 preprocessor bug
28076         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28077         than #if.
28078         * tests/test-floor2.c (main): Likewise.
28079         Reported by Peter O'Gorman.
28080
28081         pipe: make obsoletion transition easier
28082         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28083         * modules/pipe (Files): Include revived file.
28084         (Include): Drop reference, to mirror getdate's behavior.
28085
28086 2010-12-24  Bruno Haible  <bruno@clisp.org>
28087
28088         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28089         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28090         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28091         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28092
28093 2010-12-24  Bruno Haible  <bruno@clisp.org>
28094
28095         gethostname: Ensure declaration on NonStop Kernel.
28096         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28097         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28098
28099 2010-12-24  Bruno Haible  <bruno@clisp.org>
28100
28101         sys_select: Ensure all necessary types on NonStop Kernel.
28102         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28103         include <sys/time.h>.
28104         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28105         NonStop Kernel.
28106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28107
28108 2010-12-24  Bruno Haible  <bruno@clisp.org>
28109
28110         sys_select: Remove unneeded include.
28111         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28112         have <sys/select.h>.
28113
28114 2010-12-24  Bruno Haible  <bruno@clisp.org>
28115
28116         gethostname: Provide a fallback for HOST_NAME_MAX.
28117         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28118         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28119         instead.
28120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28121
28122 2010-12-24  Bruno Haible  <bruno@clisp.org>
28123
28124         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28125         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28126         (SA_RESTART): Likewise.
28127         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28128
28129 2010-12-24  Bruno Haible  <bruno@clisp.org>
28130
28131         signal: Define NSIG.
28132         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28133         * tests/test-signal.c (nsig): New variable.
28134         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28135
28136 2010-12-24  Bruno Haible  <bruno@clisp.org>
28137
28138         rename, renameat: Avoid test failures on OSF/1 5.1.
28139         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28140         alternative error codes.
28141         * tests/test-renameat.c (main): Likewise.
28142
28143 2010-12-24  Bruno Haible  <bruno@clisp.org>
28144
28145         *printf: Detect large precisions bug on Solaris 10/SPARC.
28146         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28147         by Paul Eggert.
28148         * tests/test-snprintf-posix.h (test_function): Add this test code here
28149         too.
28150         * tests/test-sprintf-posix.h (test_function): Likewise.
28151         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28152         * tests/test-vasprintf-posix.c (test_function): Likewise.
28153         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28154         around by gnulib.
28155         * doc/posix-functions/printf.texi: Likewise.
28156         * doc/posix-functions/snprintf.texi: Likewise.
28157         * doc/posix-functions/sprintf.texi: Likewise.
28158         * doc/posix-functions/vfprintf.texi: Likewise.
28159         * doc/posix-functions/vprintf.texi: Likewise.
28160         * doc/posix-functions/vsnprintf.texi: Likewise.
28161         * doc/posix-functions/vsprintf.texi: Likewise.
28162         * doc/posix-functions/dprintf.texi: Undo last commit.
28163         * doc/posix-functions/vdprintf.texi: Likewise.
28164
28165 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28166
28167         tests: port test-fdutimensat.c to Solaris 8
28168         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28169         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28170         On Solaris 8, it fails with errno == ENOSYS, because there is no
28171         futimens (so it can't use the fd), and there is no lutimens (so it
28172         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28173
28174         vsnprintf: make more consistent with snprintf; doc fixes
28175
28176         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28177         the byte count return problem was promoted from the snprintf-posix
28178         to the snprintf module.
28179         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28180         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28181         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28182         * tests/test-snprintf.c (main): Check the byte count returned.
28183         * tests/test-vsnprintf.c (main): Likewise.
28184
28185 2010-12-23  Eric Blake  <eblake@redhat.com>
28186
28187         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28188         * modules/sigpipe (License): Relax license.
28189
28190 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28191
28192         doc: document Solaris printf bug with large float precisions
28193         * doc/posix-functions/dprintf.texi (dprintf):
28194         * doc/posix-functions/fprintf.texi (fprintf):
28195         * doc/posix-functions/printf.texi (printf):
28196         * doc/posix-functions/snprintf.texi (snprintf):
28197         * doc/posix-functions/sprintf.texi (sprintf):
28198         * doc/posix-functions/vdprintf.texi (vdprintf):
28199         * doc/posix-functions/vfprintf.texi (vfprintf):
28200         * doc/posix-functions/vprintf.texi (vprintf):
28201         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28202         * doc/posix-functions/vsprintf.texi (vsprintf):
28203         Mention that these functions mishandle large floating point
28204         precisions on Solaris 10.  The same bug is also present in Solaris
28205         8, and I assume earlier.  This causes "cd gnulib-tests; make
28206         check" to fail on Solaris 8 (and I assume, later) when building
28207         the latest coreutils, in test-vasprintf-posix's call to
28208         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28209         the wide flavors (e.g., wprintf) so this patch just updates the
28210         documentation for the narrow ones.
28211
28212         test-posixtm.c: add two tests
28213         * tests/test-posixtm.c: Add two tests, to highlight the
28214         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28215         around this bug; this is merely to document it.
28216
28217 2010-12-22  Bruno Haible  <bruno@clisp.org>
28218
28219         getlogin_r: Work around portability problem on OSF/1.
28220         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28221         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28222         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28223         test for a truncated result.
28224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28225         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28226         * modules/getlogin_r (Depends-on): Add memchr.
28227         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28228
28229 2010-12-22  Bruno Haible  <bruno@clisp.org>
28230
28231         ptsname: Avoid test failure on OSF/1 5.1.
28232         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28233         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28234         (same_slave): New function.
28235         (main): Use it to compare ptsname's result with the expected file name.
28236
28237 2010-12-22  Bruno Haible  <bruno@clisp.org>
28238
28239         Port extended stdio modules to HP NonStop Kernel.
28240         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28241         macros.
28242         * lib/fbufmode.c: Update comments.
28243         * lib/fflush.c: Likewise.
28244         * lib/fpurge.c: Likewise.
28245         * lib/freadable.c: Likewise.
28246         * lib/freadahead.c: Likewise.
28247         * lib/freading.c: Likewise.
28248         * lib/freadptr.c: Likewise.
28249         * lib/freadseek.c: Likewise.
28250         * lib/fseeko.c: Likewise.
28251         * lib/fseterr.c: Likewise.
28252         * lib/fwritable.c: Likewise.
28253         * lib/fwriting.c: Likewise.
28254         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28255
28256 2010-12-22  Bruno Haible  <bruno@clisp.org>
28257
28258         ttyname_r: Work around bug on OSF/1 5.1.
28259         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28260         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28261         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28262         present.
28263         * lib/ttyname_r.c (ttyname_r): Update comments.
28264
28265 2010-12-22  Bruno Haible  <bruno@clisp.org>
28266
28267         round: Implement result sign according to IEEE 754.
28268         * lib/round.c (MIN, MINUS_ZERO): New macros.
28269         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28270         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28271         * tests/test-round-ieee.c (main): Likewise.
28272         * tests/test-roundl-ieee.c (main): Likewise.
28273
28274         trunc: Implement result sign according to IEEE 754.
28275         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28276         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28277         * tests/test-trunc2.c: Include minus-zero.h.
28278         (MINUS_ZERO): New macro.
28279         (trunc_reference): Keep in sync with lib/trunc.c.
28280         * tests/test-truncf2.c: Include minus-zero.h.
28281         (MINUS_ZERO): New macro.
28282         (truncf_reference): Keep in sync with lib/trunc.c.
28283         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28284         * tests/test-trunc-ieee.c (main): Likewise.
28285         * tests/test-truncl-ieee.c (main): Likewise.
28286
28287         ceil: Implement result sign according to IEEE 754.
28288         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28289         (FUNC): Return -0.0 for -1 < x < 0.
28290         * tests/test-ceil2.c: Include minus-zero.h.
28291         (MINUS_ZERO): New macro.
28292         (ceil_reference): Keep in sync with lib/ceil.c.
28293         * tests/test-ceilf2.c: Include minus-zero.h.
28294         (MINUS_ZERO): New macro.
28295         (ceilf_reference): Keep in sync with lib/ceil.c.
28296         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28297         * tests/test-ceil-ieee.c (main): Likewise.
28298         * tests/test-ceill-ieee.c (main): Likewise.
28299
28300         floor: Implement result sign according to IEEE 754.
28301         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28302         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28303         * tests/test-floorf2.c (floorf_reference): Likewise.
28304         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28305         * tests/test-floor-ieee.c (main): Likewise.
28306         * tests/test-floorl-ieee.c (main): Likewise.
28307
28308 2010-12-22  Bruno Haible  <bruno@clisp.org>
28309
28310         getaddrinfo: Update doc.
28311         * doc/posix-functions/gai_strerror.texi: Return type is also different
28312         on AIX and HP-UX.
28313
28314 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28315
28316         getaddrinfo, inet_ntop: Update doc for Solaris.
28317         * doc/posix-functions/gai_strerror.texi: Return type is also an
28318         issue on Solaris 9 and earlier.
28319         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28320         on Solaris 10 and earlier.
28321
28322 2010-12-21  Bruno Haible  <bruno@clisp.org>
28323
28324         New module 'roundl-ieee'.
28325         * modules/roundl-ieee: New file.
28326         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28327         test whether roundl works according to ISO C 99 with IEC 60559.
28328         * m4/roundl-ieee.m4: New file.
28329         * modules/roundl-ieee-tests: New file.
28330         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28331         * tests/test-roundl.c (main): Remove signbit tests.
28332         * modules/roundl-tests (Depends-on): Remove signbit.
28333         * doc/posix-functions/roundl.texi: Mention the new module.
28334
28335 2010-12-21  Bruno Haible  <bruno@clisp.org>
28336
28337         New module 'truncl-ieee'.
28338         * modules/truncl-ieee: New file.
28339         * modules/truncl-ieee-tests: New file.
28340         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28341         * tests/test-truncl.c (main): Remove signbit tests.
28342         * modules/truncl-tests (Depends-on): Remove signbit.
28343         * doc/posix-functions/truncl.texi: Mention the new module.
28344
28345 2010-12-21  Bruno Haible  <bruno@clisp.org>
28346
28347         New module 'ceill-ieee'.
28348         * modules/ceill-ieee: New file.
28349         * modules/ceill-ieee-tests: New file.
28350         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28351         * tests/test-ceill.c (main): Remove signbit tests.
28352         * modules/ceill-tests (Depends-on): Remove signbit.
28353         * doc/posix-functions/ceill.texi: Mention the new module.
28354
28355 2010-12-21  Bruno Haible  <bruno@clisp.org>
28356
28357         New module 'floorl-ieee'.
28358         * modules/floorl-ieee: New file.
28359         * modules/floorl-ieee-tests: New file.
28360         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28361         * tests/test-floorl.c (main): Remove signbit tests.
28362         * modules/floorl-tests (Depends-on): Remove signbit.
28363         * doc/posix-functions/floorl.texi: Mention the new module.
28364
28365 2010-12-21  Bruno Haible  <bruno@clisp.org>
28366
28367         New module 'round-ieee'.
28368         * modules/round-ieee: New file.
28369         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28370         whether round works according to ISO C 99 with IEC 60559.
28371         * m4/round-ieee.m4: New file.
28372         * modules/round-ieee-tests: New file.
28373         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28374         * tests/test-round1.c (main): Remove signbit tests.
28375         * modules/round-tests (Depends-on): Remove 'signbit'.
28376         * doc/posix-functions/round.texi: Mention the new module.
28377
28378 2010-12-21  Bruno Haible  <bruno@clisp.org>
28379
28380         New module 'trunc-ieee'.
28381         * modules/trunc-ieee: New file.
28382         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28383         whether trunc works according to ISO C 99 with IEC 60559.
28384         * m4/trunc-ieee.m4: New file.
28385         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28387         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28388         * modules/trunc-ieee-tests: New file.
28389         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28390         * tests/test-trunc1.c (main): Remove signbit tests.
28391         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28392         * doc/posix-functions/trunc.texi: Mention the new module.
28393
28394 2010-12-21  Bruno Haible  <bruno@clisp.org>
28395
28396         New module 'ceil-ieee'.
28397         * modules/ceil-ieee: New file.
28398         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28399         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28400         ISO C 99 with IEC 60559.
28401         * m4/ceil-ieee.m4: New file.
28402         * modules/ceil (Files): Add lib/ceil.c.
28403         (Depends-on): Add 'float'.
28404         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28405         * lib/math.in.h (ceil): New declaration.
28406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28407         REPLACE_CEIL.
28408         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28409         * modules/ceil-ieee-tests: New file.
28410         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28411         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28412         * doc/posix-functions/ceil.texi: Mention the new module.
28413
28414 2010-12-21  Bruno Haible  <bruno@clisp.org>
28415
28416         New module 'floor-ieee'.
28417         * modules/floor-ieee: New file.
28418         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28419         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28420         ISO C 99 with IEC 60559.
28421         * m4/floor-ieee.m4: New file.
28422         * modules/floor (Files): Add lib/floor.c.
28423         (Depends-on): Add 'float'.
28424         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28425         * lib/math.in.h (floor): New declaration.
28426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28427         REPLACE_FLOOR.
28428         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28429         * modules/floor-ieee-tests: New file.
28430         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28431         * tests/test-math-c++.cc: Check the signature of 'floor'.
28432         * doc/posix-functions/floor.texi: Mention the new module.
28433
28434 2010-12-21  Bruno Haible  <bruno@clisp.org>
28435
28436         New module 'roundf-ieee'.
28437         * modules/roundf-ieee: New file.
28438         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28439         test whether roundf works according to ISO C 99 with IEC 60559.
28440         * m4/roundf-ieee.m4: New file.
28441         * modules/roundf-ieee-tests: New file.
28442         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28443         * tests/test-roundf1.c (main): Remove signbit tests.
28444         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28445         * doc/posix-functions/roundf.texi: Mention the new module.
28446
28447 2010-12-21  Bruno Haible  <bruno@clisp.org>
28448
28449         New module 'truncf-ieee'.
28450         * modules/truncf-ieee: New file.
28451         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28452         test whether truncf works according to ISO C 99 with IEC 60559.
28453         * m4/truncf-ieee.m4: New file.
28454         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28456         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28457         * modules/truncf-ieee-tests: New file.
28458         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28459         * tests/test-truncf1.c (main): Remove signbit tests.
28460         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28461         * doc/posix-functions/truncf.texi: Mention the new module.
28462
28463 2010-12-21  Bruno Haible  <bruno@clisp.org>
28464
28465         New module 'ceilf-ieee'.
28466         * modules/ceilf-ieee: New file.
28467         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28468         test whether ceilf works according to ISO C 99 with IEC 60559.
28469         * m4/ceilf-ieee.m4: New file.
28470         * modules/ceilf-ieee-tests: New file.
28471         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28472         * tests/test-ceilf1.c (main): Remove signbit tests.
28473         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28474         * doc/posix-functions/ceilf.texi: Mention the new module.
28475
28476 2010-12-21  Bruno Haible  <bruno@clisp.org>
28477
28478         New module 'floorf-ieee'.
28479         * modules/floorf-ieee: New file.
28480         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28481         test whether floorf works according to ISO C 99 with IEC 60559.
28482         * m4/floorf-ieee.m4: New file.
28483         * modules/floorf-ieee-tests: New file.
28484         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28485         * tests/test-floorf1.c (main): Remove signbit tests.
28486         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28487         * doc/posix-functions/floorf.texi: Mention the new module.
28488
28489 2010-12-21  Bruno Haible  <bruno@clisp.org>
28490
28491         Support for minus zero in autoconf macros.
28492         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28493         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28494         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28495         * tests/minus-zero.h: Update comments.
28496
28497 2010-12-21  Bruno Haible  <bruno@clisp.org>
28498
28499         Tests for module 'ceil'.
28500         * modules/ceil-tests: New file.
28501         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28502         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28503
28504 2010-12-21  Bruno Haible  <bruno@clisp.org>
28505
28506         Tests for module 'floor'.
28507         * modules/floor-tests: New file.
28508         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28509         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28510
28511 2010-12-21  Bruno Haible  <bruno@clisp.org>
28512
28513         math: Fix indentation.
28514         * lib/math.in.h (floorf): Fix indentation.
28515
28516 2010-12-21  Bruno Haible  <bruno@clisp.org>
28517
28518         Fix cross-compilation guesses on Solaris.
28519         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28520         not match "solaris2.10".
28521         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28522         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28523         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28524
28525 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28526
28527         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28528         This fixes a problem observed with the latest coreutils snapshot
28529         that caused a test to fail on Solaris 8.  src/csplit.c's call
28530         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28531         earlier, instead of returning the number of bytes that would have
28532         been generated; this causes csplit to incorrectly report memory
28533         exhaustion.
28534         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28535         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28536         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28537         comments to match.
28538         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28539         Fix typo in matching older versions of Solaris: "solaris2.10"
28540         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28541         only for guessing while cross-compiling.
28542         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28543
28544 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28545
28546         ftoastr: fix comment again
28547         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28549         Also, simplify example a bit by using flags = 0.
28550
28551 2010-12-20  Bruno Haible  <bruno@clisp.org>
28552
28553         round*, trunc*: Update documentation regarding glibc.
28554         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28555         * doc/posix-functions/round.texi: Likewise.
28556         * doc/posix-functions/roundl.texi: Likewise.
28557         * doc/posix-functions/truncf.texi: Likewise.
28558         * doc/posix-functions/trunc.texi: Likewise.
28559         * doc/posix-functions/truncl.texi: Likewise.
28560
28561 2010-12-20  Bruno Haible  <bruno@clisp.org>
28562
28563         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28564         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28565         * doc/posix-functions/round.texi: Likewise.
28566         * doc/posix-functions/roundl.texi: Likewise.
28567
28568 2010-12-20  Bruno Haible  <bruno@clisp.org>
28569
28570         ttyname_r: Add missing declaration on HP-UX 11.
28571         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28572         HAVE_TTYNAME_R.
28573         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28574         declared. Set HAVE_TTYNAME_R always.
28575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28576         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28577         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28578         HAVE_TTYNAME_R.
28579         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28580
28581 2010-12-20  Bruno Haible  <bruno@clisp.org>
28582
28583         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28584         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28585         * doc/posix-functions/getlogin_r.texi: Likewise.
28586         * tests/test-getlogin.c: Include <errno.h>.
28587         (main): Avoid test failure on HP-UX 11.11.
28588         * tests/test-getlogin_r.c (main): Likewise.
28589
28590 2010-12-20  Bruno Haible  <bruno@clisp.org>
28591
28592         getlogin_r: Add missing declaration on HP-UX 11.
28593         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28594         declared also when it exists as a function.
28595         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28596
28597 2010-12-20  Bruno Haible  <bruno@clisp.org>
28598
28599         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28600         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28601         through wcrtomb.
28602
28603 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28604
28605         ftoastr: fix comment
28606         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28608
28609 2010-12-19  Bruno Haible  <bruno@clisp.org>
28610
28611         isnan: Ensure it is a macro.
28612         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28613         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28614         Solaris.
28615
28616 2010-12-19  Bruno Haible  <bruno@clisp.org>
28617
28618         ldexpl test: Fix link error on OSF/1 5.1.
28619         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28620
28621 2010-12-19  Bruno Haible  <bruno@clisp.org>
28622
28623         wctype: Make it work in C++ mode on OSF/1 5.1.
28624         * lib/wctype.in.h (iswblank): Declare but not define here.
28625         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28626         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28627         * modules/wctype (Files): Add lib/iswblank.c.
28628
28629 2010-12-19  Bruno Haible  <bruno@clisp.org>
28630
28631         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28632         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28633         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28634
28635 2010-12-19  Bruno Haible  <bruno@clisp.org>
28636
28637         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28638         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28639         _POSIX_PII_SOCKET.
28640         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28641         * doc/posix-functions/recvfrom.texi: Likewise.
28642         * doc/posix-functions/send.texi: Likewise.
28643         * doc/posix-functions/sendto.texi: Likewise.
28644
28645 2010-12-19  Bruno Haible  <bruno@clisp.org>
28646
28647         tcgetsid: Add missing declaration on OSF/1 5.1.
28648         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28649         HAVE_TCGETSID.
28650         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28651         Don't set HAVE_TCGETSID.
28652         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28653         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28654         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28655         HAVE_TCGETSID.
28656         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28657
28658 2010-12-19  Bruno Haible  <bruno@clisp.org>
28659
28660         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28661         * lib/stdio.in.h: During the include_next statement, let recursive
28662         includes of this file include only the system header file.
28663
28664 2010-12-19  Bruno Haible  <bruno@clisp.org>
28665
28666         iconv_open: Fix regression from 2010-12-04.
28667         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28668         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28669
28670 2010-12-19  Bruno Haible  <bruno@clisp.org>
28671
28672         stdbool test: Avoid a gcc warning.
28673         * tests/test-stdbool.c (main): Fail if e1 is false.
28674         Reported by Jim Meyering.
28675
28676 2010-12-19  Jim Meyering  <meyering@redhat.com>
28677
28678         setenv: restore to working order
28679         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28680         mistakenly removed.
28681         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28682         HAVE_SETENV.
28683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28684         HAVE_SETENV.
28685
28686 2010-12-19  Bruno Haible  <bruno@clisp.org>
28687
28688         Document some different function declarations on OSF/1 5.1.
28689         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28690         * doc/posix-functions/inet_ntop.texi: Likewise.
28691         * doc/posix-functions/gethostname.texi: Likewise.
28692         * lib/unistd.in.h (gethostname): Update comment.
28693
28694 2010-12-19  Bruno Haible  <bruno@clisp.org>
28695
28696         doc: Mention vasprintf-posix module.
28697         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28698         the 'vasprintf-posix' module.
28699         * doc/glibc-functions/vasprintf.texi: Likewise.
28700
28701 2010-12-19  Bruno Haible  <bruno@clisp.org>
28702
28703         unsetenv: Add missing declaration on OSF/1 5.1.
28704         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28706         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28708         not HAVE_UNSETENV.
28709         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28710         HAVE_UNSETENV.
28711         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28712
28713 2010-12-19  Bruno Haible  <bruno@clisp.org>
28714
28715         setenv: Add missing declaration on OSF/1 5.1.
28716         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28718         declared. Don't set HAVE_SETENV.
28719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28720         not HAVE_SETENV.
28721         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28722         HAVE_SETENV.
28723         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28724
28725 2010-12-19  Bruno Haible  <bruno@clisp.org>
28726
28727         nl_langinfo tests: Avoid gcc warning.
28728         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28729
28730 2010-12-19  Bruno Haible  <bruno@clisp.org>
28731
28732         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28733         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28734         _GL_CXXALIAS_SYS.
28735
28736 2010-12-19  Bruno Haible  <bruno@clisp.org>
28737
28738         stdbool: Relax test.
28739         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28740         address to 'bool' work in static initializer, for compilers other than
28741         GCC.
28742
28743 2010-12-19  Bruno Haible  <bruno@clisp.org>
28744
28745         ftello: Add missing declaration on OSF/1 5.1.
28746         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28747         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28749         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28750         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28751
28752 2010-12-19  Bruno Haible  <bruno@clisp.org>
28753
28754         fseeko: Add missing declaration on OSF/1 5.1.
28755         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28758         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28759         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28760
28761 2010-12-19  Bruno Haible  <bruno@clisp.org>
28762
28763         fchdir: Add missing declaration on OSF/1 5.1.
28764         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28767         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28768         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28769
28770 2010-12-19  Bruno Haible  <bruno@clisp.org>
28771
28772         relocatable-prog-wrapper: Separate from relocatable-prog.
28773         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28774         uninstall-relocwrapper rule here.
28775         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28776         Reported by Ian Beckwith <ianb@erislabs.net>.
28777
28778 2010-12-19  Bruno Haible  <bruno@clisp.org>
28779
28780         unistr/u8-mbsnlen: Add missing dependency.
28781         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28782         Reported by Ian Beckwith <ianb@erislabs.net>.
28783
28784 2010-12-19  Bruno Haible  <bruno@clisp.org>
28785
28786         iconv: Make it possible again to use this module without 'iconv-h'.
28787         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28788         if it is not defined.
28789         Reported by Ian Beckwith <ianb@erislabs.net>.
28790
28791 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28792
28793         acl: port to Solaris 8 when copying from tmpfs to ufs
28794         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28795         error number.  Problem observed on Solaris 8 with latest
28796         coreutils, with "mv A B", where A is on a tmpfs file system and B
28797         is on a ufs file system.  This caused coreutils' mv/part-symlink
28798         test to fail.
28799
28800         tests: set fail=0 at start
28801         * tests/init.sh (setup_): Move fail=0 initialization here ...
28802         (mktempd_): ... from here, so that tests can rely on fail being
28803         set to 0 initially.  This fixes a problem in coreutils; see:
28804         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28805
28806 2010-12-18  Bruno Haible  <bruno@clisp.org>
28807
28808         memmem-simple: Stylistic changes.
28809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28810         Fix preprocessor directive indentation.
28811
28812 2010-12-15  Pádraig Brady <P@draigBrady.com>
28813
28814         memmem, memmem-simple: reorganize and expand empty needle check
28815         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28816         functional checks to memmem-simple so that one has a fully functional
28817         memmem by using just this module.
28818         Restrict the performance only check to the memmem module.
28819         Also expand the empty needle check to ensure the correct
28820         pointer is returned, not just a non NULL pointer.
28821         * doc/glibc-functions/memmem.texi: Rearrange the portability
28822         documentation to correlate with the rearranged checks.
28823         Clarify exactly how the memmem and memmem-simple modules
28824         relate to each other.
28825
28826 2010-12-15  Pádraig Brady <P@draigBrady.com>
28827             Bruno Haible  <bruno@clisp.org>
28828
28829         Improve cross-compilation guesses for uClibc.
28830         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28831         that uClibc does not have the glibc bug.
28832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28833         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28834
28835 2010-12-14  Eric Blake  <eblake@redhat.com>
28836
28837         configmake: provide fallbacks for oldest supported autotools
28838         * m4/configmake.m4: New file.
28839         * modules/configmake (Files): Ship it.
28840         (configure.ac): Use it to guarantee fallbacks.
28841
28842 2010-12-13  Pádraig Brady <P@draigBrady.com>
28843
28844         read-file: Improve handling of large files
28845         * lib/read-file.c (fread_file): Minimize realloc()s
28846         for regular files, and better manage sizes around SIZE_MAX.
28847
28848 2010-12-13  Eric Blake  <eblake@redhat.com>
28849
28850         cloexec, fcntl: relax license
28851         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28852         consent from all contributors.
28853         * modules/fcntl (License): Likewise.
28854
28855 2010-12-10  Bruno Haible  <bruno@clisp.org>
28856
28857         Tests for module 'pipe-posix'.
28858         * modules/pipe-posix-tests: New file.
28859         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28860
28861 2010-12-10  Bruno Haible  <bruno@clisp.org>
28862
28863         pipe-posix: Make it work in C++ mode.
28864         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28865         (pipe): Use common idiom, not a macro definition.
28866         * lib/pipe.c: New file.
28867         * m4/pipe.m4: New file.
28868         * modules/pipe-posix (Description): Enhance.
28869         (Files): Add lib/pipe.c, m4/pipe.m4.
28870         (configure.ac): Invoke gl_FUNC_PIPE.
28871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28872         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28873         * tests/test-unistd-c++.cc: Check the signature of pipe.
28874
28875 2010-12-10  Bruno Haible  <bruno@clisp.org>
28876
28877         Rename module 'pipe' to 'spawn-pipe'.
28878         * modules/spawn-pipe: New file, renamed from modules/pipe.
28879         (Files, configure.ac, Makefile.am): Update.
28880         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28881         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28882         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28883         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28884         "spawn-pipe.h" instead of "pipe.h".
28885         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28886         to gl_SPAWN_PIPE.
28887         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28888         (Files, Makefile.am): Update.
28889         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28890         Update.
28891         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28892         Include "spawn-pipe.h" instead of "pipe.h".
28893         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28894         * lib/javacomp.c: Likewise.
28895         * lib/javaversion.c: Likewise.
28896         * lib/pipe-filter-gi.c: Likewise.
28897         * lib/pipe-filter-ii.c: Likewise.
28898         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28899         * modules/javacomp (Depends-on): Likewise.
28900         * modules/javaversion (Depends-on): Likewise.
28901         * modules/pipe-filter-gi (Depends-on): Likewise.
28902         * modules/pipe-filter-ii (Depends-on): Likewise.
28903         * MODULES.html.sh (Executing programs): Update.
28904         * NEWS: Mention the change.
28905
28906 2010-12-10  Eric Blake  <eblake@redhat.com>
28907
28908         pipe-posix: new module
28909         * modules/pipe-posix: New file.
28910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28911         (gl_UNISTD_H): Check for declaration.
28912         * modules/unistd (Makefile.am): Substitute it.
28913         * lib/unistd.in.h (pipe): Provide it for mingw.
28914         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28915         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28916
28917 2010-12-07  Bruno Haible  <bruno@clisp.org>
28918
28919         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28920         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28921         u8_strcmp_gnu.
28922         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28923
28924 2010-12-06  Bruno Haible  <bruno@clisp.org>
28925
28926         Update internal documentation.
28927         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28928
28929 2010-12-04  Bruno Haible  <bruno@clisp.org>
28930
28931         Put more information about failed tests into the test return codes.
28932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28933         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28934         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28935         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28938         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28939         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28940         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28942         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28943         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28944         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28945         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28946         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28947         returns a bit mask.
28948         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28949         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28950         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28951         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28952         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28953         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28956         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28957         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28959         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28960         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28962         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28963         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28964         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28965         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28966         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28967         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28969         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28971         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28972         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28973         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28974         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28975         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28976         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28977         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28978         gl_PRINTF_PRECISION): Likewise.
28979         * m4/regex.m4 (gl_REGEX): Likewise.
28980         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28981         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28983         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28984         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28986         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28987         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28988         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28989         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28990         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28991         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28992         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28993         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28994         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28995         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28996         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28999         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29000         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29001         enumerated value.
29002         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29003
29004 2010-12-04  Bruno Haible  <bruno@clisp.org>
29005
29006         Update for Solaris 11 2010-11.
29007         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29008         Express, released in November 2010.
29009
29010 2010-12-04  Bruno Haible  <bruno@clisp.org>
29011
29012         nproc: Relax license.
29013         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29014         and Paul Eggert.
29015         Requested by Ludovic Courtès <ludo@gnu.org>.
29016
29017 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29018
29019         utimecmp: fine-grained src to nearby coarse-grained dest
29020
29021         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29022         and the source is on a file system with higher-resolution time
29023         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29024         not work, and the time stamps are close together, the algorithm to
29025         determine the exact resolution from the read-back mtime was buggy:
29026         it had a "!=" where it should have had an "==".  This bug has been
29027         in the code ever since it was introduced to gnulib.
29028         Problem reported by Dan Jacobson in
29029         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29030
29031 2010-11-30  Bruno Haible  <bruno@clisp.org>
29032
29033         strerror_r-posix: Fix autoconf test.
29034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29035
29036 2010-11-28  Bruno Haible  <bruno@clisp.org>
29037             Paul Eggert  <eggert@cs.ucla.edu>
29038
29039         Tests for module 'getdomainname'.
29040         * modules/getdomainname-tests: New file.
29041         * tests/test-getdomainname.c: New file, based on
29042         tests/test-gethostname.c.
29043
29044 2010-11-28  Bruno Haible  <bruno@clisp.org>
29045             Paul Eggert  <eggert@cs.ucla.edu>
29046
29047         getdomainname: Use the system function when possible.
29048         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29049         (getdomainname): Replace if needed. Provide the declaration if it is
29050         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29051         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29052         (getdomainname): When the system has getdomainname, call the system
29053         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29054         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29055         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29056         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29057         the function if its second argument is of type 'int' or if it is found
29058         in libnsl.
29059         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29060         <sys/systeminfo.h> and sysinfo().
29061         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29063         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29064         HAVE_GETDOMAINNAME.
29065         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29066         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29067         * doc/glibc-functions/getdomainname.texi: Document the problems with
29068         the getdomainname declaration.
29069
29070 2010-11-28  Bruno Haible  <bruno@clisp.org>
29071
29072         sys_socket: Ensure ss_family field on AIX.
29073         * lib/sys_socket.in.h (ss_family): New macro definition.
29074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29075         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29076         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29077         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29078         * modules/sys_socket (Makefile.am): Substitute
29079         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29080         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29081
29082 2010-11-27  Bruno Haible  <bruno@clisp.org>
29083
29084         readline: Improve configure output.
29085         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29086         "checking for readline..." result understandable.
29087
29088 2010-11-27  Bruno Haible  <bruno@clisp.org>
29089
29090         *printf-posix: Detect a bug on Solaris 10/x86.
29091         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29092         for floating-point output.
29093         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29094         directive.
29095         * tests/test-snprintf-posix.h (test_function): Likewise.
29096         * tests/test-sprintf-posix.h (test_function): Likewise.
29097         * tests/test-vasprintf-posix.c (test_function): Likewise.
29098         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29099         * doc/posix-functions/printf.texi: Likewise.
29100         * doc/posix-functions/snprintf.texi: Likewise.
29101         * doc/posix-functions/sprintf.texi: Likewise.
29102         * doc/posix-functions/vfprintf.texi: Likewise.
29103         * doc/posix-functions/vprintf.texi: Likewise.
29104         * doc/posix-functions/vsnprintf.texi: Likewise.
29105         * doc/posix-functions/vsprintf.texi: Likewise.
29106         * doc/glibc-functions/obstack_printf.texi: Likewise.
29107         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29108
29109 2010-11-27  Bruno Haible  <bruno@clisp.org>
29110
29111         Fix link error when module libunistring-optional is in use.
29112         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29113         * modules/striconveha-tests (Makefile.am): Likewise.
29114
29115 2010-11-27  Bruno Haible  <bruno@clisp.org>
29116
29117         regex: Mention link dependencies.
29118         * modules/regex (Link): New section.
29119         * modules/rpmatch (Link): Likewise.
29120         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29121
29122 2010-11-27  Bruno Haible  <bruno@clisp.org>
29123
29124         ftoastr: Fix compilation error on Solaris.
29125         * lib/ftoastr.c: Include <config.h>.
29126
29127 2010-11-27  Bruno Haible  <bruno@clisp.org>
29128
29129         getloadavg: Update documentation.
29130         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29131
29132 2010-11-27  Bruno Haible  <bruno@clisp.org>
29133
29134         sys_socket: Fix test whether the functions are declared.
29135         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29136         not <sys/select.h>.
29137
29138 2010-11-27  Bruno Haible  <bruno@clisp.org>
29139
29140         getpass: Make sure to get system declaration on some platforms.
29141         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29142         gl_USE_SYSTEM_EXTENSIONS.
29143         * modules/getpass (Depends-on): Add extensions.
29144
29145 2010-11-26  Bruno Haible  <bruno@clisp.org>
29146
29147         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29148         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29149         'iconv' module is present.
29150         (ICONV_CONST): New macro.
29151         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29152         ICONV_CONST.
29153         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29154         set ICONV_CONST.
29155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29156         here.
29157         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29158         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29159         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29160         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29161         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29162         present.
29163
29164 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29165
29166         ftoastr: comment fix
29167         * lib/ftoastr.c: "little" -> "little or no" in comment
29168
29169 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29170
29171         stdint: port to GCC 4.3 + OSX + Octave
29172         On this platform, stdint.h is buggy and defines int64_t to long
29173         long int.  The replacement defined it to long int, causing
29174         problems with C++ style name mangling.  Instead, trust the system
29175         definition if INT64_MAX is defined, and likewise for the unsigned
29176         variant.   Problem reported by Jarno Rajahalme in
29177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29178         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29179         and don't mess with int64_t and INT64_MAX in this case.
29180         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29181
29182 2010-11-24  Bruno Haible  <bruno@clisp.org>
29183
29184         doc: Corrections regarding MacOS X 10.4 and 10.5.
29185         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29186         MacOS X.
29187         Reported by Simon Josefsson.
29188
29189 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29190
29191         Uninstall ".bin" files installed by relocwrapper.
29192         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29193         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29194         unless it is already there.
29195
29196 2010-11-21  Bruno Haible  <bruno@clisp.org>
29197
29198         Update for NetBSD 5.0.
29199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29200         NetBSD; the test fails on NetBSD 5.0.
29201         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29202         about NetBSD.
29203
29204 2010-11-21  Bruno Haible  <bruno@clisp.org>
29205
29206         Update for HP-UX 11.23 and HP-UX 11.31.
29207         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29208         HP-UX.
29209
29210 2010-11-21  Bruno Haible  <bruno@clisp.org>
29211
29212         Update for MacOS X 10.5.
29213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29214         MacOS X; the test fails on MacOS X 10.5.8.
29215         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29216         about MacOS X.
29217
29218 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29219
29220         bootstrap: add bootstrap_sync option.
29221         See discussion at
29222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29224         * build-aux/bootstrap: Accept --bootstrap-sync to update
29225         bootstrap if it is not identical to the local gnulib's
29226         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29227         enable this by default.  Accept --no-bootstrap-sync to disable
29228         it.
29229
29230 2010-11-20  Bruno Haible  <bruno@clisp.org>
29231
29232         Ensure that <features.h> is included before __GLIBC__ is tested.
29233         * lib/printf-parse.h: Include <features.h>.
29234         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29235         Reported by Mike Frysinger <vapier@gentoo.org>.
29236
29237         Ensure that <features.h> is included before __GLIBC__ is tested.
29238         * lib/wchar.in.h: Include <features.h>.
29239         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29240         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29241         Reported by Mike Frysinger <vapier@gentoo.org>.
29242
29243         Ensure that <features.h> is included before __GLIBC__ is tested.
29244         * lib/arpa_inet.in.h: Include <features.h>.
29245         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29246         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29247         Reported by Mike Frysinger <vapier@gentoo.org>.
29248
29249         Ensure that <features.h> is included before __GLIBC__ is tested.
29250         * build-aux/link-warning.h: Include <features.h>.
29251         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29252         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29253         Reported by Mike Frysinger <vapier@gentoo.org>.
29254
29255         Ensure that <features.h> is included before __GLIBC__ is tested.
29256         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29257         Reported by Mike Frysinger <vapier@gentoo.org>.
29258
29259 2010-11-20  Bruno Haible  <bruno@clisp.org>
29260
29261         memmem: Fix autoconf test.
29262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29263
29264 2010-11-20  Bruno Haible  <bruno@clisp.org>
29265
29266         Port to uClibc.
29267         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29268         * lib/fcntl.in.h: Likewise.
29269         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29270         * lib/mbrtowc.c (mbrtowc): Likewise.
29271         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29272         * lib/strerror_r.c: Likewise.
29273         * lib/unistr/u8-strnlen.c: Likewise.
29274         * lib/vasnprintf.c (decimal_point_char): Likewise.
29275         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29278         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29279         * tests/test-sigaction.c (handler, main): Likewise.
29280         * lib/freading.h: Treat uClibc like a non-glibc platform.
29281         * lib/freading.c: Likewise.
29282         * lib/gettext.h: Likewise.
29283         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29284         Likewise.
29285         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29286         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29287         * lib/propername.c (proper_name_utf8): Likewise.
29288         * lib/spawn.in.h: Likewise.
29289         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29290         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29291         mem_cd_iconveh_internal): Likewise.
29292         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29293         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29294         strstr, strcasestr): Likewise.
29295         * lib/unicodeio.c (unicode_to_mb): Likewise.
29296         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29297         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29298         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29299         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29300         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29301         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29302         * lib/unistr/u8-stpncpy.c: Likewise.
29303         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29304         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29305         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29306         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29307         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29308         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29309         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29312         Likewise.
29313         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29314         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29318         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29319         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29320         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29321         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29322         * tests/test-striconveha.c (main): Likewise.
29323         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29324         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29325         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29326         * doc/posix-functions/getline.texi: Likewise.
29327         Reported by Mike Frysinger <vapier@gentoo.org>.
29328
29329 2010-11-20  Bruno Haible  <bruno@clisp.org>
29330
29331         nproc: Fix condition.
29332         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29333         HAVE_PTHREAD_AFFINITY_NP.
29334
29335 2010-11-20  Bruno Haible  <bruno@clisp.org>
29336
29337         Fix a comment.
29338         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29339
29340 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29341
29342         ftoastr: don't assume snprintf
29343         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29344         Implement a subset of snprintf here, by using sprintf safely.
29345         * modules/ftoastr (Depends-on): Remove snprintf.
29346
29347 2010-11-19  Jim Meyering  <meyering@redhat.com>
29348
29349         test-rename.h: fix compilation failure
29350         * tests/test-rename.h (test_rename): Add omitted "}".
29351
29352 2010-11-17  Jim Meyering  <meyering@redhat.com>
29353
29354         maint.mk: add a URL discussing the no-@acronym policy
29355         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29356
29357 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29358
29359         ftoastr: depend on snprintf, improve comments
29360         * lib/ftoastr.c: Also mention Loitsch's draft.
29361         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29362         needed in the current implementation, but it might simplify
29363         speeding up the code later.
29364         * modules/ftoastr: Depend on snprintf; this improves portability.
29365         Suggested by Bruno Haible in the same email.
29366
29367         ftoastr: port to hosts lacking strtof and strtold
29368         Problem reported by Bruno Haible in
29369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29370         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29371         environment and strtold (and presumably strtof) are not available.
29372         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29373         (configure.ac): Require gl_C99_STRTOLD.
29374
29375 2010-11-18  Bruno Haible  <bruno@clisp.org>
29376
29377         c-strtold: Avoid link error on AIX 7.
29378         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29379         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29380         (gl_C_STRTOLD): Test whether strtold_l exists.
29381         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29382
29383 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29384
29385         intprops: new macro INT_BITS_STRLEN_BOUND
29386         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29387         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29388         not exposed.  Also, it uses a slightly tighter bound than before;
29389         though this makes no practical difference, we might as well be as
29390         tight as we easily can.
29391
29392         ftoastr: new module, for lossless conversion of floats to short strings
29393         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29394         * modules/ftoastr: New files.
29395
29396 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29397
29398         bootstrap: port to Solaris sed
29399         * build-aux/bootstrap (get_version): Port to Solaris sed.
29400         See Ralf Wildenhues's note in
29401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29402
29403 2010-11-14  Jim Meyering  <meyering@redhat.com>
29404
29405         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29406         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29407         and move definition closer to sole use.
29408
29409 2010-11-13  Jim Meyering  <meyering@redhat.com>
29410
29411         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29412         Now we require at least autoconf-2.59, which means the work-around
29413         is no longer needed.
29414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29415         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29416         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29417         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29418         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29419
29420 2010-11-13  Bruno Haible  <bruno@clisp.org>
29421
29422         rename, renameat: Avoid test failures at NFS mounted locations.
29423         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29424         functions.
29425         (test_rename): Use assert_nonexistent.
29426         * tests/test-rename.c: Include <dirent.h>.
29427         * tests/test-renameat.c: Likewise.
29428         Reported by Gary V. Vaughan <gary@gnu.org>.
29429
29430         rename, renameat: Document Linux bug with NFS
29431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29432         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29433         * doc/posix-functions/renameat.texi: Likewise.
29434         Suggested by Eric Blake.
29435
29436 2010-11-13  Bruno Haible  <bruno@clisp.org>
29437
29438         rename test: Add comments.
29439         * tests/test-rename.h (test_rename): Add structure and comments.
29440
29441 2010-11-13  Eric Blake  <eblake@redhat.com>
29442
29443         maintainer-makefile: cover a few more files
29444         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29445         scripts generated within C files, for libvirt.
29446
29447 2010-11-13  Bruno Haible  <bruno@clisp.org>
29448
29449         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29450         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29451         character, return the number of bytes that belong together, not always
29452         1.
29453         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29454         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29455         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29456         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29457         number of bytes of an invalid character.
29458         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29459         (main): Invoke it.
29460         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29461         results.
29462         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29463         malformed byte sequences.
29464         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29465         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29466         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29467         Reported by Ben Pfaff and Paolo Bonzini.
29468
29469 2010-11-13  Bruno Haible  <bruno@clisp.org>
29470
29471         openat: Work around glibc bug with fchownat() and empty file names.
29472         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29473         (gl_FUNC_FCHOWNAT): Invoke it.
29474         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29475         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29476         Reported by Gary V. Vaughan <gary@gnu.org>.
29477
29478 2010-11-13  Bruno Haible  <bruno@clisp.org>
29479
29480         openat: Ensure autoconf macro ordering.
29481         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29482         gl_USE_SYSTEM_EXTENSIONS.
29483         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29484
29485 2010-11-13  Bruno Haible  <bruno@clisp.org>
29486
29487         Update comments.
29488         * lib/unistr/u8-check.c: Update file name in comments.
29489         * lib/unistr/u8-mblen.c: Likewise.
29490         * lib/unistr/u8-prev.c: Likewise.
29491         * lib/unistr/u8-strmblen.c: Likewise.
29492         * lib/unistr/u8-strmbtouc.c: Likewise.
29493
29494 2010-11-13  Jim Meyering  <meyering@redhat.com>
29495
29496         tests: avoid test failure on Solaris 10 due to lack of PATH export
29497         * tests/test-update-copyright.sh: Don't forget to export PATH.
29498
29499         init.sh: ensure that IFS is defined, just in case...
29500         * tests/init.sh (setup_): Ensure that IFS is defined,
29501         so that saving and restoring it works as expected.  This
29502         appears to be useful at least for an old version of dash
29503         from a long time ago (RH 6).  See here for details:
29504         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29505
29506         maint.mk: tighten "test a == b" check
29507         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29508         test to files that contain something like #!/bin/sh.
29509         Without this, coreutils would get two false positives in
29510         the comments of C source files.
29511
29512 2010-11-12  Eric Blake  <eblake@redhat.com>
29513
29514         bootstrap: fix typo in previous attempt
29515         * build-aux/bootstrap (buildreq): Correct the grouping.
29516         Reported by Paul Eggert.
29517
29518         maintainer-makefile: prohibit test x == x
29519         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29520         Based on a report by Matthias Bolte.
29521
29522         bootstrap: allow FreeBSD gzip
29523         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29524         which has no '.' and goes to stderr.
29525         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29526         Reported by Matthias Bolte.
29527
29528         maintainer-makefile: check for i18n setup
29529         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29530         will likely work.
29531
29532 2010-11-12  Bruno Haible  <bruno@clisp.org>
29533
29534         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29535         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29536         * lib/nanosleep.c (nanosleep): Likewise.
29537
29538 2010-11-11  Bruno Haible  <bruno@clisp.org>
29539
29540         fcntl-h: Fix for use of C++ on glibc systems.
29541         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29542         also on glibc systems in C++ mode.
29543         Reported by Gary V. Vaughan <gary@gnu.org>.
29544
29545 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29546
29547         mknod: avoid false failure with dash
29548         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29549
29550 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29551
29552         unlink: Fix "is it should" typo in diagnostic.
29553         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29555
29556 2010-11-11  Bruno Haible  <bruno@clisp.org>
29557
29558         Tests for module 'strerror_r-posix'.
29559         * modules/strerror_r-posix-tests: New file.
29560         * tests/test-strerror_r.c: New file.
29561         * tests/test-string-c++.cc: Check the signature of strerror_r.
29562
29563         New module 'strerror_r-posix'.
29564         * lib/string.in.h (strerror_r): New declaration.
29565         * lib/strerror_r.c: New file.
29566         * m4/strerror_r.m4: New file.
29567         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29568         of strerror_r.
29569         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29570         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29571         * modules/strerror_r-posix: New file.
29572         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29573         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29574         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29575         portability problems.
29576
29577 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29578
29579         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29580         line is also considered for output. Quoted function name in shell
29581         command, so temporary files for functions like MyClass::operator()
29582         are removed correctly without errors.
29583
29584 2010-11-09  Bruno Haible  <bruno@clisp.org>
29585
29586         * doc/posix-functions/strerror.texi: List more failing platforms.
29587
29588         * doc/posix-functions/strerror.texi: Add a comment.
29589
29590 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29591
29592         fdopendir: fix bug on MacOS X when low on file descriptors
29593
29594         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29595         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29596         All callers changed.
29597         (fdopendir): Invoke save_cwd at the top level, not after using
29598         multiple dup() calls to use up file descriptors.  Then retry
29599         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29600         less than the maximum number of open file descriptors, because
29601         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29602         on Mac OS X 10.6.4 for tar 1.24
29603         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29604         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29605         and for tar 1.25
29606         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29607
29608 2010-11-07  Bruno Haible  <bruno@clisp.org>
29609
29610         vasnprintf: Support I flag on glibc systems.
29611         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29612         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29613         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29614         snprintf function.
29615         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29616         glibc systems.
29617         * tests/test-vasnprintf-posix3.c: New file.
29618         * modules/vasnprintf-posix-tests (Files): Add it.
29619         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29620
29621 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29622
29623         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29624         * MODULES.html.sh: For compiler warnings, use name
29625         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29626
29627 2010-11-05  Eric Blake  <eblake@redhat.com>
29628
29629         ceil, floor: avoid spurious failure with icc
29630         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29631         [denormals-as-zero] when optimizing without -mieee-fp option.
29632         * tests/test-floorf2.c (floorf_reference): Likewise.
29633         * tests/test-ceilf1.c (dummy): New function.
29634         (main): Use it to outsmart icc's optimization.
29635         * tests/test-floorf1.c (dummy, main): Likewise.
29636
29637         tests: require working signbit
29638         * modules/ceilf-tests (Depends-on): Add signbit.
29639         * modules/ceill-tests (Depends-on): Likewise.
29640         * modules/floorf-tests (Depends-on): Likewise.
29641         * modules/floorl-tests (Depends-on): Likewise.
29642         * modules/round-tests (Depends-on): Likewise.
29643         * modules/roundf-tests (Depends-on): Likewise.
29644         * modules/roundl-tests (Depends-on): Likewise.
29645         * modules/trunc-tests (Depends-on): Likewise.
29646         * modules/truncf-tests (Depends-on): Likewise.
29647         * modules/truncl-tests (Depends-on): Likewise.
29648
29649         strtod: work around icc bug
29650         * lib/strtod.c (minus_zero): Define to working value.
29651         (strtod): Use it to avoid icc bug.
29652
29653         copysign: enhance tests
29654         * modules/copysign-tests (Files): Add minus-zero.h.
29655         * tests/test-copysign.c (main): Also test zeros.
29656
29657 2010-11-04  Eric Blake  <eblake@redhat.com>
29658
29659         ceil, floor, round, trunc: enhance tests of -0
29660         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29661         * tests/test-ceill.c (main): Likewise.
29662         * tests/test-floorf1.c (main): Likewise.
29663         * tests/test-floorl.c (main): Likewise.
29664         * tests/test-round1.c (main): Likewise.
29665         * tests/test-roundf1.c (main): Likewise.
29666         * tests/test-roundl.c (main): Likewise.
29667         * tests/test-trunc1.c (main): Likewise.
29668         * tests/test-truncf1.c (main): Likewise.
29669         * tests/test-truncl.c (main): Likewise.
29670
29671 2010-11-04  Eric Blake  <eblake@redhat.com>
29672
29673         frexp, tests: work around ICC bug with -zero
29674         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29675         works with more compilers.
29676         * tests/minus-zero.h: New file.
29677         * modules/ceilf-tests (Files): Include it.
29678         * modules/ceill-tests (Files): Likewise.
29679         * modules/floorf-tests (Files): Likewise.
29680         * modules/floorl-tests (Files): Likewise.
29681         * modules/frexp-nolibm-tests (Files): Likewise.
29682         * modules/frexp-tests (Files): Likewise.
29683         * modules/frexpl-nolibm-tests (Files): Likewise.
29684         * modules/frexpl-tests (Files): Likewise.
29685         * modules/isnan-tests (Files): Likewise.
29686         * modules/isnand-nolibm-tests (Files): Likewise.
29687         * modules/isnand-tests (Files): Likewise.
29688         * modules/isnanf-nolibm-tests (Files): Likewise.
29689         * modules/isnanf-tests (Files): Likewise.
29690         * modules/isnanl-nolibm-tests (Files): Likewise.
29691         * modules/isnanl-tests (Files): Likewise.
29692         * modules/round-tests (Files): Likewise.
29693         * modules/roundf-tests (Files): Likewise.
29694         * modules/roundl-tests (Files): Likewise.
29695         * modules/ldexpl-tests (Files): Likewise.
29696         * modules/signbit-tests (Files): Likewise.
29697         * modules/snprintf-posix-tests (Files): Likewise.
29698         * modules/sprintf-posix-tests (Files): Likewise.
29699         * modules/strtod-tests (Files): Likewise.
29700         * modules/trunc-tests (Files): Likewise.
29701         * modules/truncf-tests (Files): Likewise.
29702         * modules/truncl-tests (Files): Likewise.
29703         * modules/vsnprintf-posix-tests (Files): Likewise.
29704         * modules/vsprintf-posix-tests (Files): Likewise.
29705         * modules/vasnprintf-posix-tests (Files): Likewise.
29706         * modules/vasprintf-posix-tests (Files): Likewise.
29707         * tests/test-ceilf1.c (main): Use it.
29708         * tests/test-ceill.c (main): Likewise.
29709         * tests/test-floorf1.c (main): Likewise.
29710         * tests/test-floorl.c (main): Likewise.
29711         * tests/test-frexp.c (main): Likewise.
29712         * tests/test-frexpl.c (main): Likewise.
29713         * tests/test-isnan.c (main): Likewise.
29714         * tests/test-isnand.h (main): Likewise.
29715         * tests/test-isnanf.h (main): Likewise.
29716         * tests/test-isnanl.h (main): Likewise.
29717         * tests/test-ldexpl.c (main): Likewise.
29718         * tests/test-round.c (main): Likewise.
29719         * tests/test-roundf.c (main): Likewise.
29720         * tests/test-roundl.c (main): Likewise.
29721         * tests/test-signbit.c (test_signbitf, test_signbitd)
29722         (test_signbitl): Likewise.
29723         * tests/test-snprintf-posix.h (test_function): Likewise.
29724         * tests/test-sprintf-posix.h (test_function): Likewise.
29725         * tests/test-strtod.c (main): Likewise.
29726         * tests/test-trunc1.c (main): Likewise.
29727         * tests/test-truncf1.c (main): Likewise.
29728         * tests/test-truncl.c (main): Likewise.
29729
29730         isnanl: work around icc bug
29731         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29732
29733 2010-11-03  Eric Blake  <eblake@redhat.com>
29734
29735         tests: fix compiler warnings
29736         * tests/test-getopt.h (test_getopt): Fix condition.
29737         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29738         * tests/test-pipe2.c (main): Likewise.
29739         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29740
29741         utimens: fix broken m4 test
29742         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29743
29744 2010-10-28  Bruno Haible  <bruno@clisp.org>
29745
29746         posix_spawn*, getdtablesize: Relax license.
29747         * modules/posix_spawn (License): Change to LGPLv2+.
29748         * modules/posix_spawnp (License): Likewise.
29749         * modules/posix_spawn-internal (License): Likewise.
29750         * modules/posix_spawnattr_init (License): Likewise.
29751         * modules/posix_spawnattr_getflags (License): Likewise.
29752         * modules/posix_spawnattr_setflags (License): Likewise.
29753         * modules/posix_spawnattr_getpgroup (License): Likewise.
29754         * modules/posix_spawnattr_setpgroup (License): Likewise.
29755         * modules/posix_spawnattr_getschedparam (License): Likewise.
29756         * modules/posix_spawnattr_setschedparam (License): Likewise.
29757         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29758         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29759         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29760         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29761         * modules/posix_spawnattr_getsigmask (License): Likewise.
29762         * modules/posix_spawnattr_setsigmask (License): Likewise.
29763         * modules/posix_spawnattr_destroy (License): Likewise.
29764         * modules/posix_spawn_file_actions_init (License): Likewise.
29765         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29766         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29767         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29768         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29769         * modules/getdtablesize (License): Likewise.
29770         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29771
29772 2010-10-26  Bruno Haible  <bruno@clisp.org>
29773
29774         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29775         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29776         Cygwin and mingw.
29777         Suggested by Eric Blake.
29778
29779 2010-10-26  Bruno Haible  <bruno@clisp.org>
29780
29781         stdio: Work around compilation error due to renameat() on Solaris 10.
29782         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29783         * lib/renameat.c: Don't include <unistd.h> here.
29784         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29785         Reported by Paul Eggert and Eric Blake.
29786
29787 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29788
29789         renameat: port to Solaris 10, which declares renameat in unistd.h
29790
29791         * lib/renameat.c: Include unistd.h before stdio.h, because
29792         Solaris 10 declares renameat in unistd.h.  Problem encountered
29793         when building GNU tar 1.24 on Solaris 10.
29794
29795 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29796
29797         fdopendir: fix C89 compilation
29798         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29799         compilers.
29800
29801 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29802
29803         inttostr: simplify by removing unnecessary redundancy
29804         * lib/anytostr.c: Don't include verify.h.
29805         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29806         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29807         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29808         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29809         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29810         Likewise.
29811         * modules/inttostr (Depends-on): Remove 'verify'.
29812
29813 2010-10-23  Bruno Haible  <bruno@clisp.org>
29814
29815         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29816         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29817         Reported by Eric Blake.
29818
29819 2010-10-23  Bruno Haible  <bruno@clisp.org>
29820
29821         Tests: Fix LOCALE_JA on MirBSD 10.
29822         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29823         to an UTF-8 locale.
29824         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29826         Reported by Eric Blake.
29827
29828 2010-10-21  Bruno Haible  <bruno@clisp.org>
29829
29830         nl_langinfo test: Avoid test failure on NetBSD 5.
29831         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29832         Reported by Eric Blake.
29833
29834 2010-10-21  Eric Blake  <eblake@redhat.com>
29835
29836         c-stack: work around libsigsegv 2.8 bug
29837         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29838         overflow on at least PowerPC64.
29839
29840 2010-10-17  Bruno Haible  <bruno@clisp.org>
29841
29842         userspec: Drop redundant file.
29843         * modules/userspec (Files): Remove lib/inttostr.h.
29844
29845 2010-10-17  Bruno Haible  <bruno@clisp.org>
29846
29847         nl_langinfo tests: Silence some warnings.
29848         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29849         Reported by Jim Meyering.
29850
29851 2010-10-17  Bruno Haible  <bruno@clisp.org>
29852
29853         Make use of GCC's attribute __alloc_size__.
29854         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29855         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29856         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29857         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29858         __alloc_size__.
29859         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29860         Suggested by Jim Meyering.
29861
29862 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29863
29864         bootstrap: anchor .gitignore entries.
29865         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29866         with...
29867         (insert_vc_ignore): ... this new function, which prepends `/' to
29868         all .gitignore entries before passing them to
29869         insert_sorted_if_absent.
29870
29871 2010-10-16  Bruno Haible  <bruno@clisp.org>
29872
29873         nextafter: Fix configure check.
29874         * modules/nextafter (configure.ac): Correct expected prototype.
29875
29876 2010-10-16  Bruno Haible  <bruno@clisp.org>
29877
29878         termios: Update documentation.
29879         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29880
29881 2010-10-16  Bruno Haible  <bruno@clisp.org>
29882
29883         tests: Make them compile with TinyCC.
29884         * tests/test-strstr.c (main): Remove parentheses around array
29885         initializer.
29886
29887 2010-10-15  Eric Blake  <eblake@redhat.com>
29888
29889         ignore-value: make header idempotent
29890         * lib/ignore-value.h: Add double-inclusion guards.
29891         Reported by Stefan Berger.
29892
29893 2010-10-15  Jim Meyering  <meyering@redhat.com>
29894
29895         GNUmakefile: handle "stable" target, not "major"
29896         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29897         lists in maint.mk and announce-gen.  Without this, "make stable"
29898         would fail to ensure that $(VERSION) is up to date.
29899
29900 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29901
29902         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29903         & co.
29904
29905 2010-10-14  Bruno Haible  <bruno@clisp.org>
29906
29907         vasnprintf: Don't set errno to 0.
29908         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29909         block that sets it to 0.
29910         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29911
29912 2010-10-14  Bruno Haible  <bruno@clisp.org>
29913
29914         socketlib: Fix.
29915         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29916         gl_PREREQ_SYS_H_WINSOCK2.
29917         Reported by Ian Beckwith <ianb@erislabs.net>.
29918
29919 2010-10-13  Jim Meyering  <meyering@redhat.com>
29920
29921         test-select-stdin.c: avoid warn_unused_result warnings
29922         * tests/test-select-stdin.c: Include "macros.h".
29923         ASSERT that read and fflush succeed.
29924
29925 2010-10-13  Jim Meyering  <meyering@redhat.com>
29926
29927         git-version-gen: do require git-VC'd files in cwd
29928         * build-aux/git-version-gen: Reject a git version string
29929         if there are no commits associated with the current directory.
29930         This avoids an unlikely false-positive (unrelated dir whose parent
29931         repository also contains a tag matching v*), as pointed out
29932         by Giuseppe Scrivano in
29933         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29934
29935 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29936
29937         argv-iter: omit nonconforming declaration
29938         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29939         enum arg_iter_err declaration, which doesn't conform to C99.
29940         Solaris 10 cc warns about this.
29941
29942 2010-10-13  Eric Blake  <eblake@redhat.com>
29943
29944         termios: fix compilation on mingw
29945         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29946         (gl_TERMIOS_H): Adjust it on mingw.
29947         * modules/termios (Makefile.am): Substitute new key.
29948         * lib/termios.in.h (includes): Make include_next conditional.
29949         * doc/posix-headers/termios.texi (termios.h): Update
29950         documentation.
29951         Reported by Daniel P. Berrange.
29952
29953 2010-10-13  Jim Meyering  <meyering@redhat.com>
29954
29955         git-version-gen: don't require that .git/ be in the current dir
29956         * build-aux/git-version-gen: Adjust this script so that it works
29957         when run from any working directory beneath the top-level .git/-
29958         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29960
29961         test-select: avoid warn_unused_result warnings
29962         * tests/test-select.c: Include "macros.h".
29963         ASSERT that each call to read, write, and pipe succeeds.
29964         While not technically required, also check each "close".
29965         * modules/select-tests (Files): Add tests/macros.h.
29966
29967         test-symlinkat: remove declaration of unused local
29968         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29969
29970         test-inttostr: avoid shadowing warnings
29971         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29972         and use malloc rather than the stack for the same reason as
29973         mentioned in the comment justifying the other allocation.
29974
29975 2010-10-11  Bruno Haible  <bruno@clisp.org>
29976
29977         stdlib: Allow multiple gnulib generated replacements to coexist.
29978         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29979         Reported by Sam Steingold <sds@gnu.org>.
29980
29981 2010-10-11  Jim Meyering  <meyering@redhat.com>
29982
29983         fix a documentation typo
29984         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29985
29986 2010-10-11  Eric Blake  <eblake@redhat.com>
29987
29988         futimens: work around Solaris 11 bug
29989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29990         * tests/test-futimens.h (test_futimens): Enhance, rather than
29991         weaken test.
29992         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29993
29994 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29995
29996         Indentation.
29997         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29998         higher-level operators more to the left.
29999
30000 2010-10-11  Jim Meyering  <meyering@redhat.com>
30001
30002         test-futimens: avoid unwarranted test failure on Solaris 5.11
30003         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30004         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30005         because it tries to dereference the NULL name argument.
30006
30007 2010-10-11  Bruno Haible  <bruno@clisp.org>
30008
30009         Indentation.
30010         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30011         indentation.
30012
30013 2010-10-11  Jim Meyering  <meyering@redhat.com>
30014
30015         spawn.in.h: make indentation consistent with parentheses
30016         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30017         Make indentation consistent with parentheses.
30018
30019 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30020
30021         Fix mismatched parens in previous commit
30022         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30023         parens.
30024
30025 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30026
30027         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30028
30029         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30030         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30031         * lib/malloca.c: Include "verify.h".
30032         (verify1): Remove, replacing with a verify call.
30033         * lib/relocwrapper.c (verify1): Likewise.
30034         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30035         Likewise.
30036         * modules/malloca (Depends-on): Add 'verify'.
30037         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30038         * modules/vasnprintf (Depends-on): Add 'verify'.
30039         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30040         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30041         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30042         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30043         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30044         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30045         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30046
30047         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30048
30049         Formerly the style was sometimes 2*X - 1, because the C standard
30050         was wrongly thought to disallow ?: in integral constant expressions.
30051         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30052         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30053         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30054         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30055         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30056         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30057         verify that time_t cannot be floating.
30058
30059 2010-10-08  Eric Blake  <eblake@redhat.com>
30060
30061         time: enforce recent POSIX ruling that time_t is integral
30062         * lib/time.in.h (__time_t_must_be_integral): Detect any
30063         problematic systems, allowing the rest of gnulib to assume POSIX.
30064
30065 2010-10-08  Jim Meyering  <meyering@redhat.com>
30066
30067         fdopendir: fix a bug on systems lacking openat and /proc support
30068         OpenBSD 4.7 is one such system.  The most noticeable effect was
30069         failure of any application making nontrivial use of fts: rm, du,
30070         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30071           ./rm: traversal failed: `a': Bad file descriptor
30072         Debugging that, you see that even though FD 6 was closed just
30073         prior to the opendir call in fd_clone_opendir, its resulting
30074         dir->dd_fd was 8, rather than the expected value of 6:
30075
30076         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30077         93                close (fd);
30078         (gdb) n
30079         94                dir = fd_clone_opendir (dupfd);
30080         (gdb) n
30081         95                saved_errno = errno;
30082         (gdb) p dir->dd_fd
30083         $11 = 8
30084
30085         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30086         The problem is that on OpenBSD, fd_clone_opendir has to resort
30087         to using the old-style save/restore CWD mechanism, due to its
30088         lack of openat/proc support, and *that* would steal the FD (6)
30089         that opendir was supposed to use.
30090
30091         The fix is to squirrel away the desired FD so that save_cwd uses a
30092         different one, and then free the dest FD right before calling opendir.
30093         That guarantees opendir will use the required file descriptor.
30094
30095         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30096
30097 2010-10-08  Bruno Haible  <bruno@clisp.org>
30098
30099         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30100         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30101
30102 2010-10-08  Bruno Haible  <bruno@clisp.org>
30103
30104         nanosleep: Make replacement POSIX compliant.
30105         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30106         is out of range.
30107         Reported by Jim Meyering.
30108
30109 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30110
30111         bootstrap: add hook for altering gnulib.mk, for Bison
30112         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30113         the Bison bootstrapping process can rewrite file names and variables
30114         in this file before later parts of 'bootstrap' use the file.
30115         Bison wants to include lib/gnulib.mk from the top-level makefile,
30116         so it needs the file names in this file to be relative to the top
30117         level, not relative to lib; plus it needs variable names to be
30118         rewritten.
30119         (slurp): Use the new function.
30120
30121         bootstrap: reformat for readability
30122         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30123
30124 2010-10-08  Eric Blake  <eblake@redhat.com>
30125
30126         docs: update cygwin progress
30127         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30128         1.7.7.
30129         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30130         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30131         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30132         * doc/posix-functions/carg.texi (carg): Likewise.
30133         * doc/posix-functions/cargf.texi (cargf): Likewise.
30134         * doc/posix-functions/casin.texi (casin): Likewise.
30135         * doc/posix-functions/casinf.texi (casinf): Likewise.
30136         * doc/posix-functions/casinh.texi (casinh): Likewise.
30137         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30138         * doc/posix-functions/catan.texi (catan): Likewise.
30139         * doc/posix-functions/catanf.texi (catanf): Likewise.
30140         * doc/posix-functions/catanh.texi (catanh): Likewise.
30141         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30142         * doc/posix-functions/ccos.texi (ccos): Likewise.
30143         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30144         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30145         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30146         * doc/posix-functions/cexp.texi (cexp): Likewise.
30147         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30148         * doc/posix-functions/cimag.texi (cimag): Likewise.
30149         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30150         * doc/posix-functions/clog.texi (clog): Likewise.
30151         * doc/posix-functions/clogf.texi (clogf): Likewise.
30152         * doc/posix-functions/conj.texi (conj): Likewise.
30153         * doc/posix-functions/conjf.texi (conjf): Likewise.
30154         * doc/posix-functions/cpow.texi (cpow): Likewise.
30155         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30156         * doc/posix-functions/cproj.texi (cproj): Likewise.
30157         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30158         * doc/posix-functions/creal.texi (creal): Likewise.
30159         * doc/posix-functions/crealf.texi (crealf): Likewise.
30160         * doc/posix-functions/csin.texi (csin): Likewise.
30161         * doc/posix-functions/csinf.texi (csinf): Likewise.
30162         * doc/posix-functions/csinh.texi (csinh): Likewise.
30163         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30164         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30165         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30166         * doc/posix-functions/ctan.texi (ctan): Likewise.
30167         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30168         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30169         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30170         * doc/posix-headers/complex.texi (complex.h): Likewise.
30171
30172 2010-10-07  Jim Meyering  <meyering@redhat.com>
30173
30174         parse-datetime: avoid compilation failure on OpenBSD 4.7
30175         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30176         This works around a compilation failure on OpenBSD 4.7:
30177         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30178
30179 2010-10-07  Eric Blake  <eblake@redhat.com>
30180
30181         docs: update cygwin progress
30182         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30183         1.7.6.
30184         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30185         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30186         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30187         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30188         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30189         Likewise.
30190         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30191         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30192         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30193         Likewise.
30194         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30195         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30196         Likewise.
30197         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30198         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30199         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30200         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30201         Likewise.
30202         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30203         Likewise.
30204         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30205
30206         docs: update parse-datetime history
30207         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30208         documentation of this function's history and alternatives.
30209
30210         cygwin: use more robust version check
30211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30212         exclude an eventual cygwin 1.9.1.
30213         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30215         (gl_FUNC_STRCASESTR): Likewise.
30216         Reported by Bruno Haible.
30217
30218 2010-10-06  Bruno Haible  <bruno@clisp.org>
30219
30220         string, sys_select: Avoid #including large headers unless necessary.
30221         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30222         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30223         OSF/1, BeOS, Haiku.
30224         Reported by Jim Meyering.
30225
30226 2010-10-05  Eric Blake  <eblake@redhat.com>
30227
30228         memmem, strstr, strcasestr: fix bug with long periodic needle
30229         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30230         periodic needle having false positive.
30231         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30232         and cygwin 1.7.7.
30233         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30235         (gl_FUNC_STRCASESTR): Likewise.
30236         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30237         * tests/test-memmem.c (main): Expose the bug.
30238         * tests/test-strcasestr.c (main): Likewise.
30239         * tests/test-strstr.c (main): Likewise.
30240         * tests/test-c-strcasestr.c (main): Likewise.
30241         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30242         * doc/posix-functions/strstr.texi (strstr): Likewise.
30243         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30244         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30245
30246 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30247
30248         parse-datetime: do some more renaming
30249         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30250         parse_datetime, not get_date.  Mention the renaming.
30251         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30252         in comments.
30253         * m4/bison.m4: Likewise.
30254
30255 2010-10-05  Eric Blake  <eblake@redhat.com>
30256
30257         parse-datetime: better name than get_date
30258         * NEWS: Reword the deprecation notice.
30259         * modules/get_date: Rename to modules/parse-datetime.
30260         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30261         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30262         * lib/get_date.y: Rename to lib/parse-datetime.y.
30263         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30264         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30265         * doc/getdate.texi: Provide fallback wrapper.
30266         * lib/getdate.h: Move guts, and wrap...
30267         * lib/parse-datetime.h: ...new file.
30268         * lib/parse-datetime.y (get_date): Rename...
30269         (parse_datetime): ...to this.
30270         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30271         (gl_PARSE_DATETIME): ...to this.
30272         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30273         documentation.
30274         * modules/getdate (Files): Provide fallback docs and header.
30275         (Notice, Depends-on): Update references.
30276         * tests/test-parse-datetime.c: Likewise.
30277         * DEPENDENCIES: Likewise.
30278         * MODULES.html.sh (Date and time <time.h>): Likewise.
30279         * doc/parse-datetime.texi (Date input formats)
30280         (Authors of parse_datetime): Likewise.
30281         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30282         (Include): Likewise.
30283         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30284         * gnulib-tool: Likewise.
30285         * m4/bison.m4 (gl_BISON): Likewise.
30286         Suggested by Bruno Haible.
30287
30288 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30289
30290         more ports to Solaris tr, which needs [] around ranges
30291         * gnulib-tool: Solaris tr needs [] around ranges.
30292         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30293         * tests/test-pipe-filter-gi1.c (main): Likewise.
30294         * tests/test-pipe-filter-ii1.c (main): Likewise.
30295
30296 2010-10-05  Eric Blake  <eblake@redhat.com>
30297
30298         bootstrap: fix Solaris regression
30299         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30300         around ranges.
30301         Reported by Pádraig Brady.
30302
30303         bootstrap: work with pkg-config
30304         * build-aux/bootstrap (check_versions): Also transliterate - in
30305         prerequisite name.
30306         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30307         prerequisites that were already found, to avoid confusion.
30308         Reported by Justin Clift.
30309
30310         faccessat: remove unused wrappers
30311         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30312         presence of these wrappers dragged in -lgen on Solaris.
30313         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30314
30315 2010-10-05  Jim Meyering  <meyering@redhat.com>
30316
30317         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30318         * Makefile (sc_pragma_columns): New syntax-check rule.
30319
30320 2010-10-04  Bruno Haible  <bruno@clisp.org>
30321
30322         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30323         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30324         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30325         Reported by Bruce Korb and Eric Blake.
30326
30327 2010-10-04  Bruno Haible  <bruno@clisp.org>
30328
30329         threadlib: Make option --with-libpth-prefix work.
30330         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30331         use $LIBPTH, not just -lpth.
30332
30333 2010-10-04  Bruno Haible  <bruno@clisp.org>
30334
30335         Avoid line length limitation from HP NonStop system header files.
30336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30337         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30338         * lib/ctype.in.h: Likewise.
30339         * lib/dirent.in.h: Likewise.
30340         * lib/errno.in.h: Likewise.
30341         * lib/fcntl.in.h: Likewise.
30342         * lib/float.in.h: Likewise.
30343         * lib/getopt.in.h: Likewise.
30344         * lib/iconv.in.h: Likewise.
30345         * lib/inttypes.in.h: Likewise.
30346         * lib/langinfo.in.h: Likewise.
30347         * lib/locale.in.h: Likewise.
30348         * lib/math.in.h: Likewise.
30349         * lib/netdb.in.h: Likewise.
30350         * lib/netinet_in.in.h: Likewise.
30351         * lib/poll.in.h: Likewise.
30352         * lib/pthread.in.h: Likewise.
30353         * lib/pty.in.h: Likewise.
30354         * lib/sched.in.h: Likewise.
30355         * lib/se-selinux.in.h: Likewise.
30356         * lib/search.in.h: Likewise.
30357         * lib/signal.in.h: Likewise.
30358         * lib/spawn.in.h: Likewise.
30359         * lib/stdarg.in.h: Likewise.
30360         * lib/stddef.in.h: Likewise.
30361         * lib/stdint.in.h: Likewise.
30362         * lib/stdio.in.h: Likewise.
30363         * lib/stdlib.in.h: Likewise.
30364         * lib/string.in.h: Likewise.
30365         * lib/strings.in.h: Likewise.
30366         * lib/sys_file.in.h: Likewise.
30367         * lib/sys_ioctl.in.h: Likewise.
30368         * lib/sys_select.in.h: Likewise.
30369         * lib/sys_socket.in.h: Likewise.
30370         * lib/sys_stat.in.h: Likewise.
30371         * lib/sys_time.in.h: Likewise.
30372         * lib/sys_times.in.h: Likewise.
30373         * lib/sys_utsname.in.h: Likewise.
30374         * lib/sys_wait.in.h: Likewise.
30375         * lib/sysexits.in.h: Likewise.
30376         * lib/termios.in.h: Likewise.
30377         * lib/time.in.h: Likewise.
30378         * lib/unistd.in.h: Likewise.
30379         * lib/wchar.in.h: Likewise.
30380         * lib/wctype.in.h: Likewise.
30381         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30382         * modules/ctype (Makefile.am): Likewise.
30383         * modules/dirent (Makefile.am): Likewise.
30384         * modules/errno (Makefile.am): Likewise.
30385         * modules/fcntl-h (Makefile.am): Likewise.
30386         * modules/float (Makefile.am): Likewise.
30387         * modules/getopt-posix (Makefile.am): Likewise.
30388         * modules/iconv-h (Makefile.am): Likewise.
30389         * modules/inttypes (Makefile.am): Likewise.
30390         * modules/langinfo (Makefile.am): Likewise.
30391         * modules/locale (Makefile.am): Likewise.
30392         * modules/math (Makefile.am): Likewise.
30393         * modules/netdb (Makefile.am): Likewise.
30394         * modules/netinet_in (Makefile.am): Likewise.
30395         * modules/poll-h (Makefile.am): Likewise.
30396         * modules/pthread (Makefile.am): Likewise.
30397         * modules/pty (Makefile.am): Likewise.
30398         * modules/sched (Makefile.am): Likewise.
30399         * modules/search (Makefile.am): Likewise.
30400         * modules/selinux-h (Makefile.am): Likewise.
30401         * modules/signal (Makefile.am): Likewise.
30402         * modules/spawn (Makefile.am): Likewise.
30403         * modules/stdarg (Makefile.am): Likewise.
30404         * modules/stddef (Makefile.am): Likewise.
30405         * modules/stdint (Makefile.am): Likewise.
30406         * modules/stdio (Makefile.am): Likewise.
30407         * modules/stdlib (Makefile.am): Likewise.
30408         * modules/string (Makefile.am): Likewise.
30409         * modules/strings (Makefile.am): Likewise.
30410         * modules/sys_file (Makefile.am): Likewise.
30411         * modules/sys_ioctl (Makefile.am): Likewise.
30412         * modules/sys_select (Makefile.am): Likewise.
30413         * modules/sys_socket (Makefile.am): Likewise.
30414         * modules/sys_stat (Makefile.am): Likewise.
30415         * modules/sys_time (Makefile.am): Likewise.
30416         * modules/sys_times (Makefile.am): Likewise.
30417         * modules/sys_utsname (Makefile.am): Likewise.
30418         * modules/sys_wait (Makefile.am): Likewise.
30419         * modules/sysexits (Makefile.am): Likewise.
30420         * modules/termios (Makefile.am): Likewise.
30421         * modules/time (Makefile.am): Likewise.
30422         * modules/unistd (Makefile.am): Likewise.
30423         * modules/wchar (Makefile.am): Likewise.
30424         * modules/wctype (Makefile.am): Likewise.
30425
30426 2010-10-04  Bruno Haible  <bruno@clisp.org>
30427
30428         read-file tests: Avoid a test failure on NonStop Kernel.
30429         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30430         a regular file.
30431         Reported by Joachim Schmitz <schmitz@hp.com>.
30432
30433 2010-10-03  Bruno Haible  <bruno@clisp.org>
30434
30435         gnulib-tool: Fixes for --create-testdir with --libtool.
30436         * gnulib-tool (func_get_automake_snippet): Don't augment
30437         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30438         an executable.
30439         (func_create_testdir): Handle module 'alloca' like func_import.
30440         Reported by Bruce Korb <bruce.korb@gmail.com>.
30441
30442 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30443
30444         Avoid some lines longer than 80 characters.
30445         * lib/stdint.in.h: Break long comment lines.
30446         * lib/math.in.h: Likewise.
30447         (_GL_NUM_UINT_WORDS): New macro, for readability.
30448         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30449         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30450         * lib/stdlib.in.h: Likewise.
30451         * lib/spawn.in.h: Likewise.
30452         * lib/sys_socket.in.h: Update an URL.
30453         * lib/sys_stat.in.h: Break long line.
30454
30455 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30456
30457         Improve pmccabe2html.
30458         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30459         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30460         when the sources change. Remove the line in the HTML about "Used
30461         ranges" (which implied that there might be other unused ranges),
30462         rename "Resume" to "Summary" (easier to understand for more users).
30463         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30464         styles, and some unnecessary blank lines.
30465
30466 2010-10-03  Bruno Haible  <bruno@clisp.org>
30467             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30468
30469         acl: Add support for ACLs on NonStop Kernel.
30470         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30471         Check whether the function aclsort() exists.
30472         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30473         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30474         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30475         (acl_nontrivial [HAVE_ACLSORT]: New function.
30476         (file_has_acl): Implement for NonStop Kernel.
30477         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30478         (qset_acl): Implement for NonStop Kernel.
30479         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30480         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30481         (main): Implement for NonStop Kernel.
30482         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30483         Kernel. Handle this flavor.
30484         * tests/test-set-mode-acl.sh: Likewise.
30485         * tests/test-copy-acl.sh: Likewise.
30486         * tests/test-copy-file.sh: Likewise.
30487
30488 2010-10-03  Bruno Haible  <bruno@clisp.org>
30489
30490         Info about ACLs on NonStop Kernel.
30491         * doc/acl-resources.txt: Add info about NonStop Kernel.
30492         References by Joachim Schmitz <schmitz@hp.com>.
30493
30494 2010-10-02  Bruno Haible  <bruno@clisp.org>
30495
30496         Define missing EDQUOT on NonStop Kernel.
30497         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30498         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30500         missing.
30501         * doc/posix-headers/errno.texi: Mention the NSK bug.
30502         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30503         Reported by Joachim Schmitz <schmitz@hp.com>.
30504
30505 2010-10-02  Bruno Haible  <bruno@clisp.org>
30506
30507         Update doc for POSIX:2008.
30508         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30509         Update URL of POSIX specification.
30510
30511 2010-10-02  Bruno Haible  <bruno@clisp.org>
30512
30513         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30514         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30515         from gnulib, not from Automake.
30516
30517 2010-10-02  Bruno Haible  <bruno@clisp.org>
30518
30519         New module 'system-posix'.
30520         * modules/system-posix: New file.
30521         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30522         module is present.
30523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30524         GNULIB_SYSTEM_POSIX.
30525         * modules/stdlib (Depends-on): Remove sys_wait.
30526         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30527         * doc/posix-functions/system.texi: Mention the new module.
30528         * doc/posix-headers/stdlib.texi: Likewise.
30529         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30530         define test_sys_wait_macros to a no-op.
30531         Reported by Sam Steingold <sds@gnu.org>.
30532
30533 2010-09-30  Bruno Haible  <bruno@clisp.org>
30534
30535         More renaming from 'getdate' to 'get_date'.
30536         * doc/get_date.texi: Renamed from doc/getdate.texi.
30537         * modules/get_date (Files): Update.
30538         * MODULES.html.sh (Date and time <time.h>): Update.
30539         * DEPENDENCIES: Update.
30540         * gnulib-tool: Update comment.
30541         * m4/bison.m4 (gl_BISON): Likewise.
30542         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30543
30544 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30545
30546         bootstrap: support ACLOCAL_FLAGS during aclocal
30547         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30548         can add additional -I dir for third-party .m4 files.
30549
30550 2010-09-30  Eric Blake  <eblake@redhat.com>
30551
30552         bootstrap: use glibtoolize on MacOS
30553         * build-aux/bootstrap (check_versions): Convert libtool into
30554         libtoolize.
30555         (tool search): Move libtool check earlier, and look for
30556         glibtoolize for MacOS.
30557         (gnulib_tool_options): Auto-add --libtool when appropriate.
30558         Reported by Justin Clift.
30559
30560         poll: fix typo that broke test on MacOS
30561         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30562         Reported by Justin Clift.
30563
30564         getdate: rename to get_date
30565         Note: getdate.h is not renamed, to minimize client impact.
30566         * modules/getdate: Mark obsolete.  Move old contents...
30567         * modules/get_date: ...to new module name.
30568         * modules/getdate-tests: Move...
30569         * modules/get_date-tests: ...here.
30570         * m4/getdate.m4: Move...
30571         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30572         * lib/getdate.y: Move...
30573         * lib/get_date.y: ...here.
30574         * tests/test-getdate.c: Move...
30575         * tests/test-get_date.c: ...here.
30576         * doc/posix-functions/getdate.texi (getdate): Update name.
30577         * NEWS: Mention the change.
30578
30579 2010-09-29  Bruno Haible  <bruno@clisp.org>
30580
30581         Separate the module 'waitpid' from the module 'sys_wait'.
30582         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30583         present.
30584         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30585         gl_MODULE_INDICATOR_FOR_TESTS.
30586         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30587         * modules/sys_wait (Depends-on): Remove waitpid.
30588         (Makefile.am): Substitute GNULIB_WAITPID.
30589         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30590         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30591         signature only if the 'waitpid' module is present.
30592         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30593         * NEWS: Mention the change.
30594         * modules/grantpt (Depends-on): Add waitpid.
30595         * modules/wait-process (Depends-on): Likewise.
30596
30597 2010-09-29  Bruno Haible  <bruno@clisp.org>
30598
30599         More tests for module 'sys_wait'.
30600         * modules/sys_wait-c++-tests: New file.
30601         * tests/test-sys_wait-c++.cc: New file.
30602         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30603         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30604
30605 2010-09-29  Bruno Haible  <bruno@clisp.org>
30606
30607         New module 'waitpid'.
30608         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30609         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30610         Don't include <process.h>.
30611         (waitpid): Declare only, using modern idiom.
30612         * m4/waitpid.m4: New file.
30613         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30614         * modules/waitpid: New file.
30615         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30616         (Makefile.am): Update.
30617         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30618
30619 2010-09-28  Bruno Haible  <bruno@clisp.org>
30620
30621         poll: Assume ANSI C.
30622         * lib/poll.c (poll): Use an ANSI C declaration.
30623
30624 2010-09-28  Bruno Haible  <bruno@clisp.org>
30625
30626         poll-h: Create poll.h on all platforms.
30627         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30628         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30629         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30630         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30631         (gl_REPLACE_POLL_H): Don't set POLL_H.
30632         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30633         * modules/poll-h (Depends-on): Add include_next.
30634         (Makefile.am): Create poll.h unconditionally. Substitute also
30635         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30636
30637 2010-09-28  Bruno Haible  <bruno@clisp.org>
30638
30639         Tests for module 'poll-h'.
30640         * modules/poll-h-c++-tests: New file.
30641         * tests/test-poll-h-c++.cc: New file.
30642
30643         Tests for module 'poll-h'.
30644         * modules/poll-h-tests: New file.
30645         * tests/test-poll-h.c: New file.
30646
30647 2010-09-28  Bruno Haible  <bruno@clisp.org>
30648
30649         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30650         * modules/poll-h (Depends-on): Add 'extensions'.
30651
30652 2010-09-28  Bruno Haible  <bruno@clisp.org>
30653
30654         New module 'poll-h'.
30655         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30656         (poll): Use modern idiom.
30657         * modules/poll-h: New file.
30658         * modules/poll (Files): Remove lib/poll.in.h.
30659         (Depends-on): Add poll-h.
30660         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30661         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30662         * m4/poll_h.m4: New file.
30663         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30664         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30665         and invoke gl_REPLACE_POLL_H.
30666         * lib/poll.c: Use common idiom.
30667         * tests/test-poll.c: Likewise.
30668         * doc/posix-headers/poll.texi: Mention the poll-h module.
30669         Suggested by Eric Blake.
30670
30671 2010-09-26  Bruno Haible  <bruno@clisp.org>
30672
30673         sys_wait: Implement WSTOPSIG.
30674         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30675         Reported by Simon Josefsson.
30676
30677 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30678
30679         stdlib, sys_wait: Avoid compilation error on mingw.
30680         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30681
30682 2010-09-26  Bruno Haible  <bruno@clisp.org>
30683
30684         stdlib tests: Avoid code duplication.
30685         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30686         * modules/sys_wait-tests (Files): Likewise.
30687         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30688         * tests/test-stdlib.c: Include test-sys_wait.h.
30689         (main): Invoke test_sys_wait_macros.
30690         * tests/test-sys_wait.c: Include test-sys_wait.h.
30691         (main): Invoke test_sys_wait_macros.
30692
30693 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30694
30695         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30696         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30697         sure Windows sockets are working before calling getaddrinfo.
30698         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30699         * doc/gnulib.texi (Windows sockets): Fix typo.
30700
30701 2010-09-25  Bruno Haible  <bruno@clisp.org>
30702
30703         Tests for module 'regex-quote'.
30704         * modules/regex-quote-tests: New file.
30705         * tests/test-regex-quote.c: New file.
30706
30707         New module 'regex-quote'.
30708         * lib/regex-quote.h: New file.
30709         * lib/regex-quote.c: New file.
30710         * modules/regex-quote: New file.
30711         Suggested by Reuben Thomas <rrt@sc3d.org>.
30712
30713 2010-09-24  Bruno Haible  <bruno@clisp.org>
30714
30715         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30716         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30717
30718 2010-09-23  Bruno Haible  <bruno@clisp.org>
30719
30720         setenv: Relax license.
30721         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30722         Blake.
30723         Requested by Eric Blake.
30724
30725 2010-09-22  Bruno Haible  <bruno@clisp.org>
30726
30727         termios: Relax license.
30728         * modules/termios (License): Change to LGPLv2+.
30729         Requested by Eric Blake.
30730
30731 2010-09-22  Bruno Haible  <bruno@clisp.org>
30732
30733         threadlib: Allow the package to change the default to 'no'.
30734         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30735         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30736         Reported by Paul Eggert.
30737
30738 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30739             Bruno Haible  <bruno@clisp.org>
30740
30741         Fix endless loop in mbmemcasecoll.
30742         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30743         byte.
30744         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30745
30746 2010-09-22  Bruno Haible  <bruno@clisp.org>
30747
30748         Tests for module 'memcoll'.
30749         * modules/memcoll-tests: New file.
30750         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30751
30752         memcoll, xmemcoll: Clarify size vs. length.
30753         * modules/memcoll.c (memcoll0): Clarify specification.
30754         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30755         passed to collate_error.
30756
30757 2010-09-22  Bruno Haible  <bruno@clisp.org>
30758
30759         Tests for module 'memcasecmp'.
30760         * modules/memcasecmp-tests: New file.
30761         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30762
30763 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30764
30765         * lib/pthread.in.h: Add split double-inclusion guard, and include
30766         system <pthread.h> if there is one.  Use @@-style as in other
30767         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30768         pthread.h doesn't.
30769         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30770         (pthread_mutexattr_settype, pthread_mutex_trylock):
30771         New static inline functions, if there's no system <pthread.h>.
30772         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30773         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30774         Approximate with mutexes if the system lacks spinlocks, as in
30775         MacOS.
30776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30777         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30778         @@-style.  Check for spinlocks separately.
30779         (gl_PTHREAD_DEFAULTS): New macro.
30780         * modules/pthread: Redo to use a more typical style for in.h files.
30781
30782 2010-09-21  Eric Blake  <eblake@redhat.com>
30783
30784         net_if: enhance tests
30785         * tests/test-net_if.c (main): Move signature checks earlier.
30786         Print failures to stderr.
30787         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30788         Document the bug that we do not yet fix.
30789
30790 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30791
30792         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30793         about gnulib, not GSS.
30794
30795 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30796
30797         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30798         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30799         for Emacs.
30800         * build-aux/pmccabe2html: Make Makefile.am example code more
30801         cut-and-paste friendly.
30802
30803 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30804
30805         * tests/test-net_if.c: New file.
30806         * modules/net_if-tests: New file.
30807
30808 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30809
30810         pthread: add pthread_spin_destroy
30811         * lib/pthread.in.h (pthread_spin_destroy): New function.
30812
30813 2010-09-19  Bruno Haible  <bruno@clisp.org>
30814
30815         gnulib-tool: Fix --help output.
30816         * gnulib-tool (func_usage): Fix help message.
30817         Reported by Reuben Thomas <rrt@sc3d.org>.
30818
30819 2010-09-18  Jim Meyering  <meyering@redhat.com>
30820
30821         maint.mk: avoid unexpanded \n in two diagnostics
30822         * top/maint.mk (sc_prohibit_always_true_header_tests):
30823         Don't use a literal \n in a halt=... assignment.  It would not be
30824         expanded, and the two \n bytes would appear in the diagnostic output
30825         rather than the desired newline.  Use halt=$$(printf ... instead.
30826         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30827
30828 2010-09-18  Bruno Haible  <bruno@clisp.org>
30829
30830         netinet_in: Doc tweak.
30831         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30832         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30833
30834 2010-09-18  Jim Meyering  <meyering@redhat.com>
30835
30836         init.sh: correct an outdated comment
30837         * tests/init.sh (create_exe_shims_):  s/function/alias/
30838
30839         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30840         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30841         a file named "*.exe" is removed between the glob expansion and the
30842         processing of that oddly named file.
30843
30844 2010-09-17  Eric Blake  <eblake@redhat.com>
30845
30846         mirbsd: add some more support
30847         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30848         in BSD family.
30849         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30850         devices as OpenBSD.
30851         * m4/host-os.m4 (mirbsd): Add MirBSD.
30852
30853         tests: fix unportable assumption on sys/wait.h
30854         * tests/test-sys_wait.c (main): Relax test.
30855         * tests/test-stdlib.c (main): Likewise.
30856
30857         init.sh: accommodate directory with no .exes
30858         * tests/init.sh: Accomodate directory containing only scripts.
30859
30860         tests: avoid compiler warning
30861         * tests/test-stdlib.c (main): Use the variable.
30862
30863         fdutimens, fdutimensat: update signature, again
30864         * lib/utimens.h (gl_futimens): Delete, and move signature...
30865         (fdutimens): ...here.
30866         (fdutimensat): Rearrange signature.
30867         (lutimensat): Rename variable for clarity.
30868         * lib/fdutimensat.c (fdutimensat): Update signature.
30869         * lib/utimens.c (fdutimens): Likewise.
30870         (gl_futimens): Delete.
30871         (utimens, lutimens): Update callers.
30872         * lib/futimens.c (futimens): Likewise.
30873         * tests/test-fdutimensat.c: Likewise.
30874         * tests/test-utimens.c: Likewise.
30875         * tests/test-futimens.h: Update comment.
30876         * NEWS: Mention this.
30877         Suggested by Paul Eggert.
30878
30879 2010-09-17  Bruno Haible  <bruno@clisp.org>
30880
30881         Take over the maintenance of some older macros from Autoconf.
30882         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30883         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30884         GNU Autoconf.
30885         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30886         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30887
30888 2010-09-17  Eric Blake  <eblake@redhat.com>
30889
30890         fdutimensat: drop atflag validation
30891         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30892         with valid fd, to close a race scenario where futimens is
30893         unsupported and FILE was replaced by a symlink.
30894         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30895         accordingly.
30896         Suggested by Paul Eggert.
30897
30898 2010-09-16  Bruno Haible  <bruno@clisp.org>
30899
30900         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30901         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30902
30903 2010-09-16  Bruno Haible  <bruno@clisp.org>
30904
30905         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30906         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30907         login_tty exists.
30908         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30909
30910 2010-09-16  Bruno Haible  <bruno@clisp.org>
30911
30912         login_tty: Make the replacement code work on BSD systems.
30913         * lib/login_tty.c: Include <sys/ioctl.h>.
30914         (login_tty): Use ioctl TIOCSCTTY when available.
30915         * modules/login_tty (Depends-on): Add sys_ioctl.
30916         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30917
30918 2010-09-16  Bruno Haible  <bruno@clisp.org>
30919
30920         login_tty: Stricter unit test.
30921         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30922         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30923         and tcgetsid() after login_tty.
30924         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30925
30926 2010-09-16  Bruno Haible  <bruno@clisp.org>
30927
30928         New module 'tcgetsid'.
30929         * lib/tcgetsid.c: New file.
30930         * m4/tcgetsid.m4: New file.
30931         * modules/tcgetsid: New file.
30932         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30933         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30934         GNULIB_TCGETSID, HAVE_TCGETSID.
30935         * lib/termios.in.h: Include <sys/types.h>.
30936         (tcgetsid): New declaration.
30937         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30938         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30939         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30940         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30941
30942 2010-09-16  Bruno Haible  <bruno@clisp.org>
30943
30944         Tests for module 'termios'.
30945         * modules/termios-c++-tests: New file.
30946         * modules/termios-tests: New file.
30947         * tests/test-termios-c++.cc: New file.
30948         * tests/test-termios.c: New file.
30949
30950         New module 'termios'.
30951         * modules/termios: New file.
30952         * lib/termios.in.h: New file.
30953         * m4/termios_h.m4: New file.
30954         * doc/posix-headers/termios.texi: Mention the new module.
30955
30956 2010-09-16  Eric Blake  <eblake@redhat.com>
30957
30958         fdutimensat: add an atflag parameter
30959         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30960         * lib/utimens.h (fdutimensat): Update prototype.
30961         * tests/test-fdutimensat.c: Adjust test to match.
30962         * NEWS: Document the change.
30963         Suggested by Paul Eggert.
30964
30965 2010-09-16  Bruno Haible  <bruno@clisp.org>
30966
30967         Fix typos in comments.
30968         * lib/striconveh.h: Fix typo in comment.
30969         * lib/login_tty.c (login_tty): Likewise.
30970
30971 2010-09-15  Bruno Haible  <bruno@clisp.org>
30972
30973         stdlib: clarify MirBSD WEXITSTATUS bug
30974         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30975         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30976
30977 2010-09-15  Eric Blake  <eblake@redhat.com>
30978
30979         stdlib: work around MirBSD WEXITSTATUS bug
30980         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30981         * modules/stdlib (Depends-on): Add sys_wait.
30982         * tests/test-sys_wait.c (main): Enhance test.
30983         * tests/test-stdlib.c (main): Likewise.
30984         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30985
30986         docs: mention MacOS issue with WEXITSTATUS(constant)
30987         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30988         issue.
30989         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30990
30991         strnlen: add tests
30992         * modules/strnlen-tests: New file.
30993         * tests/test-strnlen.c: Likewise.
30994
30995 2010-09-14  Bruno Haible  <bruno@clisp.org>
30996
30997         unistr/base: Avoid link errors when module 'libunistring' is also used.
30998         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30999         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31000         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31001         Declare also when HAVE_LIBUNISTRING is set.
31002         Reported by Pádraig Brady <P@draigbrady.com>.
31003
31004 2010-09-14  Eric Blake  <eblake@redhat.com>
31005
31006         test-rawmemchr: make more robust
31007         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31008         (Depends-on, configure.ac): Add needed prerequisites to use it.
31009         * modules/memchr-tests (Files, Depends-on, configure.ac):
31010         Likewise, to avoid implicit reliance on memchr module prereqs.
31011         * tests/test-memchr.c (main): Ensure proper masking.
31012         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31013         reads.
31014
31015         memchr: detect glibc Alpha bug
31016         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31017         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31018         Alpha.
31019         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31020         * tests/test-memchr.c (main): Enhance test.
31021         Reported by Nelson H. F. Beebe.
31022
31023 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31024
31025         fts, getcwd, glob: audit for dirfd returning -1
31026         * lib/fts.c (opendir): Remove #define; no longer used.
31027         (opendirat): New arg PDIR_FD.  All callers changed.
31028         (fts_build, _opendir2): Use new opendirat to avoid the need for
31029         dirfd, or for checking whether dirfd returns a negative value.
31030         Don't use opendir; always use openat followed by fdopendir.
31031         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31032         it.
31033         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31034         returns -1 here.
31035         * modules/fts (Depends-on): Remove dirfd.
31036         * modules/getcwd (Depends-on): Likewise.
31037
31038 2010-09-13  Eric Blake  <eblake@redhat.com>
31039
31040         float: fix broken MirBSD header
31041         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31042         * doc/posix-headers/float.texi (float.h): Document it.
31043
31044 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31045
31046         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31047         * lib/fts.c (opendirat): New arg extra_flags.
31048         (__opendir2): Use it to avoid following symlinks when opening
31049         a directory, if symlinks are not supposed to be followed.  See
31050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31051
31052         fdopendir: preserve argument fd before returning
31053         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31054         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31055         (fdopendir): Use them, arranging for FD to be open to the same
31056         directory that it was when it started.  (It might be temporarily
31057         closed while fdopendir is running, so this not thread- or
31058         signal-safe.)  Be careful to do the right thing even when file
31059         descriptors are scarce and dup fails with errno == EMFILE.  See
31060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31061
31062 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31063
31064         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31065         * NEWS: Document change.
31066         * m4/regex.m4: Disable test for regoff_t size.
31067
31068 2010-09-13  Jim Meyering  <meyering@redhat.com>
31069
31070         fts: don't operate on an invalid file descriptor after failed dup
31071         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31072         negative file descriptor.
31073
31074 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31075
31076         savedir: add streamsavedir, deprecate fdsavedir
31077         * NEWS: Mention deprecation of fdsavedir.
31078         * lib/savedir.c (streamsavedir): New extern function, whose name
31079         ends in "savedir" to be consistent with the others.  This differs
31080         from savedirstream in that it doesn't close its argument.  The
31081         next version of GNU tar will use this instead of fdsavedir, to
31082         avoid some race conditions and conserve file descriptors.
31083         (savedirstream): Reimplement as a wrapper around streamsavedir.
31084         (fdsavedir): Add a comment deprecating this function.  As far as
31085         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31086         * lib/savedir.h (streamsavedir): New decl.
31087         (fdsavedir): Add a comment deprecating this.
31088
31089 2010-09-10  Bruno Haible  <bruno@clisp.org>
31090
31091         langinfo: Fix last commit.
31092         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31093         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31095
31096 2010-09-10  Bruno Haible  <bruno@clisp.org>
31097
31098         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31099         * lib/progreloc.c (O_EXEC): Define fallback.
31100
31101 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31102
31103         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31104         * NEWS: Document recent changes to fcntl-h.
31105         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31106         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31107         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31108         Similarly for O_SEARCH; this last was already true, but not documented.
31109         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31110         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31111         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31112         Likewise.
31113         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31114         is zero, not whether it is defined.
31115         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31116         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31117         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31118
31119 2010-09-10  Bruno Haible  <bruno@clisp.org>
31120
31121         langinfo, nl_langinfo: Fix for IRIX 5.3.
31122         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31123         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31124         HAVE_LANGINFO_YESEXPR.
31125         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31126         HAVE_LANGINFO_YESEXPR.
31127         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31128         HAVE_LANGINFO_T_FMT_AMPM is 0.
31129         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31130         HAVE_LANGINFO_YESEXPR is 0.
31131         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31132         NOEXPR.
31133         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31134         * doc/posix-functions/nl_langinfo.texi: Likewise.
31135         Reported by Eric Blake.
31136
31137 2010-09-10  Bruno Haible  <bruno@clisp.org>
31138
31139         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31140         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31141         on FreeBSD 8.0 and OpenBSD 4.6.
31142         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31143         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31144         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31145         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31146         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31147         ac_includes_default.
31148         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31149
31150 2010-09-09  Eric Blake  <eblake@redhat.com>
31151
31152         strsignal: work around NetBSD bug
31153         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31154         * lib/string.in.h (includes): Likewise.
31155         * doc/posix-functions/strsignal.texi (strsignal): Document the
31156         bug.
31157         Reported by Nelson H. F. Beebe.
31158
31159         gnulib-tool: work with NetBSD /bin/sh
31160         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31161         (func_get_description, func_get_comment, func_get_status)
31162         (func_get_notice, func_get_applicability, func_get_filelist)
31163         (func_get_dependencies, func_get_autoconf_early_snippet)
31164         (func_get_autoconf_snippet, func_get_automake_snippet)
31165         (func_get_include_directive, func_get_link_directive)
31166         (func_get_license, func_get_maintainer, func_import): Avoid
31167         shell syntax errors from parsing syntax extensions.
31168
31169 2010-09-09  Bruno Haible  <bruno@clisp.org>
31170
31171         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31172         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31173         a reliable way to determine whether the 'alias' command works.
31174
31175 2010-09-08  Jim Meyering  <meyering@redhat.com>
31176
31177         init.sh: penalize a set-x-impaired shell; don't disqualify it
31178         * tests/init.sh: Too many shells corrupt application stderr when
31179         you set -x, so we can't afford to disqualify them, since at least
31180         on Irix-6.5, that would disqualify all bourne shells.
31181         Instead, use a two-pass approach.
31182         On the first pass, try to find a shell that meets the stricter
31183         condition that set -x does not corrupt stderr.
31184         If no shell meets the stricter condition, retest each candidate
31185         shell, but without that extra condition.  Finally, when
31186         VERBOSE=yes is requested and set -x might cause trouble, simply
31187         issue a warning and refrain from enabling debug output.
31188
31189 2010-09-08  Eric Blake  <eblake@redhat.com>
31190
31191         unsetenv: fix OpenBSD bug
31192         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31193         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31194         documentation.
31195         Reported by Jim Meyering.
31196
31197         strtod: work around IRIX 6.5 bug
31198         * lib/strtod.c (strtod): Reparse number on shorter string if
31199         exponent parse was invalid.
31200         * tests/test-strtod.c (main): Add check for "0x1p 2".
31201         Reported by Tom G. Christensen.
31202
31203         getopt: optimize previous patch
31204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31205         empty variable.  Speed up awk script.
31206         Reported by Paolo Bonzini.
31207
31208 2010-09-08  Jim Meyering  <meyering@redhat.com>
31209
31210         test.sh: disqualify shells for which set -x corrupts stderr
31211         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31212         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31213         appear in stderr output.  For example, this command:
31214             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31215         prints "P=1" on those two systems:
31216
31217 2010-09-08  Bruno Haible  <bruno@clisp.org>
31218
31219         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31220         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31221         commands, because some shells ignore redirections when there is an
31222         error in the command lookup.
31223         Reported by Eric Blake.
31224
31225 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31226
31227         * lib/regex.h: Fix a mention of `regex_compile' (should be
31228         `re_compile_pattern').
31229         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31230         (re_set_registers): Correct name of parameter in comment.
31231
31232         * doc/regex.texi: Add documentation for missing syntax flags.
31233         Remove commented-out documentation of defunct syntax option
31234         RE_NO_EMPTY_ALTS.
31235         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31236         Add documentation of re_set_registers.
31237         Document trick to re-use a pattern buffer by setting fastmap manually.
31238         Update documentation of struct re_pattern_buffer per public members.
31239         Uncomment documentation of equivalence class operators and
31240         collating symbol operators, since they are now implemented,
31241         Explain leftmost-longest matching in relation to alternatives.
31242         Tidy documentation of substring matching.
31243         Remove POSIX documentation, which is done better in
31244         glibc, and refer the reader there. Keep BSD API documentation, as
31245         that is not readily available elsewhere.
31246
31247 2010-09-07  Eric Blake  <eblake@redhat.com>
31248
31249         getopt: handle POSIXLY_CORRECT set but not exported
31250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31251         export state of POSIXLY_CORRECT, due to bash set -o posix.
31252         Reported by Dustin J. Mitchell.
31253
31254 2010-09-05  Bruno Haible  <bruno@clisp.org>
31255
31256         gnulib-tool: Highlight the changed options.
31257         * gnulib-tool (func_usage): Display the --import, --add-import,
31258         --remove-import explanations in bold font.
31259
31260 2010-09-06  Karl Berry  <karl@gnu.org>
31261
31262         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31263
31264 2010-09-05  Bruno Haible  <bruno@clisp.org>
31265
31266         uniwidth/width: Update comment.
31267         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31268         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31269
31270 2010-09-05  Bruno Haible  <bruno@clisp.org>
31271
31272         isinf, isnan: Relax license.
31273         * modules/isinf (License): Change from GPL to LGPL, with consent from
31274         Ben Pfaff.
31275         * modules/isnan (License): Likewise.
31276         Requested by Ludovic Courtès.
31277
31278 2010-09-04  Bruno Haible  <bruno@clisp.org>
31279
31280         gnulib-tool: Help migration from --import to --add-import or --update.
31281         * gnulib-tool: Emit a verbose error message when --import is used
31282         without any module name.
31283
31284 2010-09-04  Bruno Haible  <bruno@clisp.org>
31285
31286         Update doc about gnulib-tool.
31287         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31288         'gnulib-tool --update' in more detail.
31289         Reported by Eric Blake.
31290
31291 2010-09-04  Bruno Haible  <bruno@clisp.org>
31292
31293         gnulib-tool: Change --import. New options --add/remove-import.
31294         * gnulib-tool: New options --add-import, --remove-import.
31295         (func_usage): Document them.
31296         (have_associative): Define always.
31297         (func_import): In import mode, don't merge the specified settings with
31298         the cached settings. Implement remove-import mode.
31299         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31300         Explain when to use them versus --import.
31301         (Simple update): Use --add-import instead of --import.
31302         * NEWS: Mention the change.
31303
31304 2010-09-04  Bruno Haible  <bruno@clisp.org>
31305
31306         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31307         separate gnulib.mk.
31308
31309 2010-09-04  Bruno Haible  <bruno@clisp.org>
31310
31311         gnulib-tool: Don't talk about CVS any more.
31312         * gnulib-tool (func_usage, func_import): Write "version control"
31313         instead of CVS.
31314
31315 2010-09-04  Jim Meyering  <meyering@redhat.com>
31316
31317         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31318         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31319         false positives (whose names may be ill-chosen) when searching
31320         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31321         would cause a false-positive.
31322
31323         avoid coreutils "make distcheck" failure
31324         Coreutils tests with an absolute build directory name that contains
31325         a space.  Not quoting this directory name caused a failure.
31326         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31327         * tests/test-vc-list-files-cvs.sh: Likewise.
31328
31329 2010-09-04  Bruno Haible  <bruno@clisp.org>
31330
31331         gnulib-tool: Avoid error when run in a package without Makefile.am.
31332         * gnulib-tool: When collecting the m4dirs in a package that does not
31333         have a Makefile.am, eliminate those directories that contain no
31334         gnulib-cache.m4. Fix expression that counts these directories.
31335
31336 2010-09-04  Bruno Haible  <bruno@clisp.org>
31337
31338         update-copyright test: Improve output when perl is missing or too old.
31339         * tests/test-update-copyright.sh: Move test of Perl version down after
31340         the test whether Perl exists. Provide an explanation relating Perl's
31341         error message to Automake's SKIP: message.
31342
31343 2010-09-04  Bruno Haible  <bruno@clisp.org>
31344
31345         Don't augment PATH in TESTS_ENVIRONMENT.
31346         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31347         set abs_aux_dir instead of augmenting PATH.
31348         * modules/vc-list-files-tests (Makefile.am): Likewise.
31349         * tests/test-update-copyright.sh: Augment PATH here.
31350         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31351         path_prepend_.
31352         * tests/test-vc-list-files-git.sh: Likewise.
31353
31354 2010-09-04  Jim Meyering  <meyering@redhat.com>
31355
31356         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31357         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31358
31359 2010-09-04  Bruno Haible  <bruno@clisp.org>
31360
31361         strdup: Fix compilation error in C++ mode.
31362         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31363         the macro.
31364
31365 2010-09-04  Bruno Haible  <bruno@clisp.org>
31366
31367         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31368         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31369         macro into a function.
31370         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31371
31372 2010-09-04  Bruno Haible  <bruno@clisp.org>
31373
31374         Set PATH_SEPARATOR the same way autoconf does.
31375         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31376         the value of PATH_SEPARATOR the same way autoconf-generated configure
31377         scripts do.
31378         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31379         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31380
31381 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31382
31383         Set PATH_SEPARATOR the same way autoconf does.
31384         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31385         the same way autoconf-generated configure scripts do.
31386         * posix-modules: Likewise.
31387
31388 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31389
31390         hash: fix safe_hasher const typo
31391         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31392         const; otherwise, there is a type error later.
31393
31394 2010-09-02  Jim Meyering  <meyering@redhat.com>
31395
31396         test-update-copyright.sh: require perl 5.8.0
31397         * tests/test-update-copyright.sh: Require 5.8.0,
31398         which Tom G. Christensen has confirmed is adequate,
31399         while 5.6.1 is not.
31400
31401 2010-09-02  Eric Blake  <eblake@redhat.com>
31402
31403         tests: init.sh improvements for re-exec'ing with zsh
31404         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31405         -vx through shell re-exec.
31406         Reported by Tom G. Christensen.
31407
31408         wctype: fix typo in previous commit
31409         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31410         Reported by Ludovic Courtès.
31411
31412 2010-09-02  Jim Meyering  <meyering@redhat.com>
31413
31414         test-update-copyright.sh: skip test if Perl is too old
31415         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31416         Reported by Tom G. Christensen.
31417
31418 2010-09-02  Bruno Haible  <bruno@clisp.org>
31419
31420         wctype: Avoid compilation error on IRIX 6.5.30.
31421         * lib/wctype.in.h (iswblank): Declare with a replacement if
31422         REPLACE_ISWBLANK is set.
31423         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31424         declared. Set REPLACE_ISWBLANK.
31425         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31426         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31427         * doc/posix-headers/wctype.texi: Likewise.
31428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31429
31430 2010-09-01  Bruno Haible  <bruno@clisp.org>
31431
31432         New module 'socketlib'.
31433         * modules/socketlib: New file.
31434         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31435         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31436         * modules/sockets (Depends-on): Add socketlib.
31437         Suggested by Sam Steingold <sds@gnu.org>.
31438
31439 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31440
31441         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31442
31443         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31444         when one needs search access to a directory but not read access.
31445         On systems where it is available, it works in some cases where
31446         O_RDONLY does not, namely on directories that are searchable but
31447         not readable, and which need only to be searchable.  If O_SEARCH
31448         is not available, fall back to the traditional method of using
31449         O_RDONLY.
31450
31451         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31452         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31453         when opening a directory that needs only to be searchable.
31454         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31455         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31456         * lib/openat-proc.c (openat_proc_name): Likewise.
31457         * lib/openat.c (openat_needs_fchdir): Likewise.
31458         * lib/save-cwd.c (save_cwd): Likewise.
31459         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31460
31461 2010-08-28  Bruno Haible  <bruno@clisp.org>
31462
31463         New module 'host-cpu-c-abi'.
31464         * modules/host-cpu-c-abi: New file.
31465         * m4/host-cpu-c-abi.m4: New file, based on part of
31466         clisp/src/m4/general.m4.
31467         Requested by Sam Steingold <sds@gnu.org>.
31468
31469 2010-08-31  Eric Blake  <eblake@redhat.com>
31470         and Jim Meyering  <meyering@redhat.com>
31471
31472         hash: factor, and guard against misbehaving hasher function
31473         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31474         of table->hasher's return value.  Also protect against a hash value
31475         so large that adding it to table->bucket results in a NULL pointer.
31476         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31477         Use it in place of open-coded check-and-abort.
31478
31479 2010-08-30  Bruno Haible  <bruno@clisp.org>
31480
31481         hash: silence spurious clang warning
31482         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31483         Reported by Eric Blake.
31484
31485 2010-08-30  Eric Blake  <eblake@redhat.com>
31486
31487         strstr, memmem, strcasestr: avoid leaked shell message
31488         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31489         FreeBSD.
31490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31492
31493         tests: silence clang warning
31494         * tests/test-malloca.c (do_allocation): Avoid dead store.
31495
31496 2010-08-29  Bruno Haible  <bruno@clisp.org>
31497
31498         gettext: Fix recent mistake.
31499         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31500
31501 2010-08-29  Bruno Haible  <bruno@clisp.org>
31502
31503         selinux-h: Offer a --without-selinux option.
31504         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31505         --without-selinux was specified, skip all tests and define
31506         HAVE_SELINUX_SELINUX_H to 0.
31507         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31508         set LIB_SELINUX to empty.
31509         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31510         gl_LIBSELINUX. If --without-selinux was specified, replace
31511         selinux/context.h.
31512         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31513
31514 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31515             Bruno Haible  <bruno@clisp.org>
31516
31517         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31518         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31519         of HAVE_REALLOC.
31520         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31521         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31522         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31523         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31524
31525 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31526             Bruno Haible  <bruno@clisp.org>
31527
31528         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31529         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31530         HAVE_CALLOC.
31531         * lib/xmalloc.c: Update accordingly.
31532         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31533         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31534         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31535
31536 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31537             Bruno Haible  <bruno@clisp.org>
31538
31539         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31540         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31541         HAVE_MALLOC.
31542         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31543         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31544         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31545
31546 2010-08-29  Bruno Haible  <bruno@clisp.org>
31547
31548         Update modules list.
31549         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31550         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31551         (String handling <string.h>): Add astrxfrm.
31552         (File system functions): Add readlinkat.
31553
31554 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31555
31556         Tests for module 'realloc-gnu'.
31557         * modules/realloc-gnu-tests: New file.
31558         * tests/test-realloc-gnu.c: New file.
31559
31560         Tests for module 'calloc-gnu'.
31561         * modules/calloc-gnu-tests: New file.
31562         * tests/test-calloc-gnu.c: New file.
31563
31564         Tests for module 'malloc-gnu'.
31565         * modules/malloc-gnu-tests: New file.
31566         * tests/test-malloc-gnu.c: New file.
31567
31568 2010-08-28  Bruno Haible  <bruno@clisp.org>
31569
31570         Rename module 'realloc' -> 'realloc-gnu'.
31571         * modules/realloc-gnu: New file, copied from modules/realloc.
31572         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31573         obsolete.
31574         * modules/mgetgroups (Depends-on): Update.
31575         * doc/posix-functions/realloc.texi: Update.
31576         * NEWS: Mention the change.
31577
31578         Rename module 'calloc' -> 'calloc-gnu'.
31579         * modules/calloc-gnu: New file, copied from modules/calloc.
31580         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31581         obsolete.
31582         * doc/posix-functions/calloc.texi: Update.
31583         * NEWS: Mention the change.
31584
31585         Rename module 'malloc' -> 'malloc-gnu'.
31586         * modules/malloc-gnu: New file, copied from modules/malloc.
31587         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31588         obsolete.
31589         * modules/argp (Depends-on): Update.
31590         * modules/regex (Depends-on): Update.
31591         * doc/posix-functions/malloc.texi: Update.
31592         * NEWS: Mention the change.
31593
31594 2010-08-28  Eric Blake  <eblake@redhat.com>
31595
31596         pread, pwrite: add missing dependency
31597         * modules/pread (Depends-on): Add extensions.
31598         * modules/pwrite (Depends-on): Likewise.
31599
31600 2010-08-28  Bruno Haible  <bruno@clisp.org>
31601
31602         unistr/u*-strchr: Fix tests dependencies.
31603         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31604         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31605         Reported by Ian Beckwith <ianb@erislabs.net>.
31606
31607 2010-08-28  Bruno Haible  <bruno@clisp.org>
31608
31609         read-file: Don't occupy too much unused memory.
31610         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31611
31612 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31613             Eric Blake  <eblake@redhat.com>
31614             Bruno Haible  <bruno@clisp.org>
31615
31616         read-file: Avoid memory reallocations with regular files.
31617         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31618         (fread_file): With regular files, use the remaining length as the
31619         initial buffer size.  Check against overflow.
31620         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31621         sys_stat.
31622
31623 2010-08-28  Bruno Haible  <bruno@clisp.org>
31624
31625         ftello: Relax license.
31626         * modules/ftello (License): Relax to LGPLv2+.
31627         Reported by Eric Blake.
31628
31629 2010-08-28  Bruno Haible  <bruno@clisp.org>
31630
31631         Avoid relocwrapper link errors due to gnulib replacement functions.
31632         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31633         function.
31634         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31635
31636 2010-08-28  Bruno Haible  <bruno@clisp.org>
31637
31638         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31639         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31640         defined.
31641         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31642         Suggested by Eric Blake.
31643
31644 2010-08-28  Bruno Haible  <bruno@clisp.org>
31645
31646         sys_socket, netdb: Ensure socklen_t gets defined.
31647         * modules/sys_socket (Depends-on): Add socklen.
31648         * modules/netdb (Depends-on): Likewise.
31649         * modules/getaddrinfo (Depends-on): Remove socklen.
31650         * modules/getsockopt (Depends-on): Likewise.
31651         * modules/setsockopt (Depends-on): Likewise.
31652         * tests/test-sys_socket.c: Check that socklen_t is defined.
31653         * tests/test-netdb.c: Likewise.
31654         * m4/socklen.m4: Update comments.
31655         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31656
31657 2010-08-27  Eric Blake  <eblake@redhat.com>
31658
31659         login_tty: add missing dependency
31660         * modules/login_tty (Depends-on): Add pty.
31661
31662 2010-08-26  Eric Blake  <eblake@redhat.com>
31663
31664         lib-symbol-versions: fix m4 quoting
31665         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31666         format for AC_LINK_IFELSE.
31667
31668         glob: fix compile test
31669         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31670
31671         btowc: fix missing file
31672         * modules/btowc (Files): Also ship locale-fr.m4.
31673
31674         lseek: fix link test
31675         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31676         AC_LINK_IFELSE.
31677
31678         include_next: silence autoconf 2.68 warning
31679         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31680         AC_COMPILE_IFELSE as special.
31681         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31682         autoconf < 2.68.
31683
31684         acl: fix compilation test
31685         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31686         AC_COMPILE_IFELSE.
31687
31688 2010-08-26  Bruno Haible  <bruno@clisp.org>
31689
31690         Modernize AC_TRY_RUN invocations.
31691         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31692         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31693         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31694         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31695         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31696         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31697         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31699         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31700         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31702         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31703         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31706         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31707         gl_MBRLEN_NUL_RETVAL): Likewise.
31708         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31709         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31710         Likewise.
31711         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31712         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31713         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31714         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31715         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31716         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31717         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31718         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31719         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31720         Likewise.
31721         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31722         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31724         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31725         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31728         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31729         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31731
31732 2010-08-26  Bruno Haible  <bruno@clisp.org>
31733
31734         Modernize AC_TRY_LINK invocations.
31735         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31736         AC_TRY_LINK.
31737         * m4/argp.m4 (gl_ARGP): Likewise.
31738         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31739         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31740         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31741         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31742         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31743         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31744         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31745         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31746         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31747         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31748         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31749         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31750         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31751         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31752         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31753         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31754         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31755         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31756         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31757         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31758         Likewise.
31759         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31760         Likewise.
31761         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31762         Likewise.
31763         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31765         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31766         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31767         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31768         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31769         * m4/servent.m4 (gl_SERVENT): Likewise.
31770         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31771         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31772         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31773         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31774         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31775         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31776         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31777         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31778         * modules/tsearch-tests (configure.ac): Likewise.
31779
31780 2010-08-26  Bruno Haible  <bruno@clisp.org>
31781
31782         Modernize AC_TRY_COMPILE invocations.
31783         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31784         AC_TRY_COMPILE.
31785         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31786         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31787         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31788         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31789         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31790         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31791         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31792         * m4/lock.m4 (gl_LOCK): Likewise.
31793         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31795         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31796         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31797         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31798         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31799         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31800         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31801         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31802         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31803         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31804         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31805         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31806         extraneous semicolon.
31807
31808 2010-08-26  Jim Meyering  <meyering@redhat.com>
31809
31810         stat-time: relax license LGPL
31811         * modules/stat-time (License): Change from GPL to LGPL,
31812         with consent from all contributors, for use in libguile.
31813         Requested by Ludovic Courtès.
31814
31815 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31816
31817         poll: return immediately on POLLHUP.
31818         * lib/poll.c (poll): Always set timeout before wait_timeout is
31819         computed.
31820
31821 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31822
31823         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31824         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31825         rmdir ("dir/.//"), unlinkat.
31826
31827 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31828
31829         stdbool: avoid spurious failure with modern xlc
31830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31831
31832 2010-08-24  Bruno Haible  <bruno@clisp.org>
31833
31834         getloadavg: simplify code
31835         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31836         gl_have_func. Update comments.
31837
31838 2010-08-24  Eric Blake  <eblake@redhat.com>
31839
31840         getloadavg: don't define SVR4 on cygwin
31841         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31842         only define SVR4 when -lkvm is required.
31843         Reported by Yaakov Selkowitz.
31844
31845 2010-08-24  Bruno Haible  <bruno@clisp.org>
31846
31847         priv-set: fix comment
31848         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31849
31850 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31851
31852         priv-set: fix comments
31853         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31854         to match code, as suggested by David Bartley in:
31855         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31856
31857 2010-08-23  Eric Blake  <eblake@redhat.com>
31858
31859         stdbool: avoid rejecting clang
31860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31861         * tests/test-stdbool.c: Enable more tests if using the system
31862         <stdbool.h> instead of the gnulib replacement.
31863         (main): Move xlc bug test to a runtime test for all compilers.
31864         Reported by Anders Kaseorg.
31865
31866         argz: fix shell quoting issue
31867         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31868         Reported by Charles Wilson.
31869
31870 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31871             Erik Faye-Lund <kusmabite@gmail.com>
31872
31873         poll, select: handle ERROR_BROKEN_PIPE.
31874         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31875         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31876         * lib/select.c (win32_compute_revents): Do not mark a pipe
31877         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31878
31879 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31880
31881         fts: allow compilation with C++
31882         * lib/fts_.h: Specify extern "C" linkage with C++.
31883
31884 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31885
31886         Fix gnulib-tool sed script de-commentation for AIX sed.
31887         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31888         sed.
31889
31890 2010-08-17  Eric Blake  <eblake@redhat.com>
31891
31892         test-stddef: test for (some) offsetof bugs
31893         * tests/test-stddef.c: Enhance test to ensure correct type of
31894         offsetof.
31895         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31896         that we are not fixing at this time.
31897
31898 2010-08-15  Bruno Haible  <bruno@clisp.org>
31899
31900         stpncpy: Allow stpncpy to be defined as a macro.
31901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31902         if it's already correctly declared.
31903         * lib/string.in.h (stpncpy): Undefine before redefining.
31904         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31905
31906 2010-08-14  Bruno Haible  <bruno@clisp.org>
31907
31908         Rename module 'memxfrm' to 'amemxfrm'.
31909         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31910         (amemxfrm): Renamed from memxfrm.
31911         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31912         (amemxfrm): Renamed from memxfrm.
31913         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31914         * NEWS: Mention the change.
31915         * MODULES.html.sh (String handling <string.h>): Update.
31916         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31917         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31918         * lib/unicase/u16-casexfrm.c: Likewise.
31919         * lib/unicase/u32-casexfrm.c: Likewise.
31920         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31921         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31922         * lib/uninorm/u16-normxfrm.c: Likewise.
31923         * lib/uninorm/u32-normxfrm.c: Likewise.
31924         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31925         memxfrm.
31926         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31927         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31928         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31929         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31930         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31931         Suggested by Paul Eggert.
31932
31933 2010-08-14  Bruno Haible  <bruno@clisp.org>
31934
31935         Tests for module 'astrxfrm'.
31936         * modules/astrxfrm-tests: New file.
31937         * tests/test-astrxfrm.c: New file.
31938
31939         New module 'astrxfrm'.
31940         * lib/astrxfrm.h: New file.
31941         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31942         * modules/astrxfrm: New file.
31943
31944 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31945
31946         regex: Tweak doc.
31947         * doc/regex.texi (Overview): Don't mention regex.c.
31948         (GNU Regular Expression Compiling): Likewise.
31949         (Match-end-of-line Operator): Mention 'not_eol'.
31950
31951 2010-08-14  Brian Gough  <bjg@gnu.org>
31952             Bruno Haible  <bruno@clisp.org>
31953
31954         git-merge-changelog: add doc relating to use with bzr and hg.
31955         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31956
31957 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31958
31959         pthread: fix pthread.h creation for srcdir != builddir
31960         * modules/pthread (Makefile.am): Fix the rule to work also in a
31961         non-srcdir build.
31962
31963 2010-08-13  Karl Berry  <karl@gnu.org>
31964
31965         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31966         * doc/posix-*/*: force line break before @url of POSIX
31967         specifications.
31968         Suggested by Werner Lemberg.
31969
31970 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31971
31972         strtod: fix const diagnostic
31973         * lib/strtod.c (strtod): Don't assign const char * to char *,
31974         as this elicits a warning from GCC when warnings are enabled.
31975
31976 2010-08-10  Pádraig Brady <P@draigbrady.com>
31977         and Eric Blake  <eblake@redhat.com>
31978
31979         copy-acl: ignore ENOTSUP on HP-UX
31980         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31981         so that it is available for HP-UX.
31982         * lib/copy-acl.c (qcopy_acl): Use it.
31983         Reported by Patrick M. Callahan.
31984
31985 2010-08-10  Eric Blake  <eblake@redhat.com>
31986
31987         open, chown: relax license
31988         * modules/open (License): Change to LGPLv2+, with consent by all
31989         authors, for use in augeas.
31990         * modules/chown (License): Likewise.
31991         * modules/lchown (Likewise): Likewise.
31992         Requested by Adam Stokes.
31993
31994 2010-08-09  Karl Berry  <karl@gnu.org>
31995
31996         * build-aux/ar-lib: new file, import from Automake.
31997         * config/srclist.txt: autocheck for updates.
31998
31999 2010-08-09  Eric Blake  <eblake@redhat.com>
32000
32001         readlinkat: adjust client modules
32002         * modules/areadlinkat (Depends-on): Use readlinkat, not
32003         symlinkat.
32004         * modules/areadlinkat-with-size (Depends-on): Likewise.
32005
32006         mknod: be more vocal about danger of running tests as root
32007         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32008         root, since that is just asking for problems.
32009         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32010
32011         readlinkat: split into its own module
32012         * modules/symlinkat: Split readlinkat...
32013         * modules/readlinkat: ...into separate module.
32014         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32015         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32016         * lib/symlinkat.c (readlinkat): Move...
32017         * lib/readlinkat.c: ...into new file.
32018         * modules/symlinkat-tests: Split readlinkat test...
32019         * modules/readlinkat-tests: ...into separate module.
32020         * tests/test-symlinkat.c: Split...
32021         * tests/test-readlinkat.c: ...into new file.
32022         * NEWS: Document the split.
32023         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32024         * lib/unistd.in.h (readlinkat): Likewise.
32025         Suggested by Bruno Haible.
32026
32027 2010-08-08  Bruno Haible  <bruno@clisp.org>
32028
32029         memxfrm: Speed up.
32030         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32031         that usually only one call to strxfrm is necessary for each string
32032         part.
32033         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32034
32035 2010-08-07  Karl Berry  <karl@gnu.org>
32036
32037         * doc/posix-headers/limits.texi,
32038         * doc/posix-functions/malloc.texi,
32039         * doc/posix-functions/strsignal.texi: missing @item.
32040         * doc/ld-version-script.texi: spurious leading i.
32041         * doc/regex.texi (Interval Operators): no commas inside @var.
32042
32043 2010-08-01  Bruno Haible  <bruno@clisp.org>
32044
32045         Integrate the regex documentation.
32046         * doc/gnulib.texi: Define 'cn' index.
32047         (Regular expressions): New a chapter that includes regex.texi and
32048         regexprops-generic.texi.
32049         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32050         syntax.
32051
32052         Whitespace cleanup.
32053         * doc/regex.texi: Remove trailing spaces.
32054
32055         Add regex documentation.
32056         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32057         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32058         Written by Kathy A. Hargreaves and Karl Berry.
32059
32060 2010-08-01  Bruno Haible  <bruno@clisp.org>
32061
32062         link: Update documentation.
32063         * doc/posix-functions/link.texi: Update regarding Solaris.
32064
32065 2010-07-31  Bruno Haible  <bruno@clisp.org>
32066
32067         Update modules list.
32068         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32069         (String handling <string.h>): Add memcmp2, memxfrm.
32070         (Container data structures): Add xlist, xsublist, xoset.
32071         (Core language properties): Add alignof, unused-parameter.
32072         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32073         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32074         (Unibyte characters <ctype.h>): New section.
32075         (String handling <string.h>): New section.
32076         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32077         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32078         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32079         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32080         tan, tanh, tanl, y0, y1, yn.
32081         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32082         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32083         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32084         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32085         unlockpt, vdprintf, vdprintf-posix.
32086         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32087         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32088         xconcat-filename.
32089         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32090         getdtablesize, pipe2, pipe2-safer.
32091         (Security): New section.
32092         (Networking functions): Add accept4.
32093         (Signal handling): Add sigpipe.
32094         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32095         mbmemcasecoll.
32096         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32097         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32098         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32099         pipe-filter-ii.
32100         (Misc): Add argp-version-etc, login_tty, parse-duration.
32101
32102 2010-07-31  Bruno Haible  <bruno@clisp.org>
32103
32104         Improve doc in MODULES.html.
32105         * modules/linkat (Description): Add the word "function".
32106         * modules/mkfifo (Description): Likewise.
32107         * modules/mknod (Description): Likewise.
32108         * modules/remove (Description): Likewise.
32109         * modules/renameat (Description): Likewise.
32110         * modules/stat (Description): Likewise.
32111         * modules/symlink (Description): Likewise.
32112         * modules/unlink (Description): Likewise.
32113
32114 2010-07-31  Bruno Haible  <bruno@clisp.org>
32115
32116         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32117         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32118         option --enable/disable-c++ instead of --enable/disable-cxx.
32119         * NEWS: Mention the change.
32120
32121 2010-07-31  Bruno Haible  <bruno@clisp.org>
32122
32123         readlink, areadlink: Relax test a bit.
32124         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32125         alternative to ENOTDIR.
32126         * tests/test-areadlink.h (test_areadlink): Likewise.
32127         Reported by Rainer Tammer.
32128
32129 2010-07-31  Bruno Haible  <bruno@clisp.org>
32130
32131         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32132         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32133         character, perform the search using U_STRCHR.
32134         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32135         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32136         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32137         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32138         Suggested by Paolo Bonzini.
32139
32140 2010-07-31  Bruno Haible  <bruno@clisp.org>
32141
32142         unistr/u*-strstr: Fix dependencies.
32143         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32144         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32145         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32146
32147 2010-07-31  Bruno Haible  <bruno@clisp.org>
32148
32149         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32150         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32151         the beginning of the loop.
32152         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32153         cases in 'switch' statement.
32154
32155         unistr/u8-strchr: Fix several bugs.
32156         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32157         the string. When not found, return NULL, not a pointer near the end.
32158
32159         More tests for unistr/u8-strchr.
32160         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32161         that the function does not read past the first occurrence of the byte
32162         being searched.
32163         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32164         * tests/unistr/test-u16-strchr.c (main): New function.
32165         * tests/unistr/test-u32-strchr.c (main): New function.
32166
32167 2010-07-31  Bruno Haible  <bruno@clisp.org>
32168
32169         posix-modules: Ignore backup files of documentation files.
32170         * posix-modules: grep only through files named *.texi.
32171
32172 2010-07-31  Bruno Haible  <bruno@clisp.org>
32173
32174         symlinkat: Fix documentation.
32175         * doc/posix-functions/readlinkat.texi: Fix module name.
32176
32177 2010-07-31  Bruno Haible  <bruno@clisp.org>
32178
32179         fchownat: Replace also when chown has the trailing slash bug.
32180         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32181         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32182         introduced on 2010-04-10.
32183         Reported by Rainer Tammer.
32184
32185 2010-07-31  Bruno Haible  <bruno@clisp.org>
32186
32187         linkat: Work around AIX 7.1 bug.
32188         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32189         whether linkat handles trailing slash correctly. If not, replace linkat
32190         and define LINKAT_TRAILING_SLASH_BUG.
32191         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32192         check whether (fd1,file1) points to a directory if file1 or file2 ends
32193         in a slash. Code taken from lib/link.c.
32194         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32195         Reported by Rainer Tammer.
32196
32197 2010-07-31  Bruno Haible  <bruno@clisp.org>
32198
32199         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32200         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32201         This disables an xlc optimization that was causing wrong test results.
32202         Reported by Rainer Tammer.
32203
32204 2010-07-31  Bruno Haible  <bruno@clisp.org>
32205
32206         iconv: Work around AIX 6.1..7.1 bug.
32207         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32208         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32209         cross-compiling, guess no on all versions of AIX.
32210         Reported by Rainer Tammer.
32211
32212 2010-07-31  Bruno Haible  <bruno@clisp.org>
32213
32214         readlink: Relax test a bit.
32215         * tests/test-readlink.h (test_readlink): Allow different errno value
32216         when readlink is called with a file name that ends in / and refers to
32217         a file.
32218         Suggested by Eric Blake.
32219         Reported by Rainer Tammer.
32220
32221 2010-07-31  Bruno Haible  <bruno@clisp.org>
32222
32223         copysign: Does not require -lm on glibc systems.
32224         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32225         gl_COMMON_DOUBLE_MATHFUNC.
32226         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32227
32228 2010-07-31  Bruno Haible  <bruno@clisp.org>
32229
32230         duplocale: Work around AIX 7.1 bug.
32231         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32232         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32233         * lib/duplocale.c (rpl_duplocale): Update comment.
32234         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32235         Reported by Rainer Tammer.
32236
32237 2010-07-30  Bruno Haible  <bruno@clisp.org>
32238
32239         dirfd: Avoid link error on AIX 7.1.
32240         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32241         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32242         exist, set REPLACE_DIRFD.
32243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32244         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32245         * doc/posix-functions/dirfd.texi: Update.
32246         Reported by Rainer Tammer.
32247
32248 2010-07-30  Eric Blake  <eblake@redhat.com>
32249
32250         strtod: next round of AIX fixes
32251         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32252         exponent.
32253         * tests/test-strtod.c (main): Enhance tests.
32254         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32255         Reported by Rainer Tammer.
32256
32257         futimens: fix configure check
32258         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32259         Reported by Bruno Haible.
32260
32261 2010-07-30  Bruno Haible  <bruno@clisp.org>
32262
32263         getline: Update regarding AIX.
32264         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32265         Reported by Rainer Tammer.
32266
32267 2010-07-30  Bruno Haible  <bruno@clisp.org>
32268
32269         wcwidth: Drop replacement on AIX 7.
32270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32271         AIX 7.
32272         Reported by Rainer Tammer.
32273
32274 2010-07-30  Bruno Haible  <bruno@clisp.org>
32275
32276         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32277         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32278         a 'char *'.
32279         Reported by Rainer Tammer.
32280
32281 2010-07-30  Bruno Haible  <bruno@clisp.org>
32282
32283         unlink: Update regarding AIX.
32284         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32285         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32286         Reported by Rainer Tammer.
32287
32288 2010-07-30  Bruno Haible  <bruno@clisp.org>
32289
32290         symlink: Update regarding AIX.
32291         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32292         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32293         Reported by Rainer Tammer.
32294
32295 2010-07-30  Bruno Haible  <bruno@clisp.org>
32296
32297         strndup: Update regarding AIX.
32298         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32299         AIX 7.
32300         Reported by Rainer Tammer.
32301
32302 2010-07-30  Bruno Haible  <bruno@clisp.org>
32303
32304         stat: Update regarding AIX.
32305         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32306         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32307         Reported by Rainer Tammer.
32308
32309 2010-07-30  Bruno Haible  <bruno@clisp.org>
32310
32311         truncl: Fix autoconf test.
32312         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32313         whether truncl works.
32314         Reported by Rainer Tammer.
32315
32316 2010-07-30  Bruno Haible  <bruno@clisp.org>
32317
32318         round: Update regarding AIX.
32319         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32320         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32321         Reported by Rainer Tammer.
32322
32323 2010-07-30  Bruno Haible  <bruno@clisp.org>
32324
32325         rename: Update regarding AIX.
32326         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32327         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32328         Reported by Rainer Tammer.
32329
32330 2010-07-30  Bruno Haible  <bruno@clisp.org>
32331
32332         printf.m4: Update regarding AIX.
32333         * m4/printf.m4: Update comments regarding AIX.
32334         Reported by Rainer Tammer.
32335
32336 2010-07-30  Bruno Haible  <bruno@clisp.org>
32337
32338         iconv: Update regarding AIX.
32339         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32340         AIX 7.
32341         Reported by Rainer Tammer.
32342
32343 2010-07-30  Bruno Haible  <bruno@clisp.org>
32344
32345         getopt: Update regarding AIX.
32346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32347         no on AIX.
32348         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32349         Reported by Rainer Tammer.
32350
32351 2010-07-30  Bruno Haible  <bruno@clisp.org>
32352
32353         ldexpl; Update regarding AIX.
32354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32355         on AIX 7.
32356         Reported by Rainer Tammer.
32357
32358 2010-07-30  Bruno Haible  <bruno@clisp.org>
32359
32360         frexpl: Update regarding AIX.
32361         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32362         on AIX 7.
32363         Reported by Rainer Tammer.
32364
32365 2010-07-30  Bruno Haible  <bruno@clisp.org>
32366
32367         open, fopen: Update regarding AIX.
32368         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32369         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32370         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32371         * doc/posix-functions/fopen.texi: Likewise.
32372         Reported by Rainer Tammer.
32373
32374 2010-07-30  Bruno Haible  <bruno@clisp.org>
32375
32376         chown: Update doc regarding AIX.
32377         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32378         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32379         Reported by Rainer Tammer.
32380
32381 2010-07-30  Eric Blake  <eblake@redhat.com>
32382
32383         strtod: fix bug in replacement function on AIX
32384         * lib/strtod.c (strtod): Special case broken "0x" parse in
32385         underlying strtod.
32386         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32387         * doc/posix-functions/strtod.texi (strtod): Likewise.
32388         Reported by Rainer Tammer.
32389
32390 2010-07-30  Bruno Haible  <bruno@clisp.org>
32391
32392         mbrlen: Fix cross-compilation guess for AIX.
32393         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32394         guess. Leftover from 2008-12-22.
32395
32396 2010-07-30  Bruno Haible  <bruno@clisp.org>
32397
32398         mbrtowc: Fix cross-compilation guess for AIX.
32399         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32400         guess. Leftover from 2008-12-21.
32401
32402 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32403
32404         init.sh: work around trap limitation of some shells
32405         * tests/init.sh (setup_): Move exit trap outside of shell function.
32406
32407 2010-07-29  Eric Blake  <eblake@redhat.com>
32408
32409         strtod: aid debugging
32410         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32411         understanding why strtod is rejected.
32412
32413 2010-07-28  Bruno Haible  <bruno@clisp.org>
32414
32415         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32416         * lib/unistr/u8-chr.c: Include <string.h>.
32417         * tests/unistr/test-u8-chr.c: Likewise.
32418         * tests/unistr/test-u16-chr.c: Likewise.
32419         * tests/unistr/test-u32-chr.c: Likewise.
32420         * tests/unistr/test-u8-strchr.c: Likewise.
32421         * tests/unistr/test-u16-strchr.c: Likewise.
32422         * tests/unistr/test-u32-strchr.c: Likewise.
32423         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32424         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32425         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32426         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32427
32428 2010-07-28  Bruno Haible  <bruno@clisp.org>
32429
32430         Use spaces for indentation, not tabs.
32431         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32432
32433 2010-07-27  Bruno Haible  <bruno@clisp.org>
32434
32435         mbspcasecmp: Fix function specification.
32436         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32437         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32438         Reported by Eric Blake <eblake@redhat.com>.
32439
32440 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32441
32442         timespec: use cast and not conditional, as truncation isn't possible
32443         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32444         instead of a conditional.  Comment about the situation in more detail.
32445         This undoes most of the 2009-10-29 patch.
32446
32447 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32448
32449         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32450         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32451         * lib/unistr/u8-strchr.c: Likewise.
32452         * modules/unistr/u8-chr: Depend on memchr.
32453
32454         unistr/u*-strchr: add tests
32455         * modules/unistr/u8-strchr-tests: New file.
32456         * modules/unistr/u16-strchr-tests: New file.
32457         * modules/unistr/u32-strchr-tests: New file.
32458         * tests/unistr/test-strchr.h: New file.
32459         * tests/unistr/test-u8-strchr.c: New file.
32460         * tests/unistr/test-u16-strchr.c: New file.
32461         * tests/unistr/test-u32-strchr.c: New file.
32462
32463         unistr/u*-chr: test multibyte sequences more
32464         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32465         test vector.
32466         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32467         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32468         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32469
32470         unistr/u*-chr: test multibyte sequences
32471         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32472
32473         unistr/u*-chr: prepare for multibyte tests
32474         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32475         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32476         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32477         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32478         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32479         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32480
32481 2010-07-18  Bruno Haible  <bruno@clisp.org>
32482
32483         unistr/u8-strchr: Optimize non-ASCII argument case.
32484         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32485         because the first byte often matches anyway.
32486         Reported by Pádraig Brady <P@draigbrady.com>.
32487
32488 2010-07-15  Karl Berry  <karl@gnu.org>
32489
32490         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32491
32492 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32493
32494         getcwd: on Solaris, work better if ancestors are inaccessible
32495         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32496         buffer and size, try again with a large buffer.  This works better
32497         on Solaris, since its getcwd succeeds even if the path to the root
32498         is inaccessible, and this is helpful in common cases such as .zfs
32499         hidden directories.  Problem reported by J Chapman Flack in
32500         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32501         Use system getcwd if it's declared, not merely if it's partly
32502         working; use the partly-working test only to avoid needless effort
32503         if the system getcwd fails.
32504         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32505         comment that was already obsolete and is now even more obsolete.
32506         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32507         now might call strdup.
32508
32509 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32510
32511         pthread: Add enough so that coreutils/src/sort.c compiles.
32512         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32513         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32514         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32515         Include <sys/types.h>, in case it defines pthread_t.
32516         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32517         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32518         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32519         (pthread_rwlockattr_t, pthread_spinlock_t):
32520         New typedefs, if HAVE_PTHREAD_T is not defined.
32521         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32522         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32523         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32524         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32525         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32526         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32527         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32528         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32529         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32530         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32531         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32532         New macros.
32533         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32534         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32535         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32536         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32537         (pthread_spin_unlock): New dummy functions.
32538         (pthread_create): Return EAGAIN; don't set errno.
32539         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32540         require AC_C_INLINE.
32541         * modules/pthread (Depends-on): Add sched, time.
32542         (pthread.h): Use AM_V_GEN.
32543
32544 2010-07-13  Bruno Haible  <bruno@clisp.org>
32545
32546         striconveh: Don't malloc memory if the result buffer is sufficient.
32547         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32548         buffer if its size is sufficient.
32549         Reported by Ludovic Courtès <ludo@gnu.org>.
32550
32551 2010-07-13  Bruno Haible  <bruno@clisp.org>
32552
32553         strtod: Add safety check.
32554         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32555
32556 2010-07-12  Bruno Haible  <bruno@clisp.org>
32557
32558         Unify tests that set gl_cv_func_ldexpl_no_libm.
32559         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32560         gl_FUNC_LDEXPL.
32561         (gl_FUNC_LDEXPL): Invoke it.
32562         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32563
32564 2010-07-12  Bruno Haible  <bruno@clisp.org>
32565
32566         Unify tests that set gl_cv_func_ldexp_no_libm.
32567         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32568         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32569         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32570         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32571         * modules/strtod (Files): Add m4/ldexp.m4.
32572
32573 2010-07-12  Bruno Haible  <bruno@clisp.org>
32574
32575         Unify tests that set gl_cv_func_frexpl_no_libm.
32576         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32577         gl_FUNC_FREXPL_NO_LIBM.
32578         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32579         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32580
32581 2010-07-12  Bruno Haible  <bruno@clisp.org>
32582
32583         Unify tests that set gl_cv_func_frexp_no_libm.
32584         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32585         gl_FUNC_FREXP_NO_LIBM.
32586         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32587         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32588
32589 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32590
32591         memcoll: clarify sizes versus lengths, document better, and tweak perf
32592         * lib/memcoll.c (strcoll_loop, memcoll0):
32593         Improve quality of descriptive comments.  Name variables
32594         consistently as to whether they are lengths (which do not include
32595         terminating null) versus sizes (which do).
32596         * lib/xmemcoll.c (xmemcoll0): Likewise.
32597         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32598         returned when s1size == 0; this is easier to compile and saves
32599         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32600
32601 2010-07-12  Bruno Haible  <bruno@clisp.org>
32602
32603         Tests for module '_Exit'.
32604         * modules/_Exit-tests: New file.
32605         * tests/test-_Exit.sh: New file.
32606         * tests/test-_Exit.c: New file.
32607
32608         New module '_Exit'.
32609         * lib/stdlib.in.h (__attribute__): New macro.
32610         (_Exit): New declaration.
32611         * lib/_Exit.c: New file.
32612         * m4/_Exit.m4: New file.
32613         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32614         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32615         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32616         * modules/_Exit: New file.
32617         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32618         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32619
32620 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32621
32622         strtod: make it more-accurate typically, and don't require libm
32623         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32624         Include limits.h.  Don't include string.h.
32625         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32626         (locale_isspace): New function, so that no casts are needed to
32627         check whether *s is a space.
32628         (ldexp): Provide an unused dummy if not available.
32629         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32630         (strtod): Use them.  This implementation prefers to use the
32631         underlying strtod if available, falling back on our own code
32632         only to fix known bugs.  This is more likely to produce an
32633         accurate result.  Also, it avoids the use of libm functions.
32634         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32635         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32636         was absent, but it caused a test failure with coreutils.
32637         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32638         with libm.
32639         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32640         * modules/strtod-tests (Makefile.am): Likewise.
32641
32642 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32643             Bruno Haible  <bruno@clisp.org>
32644
32645         unistr/u8-strchr: Optimize ASCII argument case.
32646         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32647
32648 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32649
32650         (x)memcoll: minor tweaks
32651         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32652         is after the type that it qualifies.
32653         (memcoll0): Likewise.
32654         * lib/memcoll.h (memcoll0): Likewise.
32655         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32656         * lib/xmemcoll.h (xmemcoll0): Likewise.
32657         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32658         differs from memcoll in that the NUL byte is part of the argument.
32659         Omit the abort-checks, as performance is a real issue here.  Plus,
32660         the checks were wrong anyway (an off-by-one error).  Omit local
32661         variable 'diff', as it's a bit clearer that way.
32662         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32663         no longer needed.
32664
32665 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32666
32667         (x)memcoll: speedup when input is known to be NUL delimited
32668         * lib/memcoll.c: Include stdlib.
32669         (memcoll0): New function.
32670         (strcoll_loop): New function, refactored for use in both memcoll
32671         and memcoll0.
32672         * lib/memcoll.h (memcoll0): Add prototype.
32673         * lib/xmemcoll.c (xmemcoll0): New function.
32674         (collate_error): New function, refactored for use in both xmemcoll
32675         and xmemcoll0.
32676         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32677         * m4/memcoll.m4: add inline invocation.
32678
32679 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32680
32681         * build-aux/bootstrap: Remove any local translations
32682         from the translation project synchronization directory,
32683         so that local only translations are not distributed.
32684
32685 2010-07-04  Bruno Haible  <bruno@clisp.org>
32686
32687         fsusage: Clarify which code applies to which platforms.
32688         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32689         platform.
32690         * lib/fsusage.c (get_fs_usage): Likewise.
32691
32692 2010-07-04  Bruno Haible  <bruno@clisp.org>
32693
32694         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32695         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32696         Reported by Martin Lambers <marlam@marlam.de>.
32697
32698 2010-07-04  Jim Meyering  <meyering@redhat.com>
32699
32700         hash: once again explicitly disallow insertion of NULL
32701         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32702         inserting a NULL pointer cannot work with these functions.
32703         Add a comment with details.
32704         This reverts part of the 2010-07-01 commit, 5bef1a35
32705         "hash: extend module to deal with non-pointer keys".
32706
32707 2010-07-01  Bruno Haible  <bruno@clisp.org>
32708
32709         stdbool: Update doc.
32710         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32711         Info from Christian Weisgerber <naddy@mips.inka.de>.
32712
32713 2010-07-01  Jim Meyering  <meyering@redhat.com>
32714
32715         hash: extend module to deal with non-pointer keys
32716         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32717         but that allows insertion of non-pointer entries.
32718         Do not disallow an ENTRY value of NULL.
32719         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32720         * lib/hash.h (hash_insert0): Declare.
32721
32722 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32723
32724         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32725         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32726         not present (i.e. with autoconf 2.59 and when using gettextize, not
32727         gnulib), require AC_GNU_SOURCE instead.
32728
32729 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32730
32731         idpriv-drop: Fix tests.
32732         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32733         not to the test-idpriv-droptemp program.
32734
32735 2010-06-29  Bruno Haible  <bruno@clisp.org>
32736
32737         string: Fix syntax error with g++ 2.96.
32738         * lib/string.in.h (__pure__): Remove definition.
32739         (_GL_ATTRIBUTE_PURE): New macro.
32740         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32741         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32742         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32743
32744 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32745
32746         unitypes: Fix bug introduced on 2010-05-18.
32747         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32748
32749 2010-06-22  Eric Blake  <eblake@redhat.com>
32750
32751         memmem: slight optimization
32752         * lib/str-two-way.h (critical_factorization): Update comments.
32753         Reduce work during factorization phase.
32754         Reported by Carlos Bueno <carlos@bueno.org>.
32755
32756 2010-06-21  Bruno Haible  <bruno@clisp.org>
32757
32758         Fix HAVE_CALLOC_POSIX misnomer.
32759         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32760         !HAVE_CALLOC_POSIX.
32761         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32762         HAVE_CALLOC_POSIX.
32763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32764         instead of HAVE_CALLOC_POSIX.
32765         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32766         HAVE_CALLOC_POSIX.
32767
32768         Use modern idiom for calloc() replacement.
32769         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32770         AC_FUNC_CALLOC.
32771         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32772         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32773         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32774         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32775         (gl_REPLACE_CALLOC): New macro.
32776
32777 2010-06-21  Bruno Haible  <bruno@clisp.org>
32778
32779         Fix HAVE_REALLOC_POSIX misnomer.
32780         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32781         !HAVE_REALLOC_POSIX.
32782         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32783         HAVE_REALLOC_POSIX.
32784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32785         instead of HAVE_REALLOC_POSIX.
32786         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32787         HAVE_REALLOC_POSIX.
32788
32789         Use modern idiom for realloc() replacement.
32790         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32791         AC_FUNC_REALLOC.
32792         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32793         Autoconf's AC_FUNC_REALLOC.
32794         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32795         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32796         (gl_REPLACE_REALLOC): New macro.
32797         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32798
32799 2010-06-21  Bruno Haible  <bruno@clisp.org>
32800
32801         Fix HAVE_MALLOC_POSIX misnomer.
32802         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32803         !HAVE_MALLOC_POSIX.
32804         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32805         HAVE_MALLOC_POSIX.
32806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32807         instead of HAVE_MALLOC_POSIX.
32808         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32809         HAVE_MALLOC_POSIX.
32810
32811         Use modern idiom for malloc() replacement.
32812         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32813         AC_FUNC_MALLOC.
32814         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32815         Autoconf's AC_FUNC_MALLOC.
32816         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32817         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32818         (gl_REPLACE_MALLOC): New macro.
32819         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32820
32821 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32822
32823         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32824         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32825         This macro takes 3 arguments, not 4.
32826
32827 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32828
32829         ipv6: fix detection under mingw
32830         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32831         in6_addr.
32832
32833 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32834
32835         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32836         that strtod() works when cross-compiling to a glibc version known
32837         to work.
32838
32839 2010-06-15  Bruno Haible  <bruno@clisp.org>
32840
32841         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32842
32843 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32844
32845         select: Correct timeout.
32846         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32847
32848 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32849
32850         git-version-gen: init shell var to avoid env var influence
32851         * build-aux/git-version-gen (v): Init shell var to empty.
32852
32853 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32854
32855         priv-set: Don't assume that priv.h exists merely because getppriv does.
32856         See Jan Andersen's bug report about AIX 5L in
32857         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32858         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32859         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32860         * lib/priv-set.h: Likewise.
32861         * tests/test-priv-set.c: Likewise.
32862
32863 2010-06-13  Bruno Haible  <bruno@clisp.org>
32864
32865         relocatable: Make it easier to test whether to install wrappers.
32866         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32867         RELOCATABLE_VIA_WRAPPER.
32868
32869 2010-06-13  Bruno Haible  <bruno@clisp.org>
32870
32871         gnulib-tool: Display specified modules and dependencies differently.
32872         * gnulib-tool (func_show_module_list): New function.
32873         (func_import, func_create_testdir): Invoke it.
32874         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32875
32876 2010-06-13  Bruno Haible  <bruno@clisp.org>
32877
32878         gnulib-tool: Align code of func_import and func_create_testdir.
32879         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32880         specified_modules.
32881
32882 2010-06-12  Jim Meyering  <meyering@redhat.com>
32883
32884         test-inttostr: avoid spurious failure on Solaris 9
32885         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32886         to accept "%ju".  Reported by Bruno Haible.
32887
32888 2010-06-11  Jim Meyering  <meyering@redhat.com>
32889
32890         test-sys_socket: mark variables as used more readably
32891         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32892         as "used" explicitly via (void) statement casts.  This is more
32893         readable than using them in an artificial return expression.
32894         Suggestion from Bruno Haible.
32895
32896 2010-06-11  Bruno Haible  <bruno@clisp.org>
32897
32898         Avoid some more warnings from "gcc -Wwrite-strings".
32899         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32900         to 'const char *'.
32901         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32902         * tests/test-c-strcasestr.c (main): Likewise.
32903         * tests/test-mbscasestr1.c (main): Likewise.
32904         * tests/test-mbscasestr2.c (main): Likewise.
32905         * tests/test-memmem.c (main): Likewise.
32906         * tests/test-strstr.c (main): Likewise.
32907         * tests/test-strcasestr.c (main): Likewise.
32908
32909 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32910
32911         init.sh: change framework_failure_ to fail with status 99, not 1
32912         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32913         automake's parallel-tests rule that this is an unexpected failure,
32914         even if the test is listed in XFAIL_TESTS.
32915
32916 2010-06-11  Jim Meyering  <meyering@redhat.com>
32917
32918         test-inttostr: avoid warnings about 4-6KB literal strings
32919         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32920         Include "macros.h", for its definition of ASSERT.
32921         (CK): s/assert/ASSERT/
32922         * modules/inttostr-tests (Files): Add macros.h.
32923
32924         init.sh: don't use $ME_ or skip_ before they are defined
32925         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32926         their first uses.  Also hoist their companions: warn_, fail_,
32927         framework_failure_, $stderr_fileno.  Prompted by a patch from
32928         Stefano Lattarini.
32929
32930         test-sys_socket: avoid set-but-not-used warnings from gcc
32931         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32932         avoid warning about set-but-not-used variables.
32933
32934         test-xvasprintf: avoid 'const' discard warnings
32935         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32936         "const" when assigning from literal strings.
32937         (test_xasprintf): Add "void" in function argument list to placate
32938         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32939
32940         tests: avoid compilation warnings in argmatch and exclude tests...
32941         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32942         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32943         Since it always exits, declare with the "noreturn" attribute.
32944         * tests/test-argmatch.c: Likewise.
32945
32946         tests: avoid 'const' discard warnings in mbsstr tests
32947         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32948         * tests/test-mbsstr2.c (main): Likewise.
32949
32950         test-verify: avoid warning from gcc's -Wmissing-declarations
32951         * tests/test-verify.c (function): Declare to be static.
32952
32953         test-inttostr.c: include <string.h> for use of strcmp
32954         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32955
32956         test-linkat: avoid failed assertion on "other" architectures
32957         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32958         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32959         sparc: https://bugs.launchpad.net/bugs/591968
32960
32961 2010-06-11  Jim Meyering  <meyering@redhat.com>
32962
32963         printf.m4: avoid autoconf's "Expanded Before Required" warning
32964         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32965         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32966         autoconf warning.
32967
32968 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32969
32970         Replacement header templates are now named with ".in", not "_".
32971         * doc/gnulib-intro.texi: Correct.
32972
32973 2010-06-10  Jim Meyering  <meyering@redhat.com>
32974
32975         inttostr-tests: depend on snprintf, not snprintf-posix
32976         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32977         snprintf-posix, to avoid this aclocal failure:
32978           missing file gnulib-tests/vasnprintf.c
32979           configure.ac:45: error: expected source file, required through \
32980           AC_LIBSOURCES, not found
32981
32982 2010-06-10  Jim Meyering  <meyering@redhat.com>
32983
32984         inttostr: add a new function, inttostr, and tests
32985         The namesake function was not available.  The existence of the
32986         template file, inttostr.c makes its addition nontrivial.
32987         * lib/anytostr.c: Rename from inttostr.c.
32988         (anytostr): Rename from inttostr.
32989         * lib/inttostr.c: New file.
32990         * modules/inttostr (Files): Add anytostr.c.
32991         (Makefile.am): Set lib_SOURCES instead of ...
32992         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32993         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32994         * lib/offtostr.c: Likewise.
32995         * lib/uinttostr.c: Likewise.
32996         * lib/umaxtostr.c: Likewise.
32997         * modules/inttostr-tests: New file.
32998         * tests/test-inttostr.c: New file.  Test these functions.
32999
33000 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33001             Bruno Haible  <bruno@clisp.org>
33002
33003         Add "Extending Gnulib" chapter to manual.
33004         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33005         chapter.
33006         (Extending Gnulib): New chapter.
33007         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33008         chapter.
33009
33010 2010-06-09  Bruno Haible  <bruno@clisp.org>
33011
33012         Avoid relocwrapper link errors due to gnulib replacement functions.
33013         * lib/areadlink.c: Use the system's malloc, realloc functions.
33014         (areadlink): Set errno to ENOMEM explicitly.
33015         * modules/areadlink (Depends-on): Remove malloc-posix.
33016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33017
33018 2010-06-09  Bruno Haible  <bruno@clisp.org>
33019
33020         Avoid relocwrapper link errors due to gnulib replacement functions.
33021         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33022         * lib/malloca.c: Likewise.
33023         * lib/relocatable.c: Likewise.
33024         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33025         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33026         * lib/setenv.c: Use the system's malloc, realloc functions.
33027         * lib/strerror.c: Use the system's sprintf function.
33028         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33029
33030 2010-06-04  Bruno Haible  <bruno@clisp.org>
33031
33032         Prefer documented low-level autoconf macro names.
33033         * m4/lib-link.m4: Use m4_translit instead of translit.
33034         * m4/environ.m4: Likewise.
33035         * m4/mathfunc.m4: Likewise.
33036         * m4/onceonly.m4: Likewise.
33037         * m4/stdint.m4: Likewise.
33038         Suggested by Eric Blake.
33039
33040 2010-06-04  Martin Lambers  <marlam@marlam.de>
33041             Bruno Haible  <bruno@clisp.org>
33042
33043         havelib: Allow library names with '+' characters.
33044         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33045         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33046
33047 2010-06-09  Bruno Haible  <bruno@clisp.org>
33048
33049         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33050         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33051         realloc failed.
33052
33053 2010-06-08  Peter Simons  <simons@cryp.to>
33054
33055         maint.mk: make the news-check rule more configurable
33056         * top/maint.mk (news-check-lines-spec): New variable.
33057         (news-check): Use "sed -n 1,10p" in place of "head".
33058
33059 2010-06-07  Jim Meyering  <meyering@redhat.com>
33060
33061         do-release-commit-and-tag: fix typo in --help
33062         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33063
33064         regex: avoid new dead-code warning with gcc-4.6.0
33065         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33066         if-block containing a while-loop.  It's been unused for at least
33067         5 years.
33068
33069 2010-06-05  Bruno Haible  <bruno@clisp.org>
33070
33071         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33072         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33073
33074 2010-06-04  Bruno Haible  <bruno@clisp.org>
33075
33076         Update to GNU gettext 0.18.1.
33077         * modules/gettext (configure.ac): Require gettext infrastructure from
33078         version 0.18.1.
33079
33080 2010-06-03  Bruno Haible  <bruno@clisp.org>
33081
33082         Don't use AC_LIBOBJ with file names in subdirectories.
33083         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33084         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33085         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33086         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33087         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33088         gl_LIBUNISTRING_LIBSOURCE.
33089         (Makefile.am): Augment lib_SOURCES here, conditionally.
33090         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33091
33092 2010-06-03  Bruno Haible  <bruno@clisp.org>
33093
33094         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33095         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33096         expansion does not end with a newline.
33097         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33098         unnecessary newline.
33099
33100 2010-06-03  Bruno Haible  <bruno@clisp.org>
33101
33102         Reduce dependencies.
33103         * tests/test-quotearg.h: New file, extracted from
33104         tests/test-quotearg.c.
33105         * tests/test-quotearg-simple.c: New file, extracted from
33106         tests/test-quotearg.c.
33107         * tests/test-quotearg.c: Don't include <ctype.h>.
33108         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33109         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33110         use_quote_double_quotes, use_quotearg_colon): Moved to
33111         tests/test-quotearg.h.
33112         (results_g, flag_results, custom_quotes, custom_results): Moved
33113         to tests/test-quotearg-simple.c.
33114         (main): Moved the part that does not depend on gettext to
33115         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33116         performed.
33117         * modules/quotearg-simple: New file.
33118         * modules/quotearg-simple-tests: New file.
33119         * modules/quotearg (Depends-on): Add quotearg-simple.
33120         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33121         (Files): Add tests/test-quotearg.h.
33122         Reported by Paolo Bonzini.
33123
33124 2010-06-03  Bruno Haible  <bruno@clisp.org>
33125
33126         Reduce dependencies.
33127         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33128
33129 2010-06-03  Bruno Haible  <bruno@clisp.org>
33130
33131         time: Undefine more broken macros.
33132         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33133         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33134         Reported by Eric Blake.
33135
33136 2010-06-03  Bruno Haible  <bruno@clisp.org>
33137
33138         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33139         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33140         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33141         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33142         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33143         Reported by Ludovic Courtès <ludo@gnu.org>.
33144
33145 2010-06-02  Eric Blake  <eblake@redhat.com>
33146
33147         time: work with mingw + pthreads-win32 library
33148         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33149         if timespec is defined only in pthread.h.
33150         * modules/time (Makefile.am): Substitute it.
33151         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33152         <pthread.h>, when needed.
33153         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33154         from the library.
33155
33156 2010-05-31  Bruno Haible  <bruno@clisp.org>
33157
33158         Avoid expanding two macros in the wrong order.
33159         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33160         gl_LIBUNISTRING if it is defined.
33161         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33162         autoconf >= 2.64.
33163         Reported by Ludovic Courtès <ludo@gnu.org>.
33164
33165 2010-05-27  Jim Meyering  <meyering@redhat.com>
33166
33167         maint.mk: also prohibit "#undef" of always-defined symbols
33168         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33169         Allow more than one space before the symbol name.
33170         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33171         the regexp uses alternation.
33172
33173 2010-05-26  Eric Blake  <eblake@redhat.com>
33174
33175         maint.mk: avoid echo -e
33176         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33177         Convert all uses of echo -* to printf.
33178         Reported by Matthias Bolte.
33179
33180 2010-05-25  Bruno Haible  <bruno@clisp.org>
33181
33182         Update to GNU gettext 0.18, part 2.
33183         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33184         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33185
33186 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33187
33188         Add missing include in test-pwrite.c.
33189         * tests/test-pwrite.c: Include string.h, for strcmp.
33190
33191 2010-05-24  Bruno Haible  <bruno@clisp.org>
33192
33193         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33194
33195 2010-05-24  Bruno Haible  <bruno@clisp.org>
33196
33197         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33198         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33199         iconveh_error argument.
33200         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33201         U_STRCONV_TO_LOCALE.
33202         * lib/unistr/u16-strcoll.c: Likewise.
33203         * lib/unistr/u32-strcoll.c: Likewise.
33204         * modules/unistr/u8-strcoll (Depends-on): Add
33205         uniconv/u8-strconv-to-enc, localcharset. Remove
33206         uniconv/u8-strconv-to-locale.
33207         (configure.ac): Bump version number.
33208         * modules/unistr/u16-strcoll (Depends-on): Add
33209         uniconv/u16-strconv-to-enc, localcharset. Remove
33210         uniconv/u16-strconv-to-locale.
33211         (configure.ac): Bump version number.
33212         * modules/unistr/u32-strcoll (Depends-on): Add
33213         uniconv/u32-strconv-to-enc, localcharset. Remove
33214         uniconv/u32-strconv-to-locale.
33215         (configure.ac): Bump version number.
33216
33217 2010-05-24  Bruno Haible  <bruno@clisp.org>
33218
33219         Avoid a test failure on NetBSD 5.0.
33220         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33221         an iconv() bug.
33222
33223 2010-05-24  Bruno Haible  <bruno@clisp.org>
33224
33225         Adjust #include directive style.
33226         * modules/regex (Includes): Recommend to write <regex.h>.
33227
33228 2010-05-24  Bruno Haible  <bruno@clisp.org>
33229
33230         regex: Don't require alloca.
33231         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33232         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33233         only inside if (0).
33234
33235 2010-05-23  Jim Meyering  <meyering@redhat.com>
33236
33237         test-renameat.c: include <sys/stat.h>
33238         * tests/test-renameat.c: Include <sys/stat.h>; required for
33239         definition of S_IS* macros.
33240
33241 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33242
33243         Update maintainer documentation for 'relocatable-prog' module.
33244         * doc/relocatable-maint.texi: Update.
33245         Comments by Bruno Haible.
33246
33247 2010-05-23  Bruno Haible  <bruno@clisp.org>
33248
33249         git-merge-changelog: Enable --split-merged-entry by default.
33250         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33251         (usage): Don't mention this option any more.
33252         Reported by Ralf Wildenhues.
33253
33254 2010-05-23  Jim Meyering  <meyering@redhat.com>
33255
33256         test-pwrite: do not leave behind a test file named "out"
33257         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33258         The trivial-looking use of init.sh is really necessary.
33259         It ensures that the temporary file, "out", is created in
33260         a temporary directory, and removed upon termination.
33261         * tests/test-pwrite.sh: Re-add file.
33262         * modules/pwrite-tests: Reference it.
33263
33264 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33265
33266         Fix output redirection buglet in init.sh.
33267         * tests/init.sh: Fix redirection of stderr.
33268
33269 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33270
33271         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33272
33273 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33274
33275         * modules/valgrind-tests: New file.
33276         * m4/valgrind-tests.m4: New file.
33277         * doc/valgrind-tests.texi: New file.
33278         * doc/gnulib.texi (Running self-tests under valgrind): New
33279         section.
33280
33281 2010-05-19  Bruno Haible  <bruno@clisp.org>
33282
33283         Clean up dead code in recent commit.
33284         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33285         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33286         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33287         Suggested by Paolo Bonzini.
33288
33289 2010-05-19  Bruno Haible  <bruno@clisp.org>
33290
33291         Avoid valgrind error reports from libunistring.
33292         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33293         * modules/libunistring (Files): Add it.
33294         * modules/libunistring-optional (Files): Likewise.
33295
33296 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33297             Bruno Haible  <bruno@clisp.org>
33298
33299         New module 'libunistring-optional'.
33300         * modules/libunistring-optional: New file.
33301         * m4/libunistring-base.m4: New file.
33302         * m4/libunistring-optional.m4: New file.
33303         * lib/unicase.in.h: Renamed from lib/unicase.h.
33304         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33305         * lib/unictype.in.h: Renamed from lib/unictype.h.
33306         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33307         * lib/uniname.in.h: Renamed from lib/uniname.h.
33308         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33309         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33310         * lib/unistr.in.h: Renamed from lib/unistr.h.
33311         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33312         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33313         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33314         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33315         gl_LIBUNISTRING. If the library was found, determine the installed
33316         version and set LIBUNISTRING_VERSION.
33317         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33318         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33319         handle a configuration option --with-included-libunistring.
33320         * modules/libunistring (Files): Add m4/absolute-header.m4.
33321         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33322         Add m4/libunistring-base.m4.
33323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33324         (Makefile.am): Build unicase.h from unicase.in.h.
33325         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33326         Add m4/libunistring-base.m4.
33327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33328         (Makefile.am): Build uniconv.h from uniconv.in.h.
33329         * modules/unictype/base (Files): Use unictype.in.h instead of
33330         unictype.h. Add m4/libunistring-base.m4.
33331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33332         (Makefile.am): Build unictype.h from unictype.in.h.
33333         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33334         Add m4/libunistring-base.m4.
33335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33336         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33337         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33338         Add m4/libunistring-base.m4.
33339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33340         (Makefile.am): Build uniname.h from uniname.in.h.
33341         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33342         Add m4/libunistring-base.m4.
33343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33344         (Makefile.am): Build uninorm.h from uninorm.in.h.
33345         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33346         unistdio.h. Add m4/libunistring-base.m4.
33347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33348         (Makefile.am): Build unistdio.h from unistdio.in.h.
33349         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33350         Add m4/libunistring-base.m4.
33351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33352         (Makefile.am): Build unistr.h from unistr.in.h.
33353         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33354         Add m4/libunistring-base.m4.
33355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33356         (Makefile.am): Build unitypes.h from unitypes.in.h.
33357         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33358         Add m4/libunistring-base.m4.
33359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33360         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33361         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33362         uniwidth.h. Add m4/libunistring-base.m4.
33363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33364         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33365         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33366         instead of augmenting lib_SOURCES.
33367         * modules/unicase/empty-suffix-context: Likewise.
33368         * modules/unicase/locale-language: Likewise.
33369         * modules/unicase/tolower: Likewise.
33370         * modules/unicase/totitle: Likewise.
33371         * modules/unicase/toupper: Likewise.
33372         * modules/unicase/u8-casecmp: Likewise.
33373         * modules/unicase/u8-casecoll: Likewise.
33374         * modules/unicase/u8-casefold: Likewise.
33375         * modules/unicase/u8-casexfrm: Likewise.
33376         * modules/unicase/u8-ct-casefold: Likewise.
33377         * modules/unicase/u8-ct-tolower: Likewise.
33378         * modules/unicase/u8-ct-totitle: Likewise.
33379         * modules/unicase/u8-ct-toupper: Likewise.
33380         * modules/unicase/u8-is-cased: Likewise.
33381         * modules/unicase/u8-is-casefolded: Likewise.
33382         * modules/unicase/u8-is-lowercase: Likewise.
33383         * modules/unicase/u8-is-titlecase: Likewise.
33384         * modules/unicase/u8-is-uppercase: Likewise.
33385         * modules/unicase/u8-prefix-context: Likewise.
33386         * modules/unicase/u8-suffix-context: Likewise.
33387         * modules/unicase/u8-tolower: Likewise.
33388         * modules/unicase/u8-totitle: Likewise.
33389         * modules/unicase/u8-toupper: Likewise.
33390         * modules/unicase/u16-casecmp: Likewise.
33391         * modules/unicase/u16-casecoll: Likewise.
33392         * modules/unicase/u16-casefold: Likewise.
33393         * modules/unicase/u16-casexfrm: Likewise.
33394         * modules/unicase/u16-ct-casefold: Likewise.
33395         * modules/unicase/u16-ct-tolower: Likewise.
33396         * modules/unicase/u16-ct-totitle: Likewise.
33397         * modules/unicase/u16-ct-toupper: Likewise.
33398         * modules/unicase/u16-is-cased: Likewise.
33399         * modules/unicase/u16-is-casefolded: Likewise.
33400         * modules/unicase/u16-is-lowercase: Likewise.
33401         * modules/unicase/u16-is-titlecase: Likewise.
33402         * modules/unicase/u16-is-uppercase: Likewise.
33403         * modules/unicase/u16-prefix-context: Likewise.
33404         * modules/unicase/u16-suffix-context: Likewise.
33405         * modules/unicase/u16-tolower: Likewise.
33406         * modules/unicase/u16-totitle: Likewise.
33407         * modules/unicase/u16-toupper: Likewise.
33408         * modules/unicase/u32-casecmp: Likewise.
33409         * modules/unicase/u32-casecoll: Likewise.
33410         * modules/unicase/u32-casefold: Likewise.
33411         * modules/unicase/u32-casexfrm: Likewise.
33412         * modules/unicase/u32-ct-casefold: Likewise.
33413         * modules/unicase/u32-ct-tolower: Likewise.
33414         * modules/unicase/u32-ct-totitle: Likewise.
33415         * modules/unicase/u32-ct-toupper: Likewise.
33416         * modules/unicase/u32-is-cased: Likewise.
33417         * modules/unicase/u32-is-casefolded: Likewise.
33418         * modules/unicase/u32-is-lowercase: Likewise.
33419         * modules/unicase/u32-is-titlecase: Likewise.
33420         * modules/unicase/u32-is-uppercase: Likewise.
33421         * modules/unicase/u32-prefix-context: Likewise.
33422         * modules/unicase/u32-suffix-context: Likewise.
33423         * modules/unicase/u32-tolower: Likewise.
33424         * modules/unicase/u32-totitle: Likewise.
33425         * modules/unicase/u32-toupper: Likewise.
33426         * modules/unicase/ulc-casecmp: Likewise.
33427         * modules/unicase/ulc-casecoll: Likewise.
33428         * modules/unicase/ulc-casexfrm: Likewise.
33429         * modules/uniconv/u8-conv-from-enc: Likewise.
33430         * modules/uniconv/u8-conv-to-enc: Likewise.
33431         * modules/uniconv/u8-strconv-from-enc: Likewise.
33432         * modules/uniconv/u8-strconv-from-locale: Likewise.
33433         * modules/uniconv/u8-strconv-to-enc: Likewise.
33434         * modules/uniconv/u8-strconv-to-locale: Likewise.
33435         * modules/uniconv/u16-conv-from-enc: Likewise.
33436         * modules/uniconv/u16-conv-to-enc: Likewise.
33437         * modules/uniconv/u16-strconv-from-enc: Likewise.
33438         * modules/uniconv/u16-strconv-from-locale: Likewise.
33439         * modules/uniconv/u16-strconv-to-enc: Likewise.
33440         * modules/uniconv/u16-strconv-to-locale: Likewise.
33441         * modules/uniconv/u32-conv-from-enc: Likewise.
33442         * modules/uniconv/u32-conv-to-enc: Likewise.
33443         * modules/uniconv/u32-strconv-from-enc: Likewise.
33444         * modules/uniconv/u32-strconv-from-locale: Likewise.
33445         * modules/uniconv/u32-strconv-to-enc: Likewise.
33446         * modules/uniconv/u32-strconv-to-locale: Likewise.
33447         * modules/unictype/bidicategory-byname: Likewise.
33448         * modules/unictype/bidicategory-name: Likewise.
33449         * modules/unictype/bidicategory-of: Likewise.
33450         * modules/unictype/bidicategory-test: Likewise.
33451         * modules/unictype/block-list: Likewise.
33452         * modules/unictype/block-test: Likewise.
33453         * modules/unictype/category-C: Likewise.
33454         * modules/unictype/category-Cc: Likewise.
33455         * modules/unictype/category-Cf: Likewise.
33456         * modules/unictype/category-Cn: Likewise.
33457         * modules/unictype/category-Co: Likewise.
33458         * modules/unictype/category-Cs: Likewise.
33459         * modules/unictype/category-L: Likewise.
33460         * modules/unictype/category-Ll: Likewise.
33461         * modules/unictype/category-Lm: Likewise.
33462         * modules/unictype/category-Lo: Likewise.
33463         * modules/unictype/category-Lt: Likewise.
33464         * modules/unictype/category-Lu: Likewise.
33465         * modules/unictype/category-M: Likewise.
33466         * modules/unictype/category-Mc: Likewise.
33467         * modules/unictype/category-Me: Likewise.
33468         * modules/unictype/category-Mn: Likewise.
33469         * modules/unictype/category-N: Likewise.
33470         * modules/unictype/category-Nd: Likewise.
33471         * modules/unictype/category-Nl: Likewise.
33472         * modules/unictype/category-No: Likewise.
33473         * modules/unictype/category-P: Likewise.
33474         * modules/unictype/category-Pc: Likewise.
33475         * modules/unictype/category-Pd: Likewise.
33476         * modules/unictype/category-Pe: Likewise.
33477         * modules/unictype/category-Pf: Likewise.
33478         * modules/unictype/category-Pi: Likewise.
33479         * modules/unictype/category-Po: Likewise.
33480         * modules/unictype/category-Ps: Likewise.
33481         * modules/unictype/category-S: Likewise.
33482         * modules/unictype/category-Sc: Likewise.
33483         * modules/unictype/category-Sk: Likewise.
33484         * modules/unictype/category-Sm: Likewise.
33485         * modules/unictype/category-So: Likewise.
33486         * modules/unictype/category-Z: Likewise.
33487         * modules/unictype/category-Zl: Likewise.
33488         * modules/unictype/category-Zp: Likewise.
33489         * modules/unictype/category-Zs: Likewise.
33490         * modules/unictype/category-and: Likewise.
33491         * modules/unictype/category-and-not: Likewise.
33492         * modules/unictype/category-byname: Likewise.
33493         * modules/unictype/category-name: Likewise.
33494         * modules/unictype/category-none: Likewise.
33495         * modules/unictype/category-of: Likewise.
33496         * modules/unictype/category-or: Likewise.
33497         * modules/unictype/category-test: Likewise.
33498         * modules/unictype/combining-class: Likewise.
33499         * modules/unictype/ctype-alnum: Likewise.
33500         * modules/unictype/ctype-alpha: Likewise.
33501         * modules/unictype/ctype-blank: Likewise.
33502         * modules/unictype/ctype-cntrl: Likewise.
33503         * modules/unictype/ctype-digit: Likewise.
33504         * modules/unictype/ctype-graph: Likewise.
33505         * modules/unictype/ctype-lower: Likewise.
33506         * modules/unictype/ctype-print: Likewise.
33507         * modules/unictype/ctype-punct: Likewise.
33508         * modules/unictype/ctype-space: Likewise.
33509         * modules/unictype/ctype-upper: Likewise.
33510         * modules/unictype/ctype-xdigit: Likewise.
33511         * modules/unictype/decimal-digit: Likewise.
33512         * modules/unictype/digit: Likewise.
33513         * modules/unictype/mirror: Likewise.
33514         * modules/unictype/numeric: Likewise.
33515         * modules/unictype/property-alphabetic: Likewise.
33516         * modules/unictype/property-ascii-hex-digit: Likewise.
33517         * modules/unictype/property-bidi-arabic-digit: Likewise.
33518         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33519         * modules/unictype/property-bidi-block-separator: Likewise.
33520         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33521         * modules/unictype/property-bidi-common-separator: Likewise.
33522         * modules/unictype/property-bidi-control: Likewise.
33523         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33524         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33525         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33526         * modules/unictype/property-bidi-european-digit: Likewise.
33527         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33528         * modules/unictype/property-bidi-left-to-right: Likewise.
33529         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33530         * modules/unictype/property-bidi-other-neutral: Likewise.
33531         * modules/unictype/property-bidi-pdf: Likewise.
33532         * modules/unictype/property-bidi-segment-separator: Likewise.
33533         * modules/unictype/property-bidi-whitespace: Likewise.
33534         * modules/unictype/property-byname: Likewise.
33535         * modules/unictype/property-combining: Likewise.
33536         * modules/unictype/property-composite: Likewise.
33537         * modules/unictype/property-currency-symbol: Likewise.
33538         * modules/unictype/property-dash: Likewise.
33539         * modules/unictype/property-decimal-digit: Likewise.
33540         * modules/unictype/property-default-ignorable-code-point: Likewise.
33541         * modules/unictype/property-deprecated: Likewise.
33542         * modules/unictype/property-diacritic: Likewise.
33543         * modules/unictype/property-extender: Likewise.
33544         * modules/unictype/property-format-control: Likewise.
33545         * modules/unictype/property-grapheme-base: Likewise.
33546         * modules/unictype/property-grapheme-extend: Likewise.
33547         * modules/unictype/property-grapheme-link: Likewise.
33548         * modules/unictype/property-hex-digit: Likewise.
33549         * modules/unictype/property-hyphen: Likewise.
33550         * modules/unictype/property-id-continue: Likewise.
33551         * modules/unictype/property-id-start: Likewise.
33552         * modules/unictype/property-ideographic: Likewise.
33553         * modules/unictype/property-ids-binary-operator: Likewise.
33554         * modules/unictype/property-ids-trinary-operator: Likewise.
33555         * modules/unictype/property-ignorable-control: Likewise.
33556         * modules/unictype/property-iso-control: Likewise.
33557         * modules/unictype/property-join-control: Likewise.
33558         * modules/unictype/property-left-of-pair: Likewise.
33559         * modules/unictype/property-line-separator: Likewise.
33560         * modules/unictype/property-logical-order-exception: Likewise.
33561         * modules/unictype/property-lowercase: Likewise.
33562         * modules/unictype/property-math: Likewise.
33563         * modules/unictype/property-non-break: Likewise.
33564         * modules/unictype/property-not-a-character: Likewise.
33565         * modules/unictype/property-numeric: Likewise.
33566         * modules/unictype/property-other-alphabetic: Likewise.
33567         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33568         * modules/unictype/property-other-grapheme-extend: Likewise.
33569         * modules/unictype/property-other-id-continue: Likewise.
33570         * modules/unictype/property-other-id-start: Likewise.
33571         * modules/unictype/property-other-lowercase: Likewise.
33572         * modules/unictype/property-other-math: Likewise.
33573         * modules/unictype/property-other-uppercase: Likewise.
33574         * modules/unictype/property-paired-punctuation: Likewise.
33575         * modules/unictype/property-paragraph-separator: Likewise.
33576         * modules/unictype/property-pattern-syntax: Likewise.
33577         * modules/unictype/property-pattern-white-space: Likewise.
33578         * modules/unictype/property-private-use: Likewise.
33579         * modules/unictype/property-punctuation: Likewise.
33580         * modules/unictype/property-quotation-mark: Likewise.
33581         * modules/unictype/property-radical: Likewise.
33582         * modules/unictype/property-sentence-terminal: Likewise.
33583         * modules/unictype/property-soft-dotted: Likewise.
33584         * modules/unictype/property-space: Likewise.
33585         * modules/unictype/property-terminal-punctuation: Likewise.
33586         * modules/unictype/property-test: Likewise.
33587         * modules/unictype/property-titlecase: Likewise.
33588         * modules/unictype/property-unassigned-code-value: Likewise.
33589         * modules/unictype/property-unified-ideograph: Likewise.
33590         * modules/unictype/property-uppercase: Likewise.
33591         * modules/unictype/property-variation-selector: Likewise.
33592         * modules/unictype/property-white-space: Likewise.
33593         * modules/unictype/property-xid-continue: Likewise.
33594         * modules/unictype/property-xid-start: Likewise.
33595         * modules/unictype/property-zero-width: Likewise.
33596         * modules/unictype/scripts: Likewise.
33597         * modules/unictype/syntax-c-ident: Likewise.
33598         * modules/unictype/syntax-c-whitespace: Likewise.
33599         * modules/unictype/syntax-java-ident: Likewise.
33600         * modules/unictype/syntax-java-whitespace: Likewise.
33601         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33602         * modules/unilbrk/u8-width-linebreaks: Likewise.
33603         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33604         * modules/unilbrk/u16-width-linebreaks: Likewise.
33605         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33606         * modules/unilbrk/u32-width-linebreaks: Likewise.
33607         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33608         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33609         * modules/uniname/uniname: Likewise.
33610         * modules/uninorm/canonical-decomposition: Likewise.
33611         * modules/uninorm/composition: Likewise.
33612         * modules/uninorm/decomposing-form: Likewise.
33613         * modules/uninorm/decomposition: Likewise.
33614         * modules/uninorm/filter: Likewise.
33615         * modules/uninorm/nfc: Likewise.
33616         * modules/uninorm/nfd: Likewise.
33617         * modules/uninorm/nfkc: Likewise.
33618         * modules/uninorm/nfkd: Likewise.
33619         * modules/uninorm/u8-normalize: Likewise.
33620         * modules/uninorm/u8-normcmp: Likewise.
33621         * modules/uninorm/u8-normcoll: Likewise.
33622         * modules/uninorm/u8-normxfrm: Likewise.
33623         * modules/uninorm/u16-normalize: Likewise.
33624         * modules/uninorm/u16-normcmp: Likewise.
33625         * modules/uninorm/u16-normcoll: Likewise.
33626         * modules/uninorm/u16-normxfrm: Likewise.
33627         * modules/uninorm/u32-normalize: Likewise.
33628         * modules/uninorm/u32-normcmp: Likewise.
33629         * modules/uninorm/u32-normcoll: Likewise.
33630         * modules/uninorm/u32-normxfrm: Likewise.
33631         * modules/unistdio/u8-asnprintf: Likewise.
33632         * modules/unistdio/u8-asprintf: Likewise.
33633         * modules/unistdio/u8-snprintf: Likewise.
33634         * modules/unistdio/u8-sprintf: Likewise.
33635         * modules/unistdio/u8-u8-asnprintf: Likewise.
33636         * modules/unistdio/u8-u8-asprintf: Likewise.
33637         * modules/unistdio/u8-u8-snprintf: Likewise.
33638         * modules/unistdio/u8-u8-sprintf: Likewise.
33639         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33640         * modules/unistdio/u8-u8-vasprintf: Likewise.
33641         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33642         * modules/unistdio/u8-u8-vsprintf: Likewise.
33643         * modules/unistdio/u8-vasnprintf: Likewise.
33644         * modules/unistdio/u8-vasprintf: Likewise.
33645         * modules/unistdio/u8-vsnprintf: Likewise.
33646         * modules/unistdio/u8-vsprintf: Likewise.
33647         * modules/unistdio/u16-asnprintf: Likewise.
33648         * modules/unistdio/u16-asprintf: Likewise.
33649         * modules/unistdio/u16-snprintf: Likewise.
33650         * modules/unistdio/u16-sprintf: Likewise.
33651         * modules/unistdio/u16-u16-asnprintf: Likewise.
33652         * modules/unistdio/u16-u16-asprintf: Likewise.
33653         * modules/unistdio/u16-u16-snprintf: Likewise.
33654         * modules/unistdio/u16-u16-sprintf: Likewise.
33655         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33656         * modules/unistdio/u16-u16-vasprintf: Likewise.
33657         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33658         * modules/unistdio/u16-u16-vsprintf: Likewise.
33659         * modules/unistdio/u16-vasnprintf: Likewise.
33660         * modules/unistdio/u16-vasprintf: Likewise.
33661         * modules/unistdio/u16-vsnprintf: Likewise.
33662         * modules/unistdio/u16-vsprintf: Likewise.
33663         * modules/unistdio/u32-asnprintf: Likewise.
33664         * modules/unistdio/u32-asprintf: Likewise.
33665         * modules/unistdio/u32-snprintf: Likewise.
33666         * modules/unistdio/u32-sprintf: Likewise.
33667         * modules/unistdio/u32-u32-asnprintf: Likewise.
33668         * modules/unistdio/u32-u32-asprintf: Likewise.
33669         * modules/unistdio/u32-u32-snprintf: Likewise.
33670         * modules/unistdio/u32-u32-sprintf: Likewise.
33671         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33672         * modules/unistdio/u32-u32-vasprintf: Likewise.
33673         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33674         * modules/unistdio/u32-u32-vsprintf: Likewise.
33675         * modules/unistdio/u32-vasnprintf: Likewise.
33676         * modules/unistdio/u32-vasprintf: Likewise.
33677         * modules/unistdio/u32-vsnprintf: Likewise.
33678         * modules/unistdio/u32-vsprintf: Likewise.
33679         * modules/unistdio/ulc-asnprintf: Likewise.
33680         * modules/unistdio/ulc-asprintf: Likewise.
33681         * modules/unistdio/ulc-fprintf: Likewise.
33682         * modules/unistdio/ulc-snprintf: Likewise.
33683         * modules/unistdio/ulc-sprintf: Likewise.
33684         * modules/unistdio/ulc-vasnprintf: Likewise.
33685         * modules/unistdio/ulc-vasprintf: Likewise.
33686         * modules/unistdio/ulc-vfprintf: Likewise.
33687         * modules/unistdio/ulc-vsnprintf: Likewise.
33688         * modules/unistdio/ulc-vsprintf: Likewise.
33689         * modules/unistr/u8-check: Likewise.
33690         * modules/unistr/u8-chr: Likewise.
33691         * modules/unistr/u8-cmp: Likewise.
33692         * modules/unistr/u8-cmp2: Likewise.
33693         * modules/unistr/u8-cpy: Likewise.
33694         * modules/unistr/u8-cpy-alloc: Likewise.
33695         * modules/unistr/u8-endswith: Likewise.
33696         * modules/unistr/u8-mblen: Likewise.
33697         * modules/unistr/u8-mbsnlen: Likewise.
33698         * modules/unistr/u8-mbtouc: Likewise.
33699         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33700         * modules/unistr/u8-mbtoucr: Likewise.
33701         * modules/unistr/u8-move: Likewise.
33702         * modules/unistr/u8-next: Likewise.
33703         * modules/unistr/u8-prev: Likewise.
33704         * modules/unistr/u8-set: Likewise.
33705         * modules/unistr/u8-startswith: Likewise.
33706         * modules/unistr/u8-stpcpy: Likewise.
33707         * modules/unistr/u8-stpncpy: Likewise.
33708         * modules/unistr/u8-strcat: Likewise.
33709         * modules/unistr/u8-strchr: Likewise.
33710         * modules/unistr/u8-strcmp: Likewise.
33711         * modules/unistr/u8-strcoll: Likewise.
33712         * modules/unistr/u8-strcpy: Likewise.
33713         * modules/unistr/u8-strcspn: Likewise.
33714         * modules/unistr/u8-strdup: Likewise.
33715         * modules/unistr/u8-strlen: Likewise.
33716         * modules/unistr/u8-strmblen: Likewise.
33717         * modules/unistr/u8-strmbtouc: Likewise.
33718         * modules/unistr/u8-strncat: Likewise.
33719         * modules/unistr/u8-strncmp: Likewise.
33720         * modules/unistr/u8-strncpy: Likewise.
33721         * modules/unistr/u8-strnlen: Likewise.
33722         * modules/unistr/u8-strpbrk: Likewise.
33723         * modules/unistr/u8-strrchr: Likewise.
33724         * modules/unistr/u8-strspn: Likewise.
33725         * modules/unistr/u8-strstr: Likewise.
33726         * modules/unistr/u8-strtok: Likewise.
33727         * modules/unistr/u8-to-u16: Likewise.
33728         * modules/unistr/u8-to-u32: Likewise.
33729         * modules/unistr/u8-uctomb: Likewise.
33730         * modules/unistr/u16-check: Likewise.
33731         * modules/unistr/u16-chr: Likewise.
33732         * modules/unistr/u16-cmp: Likewise.
33733         * modules/unistr/u16-cmp2: Likewise.
33734         * modules/unistr/u16-cpy: Likewise.
33735         * modules/unistr/u16-cpy-alloc: Likewise.
33736         * modules/unistr/u16-endswith: Likewise.
33737         * modules/unistr/u16-mblen: Likewise.
33738         * modules/unistr/u16-mbsnlen: Likewise.
33739         * modules/unistr/u16-mbtouc: Likewise.
33740         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33741         * modules/unistr/u16-mbtoucr: Likewise.
33742         * modules/unistr/u16-move: Likewise.
33743         * modules/unistr/u16-next: Likewise.
33744         * modules/unistr/u16-prev: Likewise.
33745         * modules/unistr/u16-set: Likewise.
33746         * modules/unistr/u16-startswith: Likewise.
33747         * modules/unistr/u16-stpcpy: Likewise.
33748         * modules/unistr/u16-stpncpy: Likewise.
33749         * modules/unistr/u16-strcat: Likewise.
33750         * modules/unistr/u16-strchr: Likewise.
33751         * modules/unistr/u16-strcmp: Likewise.
33752         * modules/unistr/u16-strcoll: Likewise.
33753         * modules/unistr/u16-strcpy: Likewise.
33754         * modules/unistr/u16-strcspn: Likewise.
33755         * modules/unistr/u16-strdup: Likewise.
33756         * modules/unistr/u16-strlen: Likewise.
33757         * modules/unistr/u16-strmblen: Likewise.
33758         * modules/unistr/u16-strmbtouc: Likewise.
33759         * modules/unistr/u16-strncat: Likewise.
33760         * modules/unistr/u16-strncmp: Likewise.
33761         * modules/unistr/u16-strncpy: Likewise.
33762         * modules/unistr/u16-strnlen: Likewise.
33763         * modules/unistr/u16-strpbrk: Likewise.
33764         * modules/unistr/u16-strrchr: Likewise.
33765         * modules/unistr/u16-strspn: Likewise.
33766         * modules/unistr/u16-strstr: Likewise.
33767         * modules/unistr/u16-strtok: Likewise.
33768         * modules/unistr/u16-to-u32: Likewise.
33769         * modules/unistr/u16-to-u8: Likewise.
33770         * modules/unistr/u16-uctomb: Likewise.
33771         * modules/unistr/u32-check: Likewise.
33772         * modules/unistr/u32-chr: Likewise.
33773         * modules/unistr/u32-cmp: Likewise.
33774         * modules/unistr/u32-cmp2: Likewise.
33775         * modules/unistr/u32-cpy: Likewise.
33776         * modules/unistr/u32-cpy-alloc: Likewise.
33777         * modules/unistr/u32-endswith: Likewise.
33778         * modules/unistr/u32-mblen: Likewise.
33779         * modules/unistr/u32-mbsnlen: Likewise.
33780         * modules/unistr/u32-mbtouc: Likewise.
33781         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33782         * modules/unistr/u32-mbtoucr: Likewise.
33783         * modules/unistr/u32-move: Likewise.
33784         * modules/unistr/u32-next: Likewise.
33785         * modules/unistr/u32-prev: Likewise.
33786         * modules/unistr/u32-set: Likewise.
33787         * modules/unistr/u32-startswith: Likewise.
33788         * modules/unistr/u32-stpcpy: Likewise.
33789         * modules/unistr/u32-stpncpy: Likewise.
33790         * modules/unistr/u32-strcat: Likewise.
33791         * modules/unistr/u32-strchr: Likewise.
33792         * modules/unistr/u32-strcmp: Likewise.
33793         * modules/unistr/u32-strcoll: Likewise.
33794         * modules/unistr/u32-strcpy: Likewise.
33795         * modules/unistr/u32-strcspn: Likewise.
33796         * modules/unistr/u32-strdup: Likewise.
33797         * modules/unistr/u32-strlen: Likewise.
33798         * modules/unistr/u32-strmblen: Likewise.
33799         * modules/unistr/u32-strmbtouc: Likewise.
33800         * modules/unistr/u32-strncat: Likewise.
33801         * modules/unistr/u32-strncmp: Likewise.
33802         * modules/unistr/u32-strncpy: Likewise.
33803         * modules/unistr/u32-strnlen: Likewise.
33804         * modules/unistr/u32-strpbrk: Likewise.
33805         * modules/unistr/u32-strrchr: Likewise.
33806         * modules/unistr/u32-strspn: Likewise.
33807         * modules/unistr/u32-strstr: Likewise.
33808         * modules/unistr/u32-strtok: Likewise.
33809         * modules/unistr/u32-to-u16: Likewise.
33810         * modules/unistr/u32-to-u8: Likewise.
33811         * modules/unistr/u32-uctomb: Likewise.
33812         * modules/uniwbrk/u8-wordbreaks: Likewise.
33813         * modules/uniwbrk/u16-wordbreaks: Likewise.
33814         * modules/uniwbrk/u32-wordbreaks: Likewise.
33815         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33816         * modules/uniwbrk/wordbreak-property: Likewise.
33817         * modules/uniwidth/u8-strwidth: Likewise.
33818         * modules/uniwidth/u8-width: Likewise.
33819         * modules/uniwidth/u16-strwidth: Likewise.
33820         * modules/uniwidth/u16-width: Likewise.
33821         * modules/uniwidth/u32-strwidth: Likewise.
33822         * modules/uniwidth/u32-width: Likewise.
33823         * modules/uniwidth/width: Likewise.
33824         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33825         with $(LIBUNISTRING).
33826         * modules/unicase/ignorable-tests: Likewise.
33827         * modules/unicase/locale-language-tests: Likewise.
33828         * modules/unicase/tolower-tests: Likewise.
33829         * modules/unicase/totitle-tests: Likewise.
33830         * modules/unicase/toupper-tests: Likewise.
33831         * modules/unicase/u8-casecmp-tests: Likewise.
33832         * modules/unicase/u8-casecoll-tests: Likewise.
33833         * modules/unicase/u8-casefold-tests: Likewise.
33834         * modules/unicase/u8-is-cased-tests: Likewise.
33835         * modules/unicase/u8-is-casefolded-tests: Likewise.
33836         * modules/unicase/u8-is-lowercase-tests: Likewise.
33837         * modules/unicase/u8-is-titlecase-tests: Likewise.
33838         * modules/unicase/u8-is-uppercase-tests: Likewise.
33839         * modules/unicase/u8-tolower-tests: Likewise.
33840         * modules/unicase/u8-totitle-tests: Likewise.
33841         * modules/unicase/u8-toupper-tests: Likewise.
33842         * modules/unicase/u16-casecmp-tests: Likewise.
33843         * modules/unicase/u16-casecoll-tests: Likewise.
33844         * modules/unicase/u16-casefold-tests: Likewise.
33845         * modules/unicase/u16-is-cased-tests: Likewise.
33846         * modules/unicase/u16-is-casefolded-tests: Likewise.
33847         * modules/unicase/u16-is-lowercase-tests: Likewise.
33848         * modules/unicase/u16-is-titlecase-tests: Likewise.
33849         * modules/unicase/u16-is-uppercase-tests: Likewise.
33850         * modules/unicase/u16-tolower-tests: Likewise.
33851         * modules/unicase/u16-totitle-tests: Likewise.
33852         * modules/unicase/u16-toupper-tests: Likewise.
33853         * modules/unicase/u32-casecmp-tests: Likewise.
33854         * modules/unicase/u32-casecoll-tests: Likewise.
33855         * modules/unicase/u32-casefold-tests: Likewise.
33856         * modules/unicase/u32-is-cased-tests: Likewise.
33857         * modules/unicase/u32-is-casefolded-tests: Likewise.
33858         * modules/unicase/u32-is-lowercase-tests: Likewise.
33859         * modules/unicase/u32-is-titlecase-tests: Likewise.
33860         * modules/unicase/u32-is-uppercase-tests: Likewise.
33861         * modules/unicase/u32-tolower-tests: Likewise.
33862         * modules/unicase/u32-totitle-tests: Likewise.
33863         * modules/unicase/u32-toupper-tests: Likewise.
33864         * modules/unicase/ulc-casecmp-tests: Likewise.
33865         * modules/unicase/ulc-casecoll-tests: Likewise.
33866         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33867         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33868         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33869         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33870         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33871         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33872         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33873         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33874         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33875         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33876         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33877         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33878         * modules/unictype/bidicategory-byname-tests: Likewise.
33879         * modules/unictype/bidicategory-name-tests: Likewise.
33880         * modules/unictype/bidicategory-of-tests: Likewise.
33881         * modules/unictype/bidicategory-test-tests: Likewise.
33882         * modules/unictype/block-list-tests: Likewise.
33883         * modules/unictype/block-of-tests: Likewise.
33884         * modules/unictype/block-test-tests: Likewise.
33885         * modules/unictype/category-C-tests: Likewise.
33886         * modules/unictype/category-Cc-tests: Likewise.
33887         * modules/unictype/category-Cf-tests: Likewise.
33888         * modules/unictype/category-Cn-tests: Likewise.
33889         * modules/unictype/category-Co-tests: Likewise.
33890         * modules/unictype/category-Cs-tests: Likewise.
33891         * modules/unictype/category-L-tests: Likewise.
33892         * modules/unictype/category-Ll-tests: Likewise.
33893         * modules/unictype/category-Lm-tests: Likewise.
33894         * modules/unictype/category-Lo-tests: Likewise.
33895         * modules/unictype/category-Lt-tests: Likewise.
33896         * modules/unictype/category-Lu-tests: Likewise.
33897         * modules/unictype/category-M-tests: Likewise.
33898         * modules/unictype/category-Mc-tests: Likewise.
33899         * modules/unictype/category-Me-tests: Likewise.
33900         * modules/unictype/category-Mn-tests: Likewise.
33901         * modules/unictype/category-N-tests: Likewise.
33902         * modules/unictype/category-Nd-tests: Likewise.
33903         * modules/unictype/category-Nl-tests: Likewise.
33904         * modules/unictype/category-No-tests: Likewise.
33905         * modules/unictype/category-P-tests: Likewise.
33906         * modules/unictype/category-Pc-tests: Likewise.
33907         * modules/unictype/category-Pd-tests: Likewise.
33908         * modules/unictype/category-Pe-tests: Likewise.
33909         * modules/unictype/category-Pf-tests: Likewise.
33910         * modules/unictype/category-Pi-tests: Likewise.
33911         * modules/unictype/category-Po-tests: Likewise.
33912         * modules/unictype/category-Ps-tests: Likewise.
33913         * modules/unictype/category-S-tests: Likewise.
33914         * modules/unictype/category-Sc-tests: Likewise.
33915         * modules/unictype/category-Sk-tests: Likewise.
33916         * modules/unictype/category-Sm-tests: Likewise.
33917         * modules/unictype/category-So-tests: Likewise.
33918         * modules/unictype/category-Z-tests: Likewise.
33919         * modules/unictype/category-Zl-tests: Likewise.
33920         * modules/unictype/category-Zp-tests: Likewise.
33921         * modules/unictype/category-Zs-tests: Likewise.
33922         * modules/unictype/category-and-not-tests: Likewise.
33923         * modules/unictype/category-and-tests: Likewise.
33924         * modules/unictype/category-byname-tests: Likewise.
33925         * modules/unictype/category-name-tests: Likewise.
33926         * modules/unictype/category-none-tests: Likewise.
33927         * modules/unictype/category-of-tests: Likewise.
33928         * modules/unictype/category-or-tests: Likewise.
33929         * modules/unictype/category-test-withtable-tests: Likewise.
33930         * modules/unictype/combining-class-tests: Likewise.
33931         * modules/unictype/ctype-alnum-tests: Likewise.
33932         * modules/unictype/ctype-alpha-tests: Likewise.
33933         * modules/unictype/ctype-blank-tests: Likewise.
33934         * modules/unictype/ctype-cntrl-tests: Likewise.
33935         * modules/unictype/ctype-digit-tests: Likewise.
33936         * modules/unictype/ctype-graph-tests: Likewise.
33937         * modules/unictype/ctype-lower-tests: Likewise.
33938         * modules/unictype/ctype-print-tests: Likewise.
33939         * modules/unictype/ctype-punct-tests: Likewise.
33940         * modules/unictype/ctype-space-tests: Likewise.
33941         * modules/unictype/ctype-upper-tests: Likewise.
33942         * modules/unictype/ctype-xdigit-tests: Likewise.
33943         * modules/unictype/decimal-digit-tests: Likewise.
33944         * modules/unictype/digit-tests: Likewise.
33945         * modules/unictype/mirror-tests: Likewise.
33946         * modules/unictype/numeric-tests: Likewise.
33947         * modules/unictype/property-alphabetic-tests: Likewise.
33948         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33949         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33950         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33951         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33952         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33953         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33954         * modules/unictype/property-bidi-control-tests: Likewise.
33955         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33956         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33957         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33958         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33959         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33960         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33961         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33962         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33963         * modules/unictype/property-bidi-pdf-tests: Likewise.
33964         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33965         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33966         * modules/unictype/property-byname-tests: Likewise.
33967         * modules/unictype/property-combining-tests: Likewise.
33968         * modules/unictype/property-composite-tests: Likewise.
33969         * modules/unictype/property-currency-symbol-tests: Likewise.
33970         * modules/unictype/property-dash-tests: Likewise.
33971         * modules/unictype/property-decimal-digit-tests: Likewise.
33972         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33973         * modules/unictype/property-deprecated-tests: Likewise.
33974         * modules/unictype/property-diacritic-tests: Likewise.
33975         * modules/unictype/property-extender-tests: Likewise.
33976         * modules/unictype/property-format-control-tests: Likewise.
33977         * modules/unictype/property-grapheme-base-tests: Likewise.
33978         * modules/unictype/property-grapheme-extend-tests: Likewise.
33979         * modules/unictype/property-grapheme-link-tests: Likewise.
33980         * modules/unictype/property-hex-digit-tests: Likewise.
33981         * modules/unictype/property-hyphen-tests: Likewise.
33982         * modules/unictype/property-id-continue-tests: Likewise.
33983         * modules/unictype/property-id-start-tests: Likewise.
33984         * modules/unictype/property-ideographic-tests: Likewise.
33985         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33986         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33987         * modules/unictype/property-ignorable-control-tests: Likewise.
33988         * modules/unictype/property-iso-control-tests: Likewise.
33989         * modules/unictype/property-join-control-tests: Likewise.
33990         * modules/unictype/property-left-of-pair-tests: Likewise.
33991         * modules/unictype/property-line-separator-tests: Likewise.
33992         * modules/unictype/property-logical-order-exception-tests: Likewise.
33993         * modules/unictype/property-lowercase-tests: Likewise.
33994         * modules/unictype/property-math-tests: Likewise.
33995         * modules/unictype/property-non-break-tests: Likewise.
33996         * modules/unictype/property-not-a-character-tests: Likewise.
33997         * modules/unictype/property-numeric-tests: Likewise.
33998         * modules/unictype/property-other-alphabetic-tests: Likewise.
33999         * modules/unictype/property-other-default-ignorable-code-point-tests:
34000         Likewise.
34001         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34002         * modules/unictype/property-other-id-continue-tests: Likewise.
34003         * modules/unictype/property-other-id-start-tests: Likewise.
34004         * modules/unictype/property-other-lowercase-tests: Likewise.
34005         * modules/unictype/property-other-math-tests: Likewise.
34006         * modules/unictype/property-other-uppercase-tests: Likewise.
34007         * modules/unictype/property-paired-punctuation-tests: Likewise.
34008         * modules/unictype/property-paragraph-separator-tests: Likewise.
34009         * modules/unictype/property-pattern-syntax-tests: Likewise.
34010         * modules/unictype/property-pattern-white-space-tests: Likewise.
34011         * modules/unictype/property-private-use-tests: Likewise.
34012         * modules/unictype/property-punctuation-tests: Likewise.
34013         * modules/unictype/property-quotation-mark-tests: Likewise.
34014         * modules/unictype/property-radical-tests: Likewise.
34015         * modules/unictype/property-sentence-terminal-tests: Likewise.
34016         * modules/unictype/property-soft-dotted-tests: Likewise.
34017         * modules/unictype/property-space-tests: Likewise.
34018         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34019         * modules/unictype/property-test-tests: Likewise.
34020         * modules/unictype/property-titlecase-tests: Likewise.
34021         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34022         * modules/unictype/property-unified-ideograph-tests: Likewise.
34023         * modules/unictype/property-uppercase-tests: Likewise.
34024         * modules/unictype/property-variation-selector-tests: Likewise.
34025         * modules/unictype/property-white-space-tests: Likewise.
34026         * modules/unictype/property-xid-continue-tests: Likewise.
34027         * modules/unictype/property-xid-start-tests: Likewise.
34028         * modules/unictype/property-zero-width-tests: Likewise.
34029         * modules/unictype/scripts-tests: Likewise.
34030         * modules/unictype/syntax-c-ident-tests: Likewise.
34031         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34032         * modules/unictype/syntax-java-ident-tests: Likewise.
34033         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34034         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34035         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34036         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34037         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34038         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34039         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34040         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34041         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34042         * modules/uniname/uniname-tests: Likewise.
34043         * modules/uninorm/canonical-decomposition-tests: Likewise.
34044         * modules/uninorm/compat-decomposition-tests: Likewise.
34045         * modules/uninorm/composition-tests: Likewise.
34046         * modules/uninorm/decomposing-form-tests: Likewise.
34047         * modules/uninorm/decomposition-tests: Likewise.
34048         * modules/uninorm/filter-tests: Likewise.
34049         * modules/uninorm/nfc-tests: Likewise.
34050         * modules/uninorm/nfd-tests: Likewise.
34051         * modules/uninorm/nfkc-tests: Likewise.
34052         * modules/uninorm/nfkd-tests: Likewise.
34053         * modules/uninorm/u8-normcmp-tests: Likewise.
34054         * modules/uninorm/u8-normcoll-tests: Likewise.
34055         * modules/uninorm/u16-normcmp-tests: Likewise.
34056         * modules/uninorm/u16-normcoll-tests: Likewise.
34057         * modules/uninorm/u32-normcmp-tests: Likewise.
34058         * modules/uninorm/u32-normcoll-tests: Likewise.
34059         * modules/unistdio/u8-asnprintf-tests: Likewise.
34060         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34061         * modules/unistdio/u8-vasprintf-tests: Likewise.
34062         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34063         * modules/unistdio/u8-vsprintf-tests: Likewise.
34064         * modules/unistdio/u16-asnprintf-tests: Likewise.
34065         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34066         * modules/unistdio/u16-vasprintf-tests: Likewise.
34067         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34068         * modules/unistdio/u16-vsprintf-tests: Likewise.
34069         * modules/unistdio/u32-asnprintf-tests: Likewise.
34070         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34071         * modules/unistdio/u32-vasprintf-tests: Likewise.
34072         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34073         * modules/unistdio/u32-vsprintf-tests: Likewise.
34074         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34075         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34076         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34077         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34078         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34079         * modules/unistr/u8-check-tests: Likewise.
34080         * modules/unistr/u8-chr-tests: Likewise.
34081         * modules/unistr/u8-cmp-tests: Likewise.
34082         * modules/unistr/u8-cmp2-tests: Likewise.
34083         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34084         * modules/unistr/u8-cpy-tests: Likewise.
34085         * modules/unistr/u8-mblen-tests: Likewise.
34086         * modules/unistr/u8-mbsnlen-tests: Likewise.
34087         * modules/unistr/u8-mbtouc-tests: Likewise.
34088         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34089         * modules/unistr/u8-mbtoucr-tests: Likewise.
34090         * modules/unistr/u8-move-tests: Likewise.
34091         * modules/unistr/u8-next-tests: Likewise.
34092         * modules/unistr/u8-prev-tests: Likewise.
34093         * modules/unistr/u8-set-tests: Likewise.
34094         * modules/unistr/u8-stpcpy-tests: Likewise.
34095         * modules/unistr/u8-stpncpy-tests: Likewise.
34096         * modules/unistr/u8-strcat-tests: Likewise.
34097         * modules/unistr/u8-strcmp-tests: Likewise.
34098         * modules/unistr/u8-strcoll-tests: Likewise.
34099         * modules/unistr/u8-strcpy-tests: Likewise.
34100         * modules/unistr/u8-strdup-tests: Likewise.
34101         * modules/unistr/u8-strlen-tests: Likewise.
34102         * modules/unistr/u8-strmblen-tests: Likewise.
34103         * modules/unistr/u8-strmbtouc-tests: Likewise.
34104         * modules/unistr/u8-strncat-tests: Likewise.
34105         * modules/unistr/u8-strncmp-tests: Likewise.
34106         * modules/unistr/u8-strncpy-tests: Likewise.
34107         * modules/unistr/u8-strnlen-tests: Likewise.
34108         * modules/unistr/u8-to-u16-tests: Likewise.
34109         * modules/unistr/u8-to-u32-tests: Likewise.
34110         * modules/unistr/u8-uctomb-tests: Likewise.
34111         * modules/unistr/u16-check-tests: Likewise.
34112         * modules/unistr/u16-chr-tests: Likewise.
34113         * modules/unistr/u16-cmp-tests: Likewise.
34114         * modules/unistr/u16-cmp2-tests: Likewise.
34115         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34116         * modules/unistr/u16-cpy-tests: Likewise.
34117         * modules/unistr/u16-mblen-tests: Likewise.
34118         * modules/unistr/u16-mbsnlen-tests: Likewise.
34119         * modules/unistr/u16-mbtouc-tests: Likewise.
34120         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34121         * modules/unistr/u16-mbtoucr-tests: Likewise.
34122         * modules/unistr/u16-move-tests: Likewise.
34123         * modules/unistr/u16-next-tests: Likewise.
34124         * modules/unistr/u16-prev-tests: Likewise.
34125         * modules/unistr/u16-set-tests: Likewise.
34126         * modules/unistr/u16-stpcpy-tests: Likewise.
34127         * modules/unistr/u16-stpncpy-tests: Likewise.
34128         * modules/unistr/u16-strcat-tests: Likewise.
34129         * modules/unistr/u16-strcmp-tests: Likewise.
34130         * modules/unistr/u16-strcoll-tests: Likewise.
34131         * modules/unistr/u16-strcpy-tests: Likewise.
34132         * modules/unistr/u16-strdup-tests: Likewise.
34133         * modules/unistr/u16-strlen-tests: Likewise.
34134         * modules/unistr/u16-strmblen-tests: Likewise.
34135         * modules/unistr/u16-strmbtouc-tests: Likewise.
34136         * modules/unistr/u16-strncat-tests: Likewise.
34137         * modules/unistr/u16-strncmp-tests: Likewise.
34138         * modules/unistr/u16-strncpy-tests: Likewise.
34139         * modules/unistr/u16-strnlen-tests: Likewise.
34140         * modules/unistr/u16-to-u32-tests: Likewise.
34141         * modules/unistr/u16-to-u8-tests: Likewise.
34142         * modules/unistr/u16-uctomb-tests: Likewise.
34143         * modules/unistr/u32-check-tests: Likewise.
34144         * modules/unistr/u32-chr-tests: Likewise.
34145         * modules/unistr/u32-cmp-tests: Likewise.
34146         * modules/unistr/u32-cmp2-tests: Likewise.
34147         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34148         * modules/unistr/u32-cpy-tests: Likewise.
34149         * modules/unistr/u32-mblen-tests: Likewise.
34150         * modules/unistr/u32-mbsnlen-tests: Likewise.
34151         * modules/unistr/u32-mbtouc-tests: Likewise.
34152         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34153         * modules/unistr/u32-mbtoucr-tests: Likewise.
34154         * modules/unistr/u32-move-tests: Likewise.
34155         * modules/unistr/u32-next-tests: Likewise.
34156         * modules/unistr/u32-prev-tests: Likewise.
34157         * modules/unistr/u32-set-tests: Likewise.
34158         * modules/unistr/u32-stpcpy-tests: Likewise.
34159         * modules/unistr/u32-stpncpy-tests: Likewise.
34160         * modules/unistr/u32-strcat-tests: Likewise.
34161         * modules/unistr/u32-strcmp-tests: Likewise.
34162         * modules/unistr/u32-strcoll-tests: Likewise.
34163         * modules/unistr/u32-strcpy-tests: Likewise.
34164         * modules/unistr/u32-strdup-tests: Likewise.
34165         * modules/unistr/u32-strlen-tests: Likewise.
34166         * modules/unistr/u32-strmblen-tests: Likewise.
34167         * modules/unistr/u32-strmbtouc-tests: Likewise.
34168         * modules/unistr/u32-strncat-tests: Likewise.
34169         * modules/unistr/u32-strncmp-tests: Likewise.
34170         * modules/unistr/u32-strncpy-tests: Likewise.
34171         * modules/unistr/u32-strnlen-tests: Likewise.
34172         * modules/unistr/u32-to-u16-tests: Likewise.
34173         * modules/unistr/u32-to-u8-tests: Likewise.
34174         * modules/unistr/u32-uctomb-tests: Likewise.
34175         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34176         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34177         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34178         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34179         * modules/uniwidth/u8-strwidth-tests: Likewise.
34180         * modules/uniwidth/u8-width-tests: Likewise.
34181         * modules/uniwidth/u16-strwidth-tests: Likewise.
34182         * modules/uniwidth/u16-width-tests: Likewise.
34183         * modules/uniwidth/u32-strwidth-tests: Likewise.
34184         * modules/uniwidth/u32-width-tests: Likewise.
34185         * modules/uniwidth/width-tests: Likewise.
34186
34187 2010-05-18  Richard Jones  <rjones@redhat.com>
34188
34189         doc: users.txt: list hivex
34190         * users.txt: Add hivex.
34191
34192 2010-05-18  Richard Jones  <rjones@redhat.com>
34193
34194         doc: users.txt: list febootstrap
34195         * users.txt: Add febootstrap.
34196
34197 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34198
34199         bootstrap: fix an error when gnulib is not used as a git submodule
34200         * build-aux/bootstrap (gnulib_path): If its length is zero then
34201         assign "gnulib" to it.
34202         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34203
34204 2010-05-16  Bruno Haible  <bruno@clisp.org>
34205
34206         Avoid autoconf warnings about AM_ICONV.
34207         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34208         2.64.
34209
34210 2010-05-16  Bruno Haible  <bruno@clisp.org>
34211
34212         absolute-header: Make the macro usable in more situations.
34213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34214         from gl_ABSOLUTE_HEADER.
34215         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34216
34217 2010-05-16  James Youngman  <jay@gnu.org>
34218
34219         doc: update users.txt
34220         * users.txt: Add CSSC.
34221
34222 2010-05-16  Jim Meyering  <meyering@redhat.com>
34223
34224         init.sh: fix an error in the previous change; add more comments
34225         * tests/init.sh: Compare exit code in loop against 9, not 2.
34226         Patch by Bruno Haible.
34227         Make the two tests more similar by adding an empty "then" clause.
34228         Add comments.
34229
34230         init.sh: avoid unnecessary shell re-exec
34231         * tests/init.sh: Improve the re-exec-required check to first test the
34232         current shell.  If it passes the test, do not search for a shell that
34233         does pass, and do not re-exec.  This test is particularly contorted to
34234         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34235         of $(...) evokes a syntax error and causes immediate shell exit with
34236         status 2.  Bruno Haible reported that the re-exec made it impossible
34237         to single-step through any init.sh-using script.
34238
34239 2010-05-16  Bruno Haible  <bruno@clisp.org>
34240
34241         Fix collision between gnulib's and libintl's printf replacements.
34242         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34243         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34244         (printf): When using GNU C, map the __printf__ function to rpl_printf
34245         via __asm__. When not using GNU C, define rpl_printf instead of
34246         __printf__.
34247         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34248         commit.
34249         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34250         commit.
34251         * m4/asm-underscore.m4: New file.
34252         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34253         * modules/stdio (Files): Add m4/asm-underscore.m4.
34254         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34255         Reported by Ben Pfaff.
34256
34257 2010-05-16  Bruno Haible  <bruno@clisp.org>
34258
34259         verify: Avoid skipping the test on openSUSE 11.0.
34260         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34261
34262 2010-05-13  Bruno Haible  <bruno@clisp.org>
34263
34264         Avoid useless warnings from G++.
34265         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34266         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34267         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34268
34269 2010-05-11  Jim Meyering  <meyering@redhat.com>
34270
34271         maint.mk: tweak preceding change
34272         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34273         regexps tighter by anchoring at EOL, and make the new group "shy"
34274         for slightly decreased overhead.
34275
34276 2010-05-11  Eric Blake  <eblake@redhat.com>
34277
34278         maint.mk: gnulib doesn't guarantee NSIG
34279         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34280
34281 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34282
34283         test-pwrite.c: Remove unused variable declaration.
34284         * tests/test-pwrite.c (main): Remove read_buf declaration.
34285
34286         Remove useless test-pwrite.sh file.
34287         * tests/test-pwrite.sh: Delete file.
34288         * modules/pwrite-tests: Remove references.
34289         Reported by Bruno Haible.
34290
34291 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34292
34293         init.sh: fix a typo
34294         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34295
34296 2010-05-10  Jim Meyering  <meyering@redhat.com>
34297
34298         maint.mk: avoid using a temporary file in the always-defined-macros check
34299         * top/maint.mk (.re-defmac): Remove rule.
34300         (gl_trap_): Remove definition.
34301         (sc_prohibit_always-defined_macros): Rewrite not to create and
34302         depend on a temporary file.  Instead, depend on GNU grep's ability
34303         to read a list of regular expressions from stdin when given "-f -".
34304
34305 2010-05-09  Bruno Haible  <bruno@clisp.org>
34306
34307         Update to GNU gettext 0.18, part 1.
34308         * m4/gettext.m4: Update to GNU gettext 0.18.
34309         * m4/intl.m4: Likewise.
34310         * m4/po.m4: Likewise.
34311         * modules/gettext (Files): Add m4/fcntl-o.m4.
34312         (configure.ac): Require gettext infrastructure from version 0.18.
34313
34314 2010-05-09  Jim Meyering  <meyering@redhat.com>
34315
34316         init.sh: enable MALLOC_PERTURB_
34317         * tests/init.sh: Enable glibc's malloc-perturbing option.
34318
34319         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34320         With my recent change in init.sh from the two-line form:
34321             -#   : ${srcdir=.}
34322             -#   . "$srcdir/init.sh"; path_prepend_ .
34323             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34324         I noticed that using the one-line form would cause this test
34325         to fail with a false-positive, or to stop working altogether,
34326         depending on whether help-version changed or all the tests did.
34327         * top/maint.mk (_hv_regex): Remove this definition.
34328         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34329         (_hv_regex_strong): Use a stronger regex to check for conformance.
34330         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34331         Give a separate diagnostic for lack of conforming use.
34332
34333         maint.mk: prohibit definition of symbols defined by gnulib
34334         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34335         definition of symbols defined by gnulib.
34336
34337 2010-05-09  Bruno Haible  <bruno@clisp.org>
34338
34339         acl: Avoid test failure on Cygwin-hosted mingw.
34340         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34341
34342 2010-05-09  Bruno Haible  <bruno@clisp.org>
34343
34344         error: Use system's fcntl function.
34345         * lib/error.c (fcntl): Undefine.
34346
34347 2010-05-09  Jim Meyering  <meyering@redhat.com>
34348
34349         verify: adjust formatting to be more consistent
34350         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34351         argument-list '('s, and after one comma.
34352
34353 2010-05-09  Bruno Haible  <bruno@clisp.org>
34354
34355         error: More reliable output on mingw.
34356         * lib/error.c: Include <windows.h>.
34357         (is_open): New function.
34358         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34359         defined.
34360
34361 2010-05-09  Bruno Haible  <bruno@clisp.org>
34362
34363         vasnprintf: Fix syntax errors in libintl build on mingw.
34364         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34365         pad_ourselves and prec_ourselves after use.
34366
34367 2010-05-08  Bruno Haible  <bruno@clisp.org>
34368
34369         * lib/config.charset: Update comments for Cygwin 1.7.
34370         * lib/localcharset.c: Likewise.
34371
34372 2010-05-07  Jim Meyering  <meyering@redhat.com>
34373
34374         init.sh: improve comments
34375         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34376         . "${srcdir=.}/init.sh"; path_prepend_ .
34377         Add a note about path_prepend_ and the alternative of using
34378         TESTS_ENVIRONMENT.
34379
34380 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34381
34382         exclude: Unescape hashed patterns in wildcard mode.
34383         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34384         to the hash list.
34385         * tests/test-exclude8.sh: New test case.
34386         * modules/exclude-tests: Add new test.
34387
34388 2010-05-05  Eric Blake  <eblake@redhat.com>
34389
34390         verify: automate tests
34391         * modules/verify-tests: New module.
34392         * tests/test-verify.sh: New file.
34393         * tests/test-verify.c: Guard each negative test with a unique id.
34394         Also avoid warning about unused left hand of comma expressions.
34395
34396 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34397
34398         Further improvements to verify.h, suggested by Eric Blake.
34399         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34400         the GL_* versions, to avoid collision with OpenGL.
34401         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34402         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34403         than testing merely whether it's defined.
34404
34405         Modify verify.h to pacify gcc -Wredundant_decls.
34406         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34407         These use the prefix "GL_" since they're likely to be useful elsewhere.
34408         We may need to break them out into a different .h file.
34409         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34410         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34411         of verify_function__.
34412
34413 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34414
34415         Tests for module pwrite.
34416         * modules/pwrite-tests: New file.
34417         * tests/test-pwrite.sh: New file.
34418         * tests/test-pwrite.c: New file.
34419
34420         New module pwrite.
34421         * lib/unistd.in.h (pwrite): New declaration.
34422         * lib/pwrite.c: New file, from glibc with modifications.
34423         * m4/pwrite.m4: New file.
34424         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34425         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34426         REPLACE_PWRITE.
34427         * modules/pwrite: New file.
34428         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34429         REPLACE_PWRITE.
34430         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34431         * doc/posix-functions/pwrite.texi: Mention the new module.
34432
34433 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34434
34435         pread: Update documentation.
34436         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34437
34438 2010-05-04  Eric Blake  <eblake@redhat.com>
34439
34440         docs: update cygwin progress
34441         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34442         this bug.
34443         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34444         Added in cygwin 1.7.2.
34445         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34446         Likewise.
34447         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34448         Likewise.
34449         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34450         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34451         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34452         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34453         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34454         Mention nproc module.
34455         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34456         bug in cygwin 1.7.5 addition.
34457         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34458         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34459         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34460         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34461         1.7.5.
34462         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34463         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34464         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34465         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34466         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34467         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34468         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34469         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34470         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34471         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34472         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34473         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34474         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34475         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34476         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34477         Likewise.
34478         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34479         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34480         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34481         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34482         Likewise.
34483         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34484         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34485         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34486         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34487         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34488         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34489         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34490         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34491         Likewise.
34492         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34493         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34494         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34495         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34496         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34497         Likewise.
34498         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34499         Likewise.
34500         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34501         Likewise.
34502         * doc/glibc-functions/xdrrec_endofrecord.texi
34503         (xdrrec_endofrecord): Likewise.
34504         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34505         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34506         Likewise.
34507         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34508         Likewise.
34509
34510 2010-05-04  Jim Meyering  <meyering@redhat.com>
34511
34512         gendocs.sh: make its "-s FILE" option more useful
34513         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34514         $PACKAGE to reflect the probably-different basename of "FILE".
34515
34516 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34517
34518         bootstrap: don't ignore download_po_files failure
34519         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34520         failure.
34521
34522 2010-05-03  Jim Meyering  <meyering@redhat.com>
34523
34524         maint.mk: allow to pass options to gendocs.sh
34525         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34526         (gendocs_options_): New overridable variable.
34527
34528         gnu-web-doc-update: don't ignore configure or build failure
34529         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34530
34531         announce-gen: backslash-escape '@'s in --help output
34532         * build-aux/announce-gen: Fix syntax errors.
34533
34534         maint.mk, announce-gen: allow project-specific announcement mail headers
34535         * top/maint.mk (translation_project_): Define default.
34536         (announcement_Cc_, announcement_mail_headers_): Likewise.
34537         (announcement): Invoke announce-gen with new --mail-headers option.
34538         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34539
34540         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34541         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34542         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34543         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34544         line in the "err2" output file when running "make check" in verbose
34545         mode (i.e., with set -x enabled).
34546
34547 2010-05-03  Bruno Haible  <bruno@clisp.org>
34548
34549         wctob: Fix for weird platforms.
34550         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34551         argument value.
34552
34553 2010-05-03  Jim Meyering  <meyering@redhat.com>
34554
34555         maint.mk: prohibit unwarranted use of <strings.h>
34556         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34557         strings.h in a file that does not also use strcasecmp, strncasecmp,
34558         ffs or ffsll.
34559
34560         maint.mk: remove obsolete comments
34561         * top/maint.mk: Remove stale, commented-out rules.
34562
34563 2010-05-02  Bruno Haible  <bruno@clisp.org>
34564
34565         wcwidth: Declare also when it's aliased.
34566         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34567         macro.
34568
34569 2010-05-02  Bruno Haible  <bruno@clisp.org>
34570
34571         Fix regression from 2010-04-25.
34572         * gnulib-tool (func_modules_transitive_closure): Check the status of
34573         all modules, not only of the tests that are of the form foo-tests where
34574         foo is a module.
34575
34576 2010-05-02  Bruno Haible  <bruno@clisp.org>
34577
34578         wctob: Work around nasty Cygwin 1.7.2 bug.
34579         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34580         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34581
34582 2010-05-01  Bruno Haible  <bruno@clisp.org>
34583
34584         fpurge: Sharper test.
34585         * tests/test-fpurge.c (main): Add one more ftell check.
34586         * modules/fpurge-tests (Depends-on): Add ftell.
34587         Suggested by Eric Blake.
34588
34589 2010-05-01  Bruno Haible  <bruno@clisp.org>
34590
34591         ftello: Another test.
34592         * tests/test-ftello3.c: New file.
34593         * modules/ftello-tests (Files): Add it.
34594         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34595         MOSTLYCLEANFILES.
34596
34597         ftell: Another test.
34598         * tests/test-ftell3.c: New file.
34599         * modules/ftell-tests (Files): Add it.
34600         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34601         MOSTLYCLEANFILES.
34602
34603 2010-05-01  Bruno Haible  <bruno@clisp.org>
34604
34605         ftell, ftello: Work around Solaris bug.
34606         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34607         * lib/ftello.c: Include stdio-impl.h.
34608         (ftello): On Solaris, when _IOWRT is set, compute the result without
34609         looking at _IOREAD.
34610         * modules/ftello (Files): Add lib/stdio-impl.h.
34611         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34612         * doc/posix-functions/ftello.texi: Likewise.
34613         Reported by Eric Blake.
34614
34615 2010-05-01  Bruno Haible  <bruno@clisp.org>
34616
34617         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34618         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34619         the _IOWRT flag is also set.
34620
34621 2010-05-01  Bruno Haible  <bruno@clisp.org>
34622
34623         Fix doc about a HP-UX stdio bug.
34624         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34625         * doc/posix-functions/ftello.texi: Likewise.
34626
34627 2010-05-01  Bruno Haible  <bruno@clisp.org>
34628
34629         lseek test: Fix failure on Solaris.
34630         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34631         output.
34632
34633 2010-04-30  Jim Meyering  <meyering@redhat.com>
34634
34635         bootstrap: don't ignore failure to generate po*/Makevars
34636         * build-aux/bootstrap (with_gettext): Don't ignore failure
34637         to create po/Makevars or runtime-po/Makevars.
34638
34639 2010-04-29  Eric Blake  <eblake@redhat.com>
34640
34641         headers: relax license to LGPLv2+
34642         * modules/fcntl-h (License): Relax license.
34643         * modules/getopt-posix (License): Likewise.
34644         * modules/locale (License): Likewise.
34645         * modules/math (License): Likewise.
34646         * modules/pty (License): Likewise.
34647         * modules/sched (License): Likewise.
34648         * modules/search (License): Likewise.
34649         * modules/spawn (License): Likewise.
34650         * modules/stdarg (License): Likewise.
34651         * modules/sysexits (License): Likewise.
34652
34653 2010-04-29  Jim Meyering  <meyering@redhat.com>
34654
34655         inttypes: relax license to LGPLv2+
34656         * modules/inttypes (License): Relax license.
34657
34658 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34659
34660         * top/maint.mk (indent): Run twice to produce idempotent results.
34661
34662 2010-04-28  Bruno Haible  <bruno@clisp.org>
34663
34664         getdate: Generate getdate.c in the source directory.
34665         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34666         MOSTLYCLEANFILES.
34667         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34668
34669 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34670
34671         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34672         is not declared as a const *; avoid warnings in that case.
34673
34674 2010-04-28  Eric Blake  <eblake@redhat.com>
34675
34676         canonicalize-lgpl: avoid compiler warning
34677         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34678         declaration' / 'extraneous semicolon' warning with some compilers.
34679         Reported by Andreas Gruenbacher.
34680
34681 2010-04-28  Jim Meyering  <meyering@redhat.com>
34682
34683         init.sh: ensure a more reliable exit status when exiting via trap
34684         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34685         Inspired by patches from Dmitry V. Levin.
34686         Also trap on signal 3 (SIGQUIT).
34687
34688 2010-04-27  Bruno Haible  <bruno@clisp.org>
34689
34690         Update doc about utimes().
34691         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34692         'utimens' module.
34693         Reported by Andreas Gruenbacher <agruen@suse.de>.
34694
34695 2010-04-27  Eric Blake  <eblake@redhat.com>
34696
34697         full-read, full-write: relax license
34698         * modules/full-read (License): Drop to LGPLv2+.
34699         * modules/full-write (License): Likewise.
34700         * modules/safe-read (License): Likewise.
34701         * modules/safe-write (License): Likewise.
34702
34703         pthread: mention library for linking
34704         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34705
34706 2010-04-27  Jim Meyering  <meyering@redhat.com>
34707
34708         maint.mk: fix a bug introduced in last change
34709         * top/maint.mk (gl_assured_headers_): Now that all names are on
34710         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34711         is not anchored to end of word, it should be adequate.
34712
34713         maint.mk: avoid side-effect in latest syntax-check
34714         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34715         to run commands via $(shell...), and hence to incur cost only when
34716         the new rule is actually run.
34717
34718         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34719         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34720         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34721         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34722         (gl_assured_headers_, az_, AZ_): Define.
34723         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34724
34725 2010-04-26  Jim Meyering  <jim@meyering.net>
34726             Bruno Haible  <bruno@clisp.org>
34727
34728         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34730         Prompted by an exchange with Gilles Espinasse.
34731
34732 2010-04-26  Jim Meyering  <meyering@redhat.com>
34733
34734         git-version-gen: aesthetic tweak
34735         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34736         so that the command remains on a single line.
34737
34738 2010-04-26  Eric Blake  <eblake@redhat.com>
34739
34740         git-version-gen: allow use on EBCDIC hosts
34741         * build-aux/git-version-gen (dirty): Use literal rather than tying
34742         ourselves to ascii.
34743         Reported by Steve Goetze.
34744
34745 2010-04-25  Bruno Haible  <bruno@clisp.org>
34746
34747         netdb: Add support for GNULIB_POSIXCHECK.
34748         * lib/netdb.in.h: Include warn-on-use.h.
34749         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34750         functions are used when GNULIB_POSIXCHECK is defined and the
34751         getaddrinfo module is not in use.
34752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34753         freeaddrinfo, gai_strerror, getnameinfo are declared.
34754         * modules/netdb (Depends-on): Add warn-on-use.
34755         (Makefile.am): Include warn-on-use.h in netdb.h.
34756
34757 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34758
34759         build: avoid "make check" failure without .git/ directory
34760         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34761         there is no .git/ directory.
34762
34763 2010-04-25  Bruno Haible  <bruno@clisp.org>
34764
34765         ptsname: Fix misuse of ttyname_r.
34766         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34767         of errno.
34768
34769 2010-04-25  Bruno Haible  <bruno@clisp.org>
34770
34771         ttyname_r: Make it work on Solaris 10.
34772         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34773         if the system function has the POSIX declaration. Test whether the
34774         function fails if the buffer is less than 128 bytes large.
34775         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34776         system's ttyname_r function. Provide a reasonably large buffer.
34777         * modules/ttyname_r (Depends-on): Add extensions.
34778         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34779
34780 2010-04-25  Bruno Haible  <bruno@clisp.org>
34781
34782         Use the 'extensions' module for some more functions on Solaris.
34783         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34784         module.
34785         * doc/posix-functions/ctime_r.texi: Likewise.
34786         * doc/posix-functions/getgrgid_r.texi: Likewise.
34787         * doc/posix-functions/getgrnam_r.texi: Likewise.
34788         * doc/posix-functions/getpwnam_r.texi: Likewise.
34789         * doc/posix-functions/getpwuid_r.texi: Likewise.
34790         * doc/posix-functions/readdir_r.texi: Likewise.
34791         * doc/posix-functions/sigwait.texi: Likewise.
34792         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34793         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34794
34795 2010-04-25  Bruno Haible  <bruno@clisp.org>
34796
34797         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34798         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34799         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34800         * lib/ttyname_r.c: Include <limits.h>.
34801         (ttyname_r): Define using the system's ttyname_r function, if it exists
34802         and not on Solaris.
34803         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34804         set.
34805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34806         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34807         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34808         Reported by Simon Josefsson.
34809
34810 2010-04-25  Bruno Haible  <bruno@clisp.org>
34811
34812         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34813         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34814         * doc/posix-functions/ctime_r.texi: Likewise.
34815         * doc/posix-functions/getgrgid_r.texi: Likewise.
34816         * doc/posix-functions/getgrnam_r.texi: Likewise.
34817         * doc/posix-functions/getlogin_r.texi: Likewise.
34818         * doc/posix-functions/getpwnam_r.texi: Likewise.
34819         * doc/posix-functions/getpwuid_r.texi: Likewise.
34820         * doc/posix-functions/readdir_r.texi: Likewise.
34821         * doc/posix-functions/sigwait.texi: Likewise.
34822         * doc/posix-functions/ttyname_r.texi: Likewise.
34823         Reported by Simon Josefsson.
34824
34825 2010-04-25  Bruno Haible  <bruno@clisp.org>
34826
34827         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34828         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34829         also to --create-testdir.
34830         (func_acceptable): Don't consider the status of *-tests modules here.
34831         (func_modules_transitive_closure): Consider it here, before including a
34832         test module.
34833         (func_import, func_create_testdir): Set inc_all_direct_tests,
34834         inc_all_indirect_tests.
34835         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34836         --create-testdir and --create-megatestdir.
34837
34838 2010-04-25  Bruno Haible  <bruno@clisp.org>
34839
34840         gnulib-tool: Add --without-*-tests options.
34841         * gnulib-tool (func_usage): Document the --without-*-tests options.
34842         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34843         excl_unportable_tests): New variables.
34844         Fail if they are specified with --import or --update.
34845         (func_acceptable): Respect the excl_*_tests variables.
34846         (func_import): Set the excl_*_tests variables to empty.
34847
34848 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34849             Bruno Haible  <bruno@clisp.org>
34850
34851         Work around a MacOS X 10.4 bug with openpty.
34852         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34853         * tests/test-openpty.c (main): Close the master side explicitly.
34854
34855 2010-04-25  Bruno Haible  <bruno@clisp.org>
34856
34857         strnlen: Fix a C++ test error on MacOS X and Solaris.
34858         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34859         the function is not declared.
34860         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34861         Simon Josefsson.
34862
34863 2010-04-24  Bruno Haible  <bruno@clisp.org>
34864
34865         Avoid a gcc warning.
34866         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34867         of correct type for %08lx directive.
34868         Reported by Eric Blake.
34869
34870 2010-04-24  Bruno Haible  <bruno@clisp.org>
34871
34872         vasnprintf: Correct errno value in case of out-of-memory.
34873         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34874         or sprintf. Use the errno value from SNPRINTF or sprintf.
34875         Reported by Ian Beckwith <ianb@erislabs.net>.
34876
34877 2010-04-24  Bruno Haible  <bruno@clisp.org>
34878
34879         ansi-c++-opt: Find correct compiler when cross-compiling.
34880         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34881         AC_CHECK_PROGS.
34882         Reported by Simon Josefsson.
34883
34884 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34885
34886         vc-list-files: Add support for subversion
34887         * build-aux/vc-list-files: Use "svn list" to generate the list of
34888         files controlled by subversion.
34889
34890 2010-04-23  Jim Meyering  <meyering@redhat.com>
34891
34892         vc-list-files tests: convert to use init.sh
34893         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34894         path_prepend_.
34895         Use Exit, not exit.
34896         Use skip_ rather than open coding it.
34897         Remove trap set-up and compare definitions.
34898         * tests/test-vc-list-files-git.sh: Likewise.
34899         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34900
34901 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34902
34903         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34904         backup files.
34905
34906 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34907
34908         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34909
34910 2010-04-20  Eric Blake  <eblake@redhat.com>
34911
34912         tests: be robust to ignored SIGPIPE
34913         * tests/test-select-in.sh: Consume all output.
34914         * tests/test-lseek.sh: Check correct exit status, while avoiding
34915         EPIPE.
34916
34917 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34918             Bruno Haible  <bruno@clisp.org>
34919
34920         visibility: Don't use -fvisibility if it leads to a warning.
34921         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34922         yes, don't pretend that visibility works if it leads to a warning.
34923         Reported by Mike Gran <spk121@yahoo.com>.
34924
34925 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34926
34927         * build-aux/bootstrap: Use "git -h" for testing for supported options
34928         instead of "git --help".  The short-form option only shows a summary,
34929         and doesn't layout the full man page.  Grep for the full option name
34930         in the summary, too.
34931
34932 2010-04-19  Bruno Haible  <bruno@clisp.org>
34933
34934         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34936         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34937         mention of RELOCATABLE_STRIP.
34938         Reported by Sylvain Beucler <beuc@beuc.net>.
34939
34940 2010-04-19  Bruno Haible  <bruno@clisp.org>
34941
34942         * lib/diffseq.h: Fix typo in comment.
34943         Reported by Eric Blake.
34944
34945 2010-04-19  Bruno Haible  <bruno@clisp.org>
34946
34947         ioctl: Move autoconf macro to a .m4 file.
34948         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34949         * modules/ioctl (Files): Add it.
34950         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34951         Reported by Ian Beckwith <ianb@erislabs.net>.
34952
34953 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34954             Bruno Haible  <bruno@clisp.org>
34955
34956         diffseq: Accommodate use-case with abstract arrays.
34957         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34958         is not defined.
34959         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34960         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34961
34962 2010-04-18  Bruno Haible  <bruno@clisp.org>
34963
34964         * doc/posix-headers/stdbool.texi: More precise wording.
34965
34966 2010-04-17  Jim Meyering  <meyering@redhat.com>
34967
34968         maint.mk: use gnu-style indentation in an embedded perl script
34969         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34970         Rename variable: s/two/last_two_bytes/
34971
34972 2010-04-16  Eric Blake  <eblake@redhat.com>
34973
34974         test-stdbool: skip test that fails with Solaris CC
34975         * tests/test-stdbool.c (f): Skip test that causes compilation
34976         error under buggy C++ compiler.
34977         * lib/stdbool.in.h: Document the limitation.
34978         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34979
34980         setenv: allow compilation with C++
34981         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34982         register keyword.
34983
34984         stdint: allow test to pass with C++
34985         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34986
34987         getopt: allow compilation with C++
34988         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34989         struct.
34990         * lib/getopt.c (_getopt_internal_r): Use correct type.
34991         Reported by Dagobert Michelson, via Joel E. Denny.
34992
34993 2010-04-16  Bruno Haible  <bruno@clisp.org>
34994
34995         Override netdb.h always.
34996         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34997         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34998         Reported by Ludovic Courtès <ludo@gnu.org>.
34999
35000 2010-04-15  Bruno Haible  <bruno@clisp.org>
35001
35002         openpty: Fix mistake from 2010-03-21.
35003         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35004         Reported by Simon Josefsson.
35005
35006 2010-04-15  Eric Blake  <eblake@redhat.com>
35007
35008         test-forkpty: fix expected signature
35009         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35010         Reported by Simon Josefsson.
35011
35012 2010-04-15  Jim Meyering  <meyering@redhat.com>
35013
35014         maint.mk: texinfo_suffix_re_: correct the default regexp
35015         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35016
35017         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35018         make it configurable via texinfo_suffix_re_.
35019
35020 2010-04-14  Eric Blake  <eblake@redhat.com>
35021
35022         strtok_r: relax license to LGPLv2+
35023         * modules/strtok_r (License): Relax license.
35024         Reported by Matthias Bolte.
35025
35026 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35027
35028         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35029         version 1.4.4 by default instead of requiring the libgcrypt
35030         version used during build.  This makes it possible to use the
35031         application with older but still binary compatible libgcrypt
35032         versions.
35033
35034 2010-04-13  Eric Blake  <eblake@redhat.com>
35035
35036         getopt-gnu: match recent glibc fixes and posix ruling
35037         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35038         '+' handling, when requesting extensions.
35039         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35040         'W;' handling.
35041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35042         * doc/posix-functions/getopt.texi (getopt): Document this.
35043         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35044         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35045         Likewise.
35046
35047         getopt: merge bug fixes from glibc
35048         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35049         diagnostics.  Honor '+:' correctly.  Reject ';'.
35050
35051         getopt-posix: detect MacOS bug
35052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35053         optind when missing a required argument.
35054         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35055         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35056         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35057         Likewise.
35058
35059         getopt-posix: avoid spurious failure on Solaris
35060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35061         an indicator that setting optind=1 is sufficient for reset.
35062
35063         getopt-posix: avoid spurious failure on FreeBSD
35064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35065         in POSIX mode, since the m4 test uses it.
35066
35067         gnulib-tool: silence warning on BSD sh
35068         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35069
35070 2010-04-13  Jim Meyering  <meyering@redhat.com>
35071
35072         doc: users.txt: GNU patch now uses gnulib
35073         * users.txt: Add patch.
35074
35075 2010-04-12  Jim Meyering  <meyering@redhat.com>
35076
35077         maint.mk: generate more concise timing data for syntax-check rules
35078         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35079         " done" from each line that reports a syntax-check test duration.
35080
35081 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35082
35083         git-version-gen: use "git update-index..." rather than "git status"
35084         * build-aux/git-version-gen: Use git update-index --refresh, not
35085         "git status".  With some versions of git, "git status" would fail
35086         to update the index and result in an unwarranted "-dirty" suffix.
35087
35088 2010-04-11  Jim Meyering  <meyering@redhat.com>
35089
35090         openat: correct formatting (no semantic change)
35091         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35092         Suggested by Bruno Haible.
35093
35094 2010-04-11  Bruno Haible  <bruno@clisp.org>
35095
35096         Stricter declaration checking in testdirs.
35097         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35098         If for_tests is true, augment AM_CPPFLAGS to define
35099         GNULIB_STRICT_CHECKING.
35100         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35101         GNULIB_STRICT_CHECKING is defined, verify that the function is
35102         declared.
35103
35104 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35105             Bruno Haible  <bruno@clisp.org>
35106
35107         libunistring: Improve configure output.
35108         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35109         Don't say "consider installing GNU libunistring" when checking again
35110         with libiconv.
35111
35112 2010-04-11  Bruno Haible  <bruno@clisp.org>
35113
35114         libunistring: Correct value of $LTLIBUNISTRING.
35115         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35116         correct the value of $LTLIBUNISTRING.
35117
35118 2010-04-11  Bruno Haible  <bruno@clisp.org>
35119
35120         havelib: Add static libraries to LIBS in the right order.
35121         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35122         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35123
35124 2010-04-11  Bruno Haible  <bruno@clisp.org>
35125
35126         libunistring: Detect libunistring also when it depends on libiconv.
35127         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35128         the second AC_LIB_HAVE_LINKFLAGS invocation.
35129
35130 2010-04-11  James Youngman  <jay@gnu.org>
35131
35132         close-stream: declare local scalars to be "const"
35133         * lib/close-stream.c (close_stream): Make boolean variables const
35134         to document the fact that we set but do not change them.
35135
35136 2010-04-11  Bruno Haible  <bruno@clisp.org>
35137
35138         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35139
35140 2010-04-11  Jim Meyering  <meyering@redhat.com>
35141
35142         maint.mk: don't include dist-check.mk
35143         * top/maint.mk: Remove bogus include directive.
35144
35145         maint.mk: improve empty-line-at-EOF check
35146         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35147         solution, rather than tail+Perl-based one.  The latter would read
35148         a few kilobytes from the end of each file, and did not handle empty
35149         files properly.
35150
35151         maint.mk: print the elapsed time for each syntax-check rule
35152         * top/maint.mk (sc_m_rules_): Save start time in a file.
35153         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35154         (local-check): Interpose the .z rules
35155
35156 2010-04-11  Jim Meyering  <meyering@redhat.com>
35157
35158         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35159         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35160         empty file with one that ends in an empty line.
35161
35162 2010-04-10  Bruno Haible  <bruno@clisp.org>
35163
35164         mkdir: Make it work on mingw64.
35165         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35166         * lib/mkdir.c: Update comment.
35167         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35168
35169 2010-04-10  Bruno Haible  <bruno@clisp.org>
35170
35171         Don't override improved macro from newer autoconf.
35172         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35173         autoconf >= 2.62.
35174         Reported by Joel E. Denny <jdenny@clemson.edu>.
35175
35176 2010-04-10  Jim Meyering  <meyering@redhat.com>
35177
35178         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35179         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35180
35181         maint.mk: correct a diagnostic
35182         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35183         in diagnostic; now use $prohibit.
35184
35185 2010-04-10  Bruno Haible  <address@hidden>
35186
35187         fchownat: Fix a C++ test error on Solaris 8.
35188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35189         the function does not exist.
35190
35191 2010-04-10  Bruno Haible  <bruno@clisp.org>
35192
35193         vasnprintf: Add more tests.
35194         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35195         (test_function): Test converting an invalid wide string.
35196
35197         vasnprintf: Correct handling of unconvertible wide string arguments.
35198         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35199         VASNPRINTF.
35200         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35201         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35202         smaller than the expected maximum need for the directive. Set errno to
35203         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35204         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35206         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35207         * modules/vasnprintf (Files): Add m4/printf.m4.
35208         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35209
35210 2010-04-10  Bruno Haible  <bruno@clisp.org>
35211
35212         vasnprintf: Fix crash in %ls directive.
35213         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35214         string is passed as argument to %ls, with no precision and no width.
35215         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35216
35217 2010-04-10  Bruno Haible  <bruno@clisp.org>
35218
35219         vasnprintf: Fix multiple test failures on mingw.
35220         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35221         _snprintf, or snwprintf, not _snwprintf.
35222
35223 2010-04-10  Bruno Haible  <bruno@clisp.org>
35224
35225         write: Fix a C++ test error on mingw.
35226         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35227
35228 2010-04-10  Bruno Haible  <bruno@clisp.org>
35229
35230         vasnprintf test: Reduce code duplication.
35231         * tests/test-vasnprintf.c (test_function): New function, extracted from
35232         test_vasnprintf.
35233         (test_vasnprintf, test_asnprintf): Invoke it.
35234
35235 2010-04-10  Bruno Haible  <bruno@clisp.org>
35236
35237         strnlen: Fix warning in C++ mode on MacOS X.
35238         * lib/string.in.h (strnlen): Use the modern idiom.
35239         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35240         defining strnlen as a macro already in <config.h>.
35241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35242         REPLACE_STRNLEN.
35243         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35245
35246 2010-04-08  James Youngman  <jay@gnu.org>
35247
35248         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35249         the example.
35250
35251 2010-04-09  Jim Meyering  <meyering@redhat.com>
35252
35253         maint.mk: print better diagnostic when there is no $(_hv_file)
35254         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35255         announce that when $(_hv_file) (aka help-version) does not exist.
35256
35257         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35258         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35259         not try to interpret its random input bytes.  Jarno Rajahalme reported
35260         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35261         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35262         (mktempd_): Likewise, just in case.
35263
35264         ftruncate: add two years to projected module removal date: 2012
35265         * m4/ftruncate.m4: Adjust comments.
35266
35267         ftruncate: mark module as obsolete; even MinGW provides it, now
35268         * modules/ftruncate (Status): Obsolete.
35269         (Notice): Say that.
35270         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35271         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35272
35273 2010-04-08  Bruno Haible  <bruno@clisp.org>
35274
35275         Fix side effects from tests-related modules.
35276         * modules/dprintf-posix (Comment): New section.
35277         * modules/fprintf-posix (Comment): Likewise.
35278         * modules/obstack-printf-posix (Comment): Likewise.
35279         * modules/printf-posix (Comment): Likewise.
35280         * modules/snprintf-posix (Comment): Likewise.
35281         * modules/sprintf-posix (Comment): Likewise.
35282         * modules/vasnprintf-posix (Comment): Likewise.
35283         * modules/vasprintf-posix (Comment): Likewise.
35284         * modules/vdprintf-posix (Comment): Likewise.
35285         * modules/vfprintf-posix (Comment): Likewise.
35286         * modules/vprintf-posix (Comment): Likewise.
35287         * modules/vsnprintf-posix (Comment): Likewise.
35288         * modules/vsprintf-posix (Comment): Likewise.
35289         * modules/xprintf-posix (Comment): Likewise.
35290         * modules/xvasprintf-posix (Comment): Likewise.
35291         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35292         * modules/floorf-tests (Depends-on): Likewise.
35293         * modules/round-tests (Depends-on): Likewise.
35294         * modules/roundf-tests (Depends-on): Likewise.
35295         * modules/trunc-tests (Depends-on): Likewise.
35296         * modules/truncf-tests (Depends-on): Likewise.
35297         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35298         'fprintf-posix' module is not present.
35299         * tests/test-floorf2.c (check): Likewise.
35300         * tests/test-trunc2.c (check): Likewise.
35301         * tests/test-truncf2.c (check): Likewise.
35302         * tests/test-round2.c (equal): Likewise.
35303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35304
35305 2010-04-07  Karl Berry  <karl@gnu.org>
35306
35307         * config/srclist.txt,
35308         * config/srclistvars.sh,
35309         * config/srclist-update: doc fixes.
35310
35311 2010-04-07  Jim Meyering  <meyering@redhat.com>
35312
35313         maint.mk: add a PATH crosschecking syntax-check rule
35314         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35315         Useful if you use a test like the one in help-version (coreutils,
35316         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35317         printed by prog --version.
35318
35319 2010-04-06  Bruno Haible  <bruno@clisp.org>
35320
35321         Fix link error on mingw.
35322         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35323         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35324
35325 2010-04-06  Bruno Haible  <bruno@clisp.org>
35326
35327         Assume rmdir exists.
35328         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35329
35330 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35331
35332         doc: update users.txt
35333         * users.txt: Add gcal.
35334
35335 2010-04-06  Jim Meyering  <meyering@redhat.com>
35336
35337         init.sh: simply unset TMPDIR rather than risking env -i
35338         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35339         although it probably works fine on all Unix-based systems, some
35340         systems (Cygwin?) cannot tolerate a totally cleared environment.
35341         Suggestion from Eric Blake.
35342
35343 2010-04-06  Jim Meyering  <meyering@redhat.com>
35344
35345         init.sh: portability fix: use env's POSIX-specified -i option not -u
35346         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35347         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35348
35349 2010-04-05  Bruno Haible  <bruno@clisp.org>
35350
35351         btowc: Work around Cygwin 1.7.2 bug.
35352         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35353         does not map NUL to 0.
35354         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35355
35356 2010-04-05  Bruno Haible  <bruno@clisp.org>
35357
35358         Make the multithread modules work on Cygwin 1.7.2.
35359         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35360         imported symbols can be declared weak, so that it returns "no" on
35361         Cygwin 1.7.2.
35362
35363 2010-04-05  Bruno Haible  <bruno@clisp.org>
35364
35365         Use the module 'strncat'.
35366         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35367
35368         Tests for module 'strncat'.
35369         * modules/strncat-tests: New file.
35370         * tests/test-strncat.c: New file.
35371
35372         New module 'strncat'.
35373         * lib/string.in.h (strncat): New declaration.
35374         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35375         * m4/strncat.m4: New file, based on m4/memchr.m4.
35376         * modules/strncat: New file.
35377         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35378         is declared.
35379         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35380         REPLACE_STRNCAT.
35381         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35382         REPLACE_STRNCAT.
35383         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35384         module.
35385         * tests/test-string-c++.cc: Check signature of strncat.
35386
35387 2010-04-05  Jim Meyering  <meyering@redhat.com>
35388
35389         xstrtoumax-tests: convert to use init.sh
35390         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35391         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35392         Use Exit, not exit.
35393         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35394
35395         xstrtoimax-tests: convert to use init.sh
35396         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35397         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35398         Use Exit, not exit.
35399         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35400
35401 2010-04-05  Bruno Haible  <bruno@clisp.org>
35402
35403         sys_socket: Avoid #define replacements in C++ mode.
35404         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35405         warning to the function if possible, rather than #defining the symbol
35406         to a dysfunctional alias.
35407
35408 2010-04-05  Bruno Haible  <bruno@clisp.org>
35409
35410         fseeko: Fix C++ test error on mingw.
35411         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35412         gl_FUNC_FSEEKO.
35413         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35414         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35415         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35416         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35417
35418 2010-04-05  Bruno Haible  <bruno@clisp.org>
35419
35420         duplocale: Improve test output.
35421         * tests/test-duplocale.c (main): Print reason for skipped test.
35422
35423 2010-04-05  Bruno Haible  <bruno@clisp.org>
35424
35425         Assume rmdir exists.
35426         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35427         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35428
35429 2010-04-05  Bruno Haible  <bruno@clisp.org>
35430
35431         Fix link error on Solaris 8 with cc.
35432         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35433
35434 2010-04-05  Bruno Haible  <bruno@clisp.org>
35435
35436         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35437         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35438
35439 2010-04-05  Bruno Haible  <bruno@clisp.org>
35440
35441         vasprintf: Update documentation.
35442         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35443
35444 2010-04-05  Bruno Haible  <bruno@clisp.org>
35445
35446         ptsname: Improve test.
35447         * tests/test-ptsname.c (main): Also try the various master names of BSD
35448         systems.
35449
35450 2010-04-05  Bruno Haible  <bruno@clisp.org>
35451
35452         memchr: Avoid a possible C++ test error.
35453         * lib/string.in.h (memchr): Provide declaration if function is missing.
35454         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35455         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35457         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35458
35459 2010-04-05  Bruno Haible  <bruno@clisp.org>
35460
35461         strtok_r: Improve idiom.
35462         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35463         AC_LIBOBJ is used.
35464
35465 2010-04-05  Bruno Haible  <bruno@clisp.org>
35466
35467         strdup: Improve idiom.
35468         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35469         AC_LIBOBJ is used.
35470         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35471         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35472         when AC_LIBOBJ is used.
35473
35474 2010-04-05  Bruno Haible  <bruno@clisp.org>
35475
35476         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35477         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35478         don't set REPLACE_MBSINIT to 1.
35479         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35480         don't set REPLACE_MBRTOWC to 1.
35481         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35482         exist, don't set REPLACE_MBSRTOWCS to 1.
35483         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35484         exist, don't set REPLACE_MBSNRTOWCS to 1.
35485         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35486         don't set REPLACE_WCRTOMB to 1.
35487         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35488         exist, don't set REPLACE_WCSRTOMBS to 1.
35489         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35490         exist, don't set REPLACE_WCSNRTOMBS to 1.
35491
35492 2010-04-05  Bruno Haible  <bruno@clisp.org>
35493
35494         ldexpl: Improve idiom.
35495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35496         make sure to set HAVE_DECL_LDEXPL to 0.
35497
35498 2010-04-05  Jim Meyering  <meyering@redhat.com>
35499
35500         xstrtol-tests: convert to use init.sh
35501         * modules/xstrtol-tests (Files): Add tests/init.sh.
35502         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35503         Use Exit, not exit.
35504         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35505
35506         atexit-tests: convert to use init.sh
35507         * modules/atexit-tests (Files): Add tests/init.sh.
35508         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35509         Use Exit, not exit.
35510         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35511
35512         init.sh: fix typo
35513         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35514
35515         init.sh: make it easier for a test script to write to the tty, ...
35516         when using automake's parallel-tests mode.
35517         * tests/init.sh (stderr_fileno_): Define overridable variable.
35518         (warn_): New function, to use it.
35519         (fail_, skip_, framework_failure_): Use warn_.
35520
35521 2010-04-04  Bruno Haible  <bruno@clisp.org>
35522
35523         btowc: Avoid warning.
35524         * lib/btowc.c: Include <stdlib.h>.
35525         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35526
35527 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35528             Bruno Haible  <bruno@clisp.org>
35529
35530         wchar: Port to NetBSD 1.5.
35531         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35532         * lib/wctype.in.h (WEOF): Likewise.
35533
35534 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35535             Bruno Haible  <bruno@clisp.org>
35536
35537         Port extended stdio to NetBSD 1.5.
35538         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35539         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35540         older.
35541
35542 2010-04-04  Bruno Haible  <bruno@clisp.org>
35543
35544         string: Remove unused substitution.
35545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35546         HAVE_DECL_STRERROR.
35547         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35548
35549 2010-04-04  Bruno Haible  <bruno@clisp.org>
35550
35551         strtod: Avoid a possible C++ test error.
35552         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35553         set REPLACE_STRTOD.
35554
35555 2010-04-04  Bruno Haible  <bruno@clisp.org>
35556
35557         strerror: Update documentation.
35558         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35559
35560 2010-04-04  Bruno Haible  <bruno@clisp.org>
35561
35562         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35563         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35564         _GL_CXXALIAS_SYS_CAST.
35565
35566 2010-04-04  Bruno Haible  <bruno@clisp.org>
35567
35568         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35569         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35570         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35571         REPLACE_FREXPL to 1.
35572         * doc/posix-functions/frexpl.texi: Update documentation.
35573
35574 2010-04-04  Bruno Haible  <bruno@clisp.org>
35575
35576         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35577         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35578
35579 2010-04-04  Bruno Haible  <bruno@clisp.org>
35580
35581         Implement nanosleep for native Windows.
35582         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35583
35584 2010-04-04  Bruno Haible  <bruno@clisp.org>
35585
35586         math: Fix some C++ test errors on Solaris 8.
35587         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35588
35589 2010-04-04  Bruno Haible  <bruno@clisp.org>
35590
35591         math: Fix some C++ test errors on Cygwin.
35592         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35593         truncl): Provide declaration if the system does not have it.
35594         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35595         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35596         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35597         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35598         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35599         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35600         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35601         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35602         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35603         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35604         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35605         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35606         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35607         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35608         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35609         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35611         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35612         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35613         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35614         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35615         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35616
35617 2010-04-04  Bruno Haible  <bruno@clisp.org>
35618
35619         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35620         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35621         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35622         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35623         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35624         * m4/isinf.m4 (gl_ISINF): Likewise.
35625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35626
35627 2010-04-04  Bruno Haible  <bruno@clisp.org>
35628
35629         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35630         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35631
35632 2010-04-04  Bruno Haible  <bruno@clisp.org>
35633
35634         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35635         * modules/tmpfile (configure.ac): Update.
35636
35637         tmpfile: Fix C++ test error on mingw.
35638         * lib/stdio.in.h (tmpfile): New declaration.
35639         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35640         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35641         * modules/tmpfile (Depends-on): Add stdio.
35642         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35643         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35644         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35645         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35646         REPLACE_TMPFILE.
35647         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35648
35649 2010-04-04  Bruno Haible  <bruno@clisp.org>
35650
35651         ioctl: Fix C++ test error on mingw.
35652         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35653         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35654         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35655
35656 2010-04-03  Bruno Haible  <bruno@clisp.org>
35657
35658         wcwidth: Fix C++ test error on mingw.
35659         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35661         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35662
35663 2010-04-03  Bruno Haible  <bruno@clisp.org>
35664
35665         nanosleep: Fix C++ test error on mingw.
35666         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35667         * lib/time.in.h (nanosleep): Use modern idiom.
35668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35669         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35670         REPLACE_NANOSLEEP to 1.
35671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35672         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35673
35674 2010-04-03  Bruno Haible  <bruno@clisp.org>
35675
35676         strptime: Fix C++ test error on mingw.
35677         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35678         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35679         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35680         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35681         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35682         not REPLACE_STRPTIME.
35683         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35684         REPLACE_STRPTIME.
35685
35686 2010-04-03  Bruno Haible  <bruno@clisp.org>
35687
35688         timegm: Fix C++ test error on mingw.
35689         * lib/time.in.h (timegm): Use modern idiom.
35690         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35691         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35692         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35693         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35694
35695 2010-04-03  Bruno Haible  <bruno@clisp.org>
35696
35697         timegm: Assume declaration if function exists.
35698         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35699         if it exists. Don't clobber ac_cv_func_timegm.
35700
35701 2010-04-03  Bruno Haible  <bruno@clisp.org>
35702
35703         time_r: Fix C++ test error on mingw.
35704         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35705         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35706         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35707         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35708         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35709
35710 2010-04-03  Bruno Haible  <bruno@clisp.org>
35711
35712         time_r: Minor updates.
35713         * modules/time_r (Description): Mention the provided functions.
35714         * lib/time_r.c: Don't include <string.h>.
35715         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35716         * doc/posix-functions/localtime_r.texi: Likewise.
35717
35718 2010-04-03  Bruno Haible  <bruno@clisp.org>
35719
35720         time: Fix regression introduced on 2010-03-08.
35721         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35722         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35723
35724 2010-04-03  Jim Meyering  <meyering@redhat.com>
35725
35726         maint.mk: don't silently disable project-specific syntax-check rules
35727         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35728         that they need to convert their project-specific syntax-check rules
35729         to use the new _sc_search_regexp.
35730
35731 2010-04-03  Bruno Haible  <bruno@clisp.org>
35732
35733         fchdir: Fix regression introduced on 2010-03-08.
35734         * lib/unistd.in.h (fchdir): Fix declaration.
35735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35737         REPLACE_FCHDIR.
35738         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35739         REPLACE_FCHDIR.
35740
35741 2010-04-03  Bruno Haible  <bruno@clisp.org>
35742
35743         getpagesize: Fix C++ test error on mingw.
35744         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35745         system does not declare the function.
35746         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35747         declared.
35748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35749         HAVE_DECL_GETPAGESIZE.
35750         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35751
35752 2010-04-03  Bruno Haible  <bruno@clisp.org>
35753
35754         stdio: Make C++ tests work on mingw.
35755         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35756         does not declare the function.
35757
35758 2010-04-03  Bruno Haible  <bruno@clisp.org>
35759
35760         ftello: Fix C++ test error on mingw.
35761         * lib/stdio.in.h (ftello): Use modern idiom.
35762         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35763         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35764         is missing and that it needs to be replaced.
35765         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35767         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35768
35769 2010-04-03  Bruno Haible  <bruno@clisp.org>
35770
35771         fseeko: Fix C++ test error on mingw.
35772         * lib/stdio.in.h (fseeko): Use modern idiom.
35773         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35775         is missing and that it needs to be replaced.
35776         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35778         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35779
35780 2010-04-03  Bruno Haible  <bruno@clisp.org>
35781
35782         mkstemp: Fix C++ test error on mingw.
35783         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35785         function is missing and that it needs to be replaced.
35786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35787         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35788
35789 2010-04-03  Bruno Haible  <bruno@clisp.org>
35790
35791         stpncpy: Fix C++ test error on mingw.
35792         * lib/string.in.h (stpncpy): Use modern idiom.
35793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35794         function is missing and that it needs to be replaced.
35795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35796         REPLACE_STPNCPY.
35797         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35798
35799 2010-04-03  Bruno Haible  <bruno@clisp.org>
35800
35801         sys_stat: Fix C++ test error on mingw.
35802         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35803         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35804
35805 2010-04-03  Bruno Haible  <bruno@clisp.org>
35806
35807         pty: Update doc.
35808         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35809
35810 2010-04-03  Bruno Haible  <bruno@clisp.org>
35811
35812         unistd: Fix C++ test error on mingw.
35813         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35814
35815 2010-04-03  Bruno Haible  <bruno@clisp.org>
35816
35817         Update doc regarding mingw.
35818         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35819         * doc/glibc-functions/login_tty.texi: Likewise.
35820         * doc/glibc-functions/forkpty.texi: Likewise.
35821
35822 2010-04-03  Bruno Haible  <bruno@clisp.org>
35823
35824         stdlib: Avoid compilation failure of c-strtold on mingw.
35825         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35826
35827 2010-04-03  Bruno Haible  <bruno@clisp.org>
35828
35829         locale: Make C++ tests work on Cygwin and mingw.
35830         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35831         cannot provide the function.
35832         Reported by Simon Josefsson.
35833
35834 2010-04-03  Bruno Haible  <bruno@clisp.org>
35835
35836         localename: Port to MacOS X 10.6.
35837         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35838         memory layout of the locales in MacOS X 10.6 as well.
35839         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35840
35841 2010-04-02  Bruno Haible  <bruno@clisp.org>
35842
35843         gnulib-tool: Ensure that long-running tests are executed last.
35844         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35845         running tests after the one for the other tests.
35846
35847 2010-04-02  Bruno Haible  <bruno@clisp.org>
35848
35849         gnulib-tool: Ensure the tests in the main directory are executed first.
35850         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35851         start with the current directory.
35852
35853 2010-04-02  Bruno Haible  <bruno@clisp.org>
35854
35855         Tests for module 'havelib', moved here from GNU gettext.
35856         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35857         modifications.
35858         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35859         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35860         with modifications.
35861         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35862         modifications.
35863         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35864         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35865         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35866         with modifications.
35867         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35868         with modifications.
35869         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35870         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35871         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35872         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35873         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35874         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35875         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35876         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35877         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35878         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35879         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35880         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35881         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35882         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35883         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35884         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35885         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35886         with modifications.
35887         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35888         with modifications.
35889         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35890         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35891         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35892         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35893         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35894         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35895         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35896         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35897         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35898         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35899         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35900         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35901         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35902         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35903         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35904         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35905         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35906         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35907         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35908         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35909         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35910         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35911         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35912         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35913         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35914         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35915         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35916         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35917         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35918         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35919         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35920         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35921         * tests/havelib/rpathx/rpathx.c: New file, from
35922         gettext/autoconf-lib-link.
35923         * tests/havelib/rpathx/Makefile.am: New file, from
35924         gettext/autoconf-lib-link.
35925         * tests/havelib/rpathx/configure.ac: New file, from
35926         gettext/autoconf-lib-link with modifications.
35927         * tests/havelib/rpathy/rpathy.c: New file, from
35928         gettext/autoconf-lib-link.
35929         * tests/havelib/rpathy/Makefile.am: New file, from
35930         gettext/autoconf-lib-link.
35931         * tests/havelib/rpathy/configure.ac: New file, from
35932         gettext/autoconf-lib-link with modifications.
35933         * tests/havelib/rpathz/rpathz.c: New file, from
35934         gettext/autoconf-lib-link.
35935         * tests/havelib/rpathz/Makefile.am: New file, from
35936         gettext/autoconf-lib-link.
35937         * tests/havelib/rpathz/configure.ac: New file, from
35938         gettext/autoconf-lib-link with modifications.
35939         * tests/havelib/rpathlx/usex.c: New file, from
35940         gettext/autoconf-lib-link.
35941         * tests/havelib/rpathlx/Makefile.am: New file, from
35942         gettext/autoconf-lib-link.
35943         * tests/havelib/rpathlx/configure.ac: New file, from
35944         gettext/autoconf-lib-link with modifications.
35945         * tests/havelib/rpathly/usey.c: New file, from
35946         gettext/autoconf-lib-link.
35947         * tests/havelib/rpathly/Makefile.am: New file, from
35948         gettext/autoconf-lib-link.
35949         * tests/havelib/rpathly/configure.ac: New file, from
35950         gettext/autoconf-lib-link with modifications.
35951         * tests/havelib/rpathlz/usez.c: New file, from
35952         gettext/autoconf-lib-link.
35953         * tests/havelib/rpathlz/Makefile.am: New file, from
35954         gettext/autoconf-lib-link.
35955         * tests/havelib/rpathlz/configure.ac: New file, from
35956         gettext/autoconf-lib-link with modifications.
35957         * tests/havelib/rpathlyx/usey.c: New file, from
35958         gettext/autoconf-lib-link.
35959         * tests/havelib/rpathlyx/Makefile.am: New file, from
35960         gettext/autoconf-lib-link.
35961         * tests/havelib/rpathlyx/configure.ac: New file, from
35962         gettext/autoconf-lib-link with modifications.
35963         * tests/havelib/rpathlzyx/usez.c: New file, from
35964         gettext/autoconf-lib-link.
35965         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35966         gettext/autoconf-lib-link.
35967         * tests/havelib/rpathlzyx/configure.ac: New file, from
35968         gettext/autoconf-lib-link with modifications.
35969         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35970         with modifications.
35971
35972 2010-04-02  Bruno Haible  <bruno@clisp.org>
35973
35974         gnulib-tool: Create distributed built sources also for the tests.
35975         * gnulib-tool (func_create_testdir): Also generate distributed built
35976         sources in the tests directory.
35977
35978 2010-04-02  Bruno Haible  <bruno@clisp.org>
35979
35980         gnulib-tool: Obey user's environment variables.
35981         * gnulib-tool (func_create_testdir): When creating built sources,
35982         respect the environment variables for autoconf, automake, etc. given by
35983         the user.
35984
35985 2010-04-02  Bruno Haible  <bruno@clisp.org>
35986
35987         gnulib-tool: Provide the value of --m4-base to modules.
35988         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35989         of gl_m4_base.
35990
35991 2010-04-02  Eric Blake  <eblake@redhat.com>
35992
35993         maint.mk: fix some fallout
35994         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35995         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35996
35997 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35998
35999         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36000         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36001         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36002         (sc_cast_of_x_alloc_return_value): Likewise.
36003         (sc_cast_of_alloca_return_value): Likewise.
36004         (sc_space_tab): Likewise.
36005         (sc_prohibit_atoi_atof): Likewise.
36006         (sc_prohibit_magic_number_exit): Likewise.
36007         (sc_error_exit_success): Likewise.
36008         (sc_file_system): Likewise.
36009         (sc_prohibit_have_config_h): Likewise.
36010         (sc_require_config_h): Likewise.
36011         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36012         (sc_obsolete_symbols): Likewise.
36013         (sc_changelog): Likewise.
36014         (sc_program_name): Likewise.
36015         (sc_the_the): Likewise.
36016         (sc_trailing_blank): Likewise.
36017         (sc_two_space_separator_in_usage): Likewise.
36018         (sc_useless_cpp_parens): Likewise.
36019         (sc_GPL_version): Likewise.
36020         (sc_GFDL_version): Likewise.
36021         (sc_texinfo_acronym): Likewise.
36022         (sc_prohibit_cvs_keyword): Likewise.
36023         (sc_prohibit_stat_st_blocks): Likewise.
36024         (sc_prohibit_S_IS_definition): Likewise.
36025         (sc_redundant_const): Likewise.
36026         (sc_makefile_TAB_only_indentation): Likewise.
36027         (sc_m4_quote_check): Likewise.
36028         (sc_makefile_path_separator_check): Likewise.
36029         (sc_copyright_check): Likewise.
36030         (sc_Wundef_boolean): Likewise.
36031         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36032
36033         maint.mk: match 0 or more whitespace-before-function-call '('
36034         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36035         that have zero or two-and-more spaces between the function name
36036         and the open parenthesis.
36037         (sc_error_message_warn_fatal): Likewise.
36038         (sc_error_message_uppercase): Likewise.
36039         (sc_error_message_period): Likewise.
36040
36041 2010-03-31  Eric Blake  <eblake@redhat.com>
36042
36043         maint.mk: check for [ as well as test
36044         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36045         Based on a libvirt report by Matthias Bolte.
36046
36047         gnumakefile: don't squelch _version output
36048         * top/GNUmakefile (_version): Create one-shot dependency rather
36049         than using $(shell) when version must be regenerated.
36050         (_autoreconf): Run verbosely, by default.
36051
36052         sys_time: avoid compiler warnings
36053         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36054         unconditional, fixing regression from 2010-03-29.
36055         Reported by Simon Josefsson.
36056
36057 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36058
36059         maint.mk: s/_header_without_use/_sc_header_without_use/
36060         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36061         (sc_prohibit_assert_without_use): Use the new name.
36062         (sc_prohibit_close_stream_without_use): Likewise.
36063         (sc_prohibit_getopt_without_use): Likewise.
36064         (sc_prohibit_quotearg_without_use): Likewise.
36065         (sc_prohibit_quote_without_use): Likewise.
36066         (sc_prohibit_long_options_without_use): Likewise.
36067         (sc_prohibit_inttostr_without_use): Likewise.
36068         (sc_prohibit_ignore_value_without_use): Likewise.
36069         (sc_prohibit_error_without_use): Likewise.
36070         (sc_prohibit_xalloc_without_use): Likewise.
36071         (sc_prohibit_hash_without_use): Likewise.
36072         (sc_prohibit_hash_pjw_without_use): Likewise.
36073         (sc_prohibit_safe_read_without_use): Likewise.
36074         (sc_prohibit_argmatch_without_use): Likewise.
36075         (sc_prohibit_canonicalize_without_use): Likewise.
36076         (sc_prohibit_root_dev_ino_without_use): Likewise.
36077         (sc_prohibit_openat_without_use): Likewise.
36078         (sc_prohibit_c_ctype_without_use): Likewise.
36079         (sc_prohibit_signal_without_use): Likewise.
36080         (sc_prohibit_intprops_without_use): Likewise.
36081
36082 2010-03-30  Eric Blake  <eblake@redhat.com>
36083
36084         maint: improve module indicators
36085         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36086         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36087         columns, and avoid extra macro expansion.
36088
36089         fdopendir: work around FreeBSD bug
36090         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36091         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36092         * modules/dirent (Makefile.am): Substitute it.
36093         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36094         declaration.
36095         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36096         fix.
36097         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36098
36099 2010-03-29  Bruno Haible  <bruno@clisp.org>
36100
36101         Emit #pragma system_header after the inclusion guard, not before.
36102         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36103         guard that spans the entire file, not before. This enables an
36104         optimization in GCC's preprocessor.
36105         * lib/ctype.in.h: Likewise.
36106         * lib/dirent.in.h: Likewise.
36107         * lib/errno.in.h: Likewise.
36108         * lib/float.in.h: Likewise.
36109         * lib/getopt.in.h: Likewise.
36110         * lib/iconv.in.h: Likewise.
36111         * lib/langinfo.in.h: Likewise.
36112         * lib/locale.in.h: Likewise.
36113         * lib/math.in.h: Likewise.
36114         * lib/netdb.in.h: Likewise.
36115         * lib/netinet_in.in.h: Likewise.
36116         * lib/pty.in.h: Likewise.
36117         * lib/sched.in.h: Likewise.
36118         * lib/se-selinux.in.h: Likewise.
36119         * lib/search.in.h: Likewise.
36120         * lib/spawn.in.h: Likewise.
36121         * lib/stdarg.in.h: Likewise.
36122         * lib/stdint.in.h: Likewise.
36123         * lib/string.in.h: Likewise.
36124         * lib/strings.in.h: Likewise.
36125         * lib/sys_file.in.h: Likewise.
36126         * lib/sys_ioctl.in.h: Likewise.
36127         * lib/sys_time.in.h: Likewise.
36128         * lib/sys_times.in.h: Likewise.
36129         * lib/sys_utsname.in.h: Likewise.
36130         * lib/sys_wait.in.h: Likewise.
36131         * lib/sysexits.in.h: Likewise.
36132         * lib/wctype.in.h: Likewise.
36133
36134 2010-03-28  James Youngman  <jay@gnu.org>
36135
36136         save-cwd: don't leak a file descriptor when the caller execs.
36137         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36138         saved file descriptor.
36139         * modules/save-cwd (Depends-on): Depend on cloexec.
36140
36141 2010-03-29  Bruno Haible  <bruno@clisp.org>
36142
36143         Remove vestiges of fts-lgpl module.
36144         * lib/fts_.h: Assume GNULIB_FTS is 1.
36145         * lib/fts.c: Likewise.
36146         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36147
36148 2010-03-28  Bruno Haible  <bruno@clisp.org>
36149
36150         Fix definition of tests witness macro.
36151         * gnulib-tool (func_import): Fix definition of witness macro.
36152
36153 2010-03-28  Bruno Haible  <bruno@clisp.org>
36154
36155         Fix ioctl's protoype on glibc systems.
36156         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36157         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36158         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36159         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36160         signature. If not, arrange to replace the ioctl function.
36161         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36162         REPLACE_IOCTL.
36163         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36164         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36165         Reported by Ludovic Courtès <ludo@gnu.org>.
36166
36167 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36168
36169         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36170         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36171         made it so grep -r --include=GLOB* ... did not work.
36172
36173 2010-03-26  Jim Meyering  <meyering@redhat.com>
36174             Eric Blake  <eblake@redhat.com>
36175
36176         maint.mk: prohibit use of test's -o and -a operators
36177         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36178
36179 2010-03-28  Bruno Haible  <bruno@clisp.org>
36180
36181         Remove unused GNULIB_XYZ macro definitions.
36182         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36183         invocation.
36184
36185 2010-03-28  Bruno Haible  <bruno@clisp.org>
36186
36187         Mark privileged tests modules.
36188         * modules/idpriv-drop-tests (Status): New section.
36189         * modules/idpriv-droptemp-tests (Status): New section.
36190
36191 2010-03-28  Bruno Haible  <bruno@clisp.org>
36192
36193         Split C++ tests into separate tests modules.
36194         * modules/dirent-c++-tests: New file, extracted from
36195         modules/dirent-tests.
36196         * modules/dirent-tests: Depend on it.
36197         * modules/fcntl-h-c++-tests: New file, extracted from
36198         modules/fcntl-h-tests.
36199         * modules/fcntl-h-tests: Depend on it.
36200         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36201         * modules/glob-tests: Depend on it.
36202         * modules/iconv-h-c++-tests: New file, extracted from
36203         modules/iconv-h-tests.
36204         * modules/iconv-h-tests: Depend on it.
36205         * modules/langinfo-c++-tests: New file, extracted from
36206         modules/langinfo-tests.
36207         * modules/langinfo-tests: Depend on it.
36208         * modules/locale-c++-tests: New file, extracted from
36209         modules/locale-tests.
36210         * modules/locale-tests: Depend on it.
36211         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36212         * modules/math-tests: Depend on it.
36213         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36214         * modules/pty-tests: Depend on it.
36215         * modules/search-c++-tests: New file, extracted from
36216         modules/search-tests.
36217         * modules/search-tests: Depend on it.
36218         * modules/signal-c++-tests: New file, extracted from
36219         modules/signal-tests.
36220         * modules/signal-tests: Depend on it.
36221         * modules/spawn-c++-tests: New file, extracted from
36222         modules/spawn-tests.
36223         * modules/spawn-tests: Depend on it.
36224         * modules/stdio-c++-tests: New file, extracted from
36225         modules/stdio-tests.
36226         * modules/stdio-tests: Depend on it.
36227         * modules/stdlib-c++-tests: New file, extracted from
36228         modules/stdlib-tests.
36229         * modules/stdlib-tests: Depend on it.
36230         * modules/string-c++-tests: New file, extracted from
36231         modules/string-tests.
36232         * modules/string-tests: Depend on it.
36233         * modules/sys_ioctl-c++-tests: New file, extracted from
36234         modules/sys_ioctl-tests.
36235         * modules/sys_ioctl-tests: Depend on it.
36236         * modules/sys_select-c++-tests: New file, extracted from
36237         modules/sys_select-tests.
36238         * modules/sys_select-tests: Depend on it.
36239         * modules/sys_socket-c++-tests: New file, extracted from
36240         modules/sys_socket-tests.
36241         * modules/sys_socket-tests: Depend on it.
36242         * modules/sys_stat-c++-tests: New file, extracted from
36243         modules/sys_stat-tests.
36244         * modules/sys_stat-tests: Depend on it.
36245         * modules/sys_time-c++-tests: New file, extracted from
36246         modules/sys_time-tests.
36247         * modules/sys_time-tests: Depend on it.
36248         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36249         * modules/time-tests: Depend on it.
36250         * modules/unistd-c++-tests: New file, extracted from
36251         modules/unistd-tests.
36252         * modules/unistd-tests: Depend on it.
36253         * modules/wchar-c++-tests: New file, extracted from
36254         modules/wchar-tests.
36255         * modules/wchar-tests: Depend on it.
36256         * modules/wctype-c++-tests: New file, extracted from
36257         modules/wctype-tests.
36258         * modules/wctype-tests: Depend on it.
36259         Reported by Simon Josefsson.
36260
36261 2010-03-28  Bruno Haible  <bruno@clisp.org>
36262
36263         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36264         * gnulib-tool (func_exists_module): New function, extracted from
36265         func_verify_module.
36266         (func_verify_module): Use it.
36267         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36268         'foo' only if 'foo' exists.
36269         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36270         module.
36271
36272 2010-03-28  Bruno Haible  <bruno@clisp.org>
36273
36274         gnulib-tool: Add support for special categories of tests.
36275         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36276         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36277         (func_usage): Document them.
36278         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36279         inc_unportable_tests, inc_all_tests): New variables.
36280         (func_acceptable): Consider these variables.
36281         (func_modules_transitive_closure): Make it work when the 'Status' field
36282         consists of multiple words.
36283         (func_import): Store and restore the values of inc_cxx_tests,
36284         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36285         inc_all_tests in gnulib-comp.m4.
36286         (func_create_testdir): Set inc_all_tests to true.
36287         * doc/gnulib.texi (Extra tests modules): New section.
36288         Suggested by Jim Meyering.
36289
36290 2010-03-28  Bruno Haible  <bruno@clisp.org>
36291
36292         ansi-c++-opt: Allow turning off the C++ build by default.
36293         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36294         gl_CXX_CHOICE_DEFAULT_NO is defined.
36295         Requested by Eric Blake.
36296
36297 2010-03-28  Bruno Haible  <bruno@clisp.org>
36298
36299         unistd: Avoid #define replacements in C++ mode.
36300         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36301         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36302         setsockopt, shutdown, select): In C++, attach a warning to the function
36303         if possible, rather than #defining the symbol to a dysfunctional alias.
36304         Reported by John W. Eaton <jwe@gnu.org>.
36305
36306 2010-03-28  Bruno Haible  <bruno@clisp.org>
36307
36308         Fix link errors on mingw.
36309         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36310         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36311         $(LIBSOCKET).
36312         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36313         $(LIBSOCKET).
36314
36315 2010-03-28  Bruno Haible  <bruno@clisp.org>
36316             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36317
36318         lib-ignore: Determine different options for different compilers.
36319         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36320         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36321         Add comments.
36322         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36323         * NEWS: Mention the change.
36324
36325 2010-03-27  Bruno Haible  <bruno@clisp.org>
36326
36327         Remove unused GNULIB_XYZ macro definitions.
36328         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36329         * modules/fseek (configure.ac): Likewise.
36330         * modules/ioctl (configure.ac): Likewise.
36331         * modules/open (configure.ac): Likewise.
36332         * modules/stdlib-safer (configure.ac): Likewise.
36333
36334 2010-03-27  Bruno Haible  <bruno@clisp.org>
36335
36336         Add a remark about certain modules.
36337         * modules/malloc (Comment): New section.
36338         * modules/realloc (Comment): Likewise.
36339         * modules/sigpipe (Comment): Likewise.
36340
36341 2010-03-27  Bruno Haible  <bruno@clisp.org>
36342
36343         Resolve conflict between the two kinds of module indicators.
36344         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36345         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36346         * modules/canonicalize (configure.ac): Invoke
36347         gl_MODULE_INDICATOR_FOR_TESTS.
36348         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36349         GNULIB_XYZ.
36350         * tests/test-dirent-c++.cc: Likewise.
36351         * tests/test-dirent-safer.c: Likewise.
36352         * tests/test-dup2.c: Likewise.
36353         * tests/test-fchdir.c: Likewise.
36354         * tests/test-fcntl-h-c++.cc: Likewise.
36355         * tests/test-getopt.c: Likewise.
36356         * tests/test-getopt.h: Likewise.
36357         * tests/test-langinfo-c++.cc: Likewise.
36358         * tests/test-locale-c++.cc: Likewise.
36359         * tests/test-math-c++.cc: Likewise.
36360         * tests/test-pty-c++.cc: Likewise.
36361         * tests/test-search-c++.cc: Likewise.
36362         * tests/test-signal-c++.cc: Likewise.
36363         * tests/test-spawn-c++.cc: Likewise.
36364         * tests/test-stdio-c++.cc: Likewise.
36365         * tests/test-stdlib-c++.cc: Likewise.
36366         * tests/test-string-c++.cc: Likewise.
36367         * tests/test-sys_ioctl-c++.cc: Likewise.
36368         * tests/test-sys_select-c++.cc: Likewise.
36369         * tests/test-sys_socket-c++.cc: Likewise.
36370         * tests/test-sys_stat-c++.cc: Likewise.
36371         * tests/test-sys_time-c++.cc: Likewise.
36372         * tests/test-time-c++.cc: Likewise.
36373         * tests/test-unistd-c++.cc: Likewise.
36374         * tests/test-wchar-c++.cc: Likewise.
36375         * tests/uninorm/test-u8-nfc.c: Likewise.
36376         * tests/uninorm/test-u8-nfd.c: Likewise.
36377         * tests/uninorm/test-u8-nfkc.c: Likewise.
36378         * tests/uninorm/test-u8-nfkd.c: Likewise.
36379         * tests/uninorm/test-u16-nfc.c: Likewise.
36380         * tests/uninorm/test-u16-nfd.c: Likewise.
36381         * tests/uninorm/test-u16-nfkc.c: Likewise.
36382         * tests/uninorm/test-u16-nfkd.c: Likewise.
36383         * tests/uninorm/test-u32-nfc.c: Likewise.
36384         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36385         * tests/uninorm/test-u32-nfd.c: Likewise.
36386         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36387         * tests/uninorm/test-u32-nfkc.c: Likewise.
36388         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36389         * tests/uninorm/test-u32-nfkd.c: Likewise.
36390         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36391         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36392
36393 2010-03-27  Bruno Haible  <bruno@clisp.org>
36394
36395         Distinguish two kinds of module indicators.
36396         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36397         gl_MODULE_INDICATOR.
36398         (gl_MODULE_INDICATOR): New macro.
36399         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36400         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36401         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36402         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36403         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36404         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36405         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36406         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36407         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36408         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36409         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36410         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36412         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36413         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36415         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36416         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36417         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36418         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36419         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36420         * modules/cloexec (configure.ac): Likewise.
36421         * modules/getopt-gnu (configure.ac): Likewise.
36422         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36423         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36424         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36425         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36426
36427 2010-03-27  Bruno Haible  <bruno@clisp.org>
36428
36429         New module description field 'Comment'.
36430         * gnulib-tool: New option --extract-comment.
36431         (func_usage): Document it.
36432         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36433         (func_get_comment): New function.
36434         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36435
36436 2010-03-27  Bruno Haible  <bruno@clisp.org>
36437
36438         Addendum to 2010-02-07 commit.
36439         * gnulib-tool (func_usage): Document --extract-applicability option.
36440
36441 2010-03-27  Bruno Haible  <bruno@clisp.org>
36442
36443         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36444         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36445         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36446         rather than link errors.
36447
36448 2010-03-27  Bruno Haible  <bruno@clisp.org>
36449
36450         Avoid side effects from tests-related modules on the compilation of lib.
36451         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36452         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36453         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36454         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36455         macro.
36456         (func_import): Define a witness macro. Assign it a value that depends
36457         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36458         tests-related modules.
36459         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36460         Reported by Jim Meyering.
36461
36462 2010-03-27  Bruno Haible  <bruno@clisp.org>
36463
36464         Factorize common .m4 code.
36465         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36466         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36467         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36468         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36469         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36470         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36471         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36472         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36473         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36474         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36475         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36476         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36477         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36478         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36479         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36480         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36481         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36482         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36484         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36485         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36486         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36487         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36488         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36489         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36490         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36491         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36492         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36493         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36494         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36495         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36496         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36497
36498 2010-03-27  Bruno Haible  <bruno@clisp.org>
36499
36500         Fix a compilation error on Cygwin with g++ >= 4.3.
36501         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36502         if it is undefined or if we alias it to chmod.
36503         (lstat): Don't warn about the use of this function if it is undefined
36504         or if we alias it to stat.
36505         Reported by Simon Josefsson.
36506
36507 2010-03-27  Bruno Haible  <bruno@clisp.org>
36508
36509         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36510         * modules/getlogin (configure.ac): Update.
36511
36512         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36513         * modules/getlogin_r (configure.ac): Update.
36514
36515         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36517         * modules/inet_ntop (configure.ac): Update.
36518
36519         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36520         * modules/inet_pton (configure.ac): Update.
36521
36522         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36523         * modules/mbslen (configure.ac): Update.
36524
36525         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36526         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36527         * modules/forkpty (configure.ac): Update.
36528         * modules/openpty (configure.ac): Update.
36529
36530 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36531
36532         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36533         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36534
36535 2010-03-25  Eric Blake  <eblake@redhat.com>
36536
36537         maint: use pragma consistently across replacement headers
36538         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36539         * lib/dirent.in.h (system_header): Likewise.
36540         * lib/errno.in.h (system_header): Likewise.
36541         * lib/float.in.h (system_header): Likewise.
36542         * lib/getopt.in.h (system_header): Likewise.
36543         * lib/iconv.in.h (system_header): Likewise.
36544         * lib/inttypes.in.h (system_header): Likewise.
36545         * lib/langinfo.in.h (system_header): Likewise.
36546         * lib/locale.in.h (system_header): Likewise.
36547         * lib/math.in.h (system_header): Likewise.
36548         * lib/netdb.in.h (system_header): Likewise.
36549         * lib/netinet_in.in.h (system_header): Likewise.
36550         * lib/pty.in.h (system_header): Likewise.
36551         * lib/sched.in.h (system_header): Likewise.
36552         * lib/se-selinux.in.h (system_header): Likewise.
36553         * lib/search.in.h (system_header): Likewise.
36554         * lib/spawn.in.h (system_header): Likewise.
36555         * lib/stdarg.in.h (system_header): Likewise.
36556         * lib/stdint.in.h (system_header): Likewise.
36557         * lib/string.in.h (system_header): Likewise.
36558         * lib/strings.in.h (system_header): Likewise.
36559         * lib/sys_file.in.h (system_header): Likewise.
36560         * lib/sys_ioctl.in.h (system_header): Likewise.
36561         * lib/sys_socket.in.h (system_header): Likewise.
36562         * lib/sys_times.in.h (system_header): Likewise.
36563         * lib/sys_utsname.in.h (system_header): Likewise.
36564         * lib/sys_wait.in.h (system_header): Likewise.
36565         * lib/sysexits.in.h (system_header): Likewise.
36566         * lib/unistd.in.h (system_header): Likewise.
36567         * lib/wctype.in.h (system_header): Likewise.
36568
36569         arpa/inet: fix mingw compilation warning
36570         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36571         Reported by Matthew Bolte.
36572
36573 2010-03-25  Bruno Haible  <bruno@clisp.org>
36574
36575         Avoid collision between gnulib wrapper and libintl wrapper.
36576         * lib/printf.c (printf): Don't define if a printf wrapper is already
36577         defined in intl/printf.c.
36578         Reported by Michel Boaventura <michel@michelboaventura.com>.
36579
36580 2010-03-25  Bruno Haible  <bruno@clisp.org>
36581
36582         Use ANSI C.
36583         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36584
36585 2010-03-25  Bruno Haible  <bruno@clisp.org>
36586
36587         Minor formatting changes.
36588         * lib/acosl.c: Insert space before function argument list.
36589         * lib/argz.c: Likewise.
36590         * lib/asinl.c: Likewise.
36591         * lib/expl.c: Likewise.
36592         * lib/gen-uni-tables.c: Likewise.
36593         * lib/gettext.h: Likewise.
36594         * lib/glthread/lock.h: Likewise.
36595         * lib/tanl.c: Likewise.
36596         * lib/uniname/uniname.c: Likewise.
36597         * tests/test-idpriv-drop.c: Likewise.
36598         * tests/test-idpriv-droptemp.c: Likewise.
36599         * tests/test-lock.c: Likewise.
36600         * tests/test-tls.c: Likewise.
36601         * lib/argp-help.c: Insert space before function-like macro argument
36602         list.
36603         * lib/memcmp.c: Likewise.
36604         * tests/test-base64.c: Likewise.
36605         * lib/localename.c: Insert space before sizeof's argument list.
36606         * lib/safe-alloc.h: Likewise.
36607         * lib/file-set.h: Insert space before macro argument list.
36608         * tests/test-argp.c: Likewise.
36609         * lib/argp-namefrob.h: Insert space before function parameter list.
36610         * lib/getaddrinfo.c: Likewise.
36611         * lib/netdb.in.h: Likewise.
36612         * lib/parse-duration.h: Likewise.
36613         * lib/parse-duration.c: Likewise.
36614         * lib/poll.c: Likewise.
36615         * lib/select.c: Likewise.
36616         * lib/trim.h: Likewise.
36617         * tests/test-usleep.c: Likewise.
36618         * lib/ldexpl.c: Insert space before function parameter list and before
36619         function argument list.
36620         * lib/logl.c: Likewise.
36621         * lib/sqrtl.c: Likewise.
36622         * lib/trim.c: Likewise.
36623         * lib/cosl.c: Use GNU style indentation. Insert space before function
36624         argument list.
36625         * lib/sinl.c: Likewise.
36626         * lib/tsearch.c: Insert space after 'for'.
36627         Reported by Jim Meyering.
36628
36629 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36630
36631         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36632         config header before grepping, as it's not present before
36633         autoreconf/configure are run.  Reported by Simon Josefsson.
36634
36635 2010-03-23  Bruno Haible  <bruno@clisp.org>
36636
36637         pt_chown: Make it work with automake < 1.11.
36638         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36639         Reported by Simon Josefsson.
36640
36641 2010-03-23  Bruno Haible  <bruno@clisp.org>
36642
36643         pt_chown: Don't depend on GPLed modules.
36644         * lib/pt_chown.c: Don't include idpriv.h.
36645         (main): Don't drop privileges.
36646         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36647         Reported by Simon Josefsson.
36648
36649 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36650
36651         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36652         suggestions from karl@freefriends.org (Karl Berry).
36653
36654 2010-03-22  Eric Blake  <eblake@redhat.com>
36655
36656         gethostname: further tweaks
36657         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36658         are overriding gethostname.
36659         Suggested by Bruno Haible.
36660
36661 2010-03-21  Bruno Haible  <bruno@clisp.org>
36662
36663         Fix comments.
36664         * lib/forkpty.c (rpl_forkpty): Fix comment.
36665         * lib/openpty.c (rpl_openpty): Likewise.
36666         Reported by Eric Blake.
36667
36668 2010-03-22  Eric Blake  <eblake@redhat.com>
36669
36670         gethostname: fix build on mingw
36671         * lib/unistd.in.h (includes): Work around fact that mingw
36672         <winsock2.h> re-includes <unistd.h>, by avoiding any
36673         redeclarations if we are being included by <winsock2.h>.
36674         Reported by Matthias Bolte.
36675
36676 2010-03-21  Bruno Haible  <bruno@clisp.org>
36677
36678         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36679         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36680         modifications.
36681         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36682         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36683         provide the replacement.
36684         * modules/forkpty (Depends-on): Add openpty, login_tty.
36685         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36686         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36687         * doc/glibc-functions/forkpty.texi: More supported platforms.
36688         * config/srclist.txt: Add forkpty.c (commented).
36689
36690 2010-03-21  Bruno Haible  <bruno@clisp.org>
36691
36692         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36693         (Makefile.am): Verify that PTY_LIB is defined.
36694
36695         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36696
36697 2010-03-21  Bruno Haible  <bruno@clisp.org>
36698
36699         Tests for module 'login_tty'.
36700         * modules/login_tty-tests: New file.
36701         * tests/test-login_tty.c: New file.
36702
36703         New module 'login_tty'.
36704         * lib/login_tty.c: New file.
36705         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36706         * modules/login_tty: New file.
36707         * doc/glibc-functions/login_tty.texi: Mention the new module.
36708
36709 2010-03-21  Bruno Haible  <bruno@clisp.org>
36710
36711         login_tty: Documentation.
36712         * doc/glibc-functions/login_tty.texi: New file.
36713         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36714
36715 2010-03-21  Bruno Haible  <bruno@clisp.org>
36716
36717         pty: Consistent macro naming.
36718         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36719         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36720         * modules/pty (configure.ac): Update.
36721
36722 2010-03-21  Bruno Haible  <bruno@clisp.org>
36723
36724         Tests for openpty: Make stricter.
36725         * tests/test-openpty.c (main): Add test of canonical processing and
36726         erase.
36727         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36728
36729         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36730         * lib/openpty.c (openpty): New replacement function.
36731         * lib/pty.in.h: Include <termios.h>.
36732         (openpty): Update declaration. Add comments.
36733         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36734         is not declared, arrange to provide the replacement. Check for _getpty
36735         and posix_openpt.
36736         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36737         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36738         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36739         * modules/pty-tests (test_pty_c___LDADD): New variable.
36740         * doc/glibc-functions/openpty.texi: More supported platforms.
36741
36742 2010-03-21  Bruno Haible  <bruno@clisp.org>
36743
36744         setenv: Tweaks.
36745         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36746         the test program.
36747         * doc/posix-functions/setenv.texi: Update platforms list.
36748
36749 2010-03-21  Bruno Haible  <bruno@clisp.org>
36750
36751         New module 'unlockpt'.
36752         * lib/unlockpt.c: New file, from glibc with modifications.
36753         * m4/unlockpt.m4: New file.
36754         * modules/unlockpt: New file.
36755         * lib/stdlib.in.h (unlockpt): New declaration.
36756         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36757         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36758         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36759         HAVE_UNLOCKPT.
36760         * doc/posix-functions/unlockpt.texi: Mention the new module.
36761         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36762         * config/srclist.txt: Add unlockpt.c (commented).
36763
36764 2010-03-21  Jim Meyering  <meyering@redhat.com>
36765
36766         maint.mk: prohibit inclusion of "intprops.h" without use
36767         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36768
36769 2010-03-21  Bruno Haible  <bruno@clisp.org>
36770
36771         New module 'grantpt'.
36772         * lib/grantpt.c: New file, from glibc with modifications.
36773         * m4/grantpt.m4: New file.
36774         * modules/grantpt: New file.
36775         * lib/stdlib.in.h (grantpt): New declaration.
36776         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36777         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36778         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36779         HAVE_GRANTPT.
36780         * doc/posix-functions/grantpt.texi: Mention the new module.
36781         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36782         * config/srclist.txt: Add grantpt.c (commented).
36783
36784 2010-03-21  Bruno Haible  <bruno@clisp.org>
36785
36786         New module 'pt_chown'.
36787         * lib/pt_chown.c: New file, from glibc with modifications.
36788         * lib/pty-private.h: New file, from glibc with modifications.
36789         * modules/pt_chown: New file.
36790         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36791
36792 2010-03-21  Bruno Haible  <bruno@clisp.org>
36793
36794         Tests for module 'ptsname'.
36795         * modules/ptsname-tests: New file.
36796         * tests/test-ptsname.c: New file.
36797
36798         New module 'ptsname'.
36799         * lib/ptsname.c: New file, from glibc with modifications.
36800         * m4/ptsname.m4: New file.
36801         * modules/ptsname: New file.
36802         * lib/stdlib.in.h (ptsname): New declaration.
36803         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36804         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36805         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36806         HAVE_PTSNAME.
36807         * doc/posix-functions/ptsname.texi: Mention the new module.
36808         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36809         * config/srclist.txt: Add ptsname.c (commented).
36810
36811 2010-03-21  Bruno Haible  <bruno@clisp.org>
36812
36813         Tests for module 'ttyname_r'.
36814         * modules/ttyname_r-tests: New file.
36815         * tests/test-ttyname_r.c: New file.
36816
36817         New module 'ttyname_r'.
36818         * lib/ttyname_r.c: New file.
36819         * m4/ttyname_r.m4: New file.
36820         * modules/ttyname_r: New file.
36821         * lib/unistd.in.h (ttyname_r): New declaration.
36822         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36823         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36824         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36825         HAVE_TTYNAME_R.
36826         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36827         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36828
36829 2010-03-20  Bruno Haible  <bruno@clisp.org>
36830
36831         signal: Undefine macro definitions in C++ mode.
36832         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36833         sigfillset): Undefine macro definitions from the system header in C++
36834         mode.
36835         Reported by John W. Eaton <jwe@gnu.org>.
36836
36837 2010-03-20  Bruno Haible  <bruno@clisp.org>
36838
36839         Ensure no #include statements inside extern "C" { ... }.
36840         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36841         contain #include statements.
36842         * lib/time.in.h: Likewise.
36843
36844 2010-03-20  Bruno Haible  <bruno@clisp.org>
36845
36846         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36847         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36848         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36849         Reported by John W. Eaton <jwe@gnu.org>.
36850
36851 2010-03-20  Bruno Haible  <bruno@clisp.org>
36852
36853         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36854         Reported by Jim Meyering.
36855
36856 2010-03-20  Bruno Haible  <bruno@clisp.org>
36857
36858         pipe: Set errno upon failure.
36859         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36860         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36861         errno value in error message.
36862
36863 2010-03-20  Bruno Haible  <bruno@clisp.org>
36864             Jim Meyering  <meyering@redhat.com>
36865
36866         lchown: Avoid "unused variable" warning.
36867         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36868
36869 2010-03-20  Bruno Haible  <bruno@clisp.org>
36870
36871         Work around unlink() bug on MacOS X 10.5.6.
36872         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36873         attempting to unlink a parent directory.
36874         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36875         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36876         activate for the replacement function.
36877         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36878
36879 2010-03-20  Bruno Haible  <bruno@clisp.org>
36880
36881         Fix link errors on Solaris 8.
36882         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36883         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36884
36885 2010-03-19  Jim Meyering  <meyering@redhat.com>
36886
36887         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36888         The _LIBC implementation of build_range_exp correctly honors the
36889         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36890         However, the non-_LIBC implementation would ignore that syntax-bit
36891         flag and return REG_ERANGE unconditionally.
36892         This change makes it honor that flag.
36893         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36894         Make two pointer parameters "const".
36895         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36896         (parse_bracket_exp): Update caller.
36897
36898         regex.m4: correct the reversed range endpoint ([b-a]) test
36899         * m4/regex.m4: When requiring that [b-a] evoke failure,
36900         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36901         test pass once again for x86-based systems.
36902
36903 2010-03-19  Bruno Haible  <bruno@clisp.org>
36904
36905         scandir: Fix link error on Solaris 8.
36906         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36907         macros.
36908
36909 2010-03-19  Bruno Haible  <bruno@clisp.org>
36910
36911         getusershell: Fix documentation.
36912         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36913         module.
36914         * doc/glibc-functions/setusershell.texi: Likewise.
36915
36916         getusershell: Provide declaration, missing on Solaris 9.
36917         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36918         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36919         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36920         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36922         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36923         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36924         HAVE_GETUSERSHELL.
36925         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36926
36927 2010-03-19  Bruno Haible  <bruno@clisp.org>
36928
36929         wctype: Provide iswblank function.
36930         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36931         exists and is fine.
36932         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36933         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36934         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36935         * doc/posix-functions/iswblank.texi: Update.
36936
36937 2010-03-19  Bruno Haible  <bruno@clisp.org>
36938
36939         Tests of module 'pty' in C++ mode.
36940         * modules/pty-tests: New file.
36941         * tests/test-pty-c++.cc: New file.
36942         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36943
36944 2010-03-19  Eric Blake  <eblake@redhat.com>
36945
36946         logb: fix documentation
36947         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36948         1.5 declaration bug.
36949
36950         forkpty, openpty: prefer glibc's const-safe prototype
36951         * lib/forkpty.c (rpl_forkpty): New file.
36952         * lib/openpty.c (rpl_openpty): Likewise.
36953         * modules/forkpty (Files): Distribute it.
36954         * modules/openpty (Files): Likewise.
36955         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36956         check...
36957         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36958         replacement for for non-const BSD signature.
36959         * modules/pty (Makefile.am): Substitute witnesses.
36960         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36961         * tests/test-forkpty.c: Update signature check.
36962         * tests/test-openpty.c: Likewise.
36963         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36964         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36965
36966         forkpty, openpty: split functions into new modules
36967         * modules/pty (Makefile.am): Substitute new witnesses.
36968         (Libraries): Move library detection...
36969         * modules/forkpty: ...into new module.
36970         * modules/openpty: Another new module.
36971         * modules/pty-tests: Rename and split...
36972         * modules/forkpty-tests: ...to this...
36973         * modules/openpty-tests: ...and this.
36974         * tests/test-pty.c: Rename and split...
36975         * tests/test-forkpty.c: ...to this...
36976         * tests/test-openpty.c: ...and this.
36977         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36978         (gl_PTY): Split library searching...
36979         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36980         (gl_FORKPTY, gl_OPENPTY): New macros.
36981         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36982         * NEWS: Mention the split.
36983         * MODULES.html.sh (Misc): Document the modules.
36984         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36985         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36986
36987         pty: improve replacement header
36988         * lib/pty.in.h: New file.
36989         * modules/pty (Files): Ship it.
36990         (Makefile.am): Always build replacement.
36991         * m4/pty.m4: Rename...
36992         * m4/pty_h.m4: ...to this.
36993         (gl_PTY): Modernize setting of witness macros; update check of
36994         forkpty to take proper advantage of cache.
36995         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36996
36997         getopt: avoid compiler warning
36998         * lib/getopt.c (attribute_hidden): Remove unused macro.
36999
37000 2010-03-18  Bruno Haible  <bruno@clisp.org>
37001
37002         Fix link errors on Solaris 8.
37003         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37004         * modules/search-tests (test_search_c___LDADD): Likewise.
37005         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37006         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37007         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37008         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37009         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37010         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37011         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37012
37013 2010-03-18  Bruno Haible  <bruno@clisp.org>
37014
37015         Fix bug introduced on 2010-03-14.
37016         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37017         (gl_SPAWN_H): Require it.
37018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37019         Reported by Simon Josefsson.
37020
37021 2010-03-18  Bruno Haible  <bruno@clisp.org>
37022
37023         Fix typo introduced on 2009-12-31.
37024         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37025         posix_spawn_file_actions_adddup2.
37026
37027 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37028         and Eric Blake  <eblake@redhat.com>
37029
37030         test-vc-list-files-git: make more robust
37031         * tests/test-vc-list-files-git.sh: Unset problematic environment
37032         variables.  Chain commands together.
37033
37034 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37035
37036         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37037         `AC_CHECK_DECL' invocation.
37038
37039 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37040
37041         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37042         appears before executable statements. Suggested by Petr Sumbera
37043         <Petr.Sumbera@Sun.COM>.
37044
37045 2010-03-14  Bruno Haible  <bruno@clisp.org>
37046
37047         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37048         portability problems. Instead use a simpler test.
37049         (main): Check that invalid arguments are rejected only on Linux.
37050
37051 2010-03-14  Bruno Haible  <bruno@clisp.org>
37052
37053         Fix bug introduced on 2009-12-31.
37054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37055         gl_PREREQ_SYS_H_WINSOCK2 always.
37056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37057         SYS_SOCKET_H variable.
37058         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37059         Update comments.
37060         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37061         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37062         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37063         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37064         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37065
37066 2010-03-14  Bruno Haible  <bruno@clisp.org>
37067
37068         Fix values returned by sinl, cosl.
37069         * lib/trigl.h: Add specification comments.
37070         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37071         that combines the values from the precomputed table with the values of
37072         the Chebyshev polynomials.
37073
37074 2010-03-14  Bruno Haible  <bruno@clisp.org>
37075
37076         Fix compilation error when modules 'posix_spawn[p]' are not used.
37077         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37079
37080 2010-03-14  Bruno Haible  <bruno@clisp.org>
37081
37082         Fix compilation error on mingw when module 'time_r' is not used.
37083         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37084         is 1.
37085         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37086         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37087         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37088         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37089
37090 2010-03-14  Bruno Haible  <bruno@clisp.org>
37091
37092         Fix compilation error with Sun C.
37093         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37094         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37095         instead of GCC specific ULONG_LONG_MAX.
37096         * lib/xstrtoll.c: Likewise.
37097         * lib/xstrtoull.c: Likewise.
37098
37099 2010-03-13  Bruno Haible  <bruno@clisp.org>
37100
37101         Allow the user to disable C++ code and tests.
37102         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37103         (gl_PROG_ANSI_CXX): Require it.
37104
37105 2010-03-13  Bruno Haible  <bruno@clisp.org>
37106
37107         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37108         cases.
37109
37110 2010-03-13  Bruno Haible  <bruno@clisp.org>
37111
37112         Test that gnulib does not break the standard C++ headers.
37113         * tests/test-locale-c++2.cc: New file.
37114         * modules/locale-tests (Files): Add it.
37115         (Makefile.am): Compile it for test-locale-c++.
37116         * tests/test-math-c++2.cc: New file.
37117         * modules/math-tests (Files): Add it.
37118         (Makefile.am): Compile it for test-math-c++.
37119         * tests/test-signal-c++2.cc: New file.
37120         * modules/signal-tests (Files): Add it.
37121         (Makefile.am): Compile it for test-signal-c++.
37122         * tests/test-stdio-c++2.cc: New file.
37123         * modules/stdio-tests (Files): Add it.
37124         (Makefile.am): Compile it for test-stdio-c++.
37125         * tests/test-stdlib-c++2.cc: New file.
37126         * modules/stdlib-tests (Files): Add it.
37127         (Makefile.am): Compile it for test-stdlib-c++.
37128         * tests/test-string-c++2.cc: New file.
37129         * modules/string-tests (Files): Add it.
37130         (Makefile.am): Compile it for test-string-c++.
37131         * tests/test-time-c++2.cc: New file.
37132         * modules/time-tests (Files): Add it.
37133         (Makefile.am): Compile it for test-time-c++.
37134         Reported by John W. Eaton <jwe@gnu.org>.
37135
37136 2010-03-13  Bruno Haible  <bruno@clisp.org>
37137
37138         * gnulib-tool (func_usage): Clarify which options are available for
37139         --create-testdir and --create-megatestdir.
37140
37141 2010-03-13  Bruno Haible  <bruno@clisp.org>
37142
37143         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37144         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37145         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37146         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37147         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37148         when appropriate.
37149         Reported by Jim Meyering.
37150
37151 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37152
37153         * gnulib-tool (func_import): Explain origin of code.
37154
37155 2010-03-12  Bruno Haible  <bruno@clisp.org>
37156
37157         Fix problem with automake's definition of CXXLINK.
37158         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37159         Reported by Simon Josefsson and Ludovic Courtès.
37160
37161 2010-03-12  Bruno Haible  <bruno@clisp.org>
37162
37163         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37164         stable releases.
37165
37166 2010-03-11  Bruno Haible  <bruno@clisp.org>
37167
37168         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37169         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37170         whether the system provides one variant or multiple variants of the
37171         function.
37172         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37173         C++ compilers.
37174         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37175         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37176         Reported by Jim Meyering.
37177
37178 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37179
37180         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37181
37182 2010-03-08  Bruno Haible  <bruno@clisp.org>
37183
37184         gnulib-tool: Add support for --libtool in --create-testdir.
37185         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37186         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37187
37188 2010-03-08  Eric Blake  <eblake@redhat.com>
37189
37190         gnulib-tool.texi: mention possibility of git submodule
37191         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37192         submodules.
37193         * doc/.gitignore: Ignore another generated file.
37194
37195 2010-03-08  Karl Berry  <karl@gnu.org>
37196
37197         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37198         of committing gnulib files while skipping others.
37199
37200 2010-03-07  Bruno Haible  <bruno@clisp.org>
37201
37202         Tests of module 'wctype' in C++ mode.
37203         * tests/test-wctype-c++.cc: New file.
37204         * modules/wctype-tests (Files): Add it and tests/signature.h.
37205         (Depends-on): Add ansi-c++-opt.
37206         (Makefile.am): Arrange to compile and run test-wctype-c++.
37207
37208         Tests of module 'wchar' in C++ mode.
37209         * tests/test-wchar-c++.cc: New file.
37210         * modules/wchar-tests (Files): Add it and tests/signature.h.
37211         (Depends-on): Add ansi-c++-opt.
37212         (Makefile.am): Arrange to compile and run test-wchar-c++.
37213         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37214         gl_MODULE_INDICATOR.
37215
37216         Tests of module 'unistd' in C++ mode.
37217         * tests/test-unistd-c++.cc: New file.
37218         * modules/unistd-tests (Files): Add it and tests/signature.h.
37219         (Depends-on): Add ansi-c++-opt.
37220         (Makefile.am): Arrange to compile and run test-unistd-c++.
37221         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37222         gl_MODULE_INDICATOR.
37223
37224         Tests of module 'time' in C++ mode.
37225         * tests/test-time-c++.cc: New file.
37226         * modules/time-tests (Files): Add it and tests/signature.h.
37227         (Depends-on): Add ansi-c++-opt.
37228         (Makefile.am): Arrange to compile and run test-time-c++.
37229         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37230
37231         Tests of module 'sys_time' in C++ mode.
37232         * tests/test-sys_time-c++.cc: New file.
37233         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37234         (Depends-on): Add ansi-c++-opt.
37235         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37236         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37237         gl_MODULE_INDICATOR.
37238
37239         Tests of module 'sys_stat' in C++ mode.
37240         * tests/test-sys_stat-c++.cc: New file.
37241         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37242         (Depends-on): Add ansi-c++-opt.
37243         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37244         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37245         gl_MODULE_INDICATOR.
37246
37247         Tests of module 'sys_socket' in C++ mode.
37248         * tests/test-sys_socket-c++.cc: New file.
37249         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37250         (Depends-on): Add ansi-c++-opt.
37251         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37253         gl_MODULE_INDICATOR.
37254
37255         Tests of module 'sys_select' in C++ mode.
37256         * tests/test-sys_select-c++.cc: New file.
37257         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37258         (Depends-on): Add ansi-c++-opt.
37259         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37260         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37261         gl_MODULE_INDICATOR.
37262
37263         Tests of module 'sys_ioctl' in C++ mode.
37264         * tests/test-sys_ioctl-c++.cc: New file.
37265         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37266         (Depends-on): Add ansi-c++-opt.
37267         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37268         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37269         gl_MODULE_INDICATOR.
37270
37271         Tests of module 'string' in C++ mode.
37272         * tests/test-string-c++.cc: New file.
37273         * modules/string-tests (Files): Add it and tests/signature.h.
37274         (Depends-on): Add ansi-c++-opt.
37275         (Makefile.am): Arrange to compile and run test-string-c++.
37276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37277         gl_MODULE_INDICATOR.
37278
37279         Tests of module 'stdlib' in C++ mode.
37280         * tests/test-stdlib-c++.cc: New file.
37281         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37282         (Depends-on): Add ansi-c++-opt.
37283         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37284         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37285         gl_MODULE_INDICATOR.
37286
37287         Tests of module 'stdio' in C++ mode.
37288         * tests/test-stdio-c++.cc: New file.
37289         * modules/stdio-tests (Files): Add it and tests/signature.h.
37290         (Depends-on): Add ansi-c++-opt.
37291         (Makefile.am): Arrange to compile and run test-stdio-c++.
37292         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37293         gl_MODULE_INDICATOR.
37294
37295         Tests of module 'spawn' in C++ mode.
37296         * tests/test-spawn-c++.cc: New file.
37297         * modules/spawn-tests (Files): Add it and tests/signature.h.
37298         (Depends-on): Add ansi-c++-opt.
37299         (Makefile.am): Arrange to compile and run test-spawn-c++.
37300         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37301         gl_MODULE_INDICATOR.
37302
37303         Tests of module 'signal' in C++ mode.
37304         * tests/test-signal-c++.cc: New file.
37305         * modules/signal-tests (Files): Add it and tests/signature.h.
37306         (Depends-on): Add ansi-c++-opt.
37307         (Makefile.am): Arrange to compile and run test-signal-c++.
37308         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37309         gl_MODULE_INDICATOR.
37310
37311         Tests of module 'search' in C++ mode.
37312         * tests/test-search-c++.cc: New file.
37313         * modules/search-tests (Files): Add it and tests/signature.h.
37314         (Depends-on): Add ansi-c++-opt.
37315         (Makefile.am): Arrange to compile and run test-search-c++.
37316         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37317         gl_MODULE_INDICATOR.
37318
37319         Tests of module 'math' in C++ mode.
37320         * tests/test-math-c++.cc: New file.
37321         * modules/math-tests (Files): Add it and tests/signature.h.
37322         (Depends-on): Add ansi-c++-opt.
37323         (Makefile.am): Arrange to compile and run test-math-c++.
37324         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37325
37326         Tests of module 'locale' in C++ mode.
37327         * tests/test-locale-c++.cc: New file.
37328         * modules/locale-tests (Files): Add it and tests/signature.h.
37329         (Depends-on): Add ansi-c++-opt.
37330         (Makefile.am): Arrange to compile and run test-locale-c++.
37331         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37332         gl_MODULE_INDICATOR.
37333
37334         Tests of module 'langinfo' in C++ mode.
37335         * tests/test-langinfo-c++.cc: New file.
37336         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37337         (Depends-on): Add ansi-c++-opt.
37338         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37339         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37340         gl_MODULE_INDICATOR.
37341
37342         Tests of module 'iconv-h' in C++ mode.
37343         * tests/test-iconv-h-c++.cc: New file.
37344         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37345         (Depends-on): Add ansi-c++-opt.
37346         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37347
37348         Tests of module 'glob' in C++ mode.
37349         * tests/test-glob-c++.cc: New file.
37350         * modules/glob-tests (Files): Add it.
37351         (Depends-on): Add ansi-c++-opt.
37352         (Makefile.am): Arrange to compile and run test-glob-c++.
37353
37354         Tests of module 'fcntl-h' in C++ mode.
37355         * tests/test-fcntl-h-c++.cc: New file.
37356         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37357         (Depends-on): Add ansi-c++-opt.
37358         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37359         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37360         gl_MODULE_INDICATOR.
37361
37362         Tests of module 'dirent' in C++ mode.
37363         * tests/test-dirent-c++.cc: New file.
37364         * modules/dirent-tests (Files): Add it and tests/signature.h.
37365         (Depends-on): Add ansi-c++-opt.
37366         (Makefile.am): Arrange to compile and run test-dirent-c++.
37367         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37368         gl_MODULE_INDICATOR.
37369
37370         New module 'ansi-c++-opt'.
37371         * modules/ansi-c++-opt: New file.
37372         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37373
37374         Document C++ namespace mode.
37375         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37376
37377         wctype: Avoid #define replacements in C++ mode.
37378         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37379         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37380         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37381         In C++, define a namespaced alias symbol.
37382         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37383         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37384         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37385         rule.
37386
37387         wchar: Avoid #define replacements in C++ mode.
37388         * lib/wchar.in.h: Include c++defs.h.
37389         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37390         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37391         symbol.
37392         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37393         * modules/wchar (Depends-on): Add c++defs.
37394         (Makefile.am): Update wchar.h rule.
37395
37396         unistd: Avoid #define replacements in C++ mode.
37397         * lib/unistd.in.h: Include c++defs.h.
37398         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37399         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37400         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37401         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37402         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37403         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37404         symbol.
37405         (environ): Update.
37406         * modules/unistd (Depends-on): Add c++defs.
37407         (Makefile.am): Update unistd.h rule.
37408
37409         time: Avoid #define replacements in C++ mode.
37410         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37411         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37412         define a namespaced alias symbol.
37413         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37414         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37415         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37416         * modules/time (Depends-on): Add c++defs, warn-on-use.
37417         (Makefile.am): Update time.h rule.
37418         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37419         * modules/nanosleep (configure.ac): Likewise.
37420         * modules/strptime (configure.ac): Likewise.
37421         * modules/timegm (configure.ac): Likewise.
37422
37423         sys_time: Avoid #define replacements in C++ mode.
37424         * lib/sys_time.in.h: Include c++defs.h.
37425         (gettimeofday): In C++, define a namespaced alias symbol.
37426         * modules/sys_time (Depends-on): Add c++defs.
37427         (Makefile.am): Update sys/time.h rule.
37428
37429         sys_stat: Avoid #define replacements in C++ mode.
37430         * lib/sys_stat.in.h: Include c++defs.h.
37431         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37432         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37433         namespaced alias symbol.
37434         In C++, define a namespaced alias symbol.
37435         * modules/sys_stat (Depends-on): Add c++defs.
37436         (Makefile.am): Update sys/stat.h rule.
37437
37438         sys_socket: Avoid #define replacements in C++ mode.
37439         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37440         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37441         definitions also when the system has a <sys/socket.h>.
37442         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37443         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37444         In C++, define a namespaced alias symbol.
37445         * modules/sys_socket (Depends-on): Add c++defs.
37446         (Makefile.am): Update sys/socket.h rule.
37447
37448         sys_select: Avoid #define replacements in C++ mode.
37449         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37450         definitions also when the system has a <sys/select.h>.
37451         (select): In C++, define a namespaced alias symbol.
37452         * modules/sys_select (Depends-on): Add c++defs.
37453         (Makefile.am): Update sys/select.h rule.
37454
37455         sys_ioctl: Avoid #define replacements in C++ mode.
37456         * lib/sys_ioctl.in.h: Include c++defs.h.
37457         (ioctl): In C++, define a namespaced alias symbol.
37458         * modules/sys_ioctl (Depends-on): Add c++defs.
37459         (Makefile.am): Update sys/ioctl.h rule.
37460
37461         string: Avoid #define replacements in C++ mode.
37462         * lib/string.in.h: Include c++defs.h.
37463         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37464         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37465         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37466         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37467         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37468         * modules/string (Depends-on): Add c++defs.
37469         (Makefile.am): Update string.h rule.
37470
37471         stdlib: Avoid #define replacements in C++ mode.
37472         * lib/stdlib.in.h: Include c++defs.h.
37473         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37474         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37475         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37476         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37477         symbol.
37478         * modules/stdlib (Depends-on): Add c++defs.
37479         (Makefile.am): Update stdlib.h rule.
37480
37481         stdio: Avoid #define replacements in C++ mode.
37482         * lib/stdio.in.h: Include c++defs.h.
37483         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37484         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37485         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37486         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37487         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37488         namespaced alias symbol.
37489         * modules/stdio (Depends-on): Add c++defs.
37490         (Makefile.am): Update stdio.h rule.
37491
37492         spawn: Avoid #define replacements in C++ mode.
37493         * lib/spawn.in.h: Include c++defs.h.
37494         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37495         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37496         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37497         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37498         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37499         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37500         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37501         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37502         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37503         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37504         In C++, define a namespaced alias symbol.
37505         * modules/spawn (Depends-on): Add c++defs.
37506         (Makefile.am): Update spawn.h rule.
37507
37508         signal: Avoid #define replacements in C++ mode.
37509         * lib/signal.in.h: Include c++defs.h.
37510         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37511         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37512         namespaced alias symbol.
37513         * modules/signal (Depends-on): Add c++defs.
37514         (Makefile.am): Update signal.h rule.
37515
37516         search: Avoid #define replacements in C++ mode.
37517         * lib/search.in.h: Include c++defs.h.
37518         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37519         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37520         symbol.
37521         * modules/search (Depends-on): Add c++defs.
37522         (Makefile.am): Update search.h rule.
37523
37524         math: Avoid #define replacements in C++ mode.
37525         * lib/math.in.h: Include c++defs.h.
37526         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37527         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37528         trunc, truncl): In C++, define a namespaced alias symbol.
37529         * modules/math (Depends-on): Add c++defs.
37530         (Makefile.am): Update math.h rule.
37531
37532         locale: Avoid #define replacements in C++ mode.
37533         * lib/locale.in.h: Include c++defs.h.
37534         (duplocale): In C++, define a namespaced alias symbol.
37535         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37536         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37537         * modules/locale (Depends-on): Add c++defs.
37538         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37539
37540         langinfo: Avoid #define replacements in C++ mode.
37541         * lib/langinfo.in.h: Include c++defs.h.
37542         (nl_langinfo): In C++, define a namespaced alias symbol.
37543         * modules/langinfo (Depends-on): Add c++defs.
37544         (Makefile.am): Update langinfo.h rule.
37545
37546         iconv-h: Avoid #define replacements in C++ mode.
37547         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37548         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37549         symbol.
37550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37551         whenever iconv is present.
37552         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37553         (Makefile.am): Update iconv.h rule.
37554
37555         glob: Avoid #define replacements in C++ mode.
37556         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37557         (_gl_glob_errfunc_fn): New type.
37558         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37559         symbol.
37560         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37561         (Makefile.am): Update glob.h rule.
37562
37563         fcntl-h: Avoid #define replacements in C++ mode.
37564         * lib/fcntl.in.h: Include c++defs.h.
37565         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37566         * modules/fcntl-h (Depends-on): Add c++defs.
37567         (Makefile.am): Update fcntl.h rule.
37568
37569         dirent: Avoid #define replacements in C++ mode.
37570         * lib/dirent.in.h: Include c++defs.h.
37571         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37572         namespaced alias symbol.
37573         (dirfd): Update declaration.
37574         * modules/dirent (Depends-on): Add c++defs.
37575         (Makefile.am): Update dirent.h rule.
37576
37577         ctype: Make it usable in C++ code.
37578         * lib/ctype.in.h: Include c++defs.h.
37579         (isblank): Declare as extern "C".
37580         * modules/ctype (Depends-on): Add c++defs.
37581         (Makefile.am): Update ctype.h rule.
37582
37583         New module 'c++defs'.
37584         * modules/c++defs: New file.
37585         * build-aux/c++defs.h: New file.
37586         Reported by John W. Eaton <jwe@gnu.org>.
37587
37588 2010-03-07  Bruno Haible  <bruno@clisp.org>
37589
37590         logb: Provide missing declaration for Cygwin.
37591         * lib/math.in.h (logb): New declaration.
37592         * m4/logb.m4: New file.
37593         * modules/logb (Files): Add m4/logb.m4.
37594         (Depends-on): Add math.
37595         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37596         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37598         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37599         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37600
37601 2010-03-07  Bruno Haible  <bruno@clisp.org>
37602
37603         Fix test-cond link error.
37604         * tests/test-cond.c: Include <stdio.h>.
37605
37606 2010-03-07  Bruno Haible  <bruno@clisp.org>
37607
37608         Fix test-dirent-safer link error.
37609         * modules/dirent-safer-tests (Makefile.am): Define
37610         test_dirent_safer_LDADD.
37611
37612 2010-03-07  Bruno Haible  <bruno@clisp.org>
37613
37614         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37615         among default module list.
37616
37617 2010-03-07  Bruno Haible  <bruno@clisp.org>
37618
37619         Fix link error on platforms with GNU libiconv.
37620         * modules/unistr/u8-strcoll-tests (Makefile): Define
37621         test_u8_strcoll_LDADD.
37622         * modules/unistr/u16-strcoll-tests (Makefile): Define
37623         test_u16_strcoll_LDADD.
37624         * modules/unistr/u32-strcoll-tests (Makefile): Define
37625         test_u32_strcoll_LDADD.
37626
37627 2010-03-07  Bruno Haible  <bruno@clisp.org>
37628
37629         Use POSIX declarations for socket functions.
37630         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37631         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37632         rpl_sendto): Change declaration to match POSIX.
37633         * lib/connect.c (rpl_connect): Likewise.
37634         * lib/accept.c (rpl_accept): Likewise.
37635         * lib/bind.c (rpl_bind): Likewise.
37636         * lib/getpeername.c (rpl_getpeername): Likewise.
37637         * lib/getsockname.c (rpl_getsockname): Likewise.
37638         * lib/recv.c (rpl_recv): Likewise.
37639         * lib/send.c (rpl_send): Likewise.
37640         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37641         * lib/sendto.c (rpl_sendto): Likewise.
37642
37643 2010-03-06  Bruno Haible  <bruno@clisp.org>
37644
37645         Clarify access, euidaccess, faccessat.
37646         * doc/posix-functions/faccessat.texi: Mention security problem under
37647         "Other problems", not "Portability problems".
37648         * doc/posix-functions/access.texi: Likewise. Mention a related security
37649         problem.
37650         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37651         * lib/euidaccess.c: Add comments about platforms.
37652         * lib/unistd.in.h (access, euidaccess): Add warnings.
37653
37654 2010-03-07  Bruno Haible  <bruno@clisp.org>
37655
37656         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37657         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37658         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37659         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37660         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37661         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37662         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37663         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37664         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37665         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37666         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37667         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37668         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37669         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37670         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37671         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37672         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37673         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37674         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37675         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37676         Likewise.
37677         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37678         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37679         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37680         Likewise.
37681         * tests/test-spawn.c (main): Make it work when
37682         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37683
37684 2010-03-07  Bruno Haible  <bruno@clisp.org>
37685
37686         Fix incorrect Makefile.am generation in German locale.
37687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37688         Execute sed command with character range in C locale.
37689
37690 2010-03-06  Bruno Haible  <bruno@clisp.org>
37691
37692         Tests for module 'iconv-h'.
37693         * modules/iconv-h-tests: New file.
37694         * tests/test-iconv-h.c: New file.
37695
37696         New module 'iconv-h'.
37697         * modules/iconv-h: New file.
37698         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37699         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37700         (configure.ac): Remove gl_ICONV_H.
37701         (Makefile.am): Remove rule for iconv.h.
37702
37703 2010-03-06  Bruno Haible  <bruno@clisp.org>
37704
37705         More consistent naming of *.m4 files.
37706         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37707         * modules/wctype (Files): Update.
37708
37709         More consistent naming of *.m4 files.
37710         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37711         * modules/wchar (Files): Update.
37712
37713 2010-03-06  Jim Meyering  <meyering@redhat.com>
37714
37715         euidaccess: relax license to LGPLv2+
37716         * modules/euidaccess (License): Relax to LGPLv2+.
37717
37718 2010-03-06  Bruno Haible  <bruno@clisp.org>
37719
37720         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37721         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37722         (Makefile.am): Augment lib_SOURCES instead.
37723
37724 2010-03-04  Jim Meyering  <meyering@redhat.com>
37725
37726         utime: remove obsolete module
37727         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37728         unnecessary for years, and has been marked as obsolete for 10 months.
37729         * modules/utime: Remove file.
37730         * lib/utime.c: Remove file.
37731         * m4/utime.m4: Remove file.
37732         * m4/utimes-null.m4: Remove file.
37733         * doc/posix-functions/utime.texi (utime): Remove reference to
37734         the module.  Move the sole "fixed by gnulib" item into the
37735         "problems not fixed by Gnulib" list.
37736         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37737
37738 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37739
37740         * modules/exit (License): Relax license to LGPLv2+.
37741         (Status): Mark as obsolete.
37742         * NEWS: Mention deprecated 'exit' module.
37743         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37744         of now obsolete 'exit'.
37745
37746 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37747
37748         fts-lgpl: remove unused module
37749         * modules/fts-lgpl: Remove.
37750         * MODULES.html.sh (func_all_modules): Adjust.
37751         * check-module (find_included_lib_files): Adjust.
37752         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37753
37754 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37755
37756         copy-acl: enhance Solaris ACL error handling
37757         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37758         * lib/set-mode-acl.c (qset_acl): Likewise.
37759
37760 2010-03-02  Bruno Haible  <bruno@clisp.org>
37761
37762         spawn: Don't override the system defined values on FreeBSD 8.
37763         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37764         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37765         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37766         if HAVE_POSIX_SPAWN is 1.
37767         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37768
37769 2010-03-01  Bruno Haible  <bruno@clisp.org>
37770
37771         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37772         regarding Automake.
37773
37774 2010-02-25  Bruno Haible  <bruno@clisp.org>
37775
37776         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37777         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37778         setting, not afterwards.
37779         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37780
37781 2010-02-24  Eric Blake  <eblake@redhat.com>
37782
37783         bootstrap, git-version-gen: use timestamp
37784         * build-aux/git-version-gen (scriptversion): Force UTC.
37785         * build-aux/bootstrap (scriptversion): New variable.
37786
37787         bootstrap: allow older git
37788         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37789         older than 1.6.4.  Requested by the libvirt project.
37790
37791 2010-02-23  Eric Blake  <eblake@redhat.com>
37792
37793         warn-on-use: work with old autoconf
37794         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37795         AS_VAR semantics of autoconf 2.60.
37796         Reported by Bruno Haible.
37797
37798         bootstrap: improve some comments
37799         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37800         clarification comments.
37801
37802         gettimeofday: provide correct function
37803         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37804         when replacement is declared, otherwise provide gettimeofday.
37805         Reported by Michael Goffioul.
37806
37807 2010-02-23  Jim Meyering  <meyering@redhat.com>
37808
37809         lib-ignore: relax license to "unlimited", not LGPLv2+
37810         * modules/lib-ignore (License): Relax to "unlimited".
37811
37812 2010-02-23  Jim Meyering  <meyering@redhat.com>
37813
37814         lib-ignore: relax license to LGPLv2+
37815         * modules/lib-ignore (License): Relax to LGPLv2+.
37816
37817 2010-02-22  Eric Blake  <eblake@redhat.com>
37818
37819         lseek: avoid bash 3.2 broken pipe bug
37820         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37821         warning from bash 3.2.
37822         Reported by Ben Pfaff, with analysis from Bruno Haible.
37823
37824         bootstrap: support non-FSF copyright holder
37825         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37826         bootstrap.conf override of COPYRIGHT_HOLDER.
37827         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37828
37829         bootstrap: interoperate with gettext 0.14.1
37830         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37831
37832         bootstrap: allow for alternate submodule location
37833         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37834         hardcoding submodule location.
37835         (gnulib_mk): Allow direct use of Makefile.am.
37836
37837         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37838         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37839         rather than reconfiguring where the submodule points.
37840
37841         gettimeofday: restore support for platforms that lack function
37842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37843         replacement if function is missing.
37844         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37845         * modules/sys_time (Makefile.am): Substitute it.
37846         * lib/sys_time.in.h (gettimeofday): Check it.
37847         Reported by Michael Goffioul.
37848
37849 2010-02-21  Bruno Haible  <bruno@clisp.org>
37850
37851         * lib/stdio.in.h (obstack_printf): Fix typo.
37852
37853 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37854
37855         vc-list-files: use bzr ls's -R option
37856         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37857         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37858
37859 2010-02-21  Jim Meyering  <meyering@redhat.com>
37860
37861         init.sh: fix EXEEXT shims to work also for names like test-prog
37862         * tests/init.sh: Re-exec a better shell, when needed.
37863         If the current shell lacks support for posix $(...), an init.sh-using
37864         test will now try to find a shell that supports that.  If EXEEXT is
37865         nonempty, we also require support for hyphen-in-alias-name and shell
37866         substitutions like ${var#glob}.  Failure to find such a shell results
37867         in a skipped test.
37868
37869 2010-02-21  Bruno Haible  <bruno@clisp.org>
37870
37871         Really work around around "broken pipe" error message from bash 3.2.
37872         * gnulib-tool (func_reset_sigpipe): Remove function.
37873         (echo): In bash 3.2, define to a function that uses printf.
37874         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37875
37876 2010-02-20  Bruno Haible  <bruno@clisp.org>
37877
37878         Restore support for automake 1.9.6 with autoconf 2.61.
37879         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37880         Reported by James Youngman <jay@gnu.org>.
37881
37882 2010-02-20  Bruno Haible  <bruno@clisp.org>
37883
37884         Improve *printf warning condition.
37885         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37886         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37887         and the function is overridden due to SIGPIPE emulation.
37888
37889 2010-02-20  Bruno Haible  <bruno@clisp.org>
37890
37891         * lib/stdio.in.h: Tweak comments.
37892
37893 2010-02-19  Bruno Haible  <bruno@clisp.org>
37894
37895         Make it easier to find modules. New gnulib-tool option '--find'.
37896         * gnulib-tool: New option --find.
37897         (func_usage): Document it.
37898         (func_sanitize_modulelist): New function, extracted from
37899         func_all_modules.
37900         (func_all_modules): Invoke it.
37901         * doc/gnulib-tool.texi (Which modules?): New node.
37902
37903 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37904
37905         * lib/sys_select.in.h: Provide select replacement even if
37906         sys/select.h exists on a system, for Interix.
37907
37908 2010-02-18  Jim Meyering  <meyering@redhat.com>
37909
37910         init.sh: don't use $(...) just yet
37911         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37912         to accommodate e.g., Solaris' /bin/sh.
37913
37914 2010-02-17  Bruno Haible  <bruno@clisp.org>
37915
37916         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37917         Reported by Ludovic Courtès <ludo@gnu.org>.
37918
37919 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37920
37921         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37922         linking with -lintl.
37923
37924 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37925
37926         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37927         if not provided by the system's netdb.h.  Reported by
37928         ludo@gnu.org (Ludovic Courtès).
37929
37930 2010-02-15  Jim Meyering  <meyering@redhat.com>
37931
37932         init.sh: improve portability and efficiency
37933         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37934         "dummy" in a for loop.
37935         Use '!', not '^' to select the complement of a character set used
37936         in a "case" statement.
37937         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37938         Suggestions from Eric Blake.
37939
37940         init.sh: automatically accommodate programs with the .exe suffix
37941         Automatically arrange for an invocation of "prog" to execute the
37942         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37943         may use the simpler "prog", yet still work when built on a system
37944         that requires specifying the added suffix.
37945         Do this by constructing a function named "prog" that invokes
37946         "prog.exe" for each .exe file in selected directories.
37947         * tests/init.sh (find_exe_basenames_): New function.
37948         (create_exe_shim_functions_): New function.
37949         (path_prepend_): Use it.
37950
37951         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37952         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37953         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37954
37955 2010-02-14  Jim Meyering  <meyering@redhat.com>
37956
37957         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37958         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37959         (sc_prohibit_hash_pjw_without_use): New rule.
37960
37961         maint.mk: allow the default upload destination dir to be overridden
37962         * top/maint.mk (upload_dest_dir_): Define with a default that
37963         preserves the status quo.
37964         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37965         Reported by Peter Simons.
37966
37967         maint.mk: prohibit inclusion of "hash.h" without_use
37968         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37969
37970 2010-02-10  Jim Meyering  <meyering@redhat.com>
37971
37972         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37973         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37974
37975 2010-02-09  Eric Blake  <ebb9@byu.net>
37976         and Bruno Haible  <bruno@clisp.org>
37977
37978         obstack-printf-posix: ensure declaration
37979         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37980         extracted from gl_FUNC_OBSTACK_PRINTF.
37981         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37982         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37983         Likewise.
37984         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37985         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37986         0.
37987
37988 2010-02-08  Bruno Haible  <bruno@clisp.org>
37989
37990         gnulib-tool: Fix typo in 2010-02-07 commit.
37991         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37992         Reported by Eric Blake.
37993
37994 2010-02-07  Bruno Haible  <bruno@clisp.org>
37995
37996         gnulib-tool: Fix up caching patches.
37997         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37998         option --no-cache. Use associative arrays when supported by the shell.
37999         (sed_comments): New variable.
38000         (modcache): Renamed from do_cache.
38001         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38002         abbreviate unnecessarily.
38003         (have_associative): New variable.
38004         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38005         way also for ksh and zsh.
38006         (func_init_sed_convert_to_cache_statements): New function, extracted
38007         from func_cache_lookup_module. Add support for associative arrays.
38008         Don't set the c_MODULE_cached variable here. Ignore all lines before
38009         the first field header. Remove only the final newline, not all trailing
38010         newlines. Support empty fields correctly. Limit the use of 'eval' to
38011         assignments.
38012         (func_get_description, func_get_status, func_get_notice,
38013         func_get_applicability, func_get_filelist, func_get_dependencies,
38014         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38015         func_get_automake_snippet, func_get_include_directive,
38016         func_get_link_directive, func_get_license, func_get_maintainer):
38017         Update documentation. List the unoptimized code first. Add support for
38018         associative arrays. Limit the use of 'eval' to assignments.
38019         (func_get_applicability): Undo stylistic pessimisations.
38020         (func_get_automake_snippet, func_get_include_directive): Reduce code
38021         duplication.
38022         (func_modules_transitive_closure, func_modules_add_dummy,
38023         func_modules_notice, func_modules_to_filelist, func_add_file,
38024         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38025         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38026         func_create_testdir, func_create_megatestdir): Update documentation.
38027
38028 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38029
38030         * gnulib-tool (func_cache_lookup_module): Store the module name
38031         belonging to the cache variable; error out if two different
38032         module names map to the same cache variable name.
38033
38034 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38035
38036         gnulib-tool: Make caching optional.
38037         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38038         Update matching short versions of --no-changelog.
38039         (func_usage): Update.
38040         (sed_extract_cache_prog): Renamed from ...
38041         (sed_extract_prog): ... this; revert to old extraction script.
38042         (func_get_description, func_get_status)
38043         (func_get_notice, func_get_applicability, func_get_filelist)
38044         (func_get_dependencies, func_get_autoconf_early_snippet)
38045         (func_get_autoconf_snippet, func_get_automake_snippet)
38046         (func_get_include_directive, func_get_link_directive)
38047         (func_get_license, func_get_maintainer): If $do_cache is false,
38048         use old, non-caching extraction scripts.
38049         Suggestion by Bruno Haible.
38050
38051 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38052
38053         gnulib-tool: cache module metainformation.
38054         * gnulib-tool (sed_extract_prog): Match newline before each
38055         header, and rewrite header to a shell variable suffix.
38056         (func_cache_var, func_cache_lookup_module): New functions,
38057         to turn a module name into a cache variable prefix, and to
38058         look up and cache module metainformation.
38059         (func_get_description, func_get_status)
38060         (func_get_notice, func_get_applicability, func_get_filelist)
38061         (func_get_dependencies, func_get_autoconf_early_snippet)
38062         (func_get_autoconf_snippet, func_get_automake_snippet)
38063         (func_get_include_directive, func_get_link_directive)
38064         (func_get_license, func_get_maintainer): Use
38065         func_cache_lookup_module.
38066
38067 2010-02-07  Bruno Haible  <bruno@clisp.org>
38068
38069         fnctl: Fix missing dependency.
38070         * modules/fcntl (Depends-on): Add getdtablesize.
38071         Reported by John W. Eaton <jwe@gnu.org>.
38072
38073 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38074
38075         Argp: fix recognition of short alias options.
38076
38077         * lib/argp-parse.c (convert_options): Fix improper use of
38078         `|' between character values.
38079         * tests/test-argp.c (group1_option): New alias option
38080         --read (-r).
38081         (group1_parser): Special handling for 'r'.
38082         (test15): New test case.
38083         (test_fun): Add test15.
38084         * tests/test-argp-2.sh: Update expected --help and --usage
38085         outputs.
38086
38087 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38088
38089         * tests/test-argp.c: Fix indentation.
38090
38091 2010-02-04  Eric Blake  <ebb9@byu.net>
38092
38093         gettimeofday: expose type of second argument
38094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38095         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38096         * tests/test-gettimeofday.c: Use it to silence warning.
38097         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38098         the issue.
38099
38100 2010-02-03  Jim Meyering  <meyering@redhat.com>
38101
38102         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38103         * lib/regcomp.c (TYPE_SIGNED): Define.
38104         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38105
38106         regcomp.c: avoid a new -Wshadow warning
38107         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38108
38109 2010-02-01  Jim Meyering  <meyering@redhat.com>
38110
38111         removing useless parentheses in cpp #define directives
38112         For motivation, see commit c0221df4, "define STREQ(a,b)
38113         consistently, removing useless parentheses"
38114         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38115         * lib/mountlist.c (MNT_IGNORE): Likewise.
38116         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38117
38118 2010-02-01  Eric Blake  <ebb9@byu.net>
38119
38120         sys_time: use link-warning
38121         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38122         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38123         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38124         * modules/sys_time (Depends-on): Add warn-on-use.
38125         (Makefile.am): Always build replacement.
38126         (configure.ac): Update substitutions.
38127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38128         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38129         bother with SYS_TIME_H.
38130         * modules/gettimeofday (configure.ac): Declare indicator.
38131         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38132         in use.
38133
38134         closein-tests: silence compiler warning
38135         * tests/test-closein.c (main): Ignore fread result.
38136         * modules/closein-tests (Depends-on): Add ignore-value.
38137
38138         tests: silence warning about system return
38139         * tests/test-areadlink-with-size.c (main): Ignore system result.
38140         * tests/test-areadlink.c (main): Likewise.
38141         * tests/test-areadlinkat-with-size.c (main): Likewise.
38142         * tests/test-areadlinkat.c (main): Likewise.
38143         * tests/test-canonicalize-lgpl.c (main): Likewise.
38144         * tests/test-canonicalize.c (main): Likewise.
38145         * tests/test-chown.c (main): Likewise.
38146         * tests/test-fchownat.c (main): Likewise.
38147         * tests/test-fdutimensat.c (main): Likewise.
38148         * tests/test-fstatat.c (main): Likewise.
38149         * tests/test-futimens.c (main): Likewise.
38150         * tests/test-lchown.c (main): Likewise.
38151         * tests/test-link.c (main): Likewise.
38152         * tests/test-linkat.c (main): Likewise.
38153         * tests/test-lstat.c (main): Likewise.
38154         * tests/test-mkdir.c (main): Likewise.
38155         * tests/test-mkdirat.c (main): Likewise.
38156         * tests/test-mkfifo.c (main): Likewise.
38157         * tests/test-mkfifoat.c (main): Likewise.
38158         * tests/test-mknod.c (main): Likewise.
38159         * tests/test-readlink.c (main): Likewise.
38160         * tests/test-remove.c (main): Likewise.
38161         * tests/test-rename.c (main): Likewise.
38162         * tests/test-renameat.c (main): Likewise.
38163         * tests/test-rmdir.c (main): Likewise.
38164         * tests/test-symlink.c (main): Likewise.
38165         * tests/test-symlinkat.c (main): Likewise.
38166         * tests/test-unlink.c (main): Likewise.
38167         * tests/test-unlinkat.c (main): Likewise.
38168         * tests/test-utimens.c (main): Likewise.
38169         * tests/test-utimensat.c (main): Likewise.
38170         * modules/areadlink-tests (Depends-on): Add ignore-value.
38171         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38172         * modules/areadlinkat-tests (Depends-on): Likewise.
38173         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38174         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38175         * modules/canonicalize-tests (Depends-on): Likewise.
38176         * modules/chown-tests (Depends-on): Likewise.
38177         * modules/fdutimensat-tests (Depends-on): Likewise.
38178         * modules/futimens-tests (Depends-on): Likewise.
38179         * modules/lchown-tests (Depends-on): Likewise.
38180         * modules/link-tests (Depends-on): Likewise.
38181         * modules/linkat-tests (Depends-on): Likewise.
38182         * modules/lstat-tests (Depends-on): Likewise.
38183         * modules/mkdir-tests (Depends-on): Likewise.
38184         * modules/mkfifo-tests (Depends-on): Likewise.
38185         * modules/mkfifoat-tests (Depends-on): Likewise.
38186         * modules/mknod-tests (Depends-on): Likewise.
38187         * modules/openat-tests (Depends-on): Likewise.
38188         * modules/readlink-tests (Depends-on): Likewise.
38189         * modules/remove-tests (Depends-on): Likewise.
38190         * modules/rename-tests (Depends-on): Likewise.
38191         * modules/renameat-tests (Depends-on): Likewise.
38192         * modules/rmdir-tests (Depends-on): Likewise.
38193         * modules/symlink-tests (Depends-on): Likewise.
38194         * modules/symlinkat-tests (Depends-on): Likewise.
38195         * modules/unlink-tests (Depends-on): Likewise.
38196         * modules/utimens-tests (Depends-on): Likewise.
38197         * modules/utimensat-tests (Depends-on): Likewise.
38198
38199 2010-01-31  Bruno Haible  <bruno@clisp.org>
38200
38201         Perform the same test for many <math.h> functions.
38202         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38203         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38204         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38205         of gl_MATHFUNC.
38206         * modules/acos (configure.ac): Likewise.
38207         * modules/asin (configure.ac): Likewise.
38208         * modules/atan (configure.ac): Likewise.
38209         * modules/atan2 (configure.ac): Likewise.
38210         * modules/cbrt (configure.ac): Likewise.
38211         * modules/copysign (configure.ac): Likewise.
38212         * modules/cos (configure.ac): Likewise.
38213         * modules/cosh (configure.ac): Likewise.
38214         * modules/erf (configure.ac): Likewise.
38215         * modules/erfc (configure.ac): Likewise.
38216         * modules/exp (configure.ac): Likewise.
38217         * modules/fmod (configure.ac): Likewise.
38218         * modules/hypot (configure.ac): Likewise.
38219         * modules/j0 (configure.ac): Likewise.
38220         * modules/j1 (configure.ac): Likewise.
38221         * modules/jn (configure.ac): Likewise.
38222         * modules/lgamma (configure.ac): Likewise.
38223         * modules/log (configure.ac): Likewise.
38224         * modules/log10 (configure.ac): Likewise.
38225         * modules/log1p (configure.ac): Likewise.
38226         * modules/pow (configure.ac): Likewise.
38227         * modules/remainder (configure.ac): Likewise.
38228         * modules/sin (configure.ac): Likewise.
38229         * modules/sinh (configure.ac): Likewise.
38230         * modules/tan (configure.ac): Likewise.
38231         * modules/tanh (configure.ac): Likewise.
38232         * modules/y0 (configure.ac): Likewise.
38233         * modules/y1 (configure.ac): Likewise.
38234         * modules/yn (configure.ac): Likewise.
38235         Suggested by Paolo Bonzini.
38236
38237 2010-01-31  Bruno Haible  <bruno@clisp.org>
38238
38239         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38240
38241 2010-01-31  Bruno Haible  <bruno@clisp.org>
38242
38243         Work around getdelim() bug on FreeBSD 8.0.
38244         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38245         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38246         not work.
38247         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38248         is 1.
38249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38250         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38251         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38252         a non-zero size.
38253         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38254
38255 2010-01-31  Bruno Haible  <bruno@clisp.org>
38256
38257         Work around getline() bug on FreeBSD 8.0.
38258         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38259         and a non-zero size.
38260         * tests/test-getline.c (main): Likewise.
38261         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38262         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38263
38264 2010-01-28  Eric Blake  <ebb9@byu.net>
38265
38266         regex: fix build failure
38267         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38268         platforms.
38269
38270 2010-01-28  Jim Meyering  <meyering@redhat.com>
38271
38272         regex: do not ignore memory allocation failure
38273         * lib/regex_internal.c (create_cd_newstate): Detect
38274         re_node_set_init_copy failure.   Extracted from glibc commit
38275         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38276
38277         regex: sync more white-space changes from libc
38278         * lib/regex_internal.c: White-space only changes.
38279         * lib/regexec.c: Likewise.
38280
38281         regex: add many uses of __attribute_warn_unused_result__
38282         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38283         * lib/regexec.c: Likewise.
38284         Extracted from a messy glibc commit.
38285
38286         regcomp.c: spelling and merge-artifact from glibc
38287         * lib/regcomp.c: Merge remainder of glibc's
38288         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38289
38290         regcomp.c: sync white-space changes from glibc
38291         * lib/regcomp.c: Merge to accommodate white space
38292         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38293
38294         regcomp.c: do not ignore internal return values
38295         * lib/regcomp.c: Do not ignore internal return values.
38296         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38297         but without its white-space changes and spelling fixes.
38298
38299         regex_internal.h: define __attribute_warn_unused_result__
38300         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38301
38302         maint: add a syntax-check rule to check for vulnerable Makefile.in
38303         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38304
38305 2010-01-27  Jim Meyering  <meyering@redhat.com>
38306
38307         ncftpput-ftp: clean up spaces
38308         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38309         Remove trailing blanks.
38310
38311 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38312
38313         * build-aux/git-version-gen: Fix copyright statement.
38314         * build-aux/gnupload: Likewise.
38315         * tests/test-arcfour.c: Likewise.
38316         * tests/test-arctwo.c: Likewise.
38317         * tests/test-count-one-bits.c: Likewise.
38318         * tests/test-crc.c: Likewise.
38319         * tests/test-des.c: Likewise.
38320         * tests/test-gc-arcfour.c: Likewise.
38321         * tests/test-gc-arctwo.c: Likewise.
38322         * tests/test-gc-des.c: Likewise.
38323         * tests/test-gc-hmac-md5.c: Likewise.
38324         * tests/test-gc-hmac-sha1.c: Likewise.
38325         * tests/test-gc-md2.c: Likewise.
38326         * tests/test-gc-md4.c: Likewise.
38327         * tests/test-gc-md5.c: Likewise.
38328         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38329         * tests/test-gc-rijndael.c: Likewise.
38330         * tests/test-gc-sha1.c: Likewise.
38331         * tests/test-gc.c: Likewise.
38332         * tests/test-gethostname.c: Likewise.
38333         * tests/test-gettimeofday.c: Likewise.
38334         * tests/test-hash.c: Likewise.
38335         * tests/test-hmac-md5.c: Likewise.
38336         * tests/test-hmac-sha1.c: Likewise.
38337         * tests/test-md2.c: Likewise.
38338         * tests/test-md4.c: Likewise.
38339         * tests/test-md5.c: Likewise.
38340         * tests/test-memchr.c: Likewise.
38341         * tests/test-memchr2.c: Likewise.
38342         * tests/test-memcmp.c: Likewise.
38343         * tests/test-memmem.c: Likewise.
38344         * tests/test-memrchr.c: Likewise.
38345         * tests/test-rawmemchr.c: Likewise.
38346         * tests/test-read-file.c: Likewise.
38347         * tests/test-rijndael.c: Likewise.
38348         * tests/test-sockets.c: Likewise.
38349         * tests/test-strchrnul.c: Likewise.
38350         * tests/test-strstr.c: Likewise.
38351         * tests/test-strtod.c: Likewise.
38352         * build-aux/ncftpput-ftp: Likewise.
38353
38354 2010-01-26  Eric Blake  <ebb9@byu.net>
38355
38356         ignore-value: update recommended header name
38357         * modules/ignore-value (Include): Only use <> for headers that
38358         exist in glibc.
38359
38360 2010-01-26  Jim Meyering  <meyering@redhat.com>
38361
38362         test-userspec.c: avoid compiler warnings
38363         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38364         and "initialization discards qualifiers..." warnings.
38365         Put the first "uid" in its own scope, and make char* members "const".
38366
38367 2010-01-25  Bruno Haible  <bruno@clisp.org>
38368
38369         gnulib-tool: Make warning diagnostics consistent.
38370         * gnulib-tool (func_warning): New function.
38371         Use it everywhere where gnulib-tool produces output to stderr and it is
38372         not a fatal error.
38373
38374 2010-01-25  Bruno Haible  <bruno@clisp.org>
38375
38376         Fix test dependencies.
38377         * modules/xstrtol-tests (Depends-on): Add inttypes.
38378         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38379
38380 2010-01-25 Pádraig Brady <P@draigBrady.com>
38381
38382         syntax-check: detect incorrect boolean macro values in config.h
38383         * modules/maintainer-makefile (configure.ac): Parameterize the location
38384         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38385         The logic is from Eric Blake and the location indicated by Jim Meyering.
38386         Note the more natural CONFIG_HEADER name is prohibited by automake
38387         for backwards compatibility reasons.
38388         * top/maint.mk (sc_Wundef_boolean): New rule.
38389
38390 2010-01-25  Jim Meyering  <meyering@redhat.com>
38391
38392         bootstrap: detect MacOS 10.6's shasum, too
38393         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38394         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38395
38396 2010-01-23  Jim Meyering  <meyering@redhat.com>
38397
38398         xstrtoll: new module
38399         * modules/xstrtoll: New file.
38400         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38401         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38402         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38403         ./configure fails if you use this module and lack "long long".
38404         * modules/xstrtoll-tests: New module.
38405         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38406         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38407         new init.sh-based test framework.
38408
38409 2010-01-24  Bruno Haible  <bruno@clisp.org>
38410
38411         Tests for module 'yn'.
38412         * modules/yn-tests: New file.
38413         * tests/test-yn.c: New file.
38414
38415         Tests for module 'y1'.
38416         * modules/y1-tests: New file.
38417         * tests/test-y1.c: New file.
38418
38419         Tests for module 'y0'.
38420         * modules/y0-tests: New file.
38421         * tests/test-y0.c: New file.
38422
38423         Tests for module 'tanh'.
38424         * modules/tanh-tests: New file.
38425         * tests/test-tanh.c: New file.
38426
38427         Tests for module 'tan'.
38428         * modules/tan-tests: New file.
38429         * tests/test-tan.c: New file.
38430
38431         Tests for module 'sqrt'.
38432         * modules/sqrt-tests: New file.
38433         * tests/test-sqrt.c: New file.
38434
38435         Tests for module 'sinh'.
38436         * modules/sinh-tests: New file.
38437         * tests/test-sinh.c: New file.
38438
38439         Tests for module 'sin'.
38440         * modules/sin-tests: New file.
38441         * tests/test-sin.c: New file.
38442
38443         Tests for module 'rint'.
38444         * modules/rint-tests: New file.
38445         * tests/test-rint.c: New file.
38446
38447         Tests for module 'remainder'.
38448         * modules/remainder-tests: New file.
38449         * tests/test-remainder.c: New file.
38450
38451         Tests for module 'pow'.
38452         * modules/pow-tests: New file.
38453         * tests/test-pow.c: New file.
38454
38455         Tests for module 'nextafter'.
38456         * modules/nextafter-tests: New file.
38457         * tests/test-nextafter.c: New file.
38458
38459         Tests for module 'modf'.
38460         * modules/modf-tests: New file.
38461         * tests/test-modf.c: New file.
38462
38463         Tests for module 'logb'.
38464         * modules/logb-tests: New file.
38465         * tests/test-logb.c: New file.
38466
38467         Tests for module 'log1p'.
38468         * modules/log1p-tests: New file.
38469         * tests/test-log1p.c: New file.
38470
38471         Tests for module 'log10'.
38472         * modules/log10-tests: New file.
38473         * tests/test-log10.c: New file.
38474
38475         Tests for module 'log'.
38476         * modules/log-tests: New file.
38477         * tests/test-log.c: New file.
38478
38479         Tests for module 'lgamma'.
38480         * modules/lgamma-tests: New file.
38481         * tests/test-lgamma.c: New file.
38482
38483         Tests for module 'ldexp'.
38484         * modules/ldexp-tests: New file.
38485         * tests/test-ldexp.c: New file.
38486
38487         Tests for module 'jn'.
38488         * modules/jn-tests: New file.
38489         * tests/test-jn.c: New file.
38490
38491         Tests for module 'j1'.
38492         * modules/j1-tests: New file.
38493         * tests/test-j1.c: New file.
38494
38495         Tests for module 'j0'.
38496         * modules/j0-tests: New file.
38497         * tests/test-j0.c: New file.
38498
38499         Tests for module 'hypot'.
38500         * modules/hypot-tests: New file.
38501         * tests/test-hypot.c: New file.
38502
38503         Tests for module 'fmod'.
38504         * modules/fmod-tests: New file.
38505         * tests/test-fmod.c: New file.
38506
38507         Tests for module 'fabs'.
38508         * modules/fabs-tests: New file.
38509         * tests/test-fabs.c: New file.
38510
38511         Tests for module 'exp'.
38512         * modules/exp-tests: New file.
38513         * tests/test-exp.c: New file.
38514
38515         Tests for module 'erfc'.
38516         * modules/erfc-tests: New file.
38517         * tests/test-erfc.c: New file.
38518
38519         Tests for module 'erf'.
38520         * modules/erf-tests: New file.
38521         * tests/test-erf.c: New file.
38522
38523         Tests for module 'cosh'.
38524         * modules/cosh-tests: New file.
38525         * tests/test-cosh.c: New file.
38526
38527         Tests for module 'cos'.
38528         * modules/cos-tests: New file.
38529         * tests/test-cos.c: New file.
38530
38531         Tests for module 'copysign'.
38532         * modules/copysign-tests: New file.
38533         * tests/test-copysign.c: New file.
38534
38535         Tests for module 'cbrt'.
38536         * modules/cbrt-tests: New file.
38537         * tests/test-cbrt.c: New file.
38538
38539         Tests for module 'atan2'.
38540         * modules/atan2-tests: New file.
38541         * tests/test-atan2.c: New file.
38542
38543         Tests for module 'atan'.
38544         * modules/atan-tests: New file.
38545         * tests/test-atan.c: New file.
38546
38547         Tests for module 'asin'.
38548         * modules/asin-tests: New file.
38549         * tests/test-asin.c: New file.
38550
38551         Tests for module 'acos'.
38552         * modules/acos-tests: New file.
38553         * tests/test-acos.c: New file.
38554
38555 2010-01-24  Bruno Haible  <bruno@clisp.org>
38556
38557         Fix tests for common <math.h> functions.
38558         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38559         code snippet that references the function pointer, rather than merely
38560         calling the function. Substitute the FUNC_LIBM variable.
38561         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38562         * modules/acos (configure.ac): Likewise.
38563         * modules/asin (configure.ac): Likewise.
38564         * modules/atan (configure.ac): Likewise.
38565         * modules/atan2 (configure.ac): Likewise.
38566         * modules/cbrt (configure.ac): Likewise.
38567         * modules/copysign (configure.ac): Likewise.
38568         * modules/cos (configure.ac): Likewise.
38569         * modules/cosh (configure.ac): Likewise.
38570         * modules/erf (configure.ac): Likewise.
38571         * modules/erfc (configure.ac): Likewise.
38572         * modules/exp (configure.ac): Likewise.
38573         * modules/fabs (configure.ac): Likewise.
38574         * modules/fmod (configure.ac): Likewise.
38575         * modules/hypot (configure.ac): Likewise.
38576         * modules/j0 (configure.ac): Likewise.
38577         * modules/j1 (configure.ac): Likewise.
38578         * modules/jn (configure.ac): Likewise.
38579         * modules/ldexp (configure.ac): Likewise.
38580         * modules/lgamma (configure.ac): Likewise.
38581         * modules/log (configure.ac): Likewise.
38582         * modules/log10 (configure.ac): Likewise.
38583         * modules/log1p (configure.ac): Likewise.
38584         * modules/logb (configure.ac): Likewise.
38585         * modules/modf (configure.ac): Likewise.
38586         * modules/nextafter (configure.ac): Likewise.
38587         * modules/pow (configure.ac): Likewise.
38588         * modules/remainder (configure.ac): Likewise.
38589         * modules/rint (configure.ac): Likewise.
38590         * modules/sin (configure.ac): Likewise.
38591         * modules/sinh (configure.ac): Likewise.
38592         * modules/tan (configure.ac): Likewise.
38593         * modules/tanh (configure.ac): Likewise.
38594         * modules/y0 (configure.ac): Likewise.
38595         * modules/y1 (configure.ac): Likewise.
38596         * modules/yn (configure.ac): Likewise.
38597
38598 2010-01-24  Bruno Haible  <bruno@clisp.org>
38599
38600         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38601         * tests/test-acosl.c (x): New variable.
38602         (main): Store argument in x and fetch it from x.
38603         * tests/test-asinl.c (x): New variable.
38604         (main): Store argument in x and fetch it from x.
38605         * tests/test-atanl.c (x): New variable.
38606         (main): Store argument in x and fetch it from x.
38607         * tests/test-cosl.c (x): New variable.
38608         (main): Store argument in x and fetch it from x.
38609         * tests/test-expl.c (x): New variable.
38610         (main): Store argument in x and fetch it from x.
38611         * tests/test-logl.c (x): New variable.
38612         (main): Store argument in x and fetch it from x.
38613         * tests/test-sinl.c (x): New variable.
38614         (main): Store argument in x and fetch it from x.
38615         * tests/test-sqrtl.c (x): New variable.
38616         (main): Store argument in x and fetch it from x.
38617         * tests/test-tanl.c (x): New variable.
38618         (main): Store argument in x and fetch it from x.
38619
38620 2010-01-24  Bruno Haible  <bruno@clisp.org>
38621
38622         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38623         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38624         assignments to the initial TESTS_ENVIRONMENT.
38625         * doc/gnulib.texi (Unit test modules): Document it.
38626         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38627         TESTS_ENVIRONMENT.
38628         * modules/btowc-tests (Makefile.am): Likewise.
38629         * modules/c-stack-tests (Makefile.am): Likewise.
38630         * modules/c-strcase-tests (Makefile.am): Likewise.
38631         * modules/copy-file-tests (Makefile.am): Likewise.
38632         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38633         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38634         * modules/mbrtowc-tests (Makefile.am): Likewise.
38635         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38636         * modules/mbscasestr-tests (Makefile.am): Likewise.
38637         * modules/mbschr-tests (Makefile.am): Likewise.
38638         * modules/mbscspn-tests (Makefile.am): Likewise.
38639         * modules/mbsinit-tests (Makefile.am): Likewise.
38640         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38641         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38642         * modules/mbspbrk-tests (Makefile.am): Likewise.
38643         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38644         * modules/mbsrchr-tests (Makefile.am): Likewise.
38645         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38646         * modules/mbsspn-tests (Makefile.am): Likewise.
38647         * modules/mbsstr-tests (Makefile.am): Likewise.
38648         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38649         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38650         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38651         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38652         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38653         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38654         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38655         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38656         * modules/wcrtomb-tests (Makefile.am): Likewise.
38657         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38658         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38659         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38660         assignments from TESTS_ENVIRONMENT.
38661         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38662         augmentation.
38663         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38664         * modules/atexit-tests (Makefile.am): Likewise.
38665         * modules/binary-io-tests (Makefile.am): Likewise.
38666         * modules/closein-tests (Makefile.am): Likewise.
38667         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38668         * modules/exclude-tests (Makefile.am): Likewise.
38669         * modules/fflush-tests (Makefile.am): Likewise.
38670         * modules/fpending-tests (Makefile.am): Likewise.
38671         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38672         * modules/freadahead-tests (Makefile.am): Likewise.
38673         * modules/freadptr-tests (Makefile.am): Likewise.
38674         * modules/freadseek-tests (Makefile.am): Likewise.
38675         * modules/fseek-tests (Makefile.am): Likewise.
38676         * modules/fseeko-tests (Makefile.am): Likewise.
38677         * modules/ftell-tests (Makefile.am): Likewise.
38678         * modules/ftello-tests (Makefile.am): Likewise.
38679         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38680         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38681         * modules/lseek-tests (Makefile.am): Likewise.
38682         * modules/parse-duration-tests (Makefile.am): Likewise.
38683         * modules/perror-tests (Makefile.am): Likewise.
38684         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38685         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38686         * modules/pipe-tests (Makefile.am): Likewise.
38687         * modules/pread-tests (Makefile.am): Likewise.
38688         * modules/printf-posix-tests (Makefile.am): Likewise.
38689         * modules/select-tests (Makefile.am): Likewise.
38690         * modules/sigpipe-tests (Makefile.am): Likewise.
38691         * modules/tsearch-tests (Makefile.am): Likewise.
38692         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38693         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38694         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38695         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38696         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38697         * modules/version-etc-tests (Makefile.am): Likewise.
38698         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38699         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38700         * modules/xalloc-die-tests (Makefile.am): Likewise.
38701         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38702         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38703         * modules/xstrtol-tests (Makefile.am): Likewise.
38704         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38705         * modules/yesno-tests (Makefile.am): Likewise.
38706         Suggested by Jim Meyering.
38707
38708 2010-01-24  Bruno Haible  <bruno@clisp.org>
38709
38710         More documentation.
38711         * doc/gnulib.texi (Writing modules): New chapter.
38712         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38713         the new chapter.
38714
38715 2010-01-24  Jim Meyering  <meyering@redhat.com>
38716
38717         maint.mk: do not prepend "./" after filtering
38718         * top/maint.mk (_prepend_srcdir_prefix): New variable
38719         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38720         "./" when $(srcdir) is ".".
38721
38722         define STREQ(a,b) consistently, removing useless parentheses
38723         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38724         since the only risk is that "a" or "b" contains an unparenthesized
38725         comma, but if either did that, STREQ would have 3 or more arguments.
38726         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38727         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38728         * lib/hash-triple.c (STREQ): Likewise.
38729         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38730         * lib/getugroups.c (STREQ): Likewise.
38731
38732 2010-01-23  Jim Meyering  <meyering@redhat.com>
38733
38734         maint.mk: fix syntax-check in a non-srcdir build directory
38735         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38736         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38737
38738 2010-01-22  Jim Meyering  <meyering@redhat.com>
38739
38740         userspec: add unit tests
38741         * tests/test-userspec.c: New file.
38742         * modules/userspec-tests: Likewise.
38743
38744 2010-01-21  Jim Meyering  <meyering@redhat.com>
38745
38746         maint.mk: handle source file names containing "." robustly
38747         * top/maint.mk (_dot_escaped_srcdir): Define.
38748         (VC_LIST): Use it in LHS of sed substitution.
38749
38750 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38751
38752         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38753         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38754         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38755         from a non-srcdir build.
38756
38757 2010-01-20  Eric Blake  <ebb9@byu.net>
38758
38759         warn-on-use: use instead of link-warning
38760         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38761         * modules/unistd (Depends-on, Makefile.am): Likewise.
38762         * modules/arpa_inet (Depends-on): Replace link-warning with
38763         warn-on-use.
38764         (Makefile.am): Update rules accordingly.
38765         * modules/ctype (Depends-on, Makefile.am): Likewise.
38766         * modules/dirent (Depends-on, Makefile.am): Likewise.
38767         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38768         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38769         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38770         * modules/locale (Depends-on, Makefile.am): Likewise.
38771         * modules/math (Depends-on, Makefile.am): Likewise.
38772         * modules/search (Depends-on, Makefile.am): Likewise.
38773         * modules/signal (Depends-on, Makefile.am): Likewise.
38774         * modules/spawn (Depends-on, Makefile.am): Likewise.
38775         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38776         * modules/string (Depends-on, Makefile.am): Likewise.
38777         * modules/strings (Depends-on, Makefile.am): Likewise.
38778         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38779         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38780         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38781         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38782         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38783         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38784         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38785         * modules/wchar (Depends-on, Makefile.am): Likewise.
38786         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38787         should be poisoned.
38788         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38789         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38790         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38792         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38794         * m4/math_h.m4 (gl_MATH_H): Likewise.
38795         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38796         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38797         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38798         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38799         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38800         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38801         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38802         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38803         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38807         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38808         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38809         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38810         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38811         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38812         GL_LINK_WARNING.
38813         * lib/ctype.in.h: Likewise.
38814         * lib/dirent.in.h: Likewise.
38815         * lib/fcntl.in.h: Likewise.
38816         * lib/inttypes.in.h: Likewise.
38817         * lib/langinfo.in.h: Likewise.
38818         * lib/locale.in.h: Likewise.
38819         * lib/math.in.h: Likewise.
38820         * lib/search.in.h: Likewise.
38821         * lib/signal.in.h: Likewise.
38822         * lib/spawn.in.h: Likewise.
38823         * lib/stdio.in.h: Likewise.
38824         * lib/stdlib.in.h: Likewise.
38825         * lib/string.in.h: Likewise.
38826         * lib/strings.in.h: Likewise.
38827         * lib/sys_file.in.h: Likewise.
38828         * lib/sys_ioctl.in.h: Likewise.
38829         * lib/sys_select.in.h: Likewise.
38830         * lib/sys_socket.in.h: Likewise.
38831         * lib/sys_stat.in.h: Likewise.
38832         * lib/sys_times.in.h: Likewise.
38833         * lib/sys_utsname.in.h: Likewise.
38834         * lib/unistd.in.h: Likewise.
38835         * lib/wchar.in.h: Likewise.
38836
38837 2010-01-20  Bruno Haible  <bruno@clisp.org>
38838
38839         Avoid duplicate -lm.
38840         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38841         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38842         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38843         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38844         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38845         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38846         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38847         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38849         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38850         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38851         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38852         Reported by Paolo Bonzini.
38853
38854 2010-01-19  Bruno Haible  <bruno@clisp.org>
38855
38856         langinfo, nl_langinfo: Relicense under LGPLv2+.
38857         * modules/langinfo (License): Change to LGPLv2+.
38858         * modules/nl_langinfo (License): Likewise.
38859         Patch by David Lutterkort <lutter@redhat.com>.
38860
38861 2010-01-19  Bruno Haible  <bruno@clisp.org>
38862
38863         Avoid compilation error with cc on OSF/1 5.1.
38864         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38865         statement, not before.
38866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38867
38868 2010-01-18  Bruno Haible  <bruno@clisp.org>
38869
38870         Avoid a link error due to the __printf__ symbol.
38871         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38872         and 2.6.x.
38873         (__format__, __printf__): Remove definitions.
38874         * lib/argp-fmtstream.h: Likewise.
38875         * lib/argp.h: Likewise.
38876         * lib/error.h: Likewise.
38877         * lib/vasnprintf.h: Likewise.
38878         * lib/xprintf.h: Likewise.
38879         * lib/xvasprintf.h: Likewise.
38880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38881
38882 2010-01-18  Bruno Haible  <bruno@clisp.org>
38883
38884         Tests for module 'tanl'.
38885         * modules/tanl-tests: New file.
38886         * tests/test-tanl.c: New file.
38887
38888         Tests for module 'sqrtl'.
38889         * modules/sqrtl-tests: New file.
38890         * tests/test-sqrtl.c: New file.
38891
38892         Tests for module 'sinl'.
38893         * modules/sinl-tests: New file.
38894         * tests/test-sinl.c: New file.
38895
38896         Tests for module 'logl'.
38897         * modules/logl-tests: New file.
38898         * tests/test-logl.c: New file.
38899
38900         Tests for module 'expl'.
38901         * modules/expl-tests: New file.
38902         * tests/test-expl.c: New file.
38903
38904         Tests for module 'cosl'.
38905         * modules/cosl-tests: New file.
38906         * tests/test-cosl.c: New file.
38907
38908         Tests for module 'atanl'.
38909         * modules/atanl-tests: New file.
38910         * tests/test-atanl.c: New file.
38911
38912         Tests for module 'asinl'.
38913         * modules/asinl-tests: New file.
38914         * tests/test-asinl.c: New file.
38915
38916         Tests for module 'acosl'.
38917         * modules/acosl-tests: New file.
38918         * tests/test-acosl.c: New file.
38919
38920         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38921         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38922         tanl): Use the standard gnulib idiom.
38923         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38924         * lib/sinl.c: Likewise.
38925         * lib/tanl.c: Don't include trigl.c.
38926         (kernel_tanl): Make static.
38927         * lib/sincosl.c: Include trigl.h first.
38928         * lib/trigl.c: Likewise.
38929         * m4/acosl.m4: New file.
38930         * m4/asinl.m4: New file.
38931         * m4/atanl.m4: New file.
38932         * m4/cosl.m4: New file.
38933         * m4/expl.m4: New file.
38934         * m4/logl.m4: New file.
38935         * m4/sinl.m4: New file.
38936         * m4/sqrtl.m4: New file.
38937         * m4/tanl.m4: New file.
38938         * m4/mathl.m4: Remove file.
38939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38940         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38941         Don't initialize GNULIB_MATHL.
38942         * modules/acosl: New file.
38943         * modules/asinl: New file.
38944         * modules/atanl: New file.
38945         * modules/cosl: New file.
38946         * modules/expl: New file.
38947         * modules/logl: New file.
38948         * modules/sinl: New file.
38949         * modules/sqrtl: New file.
38950         * modules/tanl: New file.
38951         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38952         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38953         substitute GNULIB_MATHL.
38954         * modules/mathl: Rewritten.
38955         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38956         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38957         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38958         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38959         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38960         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38961         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38962         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38963         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38964
38965 2010-01-18  Bruno Haible  <bruno@clisp.org>
38966
38967         sqrt: Make gl_FUNC_SQRT requirable.
38968         * m4/sqrt.m4: New file.
38969         * modules/sqrt (Files): Add it.
38970         (configure.ac): Invoke gl_FUNC_SQRT.
38971
38972 2010-01-18  Bruno Haible  <bruno@clisp.org>
38973
38974         New modules for common <math.h> functions.
38975         * m4/mathfunc.m4: New file.
38976         * modules/acos: New file.
38977         * modules/asin: New file.
38978         * modules/atan: New file.
38979         * modules/atan2: New file.
38980         * modules/cbrt: New file.
38981         * modules/copysign: New file.
38982         * modules/cos: New file.
38983         * modules/cosh: New file.
38984         * modules/erf: New file.
38985         * modules/erfc: New file.
38986         * modules/exp: New file.
38987         * modules/fabs: New file.
38988         * modules/fmod: New file.
38989         * modules/hypot: New file.
38990         * modules/j0: New file.
38991         * modules/j1: New file.
38992         * modules/jn: New file.
38993         * modules/ldexp: New file.
38994         * modules/lgamma: New file.
38995         * modules/log: New file.
38996         * modules/log10: New file.
38997         * modules/log1p: New file.
38998         * modules/logb: New file.
38999         * modules/modf: New file.
39000         * modules/nextafter: New file.
39001         * modules/pow: New file.
39002         * modules/remainder: New file.
39003         * modules/rint: New file.
39004         * modules/sin: New file.
39005         * modules/sinh: New file.
39006         * modules/sqrt: New file.
39007         * modules/tan: New file.
39008         * modules/tanh: New file.
39009         * modules/y0: New file.
39010         * modules/y1: New file.
39011         * modules/yn: New file.
39012         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39013         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39014         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39015         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39016         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39017         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39018         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39019         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39020         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39021         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39022         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39023         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39024         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39025         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39026         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39027         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39028         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39029         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39030         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39031         * doc/posix-functions/log.texi: Mention the 'log' module.
39032         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39033         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39034         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39035         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39036         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39037         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39038         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39039         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39040         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39041         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39042         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39043         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39044         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39045         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39046         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39047         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39048
39049 2010-01-18  Jim Meyering  <meyering@redhat.com>
39050
39051         ignore-value: relax license to LGPLv2+
39052         * modules/ignore-value (License): Relax to LGPLv2+.
39053
39054         getdate: don't leak when TZ contains two or more '"'s
39055         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39056         double quote in TZ after the first one.
39057
39058         readtokens: do not leak internal token_lengths buffer
39059         * lib/readtokens.c (readtokens): Free the local, lengths,
39060         when the supplied "token_lengths" parameter is NULL.
39061
39062 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39063
39064         Fix a couple of missing LIBTHREAD link failures on AIX.
39065         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39066         $(LIBTHREAD).
39067         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39068
39069         Link test-poll against INET_PTON_LIB.
39070         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39071         for inet_pton on Solaris 10.
39072
39073 2010-01-17  Bruno Haible  <bruno@clisp.org>
39074
39075         unistdio/*-sprintf: Fix typo in module description.
39076         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39077         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39078         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39079         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39080         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39081         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39082         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39084
39085 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39086
39087         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39088         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39089         variables in shell case patterns, for AIX and HP-UX ksh.
39090
39091         Split large sed scripts, for HP-UX sed.
39092         * modules/stdio: Split sed scripts around 50 sed commands,
39093         to avoid HP-UX limit of 99 commands, in the near future.
39094         * modules/string: Likewise.
39095         * modules/unistd: Likewise.
39096
39097         gnulib-tool: avoid writing in the current directory.
39098         * gnulib-tool (func_emit_lib_Makefile_am)
39099         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39100         not in the current directory, so concurrent gnulib-tool
39101         instances do not interfere.
39102
39103 2010-01-16  Jim Meyering  <meyering@redhat.com>
39104
39105         doc: update users.txt
39106         * users.txt: Add grep.
39107         (diffutils, gzip): Update URLs.
39108
39109 2010-01-12  Bruno Haible  <bruno@clisp.org>
39110
39111         posix_spawn: Avoid test failure on Cygwin.
39112         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39113         characters.
39114         Reported by Simon Josefsson.
39115
39116 2010-01-12  Bruno Haible  <bruno@clisp.org>
39117
39118         * tests/test-cond.c (main): When skipping the test, show the reason.
39119
39120 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39121
39122         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39123
39124 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39125
39126         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39127         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39128
39129 2010-01-12  Eric Blake  <ebb9@byu.net>
39130
39131         build: guarantee AS_VAR_IF
39132         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39133         (gl_AS_VAR_IF): Move...
39134         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39135         Reported by Simon Josefsson.
39136
39137 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39138
39139         * lib/stdio.in.h: Fix typo.
39140
39141 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39142
39143         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39144         libgpg-error.
39145
39146 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39147
39148         * tests/test-xalloc-die.sh: Use $EXEEXT.
39149
39150 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39151             Bruno Haible  <bruno@clisp.org>
39152
39153         getlogin, getlogin_r: Avoid test failure.
39154         * tests/test-getlogin.c: Include <stdio.h>.
39155         (main): Skip the test when the function fails because stdin is not a
39156         tty.
39157         * tests/test-getlogin_r.c: Include <stdio.h>.
39158         (main): Skip the test when the function fails because stdin is not a
39159         tty.
39160
39161 2010-01-11  Eric Blake  <ebb9@byu.net>
39162
39163         tests: avoid more large file warnings
39164         * tests/test-fflush.c: Avoid warning about ftell use.
39165         * tests/test-fseek.c: Avoid warning about fseek use.
39166
39167 2010-01-10  Bruno Haible  <bruno@clisp.org>
39168
39169         nproc: Work better on Linux when /proc and /sys are not mounted.
39170         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39171         as lower bound when, on glibc/Linux systems,
39172         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39173         Suggested by Pádraig Brady <P@draigbrady.com>.
39174         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39175
39176         nproc: Refactor.
39177         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39178         extracted from num_processors.
39179         (num_processors): Call it.
39180
39181 2010-01-11  Jim Meyering  <meyering@redhat.com>
39182
39183         utimecmp: avoid new warning from upcoming gcc-4.5.0
39184         * lib/utimecmp.c (BILLION): Define using #define rather than an
39185         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39186
39187 2010-01-11  Eric Blake  <ebb9@byu.net>
39188
39189         math: add portability warnings for classification macros
39190         * modules/math (Depends-on): Add warn-on-use.
39191         (Makefile.am): Provide new substitutions.
39192         * m4/math_h.m4 (gl_MATH_H): Require inline.
39193         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39194         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39195         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39196         implement warnings.
39197
39198         unistd: warn on use of environ without module
39199         * modules/unistd (Depends-on): Add warn-on-use.
39200         (Makefile.am): Provide new substitutions.
39201         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39202         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39203
39204         stdio: warn on suspicious uses
39205         * modules/stdio (Depends-on): Add warn-on-use.
39206         (Makefile.am): Provide new substitutions.
39207         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39208         fseeko.
39209         * lib/stdio.in.h (gets): Always warn on use.
39210         (fseek, ftell): Adjust when warnings are issued, and honor
39211         _GL_NO_LARGE_FILES as a way to silence the warning.
39212         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39213         any warning about large file offsets.
39214         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39215         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39216         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39217         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39218         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39219         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39220         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39221         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39222
39223         warn-on-use: new module
39224         * modules/warn-on-use: New file.
39225         * build-aux/warn-on-use.h: Likewise.
39226         * m4/warn-on-use.m4: Likewise.
39227         * MODULES.html.sh (Support for building): Mention it.
39228
39229 2010-01-10  Bruno Haible  <bruno@clisp.org>
39230
39231         Tests for module 'unistr/u32-strdup'.
39232         * modules/unistr/u32-strdup-tests: New file.
39233         * tests/unistr/test-u32-strdup.c: New file.
39234
39235         Tests for module 'unistr/u16-strdup'.
39236         * modules/unistr/u16-strdup-tests: New file.
39237         * tests/unistr/test-u16-strdup.c: New file.
39238
39239         Tests for module 'unistr/u8-strdup'.
39240         * modules/unistr/u8-strdup-tests: New file.
39241         * tests/unistr/test-u8-strdup.c: New file.
39242         * tests/unistr/test-strdup.h: New file.
39243
39244         Tests for module 'unistr/u32-strncmp'.
39245         * modules/unistr/u32-strncmp-tests: New file.
39246         * tests/unistr/test-u32-strncmp.c: New file.
39247
39248         Tests for module 'unistr/u16-strncmp'.
39249         * modules/unistr/u16-strncmp-tests: New file.
39250         * tests/unistr/test-u16-strncmp.c: New file.
39251
39252         Tests for module 'unistr/u8-strncmp'.
39253         * modules/unistr/u8-strncmp-tests: New file.
39254         * tests/unistr/test-u8-strncmp.c: New file.
39255         * tests/unistr/test-strncmp.h: New file.
39256
39257         Tests for module 'unistr/u32-strcoll'.
39258         * modules/unistr/u32-strcoll-tests: New file.
39259         * tests/unistr/test-u32-strcoll.c: New file.
39260
39261         Tests for module 'unistr/u16-strcoll'.
39262         * modules/unistr/u16-strcoll-tests: New file.
39263         * tests/unistr/test-u16-strcoll.c: New file.
39264
39265         Tests for module 'unistr/u8-strcoll'.
39266         * modules/unistr/u8-strcoll-tests: New file.
39267         * tests/unistr/test-u8-strcoll.c: New file.
39268
39269         Tests for module 'unistr/u32-strcmp'.
39270         * modules/unistr/u32-strcmp-tests: New file.
39271         * tests/unistr/test-u32-strcmp.c: New file.
39272         * tests/unistr/test-u32-strcmp.h: New file.
39273
39274         Tests for module 'unistr/u16-strcmp'.
39275         * modules/unistr/u16-strcmp-tests: New file.
39276         * tests/unistr/test-u16-strcmp.c: New file.
39277         * tests/unistr/test-u16-strcmp.h: New file.
39278
39279         Tests for module 'unistr/u8-strcmp'.
39280         * modules/unistr/u8-strcmp-tests: New file.
39281         * tests/unistr/test-u8-strcmp.c: New file.
39282         * tests/unistr/test-u8-strcmp.h: New file.
39283         * tests/unistr/test-strcmp.h: New file.
39284
39285         Tests for module 'unistr/u32-strncat'.
39286         * modules/unistr/u32-strncat-tests: New file.
39287         * tests/unistr/test-u32-strncat.c: New file.
39288
39289         Tests for module 'unistr/u16-strncat'.
39290         * modules/unistr/u16-strncat-tests: New file.
39291         * tests/unistr/test-u16-strncat.c: New file.
39292
39293         Tests for module 'unistr/u8-strncat'.
39294         * modules/unistr/u8-strncat-tests: New file.
39295         * tests/unistr/test-u8-strncat.c: New file.
39296         * tests/unistr/test-strncat.h: New file.
39297
39298         Tests for module 'unistr/u32-strcat'.
39299         * modules/unistr/u32-strcat-tests: New file.
39300         * tests/unistr/test-u32-strcat.c: New file.
39301
39302         Tests for module 'unistr/u16-strcat'.
39303         * modules/unistr/u16-strcat-tests: New file.
39304         * tests/unistr/test-u16-strcat.c: New file.
39305
39306         Tests for module 'unistr/u8-strcat'.
39307         * modules/unistr/u8-strcat-tests: New file.
39308         * tests/unistr/test-u8-strcat.c: New file.
39309         * tests/unistr/test-strcat.h: New file.
39310
39311         Tests for module 'unistr/u32-stpncpy'.
39312         * modules/unistr/u32-stpncpy-tests: New file.
39313         * tests/unistr/test-u32-stpncpy.c: New file.
39314
39315         Tests for module 'unistr/u16-stpncpy'.
39316         * modules/unistr/u16-stpncpy-tests: New file.
39317         * tests/unistr/test-u16-stpncpy.c: New file.
39318
39319         Tests for module 'unistr/u8-stpncpy'.
39320         * modules/unistr/u8-stpncpy-tests: New file.
39321         * tests/unistr/test-u8-stpncpy.c: New file.
39322         * tests/unistr/test-stpncpy.h: New file.
39323
39324         Tests for module 'unistr/u32-strncpy'.
39325         * modules/unistr/u32-strncpy-tests: New file.
39326         * tests/unistr/test-u32-strncpy.c: New file.
39327
39328         Tests for module 'unistr/u16-strncpy'.
39329         * modules/unistr/u16-strncpy-tests: New file.
39330         * tests/unistr/test-u16-strncpy.c: New file.
39331
39332         Tests for module 'unistr/u8-strncpy'.
39333         * modules/unistr/u8-strncpy-tests: New file.
39334         * tests/unistr/test-u8-strncpy.c: New file.
39335         * tests/unistr/test-strncpy.h: New file.
39336
39337         Tests for module 'unistr/u32-stpcpy'.
39338         * modules/unistr/u32-stpcpy-tests: New file.
39339         * tests/unistr/test-u32-stpcpy.c: New file.
39340
39341         Tests for module 'unistr/u16-stpcpy'.
39342         * modules/unistr/u16-stpcpy-tests: New file.
39343         * tests/unistr/test-u16-stpcpy.c: New file.
39344
39345         Tests for module 'unistr/u8-stpcpy'.
39346         * modules/unistr/u8-stpcpy-tests: New file.
39347         * tests/unistr/test-u8-stpcpy.c: New file.
39348         * tests/unistr/test-stpcpy.h: New file.
39349
39350         Tests for module 'unistr/u32-strcpy'.
39351         * modules/unistr/u32-strcpy-tests: New file.
39352         * tests/unistr/test-u32-strcpy.c: New file.
39353
39354         Tests for module 'unistr/u16-strcpy'.
39355         * modules/unistr/u16-strcpy-tests: New file.
39356         * tests/unistr/test-u16-strcpy.c: New file.
39357
39358         Tests for module 'unistr/u8-strcpy'.
39359         * modules/unistr/u8-strcpy-tests: New file.
39360         * tests/unistr/test-u8-strcpy.c: New file.
39361         * tests/unistr/test-strcpy.h: New file.
39362
39363         Tests for module 'unistr/u32-strnlen'.
39364         * modules/unistr/u32-strnlen-tests: New file.
39365         * tests/unistr/test-u32-strnlen.c: New file.
39366
39367         Tests for module 'unistr/u16-strnlen'.
39368         * modules/unistr/u16-strnlen-tests: New file.
39369         * tests/unistr/test-u16-strnlen.c: New file.
39370
39371         Tests for module 'unistr/u8-strnlen'.
39372         * modules/unistr/u8-strnlen-tests: New file.
39373         * tests/unistr/test-u8-strnlen.c: New file.
39374         * tests/unistr/test-strnlen.h: New file.
39375
39376         Tests for module 'unistr/u32-strlen'.
39377         * modules/unistr/u32-strlen-tests: New file.
39378         * tests/unistr/test-u32-strlen.c: New file.
39379
39380         Tests for module 'unistr/u16-strlen'.
39381         * modules/unistr/u16-strlen-tests: New file.
39382         * tests/unistr/test-u16-strlen.c: New file.
39383
39384         Tests for module 'unistr/u8-strlen'.
39385         * modules/unistr/u8-strlen-tests: New file.
39386         * tests/unistr/test-u8-strlen.c: New file.
39387
39388         Tests for module 'unistr/u32-prev'.
39389         * modules/unistr/u32-prev-tests: New file.
39390         * tests/unistr/test-u32-prev.c: New file.
39391
39392         Tests for module 'unistr/u16-prev'.
39393         * modules/unistr/u16-prev-tests: New file.
39394         * tests/unistr/test-u16-prev.c: New file.
39395
39396         Tests for module 'unistr/u8-prev'.
39397         * modules/unistr/u8-prev-tests: New file.
39398         * tests/unistr/test-u8-prev.c: New file.
39399
39400         Tests for module 'unistr/u32-next'.
39401         * modules/unistr/u32-next-tests: New file.
39402         * tests/unistr/test-u32-next.c: New file.
39403
39404         Tests for module 'unistr/u16-next'.
39405         * modules/unistr/u16-next-tests: New file.
39406         * tests/unistr/test-u16-next.c: New file.
39407
39408         Tests for module 'unistr/u8-next'.
39409         * modules/unistr/u8-next-tests: New file.
39410         * tests/unistr/test-u8-next.c: New file.
39411
39412         Tests for module 'unistr/u32-strmbtouc'.
39413         * modules/unistr/u32-strmbtouc-tests: New file.
39414         * tests/unistr/test-u32-strmbtouc.c: New file.
39415
39416         Tests for module 'unistr/u16-strmbtouc'.
39417         * modules/unistr/u16-strmbtouc-tests: New file.
39418         * tests/unistr/test-u16-strmbtouc.c: New file.
39419
39420         Tests for module 'unistr/u8-strmbtouc'.
39421         * modules/unistr/u8-strmbtouc-tests: New file.
39422         * tests/unistr/test-u8-strmbtouc.c: New file.
39423
39424         Tests for module 'unistr/u32-strmblen'.
39425         * modules/unistr/u32-strmblen-tests: New file.
39426         * tests/unistr/test-u32-strmblen.c: New file.
39427
39428         Tests for module 'unistr/u16-strmblen'.
39429         * modules/unistr/u16-strmblen-tests: New file.
39430         * tests/unistr/test-u16-strmblen.c: New file.
39431
39432         Tests for module 'unistr/u8-strmblen'.
39433         * modules/unistr/u8-strmblen-tests: New file.
39434         * tests/unistr/test-u8-strmblen.c: New file.
39435
39436         Tests for module 'unistr/u32-cpy-alloc'.
39437         * modules/unistr/u32-cpy-alloc-tests: New file.
39438         * tests/unistr/test-u32-cpy-alloc.c: New file.
39439
39440         Tests for module 'unistr/u16-cpy-alloc'.
39441         * modules/unistr/u16-cpy-alloc-tests: New file.
39442         * tests/unistr/test-u16-cpy-alloc.c: New file.
39443
39444         Tests for module 'unistr/u8-cpy-alloc'.
39445         * modules/unistr/u8-cpy-alloc-tests: New file.
39446         * tests/unistr/test-u8-cpy-alloc.c: New file.
39447         * tests/unistr/test-cpy-alloc.h: New file.
39448
39449         Tests for module 'unistr/u32-mbsnlen'.
39450         * modules/unistr/u32-mbsnlen-tests: New file.
39451         * tests/unistr/test-u32-mbsnlen.c: New file.
39452
39453         Tests for module 'unistr/u16-mbsnlen'.
39454         * modules/unistr/u16-mbsnlen-tests: New file.
39455         * tests/unistr/test-u16-mbsnlen.c: New file.
39456
39457         Tests for module 'unistr/u8-mbsnlen'.
39458         * modules/unistr/u8-mbsnlen-tests: New file.
39459         * tests/unistr/test-u8-mbsnlen.c: New file.
39460
39461         Tests for module 'unistr/u32-chr'.
39462         * modules/unistr/u32-chr-tests: New file.
39463         * tests/unistr/test-u32-chr.c: New file.
39464
39465         Tests for module 'unistr/u16-chr'.
39466         * modules/unistr/u16-chr-tests: New file.
39467         * tests/unistr/test-u16-chr.c: New file.
39468
39469         Tests for module 'unistr/u8-chr'.
39470         * modules/unistr/u8-chr-tests: New file.
39471         * tests/unistr/test-u8-chr.c: New file.
39472         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39473
39474         Tests for module 'unistr/u32-cmp2'.
39475         * modules/unistr/u32-cmp2-tests: New file.
39476         * tests/unistr/test-u32-cmp2.c: New file.
39477
39478         Tests for module 'unistr/u16-cmp2'.
39479         * modules/unistr/u16-cmp2-tests: New file.
39480         * tests/unistr/test-u16-cmp2.c: New file.
39481
39482         Tests for module 'unistr/u8-cmp2'.
39483         * modules/unistr/u8-cmp2-tests: New file.
39484         * tests/unistr/test-u8-cmp2.c: New file.
39485         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39486
39487         Tests for module 'unistr/u32-cmp'.
39488         * modules/unistr/u32-cmp-tests: New file.
39489         * tests/unistr/test-u32-cmp.c: New file.
39490
39491         Tests for module 'unistr/u16-cmp'.
39492         * modules/unistr/u16-cmp-tests: New file.
39493         * tests/unistr/test-u16-cmp.c: New file.
39494
39495         Tests for module 'unistr/u8-cmp'.
39496         * modules/unistr/u8-cmp-tests: New file.
39497         * tests/unistr/test-u8-cmp.c: New file.
39498         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39499
39500         Tests for module 'unistr/u32-set'.
39501         * modules/unistr/u32-set-tests: New file.
39502         * tests/unistr/test-u32-set.c: New file.
39503
39504         Tests for module 'unistr/u16-set'.
39505         * modules/unistr/u16-set-tests: New file.
39506         * tests/unistr/test-u16-set.c: New file.
39507
39508         Tests for module 'unistr/u8-set'.
39509         * modules/unistr/u8-set-tests: New file.
39510         * tests/unistr/test-u8-set.c: New file.
39511         * tests/unistr/test-set.h: New file.
39512
39513         Tests for module 'unistr/u32-move'.
39514         * modules/unistr/u32-move-tests: New file.
39515         * tests/unistr/test-u32-move.c: New file.
39516
39517         Tests for module 'unistr/u16-move'.
39518         * modules/unistr/u16-move-tests: New file.
39519         * tests/unistr/test-u16-move.c: New file.
39520
39521         Tests for module 'unistr/u8-move'.
39522         * modules/unistr/u8-move-tests: New file.
39523         * tests/unistr/test-u8-move.c: New file.
39524         * tests/unistr/test-move.h: New file.
39525
39526         Tests for module 'unistr/u32-cpy'.
39527         * modules/unistr/u32-cpy-tests: New file.
39528         * tests/unistr/test-u32-cpy.c: New file.
39529
39530         Tests for module 'unistr/u16-cpy'.
39531         * modules/unistr/u16-cpy-tests: New file.
39532         * tests/unistr/test-u16-cpy.c: New file.
39533
39534         Tests for module 'unistr/u8-cpy'.
39535         * modules/unistr/u8-cpy-tests: New file.
39536         * tests/unistr/test-u8-cpy.c: New file.
39537         * tests/unistr/test-cpy.h: New file.
39538
39539 2010-01-09  Bruno Haible  <bruno@clisp.org>
39540
39541         Tests for module 'unistr/u32-uctomb'.
39542         * modules/unistr/u32-uctomb-tests: New file.
39543         * tests/unistr/test-u32-uctomb.c: New file.
39544
39545         Tests for module 'unistr/u16-uctomb'.
39546         * modules/unistr/u16-uctomb-tests: New file.
39547         * tests/unistr/test-u16-uctomb.c: New file.
39548
39549         Tests for module 'unistr/u8-uctomb'.
39550         * modules/unistr/u8-uctomb-tests: New file.
39551         * tests/unistr/test-u8-uctomb.c: New file.
39552
39553         Tests for module 'unistr/u32-mbtoucr'.
39554         * modules/unistr/u32-mbtoucr-tests: New file.
39555         * tests/unistr/test-u32-mbtoucr.c: New file.
39556
39557         Tests for module 'unistr/u16-mbtoucr'.
39558         * modules/unistr/u16-mbtoucr-tests: New file.
39559         * tests/unistr/test-u16-mbtoucr.c: New file.
39560
39561         Tests for module 'unistr/u8-mbtoucr'.
39562         * modules/unistr/u8-mbtoucr-tests: New file.
39563         * tests/unistr/test-u8-mbtoucr.c: New file.
39564
39565         Tests for module 'unistr/u32-mbtouc'.
39566         * modules/unistr/u32-mbtouc-tests: New file.
39567         * tests/unistr/test-u32-mbtouc.c: New file.
39568
39569         Tests for module 'unistr/u16-mbtouc'.
39570         * modules/unistr/u16-mbtouc-tests: New file.
39571         * tests/unistr/test-u16-mbtouc.c: New file.
39572
39573         Tests for module 'unistr/u8-mbtouc'.
39574         * modules/unistr/u8-mbtouc-tests: New file.
39575         * tests/unistr/test-u8-mbtouc.c: New file.
39576
39577         Tests for module 'unistr/u32-mbtouc-unsafe'.
39578         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39579         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39580         * tests/unistr/test-u32-mbtouc.h: New file.
39581
39582         Tests for module 'unistr/u16-mbtouc-unsafe'.
39583         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39584         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39585         * tests/unistr/test-u16-mbtouc.h: New file.
39586
39587         Tests for module 'unistr/u8-mbtouc-unsafe'.
39588         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39589         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39590         * tests/unistr/test-u8-mbtouc.h: New file.
39591
39592         Tests for module 'unistr/u32-mblen'.
39593         * modules/unistr/u32-mblen-tests: New file.
39594         * tests/unistr/test-u32-mblen.c: New file.
39595
39596         Tests for module 'unistr/u16-mblen'.
39597         * modules/unistr/u16-mblen-tests: New file.
39598         * tests/unistr/test-u16-mblen.c: New file.
39599
39600         Tests for module 'unistr/u8-mblen'.
39601         * modules/unistr/u8-mblen-tests: New file.
39602         * tests/unistr/test-u8-mblen.c: New file.
39603
39604         Tests for module 'unistr/u32-to-u16'.
39605         * modules/unistr/u32-to-u16-tests: New file.
39606         * tests/unistr/test-u32-to-u16.c: New file.
39607
39608         Tests for module 'unistr/u32-to-u8'.
39609         * modules/unistr/u32-to-u8-tests: New file.
39610         * tests/unistr/test-u32-to-u8.c: New file.
39611
39612         Tests for module 'unistr/u16-to-u32'.
39613         * modules/unistr/u16-to-u32-tests: New file.
39614         * tests/unistr/test-u16-to-u32.c: New file.
39615
39616         Tests for module 'unistr/u16-to-u8'.
39617         * modules/unistr/u16-to-u8-tests: New file.
39618         * tests/unistr/test-u16-to-u8.c: New file.
39619
39620         Tests for module 'unistr/u8-to-u32'.
39621         * modules/unistr/u8-to-u32-tests: New file.
39622         * tests/unistr/test-u8-to-u32.c: New file.
39623
39624         Tests for module 'unistr/u8-to-u16'.
39625         * modules/unistr/u8-to-u16-tests: New file.
39626         * tests/unistr/test-u8-to-u16.c: New file.
39627
39628         Tests for module 'unistr/u32-check'.
39629         * modules/unistr/u32-check-tests: New file.
39630         * tests/unistr/test-u32-check.c: New file.
39631
39632         Tests for module 'unistr/u16-check'.
39633         * modules/unistr/u16-check-tests: New file.
39634         * tests/unistr/test-u16-check.c: New file.
39635
39636         Tests for module 'unistr/u8-check'.
39637         * modules/unistr/u8-check-tests: New file.
39638         * tests/unistr/test-u8-check.c: New file.
39639
39640         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39641         (category_equals): New function.
39642         (main): Add more tests.
39643         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39644
39645         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39646
39647 2010-01-10  Bruno Haible  <bruno@clisp.org>
39648
39649         unistr/u*-strcoll: Try harder to distinguish different strings.
39650         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39651         compare s1 and s2 to see if they are different.
39652
39653 2010-01-10  Bruno Haible  <bruno@clisp.org>
39654
39655         unistr/u*-stpncpy: Fix the return value.
39656         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39657         description of the return value consistent with stpncpy in glibc.
39658         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39659         written non-NUL unit.
39660
39661 2010-01-10  Bruno Haible  <bruno@clisp.org>
39662
39663         unistr/u*-next: Add missing dependencies.
39664         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39665         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39666         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39667
39668 2010-01-10  Bruno Haible  <bruno@clisp.org>
39669
39670         unistr/u8-mbsnlen: Fix return value for incomplete character.
39671         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39672         u8_mblen.
39673         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39674         Remove unistr/u8-mblen.
39675         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39676         u16_mblen.
39677         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39678         Remove unistr/u16-mblen.
39679
39680 2010-01-10  Bruno Haible  <bruno@clisp.org>
39681
39682         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39683         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39684         Reported by Brian Gough <bjg@gnu.org> and
39685         Chris Clayton <chris2553@googlemail.com> via
39686         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39687
39688 2010-01-09  Bruno Haible  <bruno@clisp.org>
39689
39690         unistr/u16-to-u32: Reject invalid input.
39691         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39692         u16_mbtouc.
39693         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39694         Remove unistr/u16-mbtouc.
39695
39696         unistr/u16-to-u8: Reject invalid input.
39697         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39698         u16_mbtouc.
39699         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39700         Remove unistr/u16-mbtouc.
39701
39702         unistr/u8-to-u32: Reject invalid input.
39703         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39704         u8_mbtouc.
39705         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39706         Remove unistr/u8-mbtouc.
39707
39708         unistr/u8-to-u16: Reject invalid input.
39709         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39710         u8_mbtouc.
39711         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39712         Remove unistr/u8-mbtouc.
39713
39714 2010-01-09  Bruno Haible  <bruno@clisp.org>
39715
39716         Tests for module 'getlogin'.
39717         * modules/getlogin-tests: New file.
39718         * tests/test-getlogin.c: New file.
39719
39720         New module 'getlogin'.
39721         * lib/unistd.in.h (getlogin): New declaration.
39722         * lib/getlogin.c: New file.
39723         * m4/getlogin.m4: New file.
39724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39725         HAVE_GETLOGIN.
39726         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39727         HAVE_GETLOGIN.
39728         * modules/getlogin: New file.
39729         * doc/posix-functions/getlogin.texi: Mention the new module.
39730         Reported by John W. Eaton <jwe@gnu.org>.
39731
39732 2010-01-09  Bruno Haible  <bruno@clisp.org>
39733
39734         getlogin_r: Support for native Windows.
39735         * lib/getlogin_r.c: Include <windows.h>
39736         (getlogin_r): Implement for native Windows.
39737         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39738         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39739         via John W. Eaton <jwe@gnu.org>.
39740
39741 2010-01-09  Bruno Haible  <bruno@clisp.org>
39742
39743         getlogin_r: Small fixes.
39744         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39745         succeeds.
39746         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39747         before testing whether getlogin_r is declared. No need to set
39748         HAVE_DECL_GETLOGIN_R to 1.
39749         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39750
39751 2010-01-09  Bruno Haible  <bruno@clisp.org>
39752
39753         * lib/unistd.in.h (getlogin_r): Add comment.
39754
39755 2010-01-09  Bruno Haible  <bruno@clisp.org>
39756
39757         Tests for module 'getlogin_r'.
39758         * modules/getlogin_r-tests: New file.
39759         * tests/test-getlogin_r.c: New file.
39760
39761 2010-01-09  Jim Meyering  <meyering@redhat.com>
39762
39763         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39764         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39765         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39766
39767 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39768
39769         * lib/dup2.c (rpl_dup2): Improve comment.
39770
39771 2010-01-08  Eric Blake  <ebb9@byu.net>
39772
39773         maint.mk: allow packages to add makefile @@ exceptions
39774         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39775         (sc_makefile_check): Rename...
39776         (sc_makefile_at_at_check): ...to this, and use hook.
39777
39778         dup2: work around mingw bug
39779         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39780         Reported by Simon Josefsson.
39781
39782 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39783
39784         glob: Fix C++ compilation.
39785         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39786         C++.
39787
39788 2010-01-07  Bruno Haible  <bruno@clisp.org>
39789
39790         Fix indentation of wctype.in.h, broken since 2007-01-06.
39791         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39792
39793 2010-01-07  Bruno Haible  <bruno@clisp.org>
39794
39795         mbslen: Avoid collision with system function.
39796         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39797         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39798         * m4/mbslen.m4: New file.
39799         * modules/mbslen (Files): Add it.
39800         (configure.ac): Invoke gl_MBSLEN.
39801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39802         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39803         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39804         via Ian Beckwith <ianb@erislabs.net>.
39805
39806 2010-01-07  Bruno Haible  <bruno@clisp.org>
39807
39808         dirent: Document the last fix.
39809         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39810
39811 2010-01-07  Bruno Haible  <bruno@clisp.org>
39812
39813         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39814         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39815         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39816         va_list are defined.
39817         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39818         Reported by Eric Blake.
39819
39820 2010-01-07  Bruno Haible  <bruno@clisp.org>
39821
39822         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39823         * modules/xlist (Depends-on): Add 'list',
39824         * modules/xoset (Depends-on): Add 'oset'.
39825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39826
39827 2010-01-07  Bruno Haible  <bruno@clisp.org>
39828
39829         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39830         * doc/posix-functions/strncasecmp.texi: Likewise.
39831
39832 2010-01-07  Bruno Haible  <bruno@clisp.org>
39833
39834         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39835
39836 2010-01-07  John W. Eaton  <jwe@octave.org>
39837
39838         wctype: allow C++ use
39839         * lib/wctype.in.h: Add extern "C" block for C++.
39840
39841 2010-01-06  Eric Blake  <ebb9@byu.net>
39842
39843         maint.mk: detect incorrect GFDL usage
39844         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39845
39846 2010-01-06  Jim Meyering  <meyering@redhat.com>
39847         and Eric Blake  <ebb9@byu.net>
39848
39849         maint.mk: ignore multi-line copyright in NEWS
39850         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39851
39852 2010-01-06  Eric Blake  <ebb9@byu.net>
39853
39854         select: add missing dependency
39855         * modules/select-tests (Depends-on): Move sockets dependency...
39856         * modules/select (Depends-on): ...here.
39857         Reported by Ian Beckwith.
39858
39859         doc: regenerate INSTALL
39860         * doc/INSTALL: Reflect recent autoconf update.
39861         * doc/INSTALL.ISO: Likewise.
39862         * doc/INSTALL.UTF-8: Likewise.
39863
39864         pread: fix compilation on glibc
39865         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39866         Reported by Ralf Wildenhues.
39867
39868         dirent: fix test failure
39869         * lib/dirent.in.h (includes): Guarantee ino_t.
39870         Reported by Ralf Wildenhues.
39871
39872 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39873
39874         linkat, renameat: avoid bad free
39875         * lib/at-func2.c (at_func2): Fix typo.
39876         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39877
39878 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39879
39880         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39881         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39882         to avoid failure of symlink test later.
39883
39884 2010-01-06  Eric Blake  <ebb9@byu.net>
39885
39886         stdio, unistd: guarantee ssize_t
39887         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39888         2008 are exposed when needed.
39889         * lib/stdio.in.h (includes): Likewise.
39890         Reported by Ralf Wildenhues.
39891
39892 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39893
39894         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39895         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39896         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39897
39898 2010-01-06  Jim Meyering  <meyering@redhat.com>
39899
39900         readtokens: this module *does* require xalloc.h
39901         It uses only functions that were omitted by the old syntax-check rule.
39902         * lib/readtokens.c: Include "xalloc.h" once again.
39903         * modules/readtokens (Depends-on): Add xalloc.
39904         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39905
39906 2010-01-05  Eric Blake  <ebb9@byu.net>
39907
39908         maint: support 'make announcement' from a VPATH build
39909         * top/maint.mk (announcement): Look for correct NEWS file.
39910
39911 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39912
39913         utimens (fdutimens): ignore a negative FD, per contract
39914         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39915         when we have a valid file descriptor.  Otherwise, using a brand
39916         new glibc (with just-patched futimens that now fails with EBADF)
39917         would cause this function to fail with ENOSYS.
39918         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39919         See also http://bugzilla.redhat.com/552320.
39920
39921 2010-01-05  Eric Blake  <ebb9@byu.net>
39922
39923         strcase: document what it provides
39924         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39925         gnulib module.
39926         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39927         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39928
39929 2010-01-05  Jim Meyering  <meyering@redhat.com>
39930
39931         maint: remove useless inclusions of "xalloc.h"
39932         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39933         * lib/readtokens.c: Likewise.
39934         * lib/same.c: Likewise.
39935         * modules/getloadavg (Depends-on): Remove xalloc.
39936         * modules/readtokens: Likewise.
39937         * modules/same: Likewise.
39938
39939         maint.mk: include 4 more function names in alloca.h-checking regexp
39940         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39941         regexp.  Before, we would give a false-positive (saying alloca.h
39942         is included unnecessarily) when the only uses involved omitted symbols.
39943
39944         xalloc.h: use consistent formatting
39945         * lib/xalloc.h: Move declarations to start in the first column.
39946
39947 2010-01-05  Eric Blake  <ebb9@byu.net>
39948
39949         mkdir: avoid xalloc
39950         * lib/mkdir.c (includes): Drop unused header.
39951         Reported by John W. Eaton.
39952
39953 2010-01-04  Jim Meyering  <meyering@redhat.com>
39954
39955         nl_langinfo: avoid configure-time syntax error
39956         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39957         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39958         the empty string.  Don't let that provoke a shell syntax error.
39959
39960         regcomp, regexec, fnmatch: avoid array bounds read error
39961         * lib/regcomp.c (build_equiv_class): From glibc:
39962         Use only the low 24 bits of a findidx return value as an index
39963         into the weights array.  Patch by Ulrich Drepper:
39964         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39965         * lib/regexec.c (check_node_accept_bytes): Likewise.
39966         * lib/fnmatch_loop.c (FCT): Likewise.
39967
39968         regcomp: skip collseq lookup when there are no rules
39969         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39970         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39971
39972         regcomp: recognize ill-formed { } expressions
39973         * lib/regcomp.c (parse_dup_op): From glibc:
39974         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39975
39976         regcomp: fix typo in comment
39977         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39978         s/satisfy/satisfies/.
39979
39980         regcomp: sync from glibc: remove dead store
39981         * lib/regcomp.c (duplicate_node_closure): Remove useless
39982         search_duplicated_node call and dead store.
39983
39984         regcomp: sync from glibc; always use nl_langinfo
39985         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39986         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39987         * modules/regex (Depends-on): Add nl_langinfo.
39988
39989 2010-01-04  Eric Blake  <ebb9@byu.net>
39990
39991         fdopendir: fix configure test
39992         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39993
39994 2010-01-01  Bruno Haible  <bruno@clisp.org>
39995
39996         wchar: Remove unused configure check.
39997         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39998
39999 2010-01-01  Eric Blake  <ebb9@byu.net>
40000
40001         headers: make check of system header explicit
40002         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40003         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40004         ourselves.
40005         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40008         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40009         internals.
40010         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40011         missing.
40012         Suggested by Bruno Haible.
40013
40014 2010-01-01  Jim Meyering  <meyering@redhat.com>
40015
40016         ChangeLog: tweak to eliminate unnecessary copyright line
40017         * ChangeLog: Remove a copyright line that was mistakenly updated
40018         by today's update-copyright run.  Reported by Eric Blake.
40019
40020         test-update-copyright: don't let envvar setting cause test failure
40021         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40022
40023 2010-01-01  Bruno Haible  <bruno@clisp.org>
40024
40025         localename: Avoid gcc warning.
40026         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40027         function if it is not used.
40028
40029 2010-01-01  Jim Meyering  <meyering@redhat.com>
40030
40031         update nearly all FSF copyright year lists to include 2010
40032         Use the same procedure as for 2009, outlined in
40033         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40034
40035         version-etc: set COPYRIGHT_YEAR to 2010
40036         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40037
40038 2009-12-31  Eric Blake  <ebb9@byu.net>
40039
40040         doc: correct availability of cygwin 1.5.x getopt
40041         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40042         variables.
40043         * doc/posix-functions/opterr.texi (opterr): Likewise.
40044         * doc/posix-functions/optind.texi (optind): Likewise.
40045         * doc/posix-functions/optopt.texi (optopt): Likewise.
40046         * doc/posix-functions/tzname.texi (tzname): Likewise.
40047
40048         openat: update maintainer
40049         * modules/openat (Maintainer): Add myself.
40050
40051         utimens: avoid shadowing warning
40052         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40053         buffers into one, to avoid shadowing, as well as avoiding a
40054         redundant stat.
40055         Reported by Jim Meyering.
40056
40057         test-dup2: avoid compiler warning
40058         * tests/test-dup2.c (is_inheritable): Only define if used.
40059
40060 2010-01-01  Bruno Haible  <bruno@clisp.org>
40061
40062         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40063         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40064         defined, use wctomb instead of wcrtomb.
40065
40066 2010-01-01  Bruno Haible  <bruno@clisp.org>
40067
40068         iconv: Reject native Solaris iconv.
40069         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40070         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40071
40072 2009-12-31  Bruno Haible  <bruno@clisp.org>
40073
40074         * tests/test-signal.c (main): Remove test of 'SIG'.
40075
40076 2009-12-31  Bruno Haible  <bruno@clisp.org>
40077
40078         spawn: Fix incomplete fix.
40079         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40080         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40081         warnings for GNULIB_POSIXCHECK again.
40082         Reported by Eric Blake.
40083
40084 2009-12-31  Bruno Haible  <bruno@clisp.org>
40085
40086         Avoid namespace pollution on glibc systems.
40087         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40088         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40089         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40090         glibc systems.
40091
40092 2009-12-31  Bruno Haible  <bruno@clisp.org>
40093
40094         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40095         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40096         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40097         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40098         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40099         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40100         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40101
40102 2009-12-31  Bruno Haible  <bruno@clisp.org>
40103
40104         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40105         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40106         afterwards.
40107
40108 2009-12-31  Bruno Haible  <bruno@clisp.org>
40109
40110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40111         SYS_UTSNAME_H.
40112
40113 2009-12-31  Bruno Haible  <bruno@clisp.org>
40114
40115         spawn: Fix misapplied patch.
40116         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40117         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40118         warnings for GNULIB_POSIXCHECK.
40119
40120 2009-12-31  Bruno Haible  <bruno@clisp.org>
40121
40122         times: Update after sys_times changed.
40123         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40124         * modules/times (Files): Add it.
40125         (configure.ac): Invoke gl_FUNC_TIMES.
40126
40127 2009-12-31  Bruno Haible  <bruno@clisp.org>
40128
40129         Use AC_C_INLINE where necessary.
40130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40131         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40132         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40133         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40134         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40135         * m4/mbiter.m4 (gl_MBITER): Likewise.
40136         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40137         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40138         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40139         * modules/u64 (configure.ac): Likewise.
40140
40141 2009-12-31  Bruno Haible  <bruno@clisp.org>
40142
40143         Use AC_C_INLINE instead of module 'inline' where possible.
40144         * modules/inline (Description): Clarify purpose.
40145         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40146         * modules/count-one-bits (Depends-on): Remove inline.
40147         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40148         * modules/openat (Depends-on): Remove inline.
40149         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40150         instead of depending on module 'inline'.
40151         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40152         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40153         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40154         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40155         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40156         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40157         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40158         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40159         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40160         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40161         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40162         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40163         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40164         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40165         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40166         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40167         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40168         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40169         Likewise.
40170         * modules/unictype/property-ascii-hex-digit (Depends-on,
40171         configure.ac): Likewise.
40172         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40173         configure.ac): Likewise.
40174         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40175         configure.ac): Likewise.
40176         * modules/unictype/property-bidi-block-separator (Depends-on,
40177         configure.ac): Likewise.
40178         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40179         configure.ac): Likewise.
40180         * modules/unictype/property-bidi-common-separator (Depends-on,
40181         configure.ac): Likewise.
40182         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40183         Likewise.
40184         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40185         configure.ac): Likewise.
40186         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40187         configure.ac): Likewise.
40188         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40189         configure.ac): Likewise.
40190         * modules/unictype/property-bidi-european-digit (Depends-on,
40191         configure.ac): Likewise.
40192         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40193         configure.ac): Likewise.
40194         * modules/unictype/property-bidi-left-to-right (Depends-on,
40195         configure.ac): Likewise.
40196         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40197         configure.ac): Likewise.
40198         * modules/unictype/property-bidi-other-neutral (Depends-on,
40199         configure.ac): Likewise.
40200         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40201         Likewise.
40202         * modules/unictype/property-bidi-segment-separator (Depends-on,
40203         configure.ac): Likewise.
40204         * modules/unictype/property-bidi-whitespace (Depends-on,
40205         configure.ac): Likewise.
40206         * modules/unictype/property-combining (Depends-on, configure.ac):
40207         Likewise.
40208         * modules/unictype/property-composite (Depends-on, configure.ac):
40209         Likewise.
40210         * modules/unictype/property-currency-symbol (Depends-on,
40211         configure.ac): Likewise.
40212         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40213         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40214         Likewise.
40215         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40216         configure.ac): Likewise.
40217         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40218         Likewise.
40219         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40220         Likewise.
40221         * modules/unictype/property-extender (Depends-on, configure.ac):
40222         Likewise.
40223         * modules/unictype/property-format-control (Depends-on, configure.ac):
40224         Likewise.
40225         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40226         Likewise.
40227         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40228         Likewise.
40229         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40230         Likewise.
40231         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40232         Likewise.
40233         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40234         Likewise.
40235         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40236         Likewise.
40237         * modules/unictype/property-id-start (Depends-on, configure.ac):
40238         Likewise.
40239         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40240         Likewise.
40241         * modules/unictype/property-ids-binary-operator (Depends-on,
40242         configure.ac): Likewise.
40243         * modules/unictype/property-ids-trinary-operator (Depends-on,
40244         configure.ac): Likewise.
40245         * modules/unictype/property-ignorable-control (Depends-on,
40246         configure.ac): Likewise.
40247         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40248         Likewise.
40249         * modules/unictype/property-join-control (Depends-on, configure.ac):
40250         Likewise.
40251         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40252         Likewise.
40253         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40254         Likewise.
40255         * modules/unictype/property-logical-order-exception (Depends-on,
40256         configure.ac): Likewise.
40257         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40258         Likewise.
40259         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40260         * modules/unictype/property-non-break (Depends-on, configure.ac):
40261         Likewise.
40262         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40263         Likewise.
40264         * modules/unictype/property-numeric (Depends-on, configure.ac):
40265         Likewise.
40266         * modules/unictype/property-other-alphabetic (Depends-on,
40267         configure.ac): Likewise.
40268         * modules/unictype/property-other-default-ignorable-code-point
40269         (Depends-on, configure.ac): Likewise.
40270         * modules/unictype/property-other-grapheme-extend (Depends-on,
40271         configure.ac): Likewise.
40272         * modules/unictype/property-other-id-continue (Depends-on,
40273         configure.ac): Likewise.
40274         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40275         Likewise.
40276         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40277         Likewise.
40278         * modules/unictype/property-other-math (Depends-on, configure.ac):
40279         Likewise.
40280         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40281         Likewise.
40282         * modules/unictype/property-paired-punctuation (Depends-on,
40283         configure.ac): Likewise.
40284         * modules/unictype/property-paragraph-separator (Depends-on,
40285         configure.ac): Likewise.
40286         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40287         Likewise.
40288         * modules/unictype/property-pattern-white-space (Depends-on,
40289         configure.ac): Likewise.
40290         * modules/unictype/property-private-use (Depends-on, configure.ac):
40291         Likewise.
40292         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40293         Likewise.
40294         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40295         Likewise.
40296         * modules/unictype/property-radical (Depends-on, configure.ac):
40297         Likewise.
40298         * modules/unictype/property-sentence-terminal (Depends-on,
40299         configure.ac): Likewise.
40300         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40301         Likewise.
40302         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40303         * modules/unictype/property-terminal-punctuation (Depends-on,
40304         configure.ac): Likewise.
40305         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40306         Likewise.
40307         * modules/unictype/property-unassigned-code-value (Depends-on,
40308         configure.ac): Likewise.
40309         * modules/unictype/property-unified-ideograph (Depends-on,
40310         configure.ac): Likewise.
40311         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40312         Likewise.
40313         * modules/unictype/property-variation-selector (Depends-on,
40314         configure.ac): Likewise.
40315         * modules/unictype/property-white-space (Depends-on, configure.ac):
40316         Likewise.
40317         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40318         Likewise.
40319         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40320         Likewise.
40321         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40322         Likewise.
40323         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40324         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40325         Likewise.
40326
40327 2009-12-31  Bruno Haible  <bruno@clisp.org>
40328
40329         Remove unnecessary AC_C_INLINE invocation.
40330         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40331         since 2009-08-21.
40332
40333 2009-12-31  Jim Meyering  <meyering@redhat.com>
40334
40335         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40336         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40337         With this change, we can all remove the gpg_key_ID = ... definition
40338         from our respective cfg.mk files.
40339
40340         maint.mk: create announcement template in ~/, not in /tmp
40341         * top/maint.mk (emit_upload_commands): Adjust.
40342         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40343         Remove temporary file, .ci-msg.
40344
40345 2009-12-31  Eric Blake  <ebb9@byu.net>
40346
40347         link-warning: always build headers with link warnings
40348         * modules/arpa_inet (Makefile.am): Always build replacement
40349         header.
40350         * modules/ctype (Makefile.am): Likewise.
40351         * modules/dirent (Makefile.am): Likewise.
40352         * modules/inttypes (Makefile.am): Likewise.
40353         * modules/langinfo (Makefile.am): Likewise.
40354         * modules/locale (Makefile.am): Likewise.
40355         * modules/spawn (Makefile.am): Likewise.
40356         * modules/sys_file (Makefile.am): Likewise.
40357         * modules/sys_ioctl (Makefile.am): Likewise.
40358         * modules/sys_select (Makefile.am): Likewise.
40359         * modules/sys_socket (Makefile.am): Likewise.
40360         * modules/sys_times (Makefile.am): Likewise.
40361         * modules/sys_utsname (Makefile.am): Likewise.
40362         * modules/sys_wait (Makefile.am): Likewise.
40363         * modules/wchar (Makefile.am): Likewise.
40364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40365         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40366         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40367         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40368         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40369         Likewise.
40370         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40371         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40372         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40373         Likewise.
40374         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40375         Likewise.
40376         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40378         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40380         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40381         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40382         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40383         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40384         (gl_WCHAR_H_DEFAULTS): Likewise.
40385
40386 2009-12-31  Eric Blake  <ebb9@byu.net>
40387
40388         signal, spawn: use link warnings
40389         * lib/signal.in.h (sigset_t): Make unconditional.
40390         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40391         (sigpending, sigprocmask, sigaction): Add link warnings.
40392         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40393         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40394         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40395         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40396         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40397         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40398         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40399         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40400         (posix_spawn_file_actions_destroy)
40401         (posix_spawn_file_actions_addopen)
40402         (posix_spawn_file_actions_addclose)
40403         (posix_spawn_file_actions_adddup2): Likewise.
40404         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40405         * tests/test-signal.c (main): Enhance test.
40406
40407         spawn: improve wrapper support
40408         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40409         (gl_SPAWN_H_DEFAULTS): New defaults.
40410         * modules/spawn (Makefile.am): Substitute them.
40411         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40412         Only declare if missing or broken.
40413
40414         sys_times, sys_utsname: use include_next
40415         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40416         header.
40417         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40419         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40420         * modules/sys_times (Depends-on): Add include_next.
40421         (Makefile.am): Substitute additional values.
40422         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40423         * lib/sys_times.in.h (includes): Include native header, if
40424         available.
40425         * lib/sys_utsname.in.h (includes): Likewise.
40426         * tests/test-sys_times.c (main): Enhance test.
40427
40428         fdutimensat: revert prior patch
40429         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40430         utimens.h.
40431         Reported by Bruno Haible.
40432
40433 2009-12-30  Eric Blake  <ebb9@byu.net>
40434
40435         sys_wait: drop link-warning dependency
40436         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40437         link-warning efforts.
40438         * lib/sys_wait.in.h: Likewise.
40439
40440         fdutimensat: remove bogus dependency
40441         * modules/fdutimensat (Depends-on): Drop inline.
40442
40443         unistd: fix typo
40444         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40445
40446 2009-12-30  Bruno Haible  <bruno@clisp.org>
40447
40448         Fix compilation error with Solaris cc.
40449         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40450         * lib/unicase/u16-is-invariant.c: Likewise.
40451         * lib/unicase/u32-is-invariant.c: Likewise.
40452         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40453
40454 2009-12-30  Bruno Haible  <bruno@clisp.org>
40455
40456         Fix test crash.
40457         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40458         locales.
40459         Reported by Simon Josefsson <simon@josefsson.org>.
40460
40461 2009-12-30  Bruno Haible  <bruno@clisp.org>
40462
40463         Fix compilation error on most platforms.
40464         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40465         Reported by Simon Josefsson <simon@josefsson.org>
40466         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40467
40468 2009-12-30  Eric Blake  <ebb9@byu.net>
40469
40470         futimens, utimensat: work around ntfs-3g bug
40471         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40472         a ctime bug is present, and expand workaround to cover ntfs-3g.
40473         * lib/utimens.c (fdutimens, lutimens): Likewise.
40474         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40475         (validate_timespec): Adjust return value.
40476         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40477         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40478         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40479
40480 2009-12-29  Eric Blake  <ebb9@byu.net>
40481
40482         link-warning: make usage consistent
40483         * modules/ctype (Depends-on): Add link-warning.
40484         (Makefile.am): Update rules accordingly.
40485         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40486         * modules/locale (Depends-on, Makefile.am): Likewise.
40487         * modules/sys_file (Makefile.am): Likewise.
40488         * modules/getopt-posix (Makefile.am): Delete unused link warning
40489         efforts.
40490         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40491         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40492         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40493         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40494
40495         stdio: remove unused variables
40496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40497         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40498         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40499
40500         tests: test more substitute headers
40501         * modules/ctype-tests: New file.
40502         * modules/dirent-tests: Likewise.
40503         * modules/spawn-tests: Likewise.
40504         * modules/sys_file-tests: Likewise.
40505         * modules/sys_ioctl-tests: Likewise.
40506         * modules/sys_wait-tests: Likewise.
40507         * tests/test-ctype.c: Likewise.
40508         * tests/test-dirent.c: Likewise.
40509         * tests/test-spawn.c: Likewise.
40510         * tests/test-sys_file.c: Likewise.
40511         * tests/test-sys_ioctl.c: Likewise.
40512         * tests/test-sys_wait.c: Likewise.
40513         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40514         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40515         whether or not flock is in use.
40516
40517         tests: remove License section from module
40518         * modules/arpa_inet-tests: Remove unneeded section.
40519         * modules/byteswap-tests: Likewise.
40520         * modules/ceilf-tests: Likewise.
40521         * modules/ceill-tests: Likewise.
40522         * modules/crypto/des-tests: Likewise.
40523         * modules/crypto/gc-arcfour-tests: Likewise.
40524         * modules/crypto/gc-arctwo-tests: Likewise.
40525         * modules/crypto/gc-des-tests: Likewise.
40526         * modules/crypto/gc-hmac-md5-tests: Likewise.
40527         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40528         * modules/crypto/gc-md2-tests: Likewise.
40529         * modules/crypto/gc-md4-tests: Likewise.
40530         * modules/crypto/gc-md5-tests: Likewise.
40531         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40532         * modules/crypto/gc-rijndael-tests: Likewise.
40533         * modules/crypto/gc-sha1-tests: Likewise.
40534         * modules/crypto/gc-tests: Likewise.
40535         * modules/crypto/md2-tests: Likewise.
40536         * modules/crypto/md4-tests: Likewise.
40537         * modules/fcntl-h-tests: Likewise.
40538         * modules/floorf-tests: Likewise.
40539         * modules/floorl-tests: Likewise.
40540         * modules/frexp-nolibm-tests: Likewise.
40541         * modules/frexp-tests: Likewise.
40542         * modules/frexpl-nolibm-tests: Likewise.
40543         * modules/frexpl-tests: Likewise.
40544         * modules/getaddrinfo-tests: Likewise.
40545         * modules/inttypes-tests: Likewise.
40546         * modules/isfinite-tests: Likewise.
40547         * modules/isinf-tests: Likewise.
40548         * modules/ldexpl-tests: Likewise.
40549         * modules/locale-tests: Likewise.
40550         * modules/math-tests: Likewise.
40551         * modules/netdb-tests: Likewise.
40552         * modules/netinet_in-tests: Likewise.
40553         * modules/printf-frexp-tests: Likewise.
40554         * modules/printf-frexpl-tests: Likewise.
40555         * modules/priv-set-tests: Likewise.
40556         * modules/random_r-tests: Likewise.
40557         * modules/round-tests: Likewise.
40558         * modules/roundf-tests: Likewise.
40559         * modules/roundl-tests: Likewise.
40560         * modules/search-tests: Likewise.
40561         * modules/select-tests: Likewise.
40562         * modules/signal-tests: Likewise.
40563         * modules/stdbool-tests: Likewise.
40564         * modules/stddef-tests: Likewise.
40565         * modules/stdint-tests: Likewise.
40566         * modules/stdio-tests: Likewise.
40567         * modules/stdlib-tests: Likewise.
40568         * modules/string-tests: Likewise.
40569         * modules/strings-tests: Likewise.
40570         * modules/sys_select-tests: Likewise.
40571         * modules/sys_socket-tests: Likewise.
40572         * modules/sys_stat-tests: Likewise.
40573         * modules/sys_time-tests: Likewise.
40574         * modules/sys_utsname-tests: Likewise.
40575         * modules/sysexits-tests: Likewise.
40576         * modules/time-tests: Likewise.
40577         * modules/trunc-tests: Likewise.
40578         * modules/truncf-tests: Likewise.
40579         * modules/truncl-tests: Likewise.
40580         * modules/tsearch-tests: Likewise.
40581         * modules/unistd-tests: Likewise.
40582         * modules/wchar-tests: Likewise.
40583         * modules/wctype-tests: Likewise.
40584
40585         tests: fix license on several tests
40586         * tests/test-des.c: Update to GPLv3+.
40587         * tests/test-flock.c: Likewise.
40588         * tests/test-fsync.c: Likewise.
40589         * tests/test-futimens.h: Likewise.
40590         * tests/test-gc-arcfour.c: Likewise.
40591         * tests/test-gc-arctwo.c: Likewise.
40592         * tests/test-gc-des.c: Likewise.
40593         * tests/test-gc-hmac-md5.c: Likewise.
40594         * tests/test-gc-hmac-sha1.c: Likewise.
40595         * tests/test-gc-md2.c: Likewise.
40596         * tests/test-gc-md4.c: Likewise.
40597         * tests/test-gc-md5.c: Likewise.
40598         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40599         * tests/test-gc-rijndael.c: Likewise.
40600         * tests/test-gc-sha1.c: Likewise.
40601         * tests/test-gc.c: Likewise.
40602         * tests/test-getcwd.c: Likewise.
40603         * tests/test-link.c: Likewise.
40604         * tests/test-link.h: Likewise.
40605         * tests/test-lutimens.h: Likewise.
40606         * tests/test-md2.c: Likewise.
40607         * tests/test-md4.c: Likewise.
40608         * tests/test-mkdir.h: Likewise.
40609         * tests/test-rename.c: Likewise.
40610         * tests/test-rename.h: Likewise.
40611         * tests/test-safe-alloc.c: Likewise.
40612         * tests/test-utimens-common.h: Likewise.
40613         * tests/test-utimens.h: Likewise.
40614
40615         maint: sync license texts
40616         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40617         * doc/gpl-3.0.texi: Revert copyright year update.
40618         * doc/lgpl-3.0.texi: Likewise.
40619
40620 2009-12-29  Jim Meyering  <meyering@redhat.com>
40621
40622         update nearly all FSF copyright year lists to include 2009
40623         The files named by the following are exempted:
40624             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40625               test -f "$dst" && { echo "$dst"; continue; }
40626               test -d "$dst" || continue
40627               echo "$dst"/$(basename "$src")
40628             done > exempt
40629             git ls-files tests/unictype >> exempt
40630         In the remaining files, convert to all-interval notation if
40631         - there is already at least one year interval like 2000-2003
40632         - the file is maintained by me
40633         - the file is in lib/uni*/, where that style already prevails
40634         Otherwise, use update-copyright's default.
40635
40636 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40637         and Eric Blake  <ebb9@byu.net>
40638
40639         tests: don't require debug system() to pass
40640         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40641         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40642         * tests/test-unlink.h (test_unlink_func): Likewise.
40643         * tests/test-fstatat.c (main): ...into callers.
40644         * tests/test-lstat.c (main): Likewise.
40645         * tests/test-rmdir.c (main): Likewise.
40646         * tests/test-unlink.c (main): Likewise.
40647         * tests/test-unlinkat.c (main): Likewise.
40648         * tests/test-areadlink-with-size.c (main): Don't require a
40649         debug-only system call to pass, aiding cross-testing to mingw.
40650         * tests/test-areadlink.c (main): Likewise.
40651         * tests/test-areadlinkat-with-size.c (main): Likewise.
40652         * tests/test-areadlinkat.c (main): Likewise.
40653         * tests/test-canonicalize-lgpl.c (main): Likewise.
40654         * tests/test-canonicalize.c (main): Likewise.
40655         * tests/test-chown.c (main): Likewise.
40656         * tests/test-fchownat.c (main): Likewise.
40657         * tests/test-lchown.c (main): Likewise.
40658         * tests/test-fdutimensat.c (main): Likewise.
40659         * tests/test-futimens.c (main): Likewise.
40660         * tests/test-link.c (main): Likewise.
40661         * tests/test-linkat.c (main): Likewise.
40662         * tests/test-mkdir.c (main): Likewise.
40663         * tests/test-mkdirat.c (main): Likewise.
40664         * tests/test-mkfifo.c (main): Likewise.
40665         * tests/test-mkfifoat.c (main): Likewise.
40666         * tests/test-mknod.c (main): Likewise.
40667         * tests/test-readlink.c (main): Likewise.
40668         * tests/test-remove.c (main): Likewise.
40669         * tests/test-rename.c (main): Likewise.
40670         * tests/test-renameat.c (main): Likewise.
40671         * tests/test-symlink.c (main): Likewise.
40672         * tests/test-symlinkat.c (main): Likewise.
40673         * tests/test-utimens.c (main): Likewise.
40674         * tests/test-utimensat.c (main): Likewise.
40675
40676 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40677
40678         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40679         on $(UNUSED_PARAMETER_H) to avoid build failure.
40680
40681 2009-12-28  Jim Meyering  <meyering@redhat.com>
40682
40683         update-copyright: you may specify a max. line length other than 72
40684         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40685
40686         maint: use consistent FSF copyright line syntax
40687         * lib/posixtm.c: Add missing comma in FSF copyright line.
40688         * lib/posixtm.h: Likewise.
40689         * lib/getugroups.c: Add missing ", Inc.".
40690
40691         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40692         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40693         FSF copyright line.  Remove trailing blanks.
40694
40695 2009-12-28  Eric Blake  <ebb9@byu.net>
40696
40697         test-dup2: reduce dependencies
40698         * modules/cloexec (Configure.ac): Set witness.
40699         * modules/dup2-tests (Depends-on): Drop cloexec.
40700         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40701         not present.
40702         Suggested by Bruno Haible.
40703
40704 2009-12-26  Bruno Haible  <bruno@clisp.org>
40705
40706         Remove an unneeded dependency.
40707         * modules/fseterr (Depends-on): Remove dup2.
40708
40709 2009-12-26  Eric Blake  <ebb9@byu.net>
40710
40711         tests: use macros.h in more places
40712         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40713         (ASSERT_STREAM): Provide default of stderr.
40714         * tests/test-dirent-safer.c: Include macros.h, using alternate
40715         stream for assertions.
40716         * tests/test-dup-safer.c: Likewise.
40717         * tests/test-freopen-safer.c: Likewise.
40718         * tests/test-getopt.c: Likewise.
40719         * tests/test-openat-safer.c: Likewise.
40720         * tests/test-pipe.c: Likewise.
40721         * tests/test-popen-safer.c: Likewise.
40722         * modules/dirent-safer-tests (Files): Include macros.h.
40723         * modules/unistd-safer-tests (Files): Likewise.
40724         * modules/freopen-safer-tests (Files): Likewise.
40725         * modules/getopt-posix-tests (Files): Likewise.
40726         * modules/openat-safer-tests (Files): Likewise.
40727         * modules/pipe-tests (Files): Likewise.
40728
40729 2009-12-26  Bruno Haible  <bruno@clisp.org>
40730
40731         javacomp: Portability fix.
40732         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40733         that it also works on Solaris.
40734
40735 2009-12-26  Bruno Haible  <bruno@clisp.org>
40736
40737         localename: Fix storage allocation of gl_locale_name_thread's result.
40738         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40739         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40740         all platforms that have 'uselocale'.
40741         (gl_locale_name_thread_unsafe): New function, extracted from
40742         gl_locale_name_thread.
40743         (gl_locale_name_thread): Call struniq on all platforms that have
40744         'uselocale'.
40745         * tests/test-localename.c (test_locale_name_thread): Check that the
40746         resulting strings are permanently allocated.
40747         * modules/localename-tests (Depends-on): Add strdup.
40748
40749 2009-12-26  Bruno Haible  <bruno@clisp.org>
40750
40751         * tests/test-localename.c (categories): Fill in the strings.
40752
40753 2009-12-26  Jim Meyering  <meyering@redhat.com>
40754
40755         isdir: complete the removal of m4/isdir.m4
40756         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40757
40758         isdir: clean up, since at least grep still uses it
40759         * lib/isdir.c: Include "isdir.h".
40760         (S_ISDIR): Remove now-unneeded definition.
40761         * modules/isdir (Files): Add lib/isdir.h.
40762         * lib/isdir.h: New file, with declaration.
40763         * m4/isdir.m4: Remove file -- unneeded.
40764
40765 2009-12-25  Bruno Haible  <bruno@clisp.org>
40766
40767         selinux-h: Make generated .h files standalone.
40768         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40769         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40770         * lib/se-selinux.in.h: Likewise.
40771         * modules/selinux-h (Depends-on): Add unused-parameter.
40772         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40773         selinux/selinux.h and selinux/context.h.
40774         Suggested by Eric Blake.
40775
40776 2009-12-25  Bruno Haible  <bruno@clisp.org>
40777
40778         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40779         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40780         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40781         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40782         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40783
40784 2009-12-24  Bruno Haible  <bruno@clisp.org>
40785
40786         openat: Fix warning.
40787         * lib/openat-proc.c: Include <unistd.h>.
40788
40789 2009-12-24  Bruno Haible  <bruno@clisp.org>
40790
40791         New module 'unused-parameter'.
40792         * build-aux/unused-parameter.h: New file, extracted from earlier
40793         gnulib-common.m4.
40794         * modules/unused-parameter: New file.
40795         * lib/unistr.h: Include unused-parameter.h.
40796         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40797         _GL_UNUSED.
40798         * modules/unistr/base (Depends-on): Add unused-parameter.
40799
40800 2009-12-24  Bruno Haible  <bruno@clisp.org>
40801
40802         Add missing dependencies to 'extensions' module.
40803         * m4/extensions.m4: Add comment.
40804         * modules/accept4 (Depends-on): Add extensions.
40805         * modules/dup3 (Depends-on): Likewise.
40806         * modules/fcntl (Depends-on): Likewise.
40807         * modules/futimens (Depends-on): Likewise.
40808         * modules/mknod (Depends-on): Likewise.
40809         * modules/pipe2 (Depends-on): Likewise.
40810         * modules/stat-time (Depends-on): Likewise.
40811         * modules/strcasestr-simple (Depends-on): Likewise.
40812         * modules/strsignal (Depends-on): Likewise.
40813         * modules/utimensat (Depends-on): Likewise.
40814         * modules/localcharset (Depends-on): Likewise. Needed because of
40815         gl_FCNTL_O_FLAGS.
40816         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40817         AC_TYPE_MBSTATE_T.
40818         * modules/wcsnrtombs (Depends-on): Likewise.
40819         * modules/wcsrtombs (Depends-on): Likewise.
40820
40821 2009-12-24  Bruno Haible  <bruno@clisp.org>
40822
40823         binary-io: Avoid gcc warning due to SET_BINARY.
40824         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40825         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40826
40827 2009-12-24  Bruno Haible  <bruno@clisp.org>
40828
40829         Avoid future namespace pollution on glibc systems.
40830         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40831         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40832         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40833         glibc systems.
40834
40835 2009-12-24  Bruno Haible  <bruno@clisp.org>
40836
40837         Refactor common macros used in tests.
40838         * tests/macros.h: New file.
40839         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40840         and/or <stdlib.h>, if appropriate.
40841         (ASSERT, SIZEOF): Remove macros.
40842         * tests/test-areadlink-with-size.c: Likewise.
40843         * tests/test-areadlinkat.c: Likewise.
40844         * tests/test-areadlinkat-with-size.c: Likewise.
40845         * tests/test-argmatch.c: Likewise.
40846         * tests/test-argv-iter.c: Likewise.
40847         * tests/test-array-mergesort.c: Likewise.
40848         * tests/test-array_list.c: Likewise.
40849         * tests/test-array_oset.c: Likewise.
40850         * tests/test-avltree_list.c: Likewise.
40851         * tests/test-avltree_oset.c: Likewise.
40852         * tests/test-avltreehash_list.c: Likewise.
40853         * tests/test-base64.c: Likewise.
40854         * tests/test-binary-io.c: Likewise.
40855         * tests/test-bitrotate.c: Likewise.
40856         * tests/test-btowc.c: Likewise.
40857         * tests/test-byteswap.c: Likewise.
40858         * tests/test-c-ctype.c: Likewise.
40859         * tests/test-c-stack.c: Likewise.
40860         * tests/test-c-strcasecmp.c: Likewise.
40861         * tests/test-c-strcasestr.c: Likewise.
40862         * tests/test-c-strncasecmp.c: Likewise.
40863         * tests/test-c-strstr.c: Likewise.
40864         * tests/test-canonicalize-lgpl.c: Likewise.
40865         * tests/test-canonicalize.c: Likewise.
40866         * tests/test-carray_list.c: Likewise.
40867         * tests/test-ceilf1.c: Likewise.
40868         * tests/test-ceilf2.c: Likewise.
40869         * tests/test-ceill.c: Likewise.
40870         * tests/test-chown.c: Likewise.
40871         * tests/test-cloexec.c: Likewise.
40872         * tests/test-copy-acl.c: Likewise.
40873         * tests/test-copy-file.c: Likewise.
40874         * tests/test-count-one-bits.c: Likewise.
40875         * tests/test-dprintf-posix.c: Likewise.
40876         * tests/test-dup2.c: Likewise.
40877         * tests/test-dup3.c: Likewise.
40878         * tests/test-duplocale.c: Likewise.
40879         * tests/test-fbufmode.c: Likewise.
40880         * tests/test-fchdir.c: Likewise.
40881         * tests/test-fchownat.c: Likewise.
40882         * tests/test-fcntl-safer.c: Likewise.
40883         * tests/test-fcntl.c: Likewise.
40884         * tests/test-fdopendir.c: Likewise.
40885         * tests/test-fdutimensat.c: Likewise.
40886         * tests/test-fflush2.c: Likewise.
40887         * tests/test-file-has-acl.c: Likewise.
40888         * tests/test-filevercmp.c: Likewise.
40889         * tests/test-flock.c: Likewise.
40890         * tests/test-floorf1.c: Likewise.
40891         * tests/test-floorf2.c: Likewise.
40892         * tests/test-floorl.c: Likewise.
40893         * tests/test-fnmatch.c: Likewise.
40894         * tests/test-fopen.h: Likewise.
40895         * tests/test-fpending.c: Likewise.
40896         * tests/test-fprintf-posix.c: Likewise.
40897         * tests/test-fpurge.c: Likewise.
40898         * tests/test-freadable.c: Likewise.
40899         * tests/test-freadahead.c: Likewise.
40900         * tests/test-freading.c: Likewise.
40901         * tests/test-freadptr.c: Likewise.
40902         * tests/test-freadptr2.c: Likewise.
40903         * tests/test-freadseek.c: Likewise.
40904         * tests/test-freopen.c: Likewise.
40905         * tests/test-frexp.c: Likewise.
40906         * tests/test-frexpl.c: Likewise.
40907         * tests/test-fseek.c: Likewise.
40908         * tests/test-fseeko.c: Likewise.
40909         * tests/test-fstatat.c: Likewise.
40910         * tests/test-fstrcmp.c: Likewise.
40911         * tests/test-fsync.c: Likewise.
40912         * tests/test-ftell.c: Likewise.
40913         * tests/test-ftello.c: Likewise.
40914         * tests/test-func.c: Likewise.
40915         * tests/test-futimens.c: Likewise.
40916         * tests/test-fwritable.c: Likewise.
40917         * tests/test-fwriting.c: Likewise.
40918         * tests/test-getcwd.c: Likewise.
40919         * tests/test-getdate.c: Likewise.
40920         * tests/test-getdelim.c: Likewise.
40921         * tests/test-getdtablesize.c: Likewise.
40922         * tests/test-getgroups.c: Likewise.
40923         * tests/test-getline.c: Likewise.
40924         * tests/test-getndelim2.c: Likewise.
40925         * tests/test-glob.c: Likewise.
40926         * tests/test-hash.c: Likewise.
40927         * tests/test-i-ring.c: Likewise.
40928         * tests/test-iconv-utf.c: Likewise.
40929         * tests/test-iconv.c: Likewise.
40930         * tests/test-idpriv-drop.c: Likewise.
40931         * tests/test-idpriv-droptemp.c: Likewise.
40932         * tests/test-inet_ntop.c: Likewise.
40933         * tests/test-inet_pton.c: Likewise.
40934         * tests/test-isblank.c: Likewise.
40935         * tests/test-isfinite.c: Likewise.
40936         * tests/test-isinf.c: Likewise.
40937         * tests/test-isnan.c: Likewise.
40938         * tests/test-isnand.h: Likewise.
40939         * tests/test-isnanf.h: Likewise.
40940         * tests/test-isnanl.h: Likewise.
40941         * tests/test-lchown.c: Likewise.
40942         * tests/test-ldexpl.c: Likewise.
40943         * tests/test-link.c: Likewise.
40944         * tests/test-linkat.c: Likewise.
40945         * tests/test-linked_list.c: Likewise.
40946         * tests/test-linkedhash_list.c: Likewise.
40947         * tests/test-localename.c: Likewise.
40948         * tests/test-lseek.c: Likewise.
40949         * tests/test-lstat.c: Likewise.
40950         * tests/test-mbmemcasecmp.c: Likewise.
40951         * tests/test-mbmemcasecoll.c: Likewise.
40952         * tests/test-mbrtowc.c: Likewise.
40953         * tests/test-mbscasecmp.c: Likewise.
40954         * tests/test-mbscasestr1.c: Likewise.
40955         * tests/test-mbscasestr2.c: Likewise.
40956         * tests/test-mbscasestr3.c: Likewise.
40957         * tests/test-mbscasestr4.c: Likewise.
40958         * tests/test-mbschr.c: Likewise.
40959         * tests/test-mbscspn.c: Likewise.
40960         * tests/test-mbsinit.c: Likewise.
40961         * tests/test-mbsncasecmp.c: Likewise.
40962         * tests/test-mbsnrtowcs.c: Likewise.
40963         * tests/test-mbspbrk.c: Likewise.
40964         * tests/test-mbspcasecmp.c: Likewise.
40965         * tests/test-mbsrchr.c: Likewise.
40966         * tests/test-mbsrtowcs.c: Likewise.
40967         * tests/test-mbsspn.c: Likewise.
40968         * tests/test-mbsstr1.c: Likewise.
40969         * tests/test-mbsstr2.c: Likewise.
40970         * tests/test-mbsstr3.c: Likewise.
40971         * tests/test-memchr.c: Likewise.
40972         * tests/test-memchr2.c: Likewise.
40973         * tests/test-memcmp.c: Likewise.
40974         * tests/test-memmem.c: Likewise.
40975         * tests/test-memrchr.c: Likewise.
40976         * tests/test-mkdir.c: Likewise.
40977         * tests/test-mkdirat.c: Likewise.
40978         * tests/test-mkfifo.c: Likewise.
40979         * tests/test-mkfifoat.c: Likewise.
40980         * tests/test-mknod.c: Likewise.
40981         * tests/test-nanosleep.c: Likewise.
40982         * tests/test-nl_langinfo.c: Likewise.
40983         * tests/test-obstack-printf.c: Likewise.
40984         * tests/test-open.c: Likewise.
40985         * tests/test-openat.c: Likewise.
40986         * tests/test-pipe-filter-gi1.c: Likewise.
40987         * tests/test-pipe-filter-gi2-main.c: Likewise.
40988         * tests/test-pipe-filter-ii1.c: Likewise.
40989         * tests/test-pipe-filter-ii2-main.c: Likewise.
40990         * tests/test-pipe2.c: Likewise.
40991         * tests/test-popen.h: Likewise.
40992         * tests/test-posixtm.c: Likewise.
40993         * tests/test-pread.c: Likewise.
40994         * tests/test-printf-frexp.c: Likewise.
40995         * tests/test-printf-frexpl.c: Likewise.
40996         * tests/test-printf-posix.c: Likewise.
40997         * tests/test-priv-set.c: Likewise.
40998         * tests/test-quotearg.c: Likewise.
40999         * tests/test-random_r.c: Likewise.
41000         * tests/test-rawmemchr.c: Likewise.
41001         * tests/test-rbtree_list.c: Likewise.
41002         * tests/test-rbtree_oset.c: Likewise.
41003         * tests/test-rbtreehash_list.c: Likewise.
41004         * tests/test-readlink.c: Likewise.
41005         * tests/test-remove.c: Likewise.
41006         * tests/test-rename.c: Likewise.
41007         * tests/test-renameat.c: Likewise.
41008         * tests/test-rmdir.c: Likewise.
41009         * tests/test-round1.c: Likewise.
41010         * tests/test-roundf1.c: Likewise.
41011         * tests/test-roundl.c: Likewise.
41012         * tests/test-safe-alloc.c: Likewise.
41013         * tests/test-sameacls.c: Likewise.
41014         * tests/test-set-mode-acl.c: Likewise.
41015         * tests/test-setenv.c: Likewise.
41016         * tests/test-sigaction.c: Likewise.
41017         * tests/test-signbit.c: Likewise.
41018         * tests/test-sleep.c: Likewise.
41019         * tests/test-snprintf-posix.c: Likewise.
41020         * tests/test-snprintf.c: Likewise.
41021         * tests/test-sprintf-posix.c: Likewise.
41022         * tests/test-stat-time.c: Likewise.
41023         * tests/test-stat.c: Likewise.
41024         * tests/test-strcasestr.c: Likewise.
41025         * tests/test-strchrnul.c: Likewise.
41026         * tests/test-strerror.c: Likewise.
41027         * tests/test-striconv.c: Likewise.
41028         * tests/test-striconveh.c: Likewise.
41029         * tests/test-striconveha.c: Likewise.
41030         * tests/test-strsignal.c: Likewise.
41031         * tests/test-strstr.c: Likewise.
41032         * tests/test-strtod.c: Likewise.
41033         * tests/test-strverscmp.c: Likewise.
41034         * tests/test-symlink.c: Likewise.
41035         * tests/test-symlinkat.c: Likewise.
41036         * tests/test-trunc1.c: Likewise.
41037         * tests/test-trunc2.c: Likewise.
41038         * tests/test-truncf1.c: Likewise.
41039         * tests/test-truncf2.c: Likewise.
41040         * tests/test-truncl.c: Likewise.
41041         * tests/test-uname.c: Likewise.
41042         * tests/test-unlink.c: Likewise.
41043         * tests/test-unlinkat.c: Likewise.
41044         * tests/test-unsetenv.c: Likewise.
41045         * tests/test-usleep.c: Likewise.
41046         * tests/test-utimens.c: Likewise.
41047         * tests/test-utimensat.c: Likewise.
41048         * tests/test-vasnprintf-posix.c: Likewise.
41049         * tests/test-vasnprintf-posix2.c: Likewise.
41050         * tests/test-vasnprintf.c: Likewise.
41051         * tests/test-vasprintf-posix.c: Likewise.
41052         * tests/test-vasprintf.c: Likewise.
41053         * tests/test-vdprintf-posix.c: Likewise.
41054         * tests/test-vfprintf-posix.c: Likewise.
41055         * tests/test-vprintf-posix.c: Likewise.
41056         * tests/test-vsnprintf-posix.c: Likewise.
41057         * tests/test-vsnprintf.c: Likewise.
41058         * tests/test-vsprintf-posix.c: Likewise.
41059         * tests/test-wcrtomb.c: Likewise.
41060         * tests/test-wcsnrtombs.c: Likewise.
41061         * tests/test-wcsrtombs.c: Likewise.
41062         * tests/test-wctype.c: Likewise.
41063         * tests/test-wcwidth.c: Likewise.
41064         * tests/test-xfprintf-posix.c: Likewise.
41065         * tests/test-xmemdup0.c: Likewise.
41066         * tests/test-xprintf-posix.c: Likewise.
41067         * tests/test-xvasprintf.c: Likewise.
41068         * tests/unicase/test-locale-language.c: Likewise.
41069         * tests/unicase/test-mapping-part1.h: Likewise.
41070         * tests/unicase/test-predicate-part1.h: Likewise.
41071         * tests/unicase/test-u8-casecmp.c: Likewise.
41072         * tests/unicase/test-u8-casecoll.c: Likewise.
41073         * tests/unicase/test-u8-casefold.c: Likewise.
41074         * tests/unicase/test-u8-is-cased.c: Likewise.
41075         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41076         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41077         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41078         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41079         * tests/unicase/test-u8-tolower.c: Likewise.
41080         * tests/unicase/test-u8-totitle.c: Likewise.
41081         * tests/unicase/test-u8-toupper.c: Likewise.
41082         * tests/unicase/test-u16-casecmp.c: Likewise.
41083         * tests/unicase/test-u16-casecoll.c: Likewise.
41084         * tests/unicase/test-u16-casefold.c: Likewise.
41085         * tests/unicase/test-u16-is-cased.c: Likewise.
41086         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41087         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41088         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41089         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41090         * tests/unicase/test-u16-tolower.c: Likewise.
41091         * tests/unicase/test-u16-totitle.c: Likewise.
41092         * tests/unicase/test-u16-toupper.c: Likewise.
41093         * tests/unicase/test-u32-casecmp.c: Likewise.
41094         * tests/unicase/test-u32-casecoll.c: Likewise.
41095         * tests/unicase/test-u32-casefold.c: Likewise.
41096         * tests/unicase/test-u32-is-cased.c: Likewise.
41097         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41098         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41099         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41100         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41101         * tests/unicase/test-u32-tolower.c: Likewise.
41102         * tests/unicase/test-u32-totitle.c: Likewise.
41103         * tests/unicase/test-u32-toupper.c: Likewise.
41104         * tests/unicase/test-ulc-casecmp.c: Likewise.
41105         * tests/unicase/test-ulc-casecoll.c: Likewise.
41106         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41107         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41108         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41109         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41110         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41111         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41112         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41113         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41114         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41115         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41116         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41117         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41118         * tests/unictype/test-bidi_byname.c: Likewise.
41119         * tests/unictype/test-bidi_name.c: Likewise.
41120         * tests/unictype/test-bidi_of.c: Likewise.
41121         * tests/unictype/test-bidi_test.c: Likewise.
41122         * tests/unictype/test-block_list.c: Likewise.
41123         * tests/unictype/test-block_of.c: Likewise.
41124         * tests/unictype/test-block_test.c: Likewise.
41125         * tests/unictype/test-categ_and.c: Likewise.
41126         * tests/unictype/test-categ_and_not.c: Likewise.
41127         * tests/unictype/test-categ_byname.c: Likewise.
41128         * tests/unictype/test-categ_name.c: Likewise.
41129         * tests/unictype/test-categ_none.c: Likewise.
41130         * tests/unictype/test-categ_of.c: Likewise.
41131         * tests/unictype/test-categ_or.c: Likewise.
41132         * tests/unictype/test-categ_test_withtable.c: Likewise.
41133         * tests/unictype/test-combining.c: Likewise.
41134         * tests/unictype/test-decdigit.c: Likewise.
41135         * tests/unictype/test-digit.c: Likewise.
41136         * tests/unictype/test-mirror.c: Likewise.
41137         * tests/unictype/test-numeric.c: Likewise.
41138         * tests/unictype/test-pr_byname.c: Likewise.
41139         * tests/unictype/test-pr_test.c: Likewise.
41140         * tests/unictype/test-predicate-part1.h: Likewise.
41141         * tests/unictype/test-scripts.c: Likewise.
41142         * tests/unictype/test-sy_c_ident.c: Likewise.
41143         * tests/unictype/test-sy_java_ident.c: Likewise.
41144         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41145         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41146         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41147         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41148         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41149         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41150         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41151         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41152         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41153         * tests/uninorm/test-compat-decomposition.c: Likewise.
41154         * tests/uninorm/test-composition.c: Likewise.
41155         * tests/uninorm/test-decomposing-form.c: Likewise.
41156         * tests/uninorm/test-decomposition.c: Likewise.
41157         * tests/uninorm/test-u8-nfc.c: Likewise.
41158         * tests/uninorm/test-u8-nfd.c: Likewise.
41159         * tests/uninorm/test-u8-nfkc.c: Likewise.
41160         * tests/uninorm/test-u8-nfkd.c: Likewise.
41161         * tests/uninorm/test-u8-normcmp.c: Likewise.
41162         * tests/uninorm/test-u8-normcoll.c: Likewise.
41163         * tests/uninorm/test-u16-nfc.c: Likewise.
41164         * tests/uninorm/test-u16-nfd.c: Likewise.
41165         * tests/uninorm/test-u16-nfkc.c: Likewise.
41166         * tests/uninorm/test-u16-nfkd.c: Likewise.
41167         * tests/uninorm/test-u16-normcmp.c: Likewise.
41168         * tests/uninorm/test-u16-normcoll.c: Likewise.
41169         * tests/uninorm/test-u32-nfc.c: Likewise.
41170         * tests/uninorm/test-u32-nfd.c: Likewise.
41171         * tests/uninorm/test-u32-nfkc.c: Likewise.
41172         * tests/uninorm/test-u32-nfkd.c: Likewise.
41173         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41174         * tests/uninorm/test-u32-normcmp.c: Likewise.
41175         * tests/uninorm/test-u32-normcoll.c: Likewise.
41176         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41177         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41178         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41179         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41180         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41181         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41182         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41183         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41184         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41185         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41186         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41187         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41188         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41189         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41190         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41191         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41192         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41193         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41194         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41195         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41196         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41197         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41198         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41199         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41200         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41201         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41202         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41203         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41204         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41205         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41206         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41207         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41208         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41209         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41210         * tests/uniwidth/test-u8-width.c: Likewise.
41211         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41212         * tests/uniwidth/test-u16-width.c: Likewise.
41213         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41214         * tests/uniwidth/test-u32-width.c: Likewise.
41215         * tests/uniwidth/test-uc_width.c: Likewise.
41216         * tests/uniwidth/test-uc_width2.c: Likewise.
41217         * modules/acl-tests (Files): Add tests/macros.h.
41218         * modules/areadlink-tests (Files): Likewise.
41219         * modules/areadlink-with-size-tests (Files): Likewise.
41220         * modules/areadlinkat-tests (Files): Likewise.
41221         * modules/areadlinkat-with-size-tests (Files): Likewise.
41222         * modules/argmatch-tests (Files): Likewise.
41223         * modules/argv-iter-tests (Files): Likewise.
41224         * modules/array-list-tests (Files): Likewise.
41225         * modules/array-mergesort-tests (Files): Likewise.
41226         * modules/array-oset-tests (Files): Likewise.
41227         * modules/avltree-list-tests (Files): Likewise.
41228         * modules/avltree-oset-tests (Files): Likewise.
41229         * modules/avltreehash-list-tests (Files): Likewise.
41230         * modules/base64-tests (Files): Likewise.
41231         * modules/binary-io-tests (Files): Likewise.
41232         * modules/bitrotate-tests (Files): Likewise.
41233         * modules/btowc-tests (Files): Likewise.
41234         * modules/byteswap-tests (Files): Likewise.
41235         * modules/c-ctype-tests (Files): Likewise.
41236         * modules/c-stack-tests (Files): Likewise.
41237         * modules/c-strcase-tests (Files): Likewise.
41238         * modules/c-strcasestr-tests (Files): Likewise.
41239         * modules/c-strstr-tests (Files): Likewise.
41240         * modules/canonicalize-lgpl-tests (Files): Likewise.
41241         * modules/canonicalize-tests (Files): Likewise.
41242         * modules/carray-list-tests (Files): Likewise.
41243         * modules/ceilf-tests (Files): Likewise.
41244         * modules/ceill-tests (Files): Likewise.
41245         * modules/chown-tests (Files): Likewise.
41246         * modules/cloexec-tests (Files): Likewise.
41247         * modules/copy-file-tests (Files): Likewise.
41248         * modules/count-one-bits-tests (Files): Likewise.
41249         * modules/dprintf-posix-tests (Files): Likewise.
41250         * modules/dup2-tests (Files): Likewise.
41251         * modules/dup3-tests (Files): Likewise.
41252         * modules/duplocale-tests (Files): Likewise.
41253         * modules/fbufmode-tests (Files): Likewise.
41254         * modules/fchdir-tests (Files): Likewise.
41255         * modules/fcntl-safer-tests (Files): Likewise.
41256         * modules/fcntl-tests (Files): Likewise.
41257         * modules/fdopendir-tests (Files): Likewise.
41258         * modules/fdutimensat-tests (Files): Likewise.
41259         * modules/fflush-tests (Files): Likewise.
41260         * modules/filevercmp-tests (Files): Likewise.
41261         * modules/flock-tests (Files): Likewise.
41262         * modules/floorf-tests (Files): Likewise.
41263         * modules/floorl-tests (Files): Likewise.
41264         * modules/fnmatch-tests (Files): Likewise.
41265         * modules/fopen-safer-tests (Files): Likewise.
41266         * modules/fopen-tests (Files): Likewise.
41267         * modules/fpending-tests (Files): Likewise.
41268         * modules/fprintf-posix-tests (Files): Likewise.
41269         * modules/fpurge-tests (Files): Likewise.
41270         * modules/freadable-tests (Files): Likewise.
41271         * modules/freadahead-tests (Files): Likewise.
41272         * modules/freading-tests (Files): Likewise.
41273         * modules/freadptr-tests (Files): Likewise.
41274         * modules/freadseek-tests (Files): Likewise.
41275         * modules/freopen-tests (Files): Likewise.
41276         * modules/frexp-nolibm-tests (Files): Likewise.
41277         * modules/frexp-tests (Files): Likewise.
41278         * modules/frexpl-nolibm-tests (Files): Likewise.
41279         * modules/frexpl-tests (Files): Likewise.
41280         * modules/fseek-tests (Files): Likewise.
41281         * modules/fseeko-tests (Files): Likewise.
41282         * modules/fstrcmp-tests (Files): Likewise.
41283         * modules/fsync-tests (Files): Likewise.
41284         * modules/ftell-tests (Files): Likewise.
41285         * modules/ftello-tests (Files): Likewise.
41286         * modules/func-tests (Files): Likewise.
41287         * modules/futimens-tests (Files): Likewise.
41288         * modules/fwritable-tests (Files): Likewise.
41289         * modules/fwriting-tests (Files): Likewise.
41290         * modules/getcwd-tests (Files): Likewise.
41291         * modules/getdate-tests (Files): Likewise.
41292         * modules/getdelim-tests (Files): Likewise.
41293         * modules/getdtablesize-tests (Files): Likewise.
41294         * modules/getgroups-tests (Files): Likewise.
41295         * modules/getline-tests (Files): Likewise.
41296         * modules/getndelim2-tests (Files): Likewise.
41297         * modules/glob-tests (Files): Likewise.
41298         * modules/hash-tests (Files): Likewise.
41299         * modules/i-ring-tests (Files): Likewise.
41300         * modules/iconv-tests (Files): Likewise.
41301         * modules/iconv_open-utf-tests (Files): Likewise.
41302         * modules/idpriv-drop-tests (Files): Likewise.
41303         * modules/idpriv-droptemp-tests (Files): Likewise.
41304         * modules/inet_ntop-tests (Files): Likewise.
41305         * modules/inet_pton-tests (Files): Likewise.
41306         * modules/isblank-tests (Files): Likewise.
41307         * modules/isfinite-tests (Files): Likewise.
41308         * modules/isinf-tests (Files): Likewise.
41309         * modules/isnan-tests (Files): Likewise.
41310         * modules/isnand-nolibm-tests (Files): Likewise.
41311         * modules/isnand-tests (Files): Likewise.
41312         * modules/isnanf-nolibm-tests (Files): Likewise.
41313         * modules/isnanf-tests (Files): Likewise.
41314         * modules/isnanl-nolibm-tests (Files): Likewise.
41315         * modules/isnanl-tests (Files): Likewise.
41316         * modules/lchown-tests (Files): Likewise.
41317         * modules/ldexpl-tests (Files): Likewise.
41318         * modules/link-tests (Files): Likewise.
41319         * modules/linkat-tests (Files): Likewise.
41320         * modules/linked-list-tests (Files): Likewise.
41321         * modules/linkedhash-list-tests (Files): Likewise.
41322         * modules/localename-tests (Files): Likewise.
41323         * modules/lseek-tests (Files): Likewise.
41324         * modules/lstat-tests (Files): Likewise.
41325         * modules/mbmemcasecmp-tests (Files): Likewise.
41326         * modules/mbmemcasecoll-tests (Files): Likewise.
41327         * modules/mbrtowc-tests (Files): Likewise.
41328         * modules/mbscasecmp-tests (Files): Likewise.
41329         * modules/mbscasestr-tests (Files): Likewise.
41330         * modules/mbschr-tests (Files): Likewise.
41331         * modules/mbscspn-tests (Files): Likewise.
41332         * modules/mbsinit-tests (Files): Likewise.
41333         * modules/mbsncasecmp-tests (Files): Likewise.
41334         * modules/mbsnrtowcs-tests (Files): Likewise.
41335         * modules/mbspbrk-tests (Files): Likewise.
41336         * modules/mbspcasecmp-tests (Files): Likewise.
41337         * modules/mbsrchr-tests (Files): Likewise.
41338         * modules/mbsrtowcs-tests (Files): Likewise.
41339         * modules/mbsspn-tests (Files): Likewise.
41340         * modules/mbsstr-tests (Files): Likewise.
41341         * modules/memchr-tests (Files): Likewise.
41342         * modules/memchr2-tests (Files): Likewise.
41343         * modules/memcmp-tests (Files): Likewise.
41344         * modules/memmem-tests (Files): Likewise.
41345         * modules/memrchr-tests (Files): Likewise.
41346         * modules/mkdir-tests (Files): Likewise.
41347         * modules/mkfifo-tests (Files): Likewise.
41348         * modules/mkfifoat-tests (Files): Likewise.
41349         * modules/mknod-tests (Files): Likewise.
41350         * modules/nanosleep-tests (Files): Likewise.
41351         * modules/nl_langinfo-tests (Files): Likewise.
41352         * modules/obstack-printf-tests (Files): Likewise.
41353         * modules/open-tests (Files): Likewise.
41354         * modules/openat-tests (Files): Likewise.
41355         * modules/pipe-filter-gi-tests (Files): Likewise.
41356         * modules/pipe-filter-ii-tests (Files): Likewise.
41357         * modules/pipe2-tests (Files): Likewise.
41358         * modules/popen-safer-tests (Files): Likewise.
41359         * modules/popen-tests (Files): Likewise.
41360         * modules/posixtm-tests (Files): Likewise.
41361         * modules/pread-tests (Files): Likewise.
41362         * modules/printf-frexp-tests (Files): Likewise.
41363         * modules/printf-frexpl-tests (Files): Likewise.
41364         * modules/printf-posix-tests (Files): Likewise.
41365         * modules/priv-set-tests (Files): Likewise.
41366         * modules/quotearg-tests (Files): Likewise.
41367         * modules/random_r-tests (Files): Likewise.
41368         * modules/rawmemchr-tests (Files): Likewise.
41369         * modules/rbtree-list-tests (Files): Likewise.
41370         * modules/rbtree-oset-tests (Files): Likewise.
41371         * modules/rbtreehash-list-tests (Files): Likewise.
41372         * modules/readlink-tests (Files): Likewise.
41373         * modules/remove-tests (Files): Likewise.
41374         * modules/rename-tests (Files): Likewise.
41375         * modules/renameat-tests (Files): Likewise.
41376         * modules/rmdir-tests (Files): Likewise.
41377         * modules/round-tests (Files): Likewise.
41378         * modules/roundf-tests (Files): Likewise.
41379         * modules/roundl-tests (Files): Likewise.
41380         * modules/safe-alloc-tests (Files): Likewise.
41381         * modules/setenv-tests (Files): Likewise.
41382         * modules/sigaction-tests (Files): Likewise.
41383         * modules/signbit-tests (Files): Likewise.
41384         * modules/sleep-tests (Files): Likewise.
41385         * modules/snprintf-posix-tests (Files): Likewise.
41386         * modules/snprintf-tests (Files): Likewise.
41387         * modules/sprintf-posix-tests (Files): Likewise.
41388         * modules/stat-tests (Files): Likewise.
41389         * modules/stat-time-tests (Files): Likewise.
41390         * modules/strcasestr-tests (Files): Likewise.
41391         * modules/strchrnul-tests (Files): Likewise.
41392         * modules/strerror-tests (Files): Likewise.
41393         * modules/striconv-tests (Files): Likewise.
41394         * modules/striconveh-tests (Files): Likewise.
41395         * modules/striconveha-tests (Files): Likewise.
41396         * modules/strsignal-tests (Files): Likewise.
41397         * modules/strstr-tests (Files): Likewise.
41398         * modules/strtod-tests (Files): Likewise.
41399         * modules/strverscmp-tests (Files): Likewise.
41400         * modules/symlink-tests (Files): Likewise.
41401         * modules/symlinkat-tests (Files): Likewise.
41402         * modules/trunc-tests (Files): Likewise.
41403         * modules/truncf-tests (Files): Likewise.
41404         * modules/truncl-tests (Files): Likewise.
41405         * modules/uname-tests (Files): Likewise.
41406         * modules/unicase/cased-tests (Files): Likewise.
41407         * modules/unicase/ignorable-tests (Files): Likewise.
41408         * modules/unicase/locale-language-tests (Files): Likewise.
41409         * modules/unicase/tolower-tests (Files): Likewise.
41410         * modules/unicase/totitle-tests (Files): Likewise.
41411         * modules/unicase/toupper-tests (Files): Likewise.
41412         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41413         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41414         * modules/unicase/u8-casefold-tests (Files): Likewise.
41415         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41416         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41417         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41418         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41419         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41420         * modules/unicase/u8-tolower-tests (Files): Likewise.
41421         * modules/unicase/u8-totitle-tests (Files): Likewise.
41422         * modules/unicase/u8-toupper-tests (Files): Likewise.
41423         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41424         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41425         * modules/unicase/u16-casefold-tests (Files): Likewise.
41426         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41427         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41428         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41429         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41430         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41431         * modules/unicase/u16-tolower-tests (Files): Likewise.
41432         * modules/unicase/u16-totitle-tests (Files): Likewise.
41433         * modules/unicase/u16-toupper-tests (Files): Likewise.
41434         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41435         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41436         * modules/unicase/u32-casefold-tests (Files): Likewise.
41437         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41438         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41439         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41440         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41441         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41442         * modules/unicase/u32-tolower-tests (Files): Likewise.
41443         * modules/unicase/u32-totitle-tests (Files): Likewise.
41444         * modules/unicase/u32-toupper-tests (Files): Likewise.
41445         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41446         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41447         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41448         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41449         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41450         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41451         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41452         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41453         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41454         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41455         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41456         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41457         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41458         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41459         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41460         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41461         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41462         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41463         * modules/unictype/block-list-tests (Files): Likewise.
41464         * modules/unictype/block-of-tests (Files): Likewise.
41465         * modules/unictype/block-test-tests (Files): Likewise.
41466         * modules/unictype/category-C-tests (Files): Likewise.
41467         * modules/unictype/category-Cc-tests (Files): Likewise.
41468         * modules/unictype/category-Cf-tests (Files): Likewise.
41469         * modules/unictype/category-Cn-tests (Files): Likewise.
41470         * modules/unictype/category-Co-tests (Files): Likewise.
41471         * modules/unictype/category-Cs-tests (Files): Likewise.
41472         * modules/unictype/category-L-tests (Files): Likewise.
41473         * modules/unictype/category-Ll-tests (Files): Likewise.
41474         * modules/unictype/category-Lm-tests (Files): Likewise.
41475         * modules/unictype/category-Lo-tests (Files): Likewise.
41476         * modules/unictype/category-Lt-tests (Files): Likewise.
41477         * modules/unictype/category-Lu-tests (Files): Likewise.
41478         * modules/unictype/category-M-tests (Files): Likewise.
41479         * modules/unictype/category-Mc-tests (Files): Likewise.
41480         * modules/unictype/category-Me-tests (Files): Likewise.
41481         * modules/unictype/category-Mn-tests (Files): Likewise.
41482         * modules/unictype/category-N-tests (Files): Likewise.
41483         * modules/unictype/category-Nd-tests (Files): Likewise.
41484         * modules/unictype/category-Nl-tests (Files): Likewise.
41485         * modules/unictype/category-No-tests (Files): Likewise.
41486         * modules/unictype/category-P-tests (Files): Likewise.
41487         * modules/unictype/category-Pc-tests (Files): Likewise.
41488         * modules/unictype/category-Pd-tests (Files): Likewise.
41489         * modules/unictype/category-Pe-tests (Files): Likewise.
41490         * modules/unictype/category-Pf-tests (Files): Likewise.
41491         * modules/unictype/category-Pi-tests (Files): Likewise.
41492         * modules/unictype/category-Po-tests (Files): Likewise.
41493         * modules/unictype/category-Ps-tests (Files): Likewise.
41494         * modules/unictype/category-S-tests (Files): Likewise.
41495         * modules/unictype/category-Sc-tests (Files): Likewise.
41496         * modules/unictype/category-Sk-tests (Files): Likewise.
41497         * modules/unictype/category-Sm-tests (Files): Likewise.
41498         * modules/unictype/category-So-tests (Files): Likewise.
41499         * modules/unictype/category-Z-tests (Files): Likewise.
41500         * modules/unictype/category-Zl-tests (Files): Likewise.
41501         * modules/unictype/category-Zp-tests (Files): Likewise.
41502         * modules/unictype/category-Zs-tests (Files): Likewise.
41503         * modules/unictype/category-and-not-tests (Files): Likewise.
41504         * modules/unictype/category-and-tests (Files): Likewise.
41505         * modules/unictype/category-byname-tests (Files): Likewise.
41506         * modules/unictype/category-name-tests (Files): Likewise.
41507         * modules/unictype/category-none-tests (Files): Likewise.
41508         * modules/unictype/category-of-tests (Files): Likewise.
41509         * modules/unictype/category-or-tests (Files): Likewise.
41510         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41511         * modules/unictype/combining-class-tests (Files): Likewise.
41512         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41513         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41514         * modules/unictype/ctype-blank-tests (Files): Likewise.
41515         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41516         * modules/unictype/ctype-digit-tests (Files): Likewise.
41517         * modules/unictype/ctype-graph-tests (Files): Likewise.
41518         * modules/unictype/ctype-lower-tests (Files): Likewise.
41519         * modules/unictype/ctype-print-tests (Files): Likewise.
41520         * modules/unictype/ctype-punct-tests (Files): Likewise.
41521         * modules/unictype/ctype-space-tests (Files): Likewise.
41522         * modules/unictype/ctype-upper-tests (Files): Likewise.
41523         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41524         * modules/unictype/decimal-digit-tests (Files): Likewise.
41525         * modules/unictype/digit-tests (Files): Likewise.
41526         * modules/unictype/mirror-tests (Files): Likewise.
41527         * modules/unictype/numeric-tests (Files): Likewise.
41528         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41529         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41530         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41531         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41532         Likewise.
41533         * modules/unictype/property-bidi-block-separator-tests (Files):
41534         Likewise.
41535         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41536         Likewise.
41537         * modules/unictype/property-bidi-common-separator-tests (Files):
41538         Likewise.
41539         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41540         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41541         Likewise.
41542         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41543         Likewise.
41544         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41545         Likewise.
41546         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41547         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41548         Likewise.
41549         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41550         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41551         Likewise.
41552         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41553         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41554         * modules/unictype/property-bidi-segment-separator-tests (Files):
41555         Likewise.
41556         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41557         * modules/unictype/property-byname-tests (Files): Likewise.
41558         * modules/unictype/property-combining-tests (Files): Likewise.
41559         * modules/unictype/property-composite-tests (Files): Likewise.
41560         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41561         * modules/unictype/property-dash-tests (Files): Likewise.
41562         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41563         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41564         Likewise.
41565         * modules/unictype/property-deprecated-tests (Files): Likewise.
41566         * modules/unictype/property-diacritic-tests (Files): Likewise.
41567         * modules/unictype/property-extender-tests (Files): Likewise.
41568         * modules/unictype/property-format-control-tests (Files): Likewise.
41569         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41570         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41571         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41572         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41573         * modules/unictype/property-hyphen-tests (Files): Likewise.
41574         * modules/unictype/property-id-continue-tests (Files): Likewise.
41575         * modules/unictype/property-id-start-tests (Files): Likewise.
41576         * modules/unictype/property-ideographic-tests (Files): Likewise.
41577         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41578         * modules/unictype/property-ids-trinary-operator-tests (Files):
41579         Likewise.
41580         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41581         * modules/unictype/property-iso-control-tests (Files): Likewise.
41582         * modules/unictype/property-join-control-tests (Files): Likewise.
41583         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41584         * modules/unictype/property-line-separator-tests (Files): Likewise.
41585         * modules/unictype/property-logical-order-exception-tests (Files):
41586         Likewise.
41587         * modules/unictype/property-lowercase-tests (Files): Likewise.
41588         * modules/unictype/property-math-tests (Files): Likewise.
41589         * modules/unictype/property-non-break-tests (Files): Likewise.
41590         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41591         * modules/unictype/property-numeric-tests (Files): Likewise.
41592         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41593         * modules/unictype/property-other-default-ignorable-code-point-tests
41594         (Files): Likewise.
41595         * modules/unictype/property-other-grapheme-extend-tests (Files):
41596         Likewise.
41597         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41598         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41599         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41600         * modules/unictype/property-other-math-tests (Files): Likewise.
41601         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41602         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41603         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41604         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41605         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41606         * modules/unictype/property-private-use-tests (Files): Likewise.
41607         * modules/unictype/property-punctuation-tests (Files): Likewise.
41608         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41609         * modules/unictype/property-radical-tests (Files): Likewise.
41610         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41611         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41612         * modules/unictype/property-space-tests (Files): Likewise.
41613         * modules/unictype/property-terminal-punctuation-tests (Files):
41614         Likewise.
41615         * modules/unictype/property-test-tests (Files): Likewise.
41616         * modules/unictype/property-titlecase-tests (Files): Likewise.
41617         * modules/unictype/property-unassigned-code-value-tests (Files):
41618         Likewise.
41619         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41620         * modules/unictype/property-uppercase-tests (Files): Likewise.
41621         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41622         * modules/unictype/property-white-space-tests (Files): Likewise.
41623         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41624         * modules/unictype/property-xid-start-tests (Files): Likewise.
41625         * modules/unictype/property-zero-width-tests (Files): Likewise.
41626         * modules/unictype/scripts-tests (Files): Likewise.
41627         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41628         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41629         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41630         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41631         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41632         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41633         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41634         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41635         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41636         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41637         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41638         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41639         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41640         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41641         * modules/uninorm/composition-tests (Files): Likewise.
41642         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41643         * modules/uninorm/decomposition-tests (Files): Likewise.
41644         * modules/uninorm/filter-tests (Files): Likewise.
41645         * modules/uninorm/nfc-tests (Files): Likewise.
41646         * modules/uninorm/nfd-tests (Files): Likewise.
41647         * modules/uninorm/nfkc-tests (Files): Likewise.
41648         * modules/uninorm/nfkd-tests (Files): Likewise.
41649         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41650         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41651         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41652         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41653         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41654         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41655         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41656         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41657         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41658         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41659         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41660         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41661         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41662         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41663         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41664         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41665         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41666         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41667         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41668         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41669         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41670         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41671         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41672         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41673         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41674         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41675         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41676         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41677         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41678         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41679         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41680         * modules/uniwidth/u8-width-tests (Files): Likewise.
41681         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41682         * modules/uniwidth/u16-width-tests (Files): Likewise.
41683         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41684         * modules/uniwidth/u32-width-tests (Files): Likewise.
41685         * modules/uniwidth/width-tests (Files): Likewise.
41686         * modules/unlink-tests (Files): Likewise.
41687         * modules/unsetenv-tests (Files): Likewise.
41688         * modules/usleep-tests (Files): Likewise.
41689         * modules/utimens-tests (Files): Likewise.
41690         * modules/utimensat-tests (Files): Likewise.
41691         * modules/vasnprintf-posix-tests (Files): Likewise.
41692         * modules/vasnprintf-tests (Files): Likewise.
41693         * modules/vasprintf-posix-tests (Files): Likewise.
41694         * modules/vasprintf-tests (Files): Likewise.
41695         * modules/vdprintf-posix-tests (Files): Likewise.
41696         * modules/vfprintf-posix-tests (Files): Likewise.
41697         * modules/vprintf-posix-tests (Files): Likewise.
41698         * modules/vsnprintf-posix-tests (Files): Likewise.
41699         * modules/vsnprintf-tests (Files): Likewise.
41700         * modules/vsprintf-posix-tests (Files): Likewise.
41701         * modules/wcrtomb-tests (Files): Likewise.
41702         * modules/wcsnrtombs-tests (Files): Likewise.
41703         * modules/wcsrtombs-tests (Files): Likewise.
41704         * modules/wctype-tests (Files): Likewise.
41705         * modules/wcwidth-tests (Files): Likewise.
41706         * modules/xmemdup0-tests (Files): Likewise.
41707         * modules/xprintf-posix-tests (Files): Likewise.
41708         * modules/xvasprintf-tests (Files): Likewise.
41709
41710 2009-12-24  Eric Blake  <ebb9@byu.net>
41711
41712         test-nanosleep: fix typo
41713         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41714         patch.
41715         Reported by Bruno Haible.
41716
41717 2009-12-24  Bruno Haible  <bruno@clisp.org>
41718
41719         Reduce namespace pollution on glibc systems.
41720         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41721         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41722         systems.
41723         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41724         <getopt.h> on glibc systems.
41725         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41726         systems.
41727         * lib/fcntl.c: Include <unistd.h> here instead.
41728
41729 2009-12-24  Bruno Haible  <bruno@clisp.org>
41730
41731         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41732
41733 2009-12-24  Eric Blake  <ebb9@byu.net>
41734
41735         tests: add signature checks
41736         * tests/signature.h (SIGNATURE_CHECK): New file.
41737         * modules/atexit-tests (Files): Use it.
41738         * modules/btowc-tests (Files): Likewise.
41739         * modules/canonicalize-lgpl-tests (Files): Likewise.
41740         * modules/ceilf-tests (Files): Likewise.
41741         * modules/ceill-tests (Files): Likewise.
41742         * modules/chown-tests (Files): Likewise.
41743         * modules/dprintf-posix-tests (Files): Likewise.
41744         * modules/dup2-tests (Files): Likewise.
41745         * modules/dup3-tests (Files): Likewise.
41746         * modules/duplocale-tests (Files): Likewise.
41747         * modules/fchdir-tests (Files): Likewise.
41748         * modules/fcntl-tests (Files): Likewise.
41749         * modules/fdopendir-tests (Files): Likewise.
41750         * modules/fflush-tests (Files): Likewise.
41751         * modules/flock-tests (Files): Likewise.
41752         * modules/floorf-tests (Files): Likewise.
41753         * modules/floorl-tests (Files): Likewise.
41754         * modules/fnmatch-tests (Files): Likewise.
41755         * modules/fopen-tests (Files): Likewise.
41756         * modules/fprintf-posix-tests (Files): Likewise.
41757         * modules/freopen-tests (Files): Likewise.
41758         * modules/frexp-nolibm-tests (Files): Likewise.
41759         * modules/frexp-tests (Files): Likewise.
41760         * modules/frexpl-nolibm-tests (Files): Likewise.
41761         * modules/frexpl-tests (Files): Likewise.
41762         * modules/fseek-tests (Files): Likewise.
41763         * modules/fseeko-tests (Files): Likewise.
41764         * modules/fsync-tests (Files): Likewise.
41765         * modules/ftell-tests (Files): Likewise.
41766         * modules/ftello-tests (Files): Likewise.
41767         * modules/futimens-tests (Files): Likewise.
41768         * modules/getaddrinfo-tests (Files): Likewise.
41769         * modules/getcwd-tests (Files): Likewise.
41770         * modules/getdelim-tests (Files): Likewise.
41771         * modules/getdtablesize-tests (Files): Likewise.
41772         * modules/getgroups-tests (Files): Likewise.
41773         * modules/gethostname-tests (Files): Likewise.
41774         * modules/getline-tests (Files): Likewise.
41775         * modules/getopt-posix-tests (Files): Likewise.
41776         * modules/gettimeofday-tests (Files): Likewise.
41777         * modules/glob-tests (Files): Likewise.
41778         * modules/iconv-tests (Files): Likewise.
41779         * modules/inet_ntop-tests (Files): Likewise.
41780         * modules/inet_pton-tests (Files): Likewise.
41781         * modules/isblank-tests (Files): Likewise.
41782         * modules/lchown-tests (Files): Likewise.
41783         * modules/ldexpl-tests (Files): Likewise.
41784         * modules/link-tests (Files): Likewise.
41785         * modules/linkat-tests (Files): Likewise.
41786         * modules/lseek-tests (Files): Likewise.
41787         * modules/lstat-tests (Files): Likewise.
41788         * modules/mbrtowc-tests (Files): Likewise.
41789         * modules/mbsinit-tests (Files): Likewise.
41790         * modules/mbsnrtowcs-tests (Files): Likewise.
41791         * modules/mbsrtowcs-tests (Files): Likewise.
41792         * modules/memchr-tests (Files): Likewise.
41793         * modules/memcmp-tests (Files): Likewise.
41794         * modules/memmem-tests (Files): Likewise.
41795         * modules/memrchr-tests (Files): Likewise.
41796         * modules/mkdir-tests (Files): Likewise.
41797         * modules/mkfifo-tests (Files): Likewise.
41798         * modules/mkfifoat-tests (Files): Likewise.
41799         * modules/mknod-tests (Files): Likewise.
41800         * modules/nanosleep-tests (Files): Likewise.
41801         * modules/nl_langinfo-tests (Files): Likewise.
41802         * modules/obstack-printf-tests (Files): Likewise.
41803         * modules/open-tests (Files): Likewise.
41804         * modules/openat-tests (Files): Likewise.
41805         * modules/perror-tests (Files): Likewise.
41806         * modules/pipe2-tests (Files): Likewise.
41807         * modules/poll-tests (Files): Likewise.
41808         * modules/popen-tests (Files): Likewise.
41809         * modules/posix_spawn-tests (Files): Likewise.
41810         * modules/posix_spawnp-tests (Files): Likewise.
41811         * modules/pread-tests (Files): Likewise.
41812         * modules/printf-posix-tests (Files): Likewise.
41813         * modules/pty-tests (Files): Likewise.
41814         * modules/random_r-tests (Files): Likewise.
41815         * modules/rawmemchr-tests (Files): Likewise.
41816         * modules/readlink-tests (Files): Likewise.
41817         * modules/remove-tests (Files): Likewise.
41818         * modules/rename-tests (Files): Likewise.
41819         * modules/renameat-tests (Files): Likewise.
41820         * modules/rmdir-tests (Files): Likewise.
41821         * modules/round-tests (Files): Likewise.
41822         * modules/roundf-tests (Files): Likewise.
41823         * modules/roundl-tests (Files): Likewise.
41824         * modules/select-tests (Files): Likewise.
41825         * modules/setenv-tests (Files): Likewise.
41826         * modules/sigaction-tests (Files): Likewise.
41827         * modules/sleep-tests (Files): Likewise.
41828         * modules/snprintf-posix-tests (Files): Likewise.
41829         * modules/snprintf-tests (Files): Likewise.
41830         * modules/sprintf-posix-tests (Files): Likewise.
41831         * modules/stat-tests (Files): Likewise.
41832         * modules/strcasestr-tests (Files): Likewise.
41833         * modules/strchrnul-tests (Files): Likewise.
41834         * modules/strerror-tests (Files): Likewise.
41835         * modules/strsignal-tests (Files): Likewise.
41836         * modules/strstr-tests (Files): Likewise.
41837         * modules/strtod-tests (Files): Likewise.
41838         * modules/strverscmp-tests (Files): Likewise.
41839         * modules/symlink-tests (Files): Likewise.
41840         * modules/symlinkat-tests (Files): Likewise.
41841         * modules/times-tests (Files): Likewise.
41842         * modules/trunc-tests (Files): Likewise.
41843         * modules/truncf-tests (Files): Likewise.
41844         * modules/truncl-tests (Files): Likewise.
41845         * modules/tsearch-tests (Files): Likewise.
41846         * modules/uname-tests (Files): Likewise.
41847         * modules/unlink-tests (Files): Likewise.
41848         * modules/unsetenv-tests (Files): Likewise.
41849         * modules/usleep-tests (Files): Likewise.
41850         * modules/utimensat-tests (Files): Likewise.
41851         * modules/vasprintf-tests (Files): Likewise.
41852         * modules/vdprintf-posix-tests (Files): Likewise.
41853         * modules/vfprintf-posix-tests (Files): Likewise.
41854         * modules/vprintf-posix-tests (Files): Likewise.
41855         * modules/vsnprintf-posix-tests (Files): Likewise.
41856         * modules/vsnprintf-tests (Files): Likewise.
41857         * modules/vsprintf-posix-tests (Files): Likewise.
41858         * modules/wcrtomb-tests (Files): Likewise.
41859         * modules/wcsnrtombs-tests (Files): Likewise.
41860         * modules/wcsrtombs-tests (Files): Likewise.
41861         * modules/wcwidth-tests (Files): Likewise.
41862         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41863         * tests/test-isinf.c (isinf): Likewise.
41864         * tests/test-isnan.c (isnan): Likewise.
41865         * tests/test-signbit.c (signbit): Likewise.
41866         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41867         declaration, either as macro or with correct signature.
41868         (select): Ensure function under test is declared with correct
41869         signature in correct header.
41870         * tests/test-atexit.c (atexit): Likewise.
41871         * tests/test-btowc.c (btowc): Likewise.
41872         * tests/test-canonicalize-lgpl.c (realpath)
41873         (canonicalize_file_name): Likewise.
41874         * tests/test-ceilf1.c (ceilf): Likewise.
41875         * tests/test-ceill.c (ceill): Likewise.
41876         * tests/test-chown.c (chown): Likewise.
41877         * tests/test-dprintf-posix.c (dprintf): Likewise.
41878         * tests/test-dup2.c (dup2): Likewise.
41879         * tests/test-dup3.c (dup3): Likewise.
41880         * tests/test-duplocale.c (duplocale): Likewise.
41881         * tests/test-fchdir.c (fchdir): Likewise.
41882         * tests/test-fchownat.c (fchownat): Likewise.
41883         * tests/test-fcntl.c (fcntl): Likewise.
41884         * tests/test-fdopendir.c (fdopendir): Likewise.
41885         * tests/test-fflush.c (fflush): Likewise.
41886         * tests/test-flock.c (flock): Likewise.
41887         * tests/test-floorf1.c (floorf): Likewise.
41888         * tests/test-floorl.c (floorl): Likewise.
41889         * tests/test-fnmatch.c (fnmatch): Likewise.
41890         * tests/test-fopen.c (fopen): Likewise.
41891         * tests/test-fprintf-posix.c (fprintf): Likewise.
41892         * tests/test-freopen.c (freopen): Likewise.
41893         * tests/test-frexp.c (frexp): Likewise.
41894         * tests/test-frexpl.c (frexpl): Likewise.
41895         * tests/test-fseek.c (fseek): Likewise.
41896         * tests/test-fseeko.c (fseeko): Likewise.
41897         * tests/test-fstatat.c (fstatat): Likewise.
41898         * tests/test-fsync.c (fsync): Likewise.
41899         * tests/test-ftell.c (ftell): Likewise.
41900         * tests/test-ftello.c (ftello): Likewise.
41901         * tests/test-futimens.c (futimens): Likewise.
41902         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41903         (gai_strerror): Likewise.
41904         * tests/test-getcwd.c (getcwd): Likewise.
41905         * tests/test-getdelim.c (getdelim): Likewise.
41906         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41907         * tests/test-getgroups.c (getgroups): Likewise.
41908         * tests/test-gethostname.c (gethostname): Likewise.
41909         * tests/test-getline.c (getline): Likewise.
41910         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41911         Likewise.
41912         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41913         * tests/test-glob.c (glob, globfree): Likewise.
41914         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41915         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41916         * tests/test-inet_pton.c (inet_pton): Likewise.
41917         * tests/test-isblank.c (isblank): Likewise.
41918         * tests/test-lchown.c (lchown): Likewise.
41919         * tests/test-ldexpl.c (ldexpl): Likewise.
41920         * tests/test-link.c (link): Likewise.
41921         * tests/test-linkat.c (linkat): Likewise.
41922         * tests/test-lseek.c (lseek): Likewise.
41923         * tests/test-lstat.c (lstat): Likewise.
41924         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41925         * tests/test-mbsinit.c (mbsinit): Likewise.
41926         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41927         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41928         * tests/test-memchr.c (memchr): Likewise.
41929         * tests/test-memcmp.c (memcmp): Likewise.
41930         * tests/test-memmem.c (memmem): Likewise.
41931         * tests/test-memrchr.c (memrchr): Likewise.
41932         * tests/test-mkdir.c (mkdir): Likewise.
41933         * tests/test-mkdirat.c (mkdirat): Likewise.
41934         * tests/test-mkfifo.c (mkfifo): Likewise.
41935         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41936         * tests/test-mknod.c (mknod): Likewise.
41937         * tests/test-nanosleep.c (nanosleep): Likewise.
41938         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41939         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41940         Likewise.
41941         * tests/test-open.c (open): Likewise.
41942         * tests/test-openat.c (openat): Likewise.
41943         * tests/test-perror.c (perror): Likewise.
41944         * tests/test-pipe2.c (pipe2): Likewise.
41945         * tests/test-poll.c (poll): Likewise.
41946         * tests/test-popen.c (popen, pclose): Likewise.
41947         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41948         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41949         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41950         (posix_spawn_file_actions_destroy)
41951         (posix_spawn_file_actions_addclose)
41952         (posix_spawn_file_actions_addopen)
41953         (posix_spawn_file_actions_adddup2): Likewise.
41954         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41955         * tests/test-pread.c (pread): Likewise.
41956         * tests/test-printf-posix.c (printf): Likewise.
41957         * tests/test-pty.c (openpty, forkpty): Likewise.
41958         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41959         (random_r): Likewise.
41960         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41961         * tests/test-readlink.c (readlink): Likewise.
41962         * tests/test-remove.c (remove): Likewise.
41963         * tests/test-rename.c (rename): Likewise.
41964         * tests/test-renameat.c (renameat): Likewise.
41965         * tests/test-rmdir.c (rmdir): Likewise.
41966         * tests/test-round1.c (round): Likewise.
41967         * tests/test-roundf1.c (roundf): Likewise.
41968         * tests/test-roundl.c (roundl): Likewise.
41969         * tests/test-setenv.c (setenv): Likewise.
41970         * tests/test-sigaction.c (sigaction): Likewise.
41971         * tests/test-sleep.c (sleep): Likewise.
41972         * tests/test-snprintf.c (snprintf): Likewise.
41973         * tests/test-sprintf-posix.c (sprintf): Likewise.
41974         * tests/test-stat.c (stat): Likewise.
41975         * tests/test-stpncpy.c (stpncpy): Likewise.
41976         * tests/test-strcasestr.c (strcasestr): Likewise.
41977         * tests/test-strchrnul.c (strchrnul): Likewise.
41978         * tests/test-strerror.c (strerror): Likewise.
41979         * tests/test-strsignal.c (strsignal): Likewise.
41980         * tests/test-strstr.c (strstr): Likewise.
41981         * tests/test-strtod.c (strtod): Likewise.
41982         * tests/test-strverscmp.c (strverscmp): Likewise.
41983         * tests/test-symlink.c (symlink): Likewise.
41984         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41985         * tests/test-times.c (times): Likewise.
41986         * tests/test-trunc1.c (trunc): Likewise.
41987         * tests/test-truncf1.c (truncf): Likewise.
41988         * tests/test-truncl.c (truncl): Likewise.
41989         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41990         Likewise.
41991         * tests/test-uname.c (uname): Likewise.
41992         * tests/test-unlink.c (unlink): Likewise.
41993         * tests/test-unlinkat.c (unlinkat): Likewise.
41994         * tests/test-unsetenv.c (unsetenv): Likewise.
41995         * tests/test-usleep.c (usleep): Likewise.
41996         * tests/test-utimensat.c (utimensat): Likewise.
41997         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41998         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41999         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42000         * tests/test-vprintf-posix.c (vprintf): Likewise.
42001         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42002         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42003         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42004         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42005         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42006         * tests/test-wcwidth.c (wcwidth): Likewise.
42007
42008         build: pull in conditional headers during GNULIB_POSIXCHECK
42009         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42010         definitions from any conditionally-included headers.
42011         * lib/stdlib.in.h (includes): Likewise.
42012         * lib/unistd.in.h (includes): Likewise.
42013
42014 2009-12-24  Bruno Haible  <bruno@clisp.org>
42015
42016         * tests/test-argv-iter.c: Include header file being tested immediately
42017         after config.h.
42018         * tests/test-base64.c: Likewise.
42019         * tests/test-flock.c: Likewise.
42020         * tests/test-fsync.c: Likewise.
42021         * tests/test-getdate.c: Likewise.
42022         * tests/test-getndelim2.c: Likewise.
42023         * tests/test-isfinite.c: Likewise.
42024         * tests/test-isinf.c: Likewise.
42025         * tests/test-strerror.c: Likewise.
42026         * tests/test-strsignal.c: Likewise.
42027
42028 2009-12-23  Eric Blake  <ebb9@byu.net>
42029
42030         unistd: work around cygwin bug
42031         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42032         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42033         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42034
42035 2009-12-23  Bruno Haible  <bruno@clisp.org>
42036
42037         localename: More tests.
42038         * tests/test-localename.c (SIZEOF): New macro.
42039         (categories): New variable.
42040         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42041         test_locale_name_default): Add test w.r.t. thread locale.
42042         (test_locale_name_thread): New function.
42043         (main): Invoke it.
42044
42045         localename: Make aware of thread locale.
42046         * lib/localename.h (gl_locale_name_thread): New declaration.
42047         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42048         behaviour with respect to thread locale.
42049         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42050         <langinfo.h>, glthread/lock.h.
42051         (SIZE_BITS): New macro.
42052         (string_hash): New function.
42053         (struct hash_node): New type.
42054         (HASH_TABLE_SIZE): New macro.
42055         (struniq_hash_table, struniq_lock): New variables.
42056         (struniq): New function.
42057         (gl_locale_name_thread): New function.
42058         (gl_locale_name): Invoke it.
42059         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42060         * modules/localename (Depends-on): Add lock.
42061         Reported by Mike Gran <spk121@yahoo.com>.
42062
42063 2009-12-23  Eric Blake  <ebb9@byu.net>
42064
42065         va-args: new module
42066         * modules/va-args: New file.
42067         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42068         * MODULES.html.sh (Core language properties): Mention it.
42069
42070         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42071         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42072         named alias for __attribute__((__unused__)).
42073         * lib/chown.c: Update client.
42074         * lib/fchmodat.c: Likewise.
42075         * lib/fts.c: Likewise.
42076         * lib/getdate.y: Likewise.
42077         * lib/getgroups.c: Likewise.
42078         * lib/getopt.c: Likewise.
42079         * lib/getugroups.c: Likewise.
42080         * lib/mkdir.c: Likewise.
42081         * lib/mkfifo.c: Likewise.
42082         * lib/mkfifoat.c: Likewise.
42083         * lib/mknod.c: Likewise.
42084         * lib/mknodat.c: Likewise.
42085         * lib/readlink.c: Likewise.
42086         * lib/se-context.in.h: Likewise.
42087         * lib/se-selinux.in.h: Likewise.
42088         * lib/sockets.c: Likewise.
42089         * lib/symlink.c: Likewise.
42090         * lib/symlinkat.c: Likewise.
42091         * lib/unicodeio.c: Likewise.
42092         * lib/unistr.h: Likewise.
42093         * tests/test-areadlink.c: Likewise.
42094         * tests/test-areadlinkat.c: Likewise.
42095         * tests/test-filenamecat.c: Likewise.
42096         * tests/test-fseeko.c: Likewise.
42097         * tests/test-ftello.c: Likewise.
42098         * tests/test-getdate.c: Likewise.
42099         * tests/test-getgroups.c: Likewise.
42100         * tests/test-gethostname.c: Likewise.
42101         * tests/test-quotearg.c: Likewise.
42102         * tests/test-version-etc.c: Likewise.
42103         * tests/test-xalloc-die.c: Likewise.
42104         * tests/test-xfprintf-posix.c: Likewise.
42105         * tests/test-xprintf-posix.c: Likewise.
42106         * tests/test-xvasprintf.c: Likewise.
42107
42108         tests: avoid compiler warnings
42109         * tests/test-fcntl.c (main): Delete unused parameters.
42110         * tests/test-freopen-safer.c (main): Likewise.
42111         * tests/test-xalloc-die.c (main): Mark unused parameters.
42112         * tests/test-fseeko.c (main): Likewise.
42113         * tests/test-ftello.c (main): Likewise.
42114         * tests/test-nanosleep.c (main): Avoid declaration warning.
42115         * tests/test-sleep.c (main): Likewise.
42116         * tests/test-unsetenv.c (main): Silence warning about string
42117         literal.
42118         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42119
42120 2009-12-23  Bruno Haible  <bruno@clisp.org>
42121
42122         * tests/test-localename.c (test_locale_name): New function, extracted
42123         from main. Also test mixed situations.
42124         (test_locale_name_posix, test_locale_name_environ,
42125         test_locale_name_default): New functions.
42126         (main): Invoke them all.
42127         * modules/localename-tests (configure.ac): Test for newlocale.
42128
42129 2009-12-23  Bruno Haible  <bruno@clisp.org>
42130
42131         unistd: Ensure getcwd gets declared before being overridden.
42132         * lib/unistd.in.h: Conditionally include <io.h>.
42133
42134 2009-12-22  Bruno Haible  <bruno@clisp.org>
42135
42136         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42137         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42138         (gl_WCHAR_H): Invoke it.
42139         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42140         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42141         Reported by Karl Berry <karl@freefriends.org>.
42142
42143 2009-12-22  Eric Blake  <ebb9@byu.net>
42144
42145         math, unistd: avoid redundant includes
42146         * lib/math.in.h (isnan): No need to re-include <math.h>.
42147         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42148
42149         getsubopt: work around cygwin bug
42150         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42151         avoid conflicting with system getsubopt.
42152         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42153         bug.
42154
42155         getopt: synchronize from glibc
42156         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42157         parameter order.  Adjust all callers.
42158         (_getopt_internal_r, main): Adjust quoting in error messages.
42159         Drop considerations for outdated POSIX 1003.2 error message.
42160         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42161         callers.
42162         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42163
42164         test-getopt: test stderr behavior
42165         * modules/getopt-posix-tests (Depends-on): Add dup2.
42166         * tests/test-getopt.c (ASSERT): Avoid stderr.
42167         (main): Move stderr to a temporary file.
42168         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42169         Instead, add parameter to inform caller if output occurred.
42170         (test_getopt): Adjust all existing tests to expect silence, and
42171         add new tests of leading ":".
42172         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42173         glibc shortcomings with leading "-:" or "+:" in optstring.
42174         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42175         Likewise.
42176         * doc/posix-functions/getopt.texi (getopt): Likewise.
42177
42178         test-getopt: enhance test
42179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42180         supports optind=0.
42181         * tests/test-getopt.c (OPTIND_MIN): Move...
42182         * tests/test-getopt.h (OPTIND_MIN): ...here.
42183         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42184         Require that optind=0 works, since modern BSD supports it in
42185         addition to optreset, and since coreutils expects it.
42186         (test_getopt_long_only): New test.
42187         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42188         glibc shortcomings with 'W;', and enforcement of optind=0.
42189         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42190         Likewise.
42191
42192 2009-12-21  Bruno Haible  <bruno@clisp.org>
42193
42194         localename: Improvements for MacOS X and Cygwin.
42195         * lib/localename.h (gl_locale_name_environ): New declaration.
42196         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42197         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42198         (gl_locale_name_posix): Invoke it.
42199         (gl_locale_name_default): Add comments. Use Windows native API also on
42200         Cygwin.
42201
42202 2009-12-21  Bruno Haible  <bruno@clisp.org>
42203
42204         Update list of Win32 locale ids.
42205         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42206         (LANG_SAMI): Renamed from LANG_SAAMI.
42207         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42208         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42209         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42210         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42211         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42212         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42213         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42214         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42215         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42216         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42217         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42218         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42219         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42220         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42221         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42222         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42223         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42224         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42225         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42226         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42227         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42228         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42229         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42230         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42231         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42232         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42233         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42234         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42235         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42236         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42237         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42238         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42239         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42240         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42241         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42242         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42243         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42244         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42245         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42246         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42247         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42248         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42249         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42250         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42251         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42252         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42253         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42254         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42255         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42256         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42257         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42258         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42259         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42260         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42261         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42262         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42263         Add more languages and countries for Sami, Sorbian. Add more countries
42264         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42265         for Pashto. Change country for Syriac, Tswana.
42266
42267 2009-12-21  Eric Blake  <ebb9@byu.net>
42268
42269         test-utimens: avoid spurious failure
42270         * tests/test-chown.h (nap): Factor...
42271         * tests/nap.h: ...into new file.
42272         * tests/test-lchown.h (nap): Avoid duplication.
42273         * tests/test-utimens-common.h (nap): Use shared implementation,
42274         necessary on file systems with 1-second resolution.
42275         * modules/chown-tests (Files): Include new file.
42276         * modules/fdutimensat-tests (Files): Likewise.
42277         * modules/futimens-tests (Files): Likewise.
42278         * modules/lchown-tests (Files): Likewise.
42279         * modules/openat-tests (Files): Likewise.
42280         * modules/utimens-tests (Files): Likewise.
42281         * modules/utimensat-tests (Files): Likewise.
42282
42283 2009-12-19  Eric Blake  <ebb9@byu.net>
42284
42285         futimens, utimensat: work around Linux bug
42286         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42287         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42288         * lib/utimensat.c (rpl_utimensat): Work around it.
42289         * lib/futimens.c (rpl_futimens): Adjust comment.
42290
42291         utimens: work around Linux ctime bug
42292         * lib/utimens.c (detect_ctime_bug): New helper function.
42293         (update_timespec): Differentiate between workaround needed for
42294         this bug vs. what is needed for systems that lack utimensat.
42295         (fdutimens, lutimens): Work around bug.
42296
42297         utimens: check for ctime update
42298         * tests/test-utimens-common.h (check_ctime): Define.
42299         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42300         * tests/test-futimens.h (test_futimens): Likewise.
42301         * tests/test-lutimens.h (test_lutimens): Likewise.
42302         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42303         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42304
42305 2009-12-19  Bruno Haible  <bruno@clisp.org>
42306
42307         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42308         * tests/test-dprintf-posix2.sh: New file.
42309         * tests/test-dprintf-posix2.c: New file.
42310         * modules/dprintf-posix-tests (Files): Add them.
42311         (configure.ac): Check for getrlimit and setrlimit.
42312         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42313
42314 2009-12-19  Bruno Haible  <bruno@clisp.org>
42315
42316         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42317         * tests/test-fprintf-posix3.sh: New file.
42318         * tests/test-fprintf-posix3.c: New file.
42319         * modules/fprintf-posix-tests (Files): Add them.
42320         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42321
42322 2009-12-19  Eric Blake  <ebb9@byu.net>
42323
42324         dirfd: fix prototype
42325         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42326         * lib/dirfd.c (dirfd): Likewise.
42327
42328         canonicalize: reduce memory usage
42329         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42330         allocation to size.
42331         Reported by Solar Designer <solar@openwall.com>.
42332
42333 2009-12-19  Bruno Haible  <bruno@clisp.org>
42334
42335         New module attribute 'Applicability'.
42336         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42337         * gnulib-tool: New option --extract-applicability.
42338         (func_usage): Document it.
42339         (sed_extract_prog): Recognize it.
42340         (func_get_applicability): New function.
42341         (func_import): Generalize handling of 'link-warning' module.
42342         * modules/link-warning (Applicability): New section.
42343         * modules/arg-nonnull (Applicability): New section.
42344         Repoted by Simon Josefsson <simon@josefsson.org>.
42345
42346 2009-12-19  Bruno Haible  <bruno@clisp.org>
42347
42348         fflush: tweak
42349         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42350         * lib/fseeko.c (rpl_fseeko): Likewise.
42351
42352 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42353
42354         * lib/gl_list.h: Fix typo in comment.
42355
42356 2009-12-16  Eric Blake  <ebb9@byu.net>
42357
42358         fcntl: use to simplify other modules
42359         * modules/cloexec (Depends-on): Add fcntl.
42360         * modules/fchdir (Depends-on): Likewise.
42361         * modules/fd-safer-flag (Depends-on): Likewise.
42362         * modules/unistd-safer (Depends-on): Likewise.
42363         * modules/dup3 (configure.ac): Set module indicator.
42364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42365         missing.
42366         * lib/fchdir.c (_gl_register_dup): Fix comment.
42367         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42368         * lib/dup-safer.c (dup_safer): Likewise.
42369         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42370         * lib/dup3.c (dup3): Likewise.
42371         * tests/test-fchdir.c (main): Enhance test.
42372         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42373
42374         fcntl: port portions of fcntl to mingw
42375         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42376         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42377         replacement for mingw.
42378         * modules/fcntl (Description): Update.
42379         (Depends-on): Add dup2.
42380         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42381         * modules/fcntl-h (Makefile.am): Substitute it.
42382         * lib/fcntl.in.h (fcntl): Update declaration.
42383         (F_DUPFD, F_GETFD): New macros, when needed.
42384         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42385         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42386         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42387         we now guarantee.
42388
42389         fcntl: work around cygwin bug in F_DUPFD
42390         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42391         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42392         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42393         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42394         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42395
42396         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42397         * modules/fcntl (Files): List new files.
42398         (configure.ac): Run a test.
42399         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42400         * lib/fcntl.c (rpl_fcntl): Likewise.
42401         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42402         (gl_FCNTL_H): Always replace fcntl.h.
42403         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42404         * lib/fcntl.in.h (fcntl): Declare replacement.
42405         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42406         needed, plus a witness.
42407         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42408         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42409         * tests/test-fcntl.c: New file.
42410         * modules/fcntl-tests: Likewise.
42411
42412         binary-io: avoid potential compilation warning
42413         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42414         directives.
42415
42416         fflush: avoid compilation error on NetBSD
42417         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42418         between off_t and fpos_t, since the latter is sometimes a struct.
42419         * lib/fseeko.c (rpl_fseeko): Likewise.
42420         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42421
42422 2009-12-15  Eric Blake  <ebb9@byu.net>
42423
42424         fcntl-h, stdio, sys_ioctl: fix declarations
42425         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42426         function must not take arguments.
42427         * lib/sys_ioctl.in.h (ioctl): Likewise.
42428         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42429         (open): Add a link warning.
42430
42431 2009-12-15  Jim Meyering  <meyering@redhat.com>
42432
42433         areadlink, areadlink-with-size: relax license to LGPLv2+
42434         * modules/areadlink (License): Relax to LGPLv2+.
42435         * modules/areadlink-with-size (License): Likewise.
42436
42437 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42438             Bruno Haible  <bruno@clisp.org>
42439
42440         *printf: Fix memory leak.
42441         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42442         * lib/vfprintf.c (vfprintf): Likewise.
42443         * lib/dprintf.c (dprintf): Likewise.
42444         * lib/vdprintf.c (vdprintf): Likewise.
42445
42446 2009-12-14  Eric Blake  <ebb9@byu.net>
42447
42448         accept4: adjust module dependencies
42449         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42450
42451         utimens: one more try at avoiding compiler warning
42452         * lib/utimens.c (lutimens): Lower scope of result.
42453
42454 2009-12-13  Bruno Haible  <bruno@clisp.org>
42455
42456         Move the malloc checking from module 'list' to new module 'xlist'.
42457         * modules/xlist: New file.
42458         * lib/gl_xlist.h: New file.
42459         * lib/gl_xlist.c: New file.
42460         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42461         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42462         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42463         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42464         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42465         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42466         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42467         gl_sortedlist_nx_add): New declarations.
42468         (struct gl_list_implementation): Rename and change methods accordingly.
42469         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42470         (gl_list_nx_create): Renamed from gl_list_create.
42471         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42472         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42473         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42474         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42475         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42476         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42477         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42478         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42479         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42480         gl_list_create_empty.
42481         (gl_list_nx_create): Renamed from gl_list_create.
42482         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42483         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42484         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42485         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42486         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42487         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42488         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42489         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42490         * lib/gl_array_list.c: Don't include xalloc.h.
42491         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42492         NULL upon out-of-memory.
42493         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42494         out-of-memory.
42495         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42496         Change return type to 'int'.
42497         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42498         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42499         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42500         upon out-of-memory.
42501         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42502         upon out-of-memory.
42503         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42504         upon out-of-memory.
42505         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42506         upon out-of-memory.
42507         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42508         out-of-memory.
42509         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42510         Update.
42511         (gl_array_list_implementation): Update.
42512         * lib/gl_carray_list.c: Don't include xalloc.h.
42513         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42514         Return NULL upon out-of-memory.
42515         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42516         out-of-memory.
42517         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42518         Change return type to 'int'.
42519         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42520         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42521         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42522         upon out-of-memory.
42523         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42524         upon out-of-memory.
42525         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42526         out-of-memory.
42527         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42528         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42529         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42530         Update.
42531         (gl_carray_list_implementation): Update.
42532         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42533         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42534         gl_linked_create_empty. Return NULL upon out-of-memory.
42535         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42536         out-of-memory.
42537         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42538         Change return type to 'int'. Return -1 upon out-of-memory.
42539         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42540         out-of-memory.
42541         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42542         upon out-of-memory.
42543         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42544         upon out-of-memory.
42545         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42546         NULL upon out-of-memory.
42547         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42548         upon out-of-memory.
42549         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42550         out-of-memory.
42551         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42552         Update.
42553         * lib/gl_linked_list.c: Don't include xalloc.h.
42554         (gl_linked_list_implementation): Update.
42555         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42556         (add_to_bucket): Change return type to 'int'.
42557         (gl_linkedhash_list_implementation): Update.
42558         * lib/gl_anytree_list1.h (free_subtree): New function.
42559         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42560         gl_tree_create_empty. Return NULL upon out-of-memory.
42561         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42562         Change return type to 'int'. Return -1 upon out-of-memory.
42563         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42564         out-of-memory.
42565         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42566         (gl_tree_remove_node): New function, moved here from
42567         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42568         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42569         Update.
42570         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42571         malloc, not xmalloc. Return NULL upon out-of-memory.
42572         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42573         out-of-memory.
42574         (gl_tree_remove_node_from_tree): New function, extracted from
42575         gl_tree_remove_node.
42576         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42577         upon out-of-memory.
42578         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42579         out-of-memory.
42580         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42581         upon out-of-memory.
42582         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42583         upon out-of-memory.
42584         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42585         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42586         not xmalloc. Return NULL upon out-of-memory.
42587         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42588         out-of-memory.
42589         (gl_tree_remove_node_from_tree): New function, extracted from
42590         gl_tree_remove_node.
42591         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42592         upon out-of-memory.
42593         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42594         out-of-memory.
42595         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42596         upon out-of-memory.
42597         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42598         upon out-of-memory.
42599         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42600         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42601         gl_anytree_list1.h before gl_anyavltree_list2.h.
42602         (gl_avltree_list_implementation): Update.
42603         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42604         gl_anytree_list1.h before gl_anyavltree_list2.h.
42605         (gl_rbtree_list_implementation): Update.
42606         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42607         Change return type to 'int'. Return -1 upon out-of-memory. Use
42608         __builtin_expect.
42609         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42610         (gl_avltreehash_list_implementation): Update.
42611         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42612         (gl_rbtreehash_list_implementation): Update.
42613         * modules/array-list (Depends-on): Remove xalloc.
42614         * modules/carray-list (Depends-on): Likewise.
42615         * modules/linked-list (Depends-on): Likewise.
42616         * modules/linkedhash-list (Depends-on): Likewise.
42617         * modules/avltree-list (Depends-on): Likewise.
42618         * modules/rbtree-list (Depends-on): Likewise.
42619         * modules/avltreehash-list (Depends-on): Likewise.
42620         * modules/rbtreehash-list (Depends-on): Likewise.
42621
42622         * modules/xsublist: New file.
42623         * lib/gl_xsublist.h: New file.
42624         * lib/gl_xsublist.c: New file.
42625         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42626         (gl_sublist_nx_create): New declaration.
42627         * lib/gl_sublist.c: Don't include xalloc.h.
42628         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42629         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42630         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42631         Change return type to 'int'. Return -1 upon out-of-memory.
42632         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42633         upon out-of-memory.
42634         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42635         NULL upon out-of-memory.
42636         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42637         upon out-of-memory.
42638         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42639         NULL upon out-of-memory.
42640         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42641         NULL upon out-of-memory.
42642         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42643         upon out-of-memory.
42644         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42645         (gl_sublist_list_implementation): Update.
42646         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42647         upon out-of-memory.
42648         * modules/sublist (Depends-on): Remove xalloc.
42649
42650         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42651         * tests/test-carray_list.c: Likewise.
42652         * tests/test-linked_list.c: Likewise.
42653         * tests/test-linkedhash_list.c: Likewise.
42654         * tests/test-avltree_list.c: Likewise.
42655         * tests/test-rbtree_list.c: Likewise.
42656         * tests/test-avltreehash_list.c: Likewise.
42657         * tests/test-rbtreehash_list.c: Likewise.
42658         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42659         * modules/carray-list-tests (Makefile.am): Likewise.
42660         * modules/linked-list-tests (Makefile.am): Likewise.
42661         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42662         * modules/avltree-list-tests (Makefile.am): Likewise.
42663         * modules/rbtree-list-tests (Makefile.am): Likewise.
42664         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42665         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42666
42667         * NEWS: Mention the changes.
42668
42669         * lib/clean-temp.c: Include gl_xlist.h.
42670         * modules/clean-temp (Depends-on): Add xlist.
42671
42672         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42673         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42674
42675         * tests/test-array_oset.c: Include gl_xlist.h.
42676         * modules/array-oset-tests (Depends-on): Add xlist.
42677
42678         Reported by José E. Marchesi <jemarch@gnu.org>.
42679
42680 2009-12-13  Bruno Haible  <bruno@clisp.org>
42681
42682         Move the malloc checking from module 'oset' to new module 'xoset'.
42683         * modules/xoset: New file.
42684         * lib/gl_xoset.h: New file.
42685         * lib/gl_xoset.c: New file.
42686         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42687         declarations.
42688         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42689         (struct gl_oset_implementation): Rename and change methods accordingly.
42690         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42691         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42692         'int'. Mark as __warn_unused_result__.
42693         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42694         gl_oset_create_empty.
42695         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42696         'int'.
42697         * lib/gl_array_oset.c: Don't include xalloc.h.
42698         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42699         malloc, not xmalloc.
42700         (grow): Change return type to 'int'. Don't call xalloc_die.
42701         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42702         to 'int'.
42703         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42704         'int'.
42705         (gl_array_oset_implementation): Update.
42706         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42707         gl_tree_create_empty.
42708         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42709         'int'.
42710         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42711         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42712         xmalloc.
42713         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42714         not xmalloc.
42715         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42716         xmalloc.
42717         (gl_avltree_oset_implementation): Update.
42718         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42719         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42720         xmalloc.
42721         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42722         not xmalloc.
42723         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42724         xmalloc.
42725         (gl_rbtree_oset_implementation): Update.
42726         * modules/array-oset (Depends-on): Remove xalloc.
42727         * modules/avltree-oset (Depends-on): Likewise.
42728         * modules/rbtree-oset (Depends-on): Likewise.
42729         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42730         * tests/test-avltree_oset.c: Likewise.
42731         * tests/test-rbtree_oset.c: Likewise.
42732         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42733         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42734         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42735         * NEWS: Mention the change.
42736
42737 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42738
42739         maint.mk: allow a project to override release-prep commands
42740         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42741         commands into a new rule.
42742         (release-prep): New rule.
42743         (release-prep-hook): New overridable variable.
42744
42745 2009-12-13  Bruno Haible  <bruno@clisp.org>
42746
42747         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42748
42749 2009-12-13  Jim Meyering  <meyering@redhat.com>
42750
42751         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42752         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42753
42754 2009-12-12  Bruno Haible  <bruno@clisp.org>
42755
42756         duplocale: Tweak.
42757         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42758
42759 2009-12-12  Karl Berry  <karl@gnu.org>
42760
42761         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42762
42763 2009-12-12  Bruno Haible  <bruno@clisp.org>
42764
42765         * m4/po.m4: Undo incorrect untabification.
42766
42767 2009-12-12  Bruno Haible  <bruno@clisp.org>
42768
42769         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42770         * modules/c-strtod (Depends-on): Add locale.
42771         * modules/c-strtold (Depends-on): Likewise.
42772
42773 2009-12-12  Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42776
42777 2009-12-11  Eric Blake  <ebb9@byu.net>
42778
42779         setenv: relax requirement in light of POSIX ruling
42780         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42781         not NULL.
42782         * tests/test-setenv.c (main): Relax test.
42783         * tests/test-unsetenv.c (main): Likewise.
42784         * doc/posix-functions/setenv.texi (setenv): Document this.
42785         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42786
42787 2009-12-11  Bruno Haible  <bruno@clisp.org>
42788
42789         New module 'fd-safer-flag'.
42790         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42791         * lib/dup-safer.c (dup_safer_flag): Remove function.
42792         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42793         * lib/fd-safer.c (fd_safer_flag): Remove function.
42794         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42795         * modules/cloexec (configure.ac): Drop indicator macro.
42796         * modules/fd-safer-flag: New file.
42797         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42798         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42799         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42800
42801 2009-12-11  Bruno Haible  <bruno@clisp.org>
42802
42803         Tests for module 'nl_langinfo'.
42804         * modules/nl_langinfo-tests: New file.
42805         * tests/test-nl_langinfo.sh: New file.
42806         * tests/test-nl_langinfo.c: New file.
42807
42808         New module 'nl_langinfo'.
42809         * lib/nl_langinfo.c: New file.
42810         * m4/nl_langinfo.m4: New file.
42811         * modules/nl_langinfo: New file.
42812         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42813
42814 2009-12-11  Bruno Haible  <bruno@clisp.org>
42815
42816         Tests for module 'langinfo'.
42817         * modules/langinfo-tests: New file.
42818         * tests/test-langinfo.c: New file.
42819
42820         New module 'langinfo'.
42821         * lib/langinfo.in.h: New file.
42822         * m4/langinfo_h.m4: New file.
42823         * modules/langinfo: New file.
42824         * doc/posix-headers/langinfo.texi: Mention the new module.
42825
42826 2009-12-11  Bruno Haible  <bruno@clisp.org>
42827
42828         * lib/config.charset: Untabify.
42829
42830 2009-12-11  Bruno Haible  <bruno@clisp.org>
42831
42832         * modules/unistd-safer (configure.ac): Drop indicator macro.
42833
42834 2009-12-11  Bruno Haible  <bruno@clisp.org>
42835
42836         Move pipe2-safer code to its own file.
42837         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42838         * lib/pipe-safer.c (pipe2_safer): Remove function.
42839         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42840         (Makefile.am): Add it to lib_SOURCES.
42841
42842 2009-12-10  Bruno Haible  <bruno@clisp.org>
42843
42844         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42845
42846 2009-12-10  Bruno Haible  <bruno@clisp.org>
42847
42848         Declare which arguments expect non-NULL values, for GCC and clang.
42849         * build-aux/arg-nonnull.h: New file.
42850         * modules/arg-nonnull: New file.
42851         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42852         (inet_ntop, inet_pton): Use it.
42853         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42854         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42855         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42856         (open, openat): Use it.
42857         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42858         (fnmatch): Use it.
42859         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42860         (getopt, getopt_long, getopt_long_only): Use it.
42861         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42862         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42863         Use it.
42864         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42865         (iconv_open): Use it.
42866         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42867         (strtoimax, strtoumax): Use it.
42868         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42869         (duplocale): Use it.
42870         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42871         (frexp, frexpl): Use it.
42872         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42873         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42874         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42875         (tsearch, tfind, tdelete, twalk): Use it.
42876         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42877         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42878         sigpending): Use it.
42879         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42880         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42881         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42882         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42883         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42884         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42885         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42886         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42887         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42888         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42889         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42890         Use it.
42891         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42892         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42893         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42894         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42895         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42896         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42897         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42898         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42899         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42900         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42901         strtoull, unsetenv): Use it.
42902         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42903         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42904         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42905         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42906         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42907         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42908         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42909         (strcasecmp, strncasecmp): Use it.
42910         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42911         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42912         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42913         rpl_setsockopt): Use it.
42914         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42915         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42916         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42917         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42918         (gettimeofday): Use it.
42919         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42920         (times): Use it.
42921         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42922         (uname): Use it.
42923         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42924         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42925         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42926         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42927         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42928         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42929         unlinkat, write): Use it.
42930         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42931         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42932         * lib/argv-iter.h: Include arg-nonnull.h.
42933         (_ATTRIBUTE_NONNULL_): Remove macro.
42934         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42935         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42936         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42937         optimization.
42938         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42939         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42940         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42941         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42942         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42943         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42944         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42945         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42946         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42947         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42948         * modules/dirent (Depends-on): Add arg-nonnull.
42949         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42950         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42951         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42952         * modules/fnmatch (Depends-on): Add arg-nonnull.
42953         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42954         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42955         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42956         * modules/glob (Depends-on): Add arg-nonnull.
42957         (Makefile.am): Insert arg-nonnull.h into glob.h.
42958         * modules/iconv_open (Depends-on): Add arg-nonnull.
42959         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42960         * modules/inttypes (Depends-on): Add arg-nonnull.
42961         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42962         * modules/locale (Depends-on): Add arg-nonnull.
42963         (Makefile.am): Insert arg-nonnull.h into locale.h.
42964         * modules/math (Depends-on): Add arg-nonnull.
42965         (Makefile.am): Insert arg-nonnull.h into math.h.
42966         * modules/netdb (Depends-on): Add arg-nonnull.
42967         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42968         * modules/search (Depends-on): Add arg-nonnull.
42969         (Makefile.am): Insert arg-nonnull.h into search.h.
42970         * modules/signal (Depends-on): Add arg-nonnull.
42971         (Makefile.am): Insert arg-nonnull.h into signal.h.
42972         * modules/spawn (Depends-on): Add arg-nonnull.
42973         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42974         * modules/stdio (Depends-on): Add arg-nonnull.
42975         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42976         * modules/stdlib (Depends-on): Add arg-nonnull.
42977         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42978         * modules/string (Depends-on): Add arg-nonnull.
42979         (Makefile.am): Insert arg-nonnull.h into string.h.
42980         * modules/strings (Depends-on): Add arg-nonnull.
42981         (Makefile.am): Insert arg-nonnull.h into strings.h.
42982         * modules/sys_socket (Depends-on): Add arg-nonnull.
42983         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42984         * modules/sys_stat (Depends-on): Add arg-nonnull.
42985         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42986         * modules/sys_time (Depends-on): Add arg-nonnull.
42987         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42988         * modules/sys_times (Depends-on): Add arg-nonnull.
42989         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42990         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42991         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42992         * modules/time (Depends-on): Add arg-nonnull.
42993         (Makefile.am): Insert arg-nonnull.h into time.h.
42994         * modules/unistd (Depends-on): Add arg-nonnull.
42995         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42996         * modules/wchar (Depends-on): Add arg-nonnull.
42997         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42998         * modules/argv-iter (Depends-on): Add arg-nonnull.
42999         * tests/test-canonicalize.c (null_ptr): New function.
43000         (main): Use it.
43001         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43002         (main): Use it.
43003         * tests/test-memmem.c (null_ptr): New function.
43004         (main): Use it.
43005         Reported by Jim Meyering.
43006
43007 2009-12-10  Bruno Haible  <bruno@clisp.org>
43008
43009         Use spaces for indentation, not tabs.
43010         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43011         * m4/*.m4: Untabify.
43012         * build-aux/*.h: Untabify.
43013         * tests/**/*.[hc]: Untabify.
43014         * README: New section "Indent with spaces, not TABs", based on
43015         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43016         * NEWS: Mention the change.
43017
43018 2009-12-10  Bruno Haible  <bruno@clisp.org>
43019
43020         pty test: Fix link error.
43021         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43022         test_pty_LDADD.
43023
43024 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43025
43026         * modules/pty: New file.
43027         * modules/pty-tests: New file.
43028         * m4/pty.m4: New file.
43029         * tests/test-pty.c: New file.
43030         * doc/glibc-headers/pty.texi: Modified.
43031         * doc/glibc-functions/forkpty.texi: Modified.
43032         * doc/glibc-functions/openpty.texi: Modified.
43033
43034 2009-12-10  Bruno Haible  <bruno@clisp.org>
43035
43036         Avoid syntax error in C++ mode.
43037         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43038
43039 2009-12-10  Bruno Haible  <bruno@clisp.org>
43040
43041         Use sed with option -e.
43042         * gnulib-tool (func_version, func_emit_copyright_notice,
43043         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43044         option -e to sed.
43045         * modules/link-warning (Makefile.am): Likewise.
43046
43047 2009-12-10  Jim Meyering  <meyering@redhat.com>
43048
43049         mgetgroups: do not write bytes beyond end of malloc'd buffer
43050         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43051         username, we call getgroups with a one-element-shorter buffer,
43052         but still told it the length was original, max_n_groups.
43053
43054 2009-12-09  Eric Blake  <ebb9@byu.net>
43055
43056         cloexec: relax license
43057         * modules/cloexec (Maintainer): Add myself.
43058         (License): Use LGPL, not GPL.
43059
43060         link-warning: optimize generation
43061         * modules/link-warning (Makefile.am): Reduce process usage.
43062
43063 2009-12-09  Bruno Haible  <bruno@clisp.org>
43064
43065         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43066         workaround was added on 2009-11-17.
43067
43068 2009-12-09  Jim Meyering  <meyering@redhat.com>
43069             Bruno Haible  <bruno@clisp.org>
43070
43071         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43072         * modules/link-warning (Makefile.am): Make the comment-removing sed
43073         command more robust in the face of bootstrap-prepended comment lines.
43074
43075 2009-12-09  Bruno Haible  <bruno@clisp.org>
43076
43077         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43078         most one group.
43079
43080 2009-12-09  Simon Josefsson <simon@josefsson.org>
43081             Bruno Haible  <bruno@clisp.org>
43082
43083         * build-aux/link-warning.h: Add copyright notice.
43084         * modules/link-warning (Makefile.am): Generate link-warning.h from
43085         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43086         * NEWS: Mention change in link-warning module.
43087         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43088         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43089         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43090         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43091         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43092         * modules/math (Makefile.am): Add dependency to math.h.
43093         * modules/search (Makefile.am): Add dependency to search.h.
43094         * modules/signal (Makefile.am): Add dependency to signal.h.
43095         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43096         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43097         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43098         * modules/string (Makefile.am): Add dependency to string.h.
43099         * modules/strings (Makefile.am): Add dependency to strings.h.
43100         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43101         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43102         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43103         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43104         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43105         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43106         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43107         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43108         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43109
43110 2009-12-09  Bruno Haible  <bruno@clisp.org>
43111
43112         fchdir: Optimize away rpl_fstat when possible.
43113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43114         REPLACE_OPEN_DIRECTORY.
43115         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43116
43117 2009-12-09  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/fchdir.c: Update comment.
43120
43121 2009-12-09  Bruno Haible  <bruno@clisp.org>
43122
43123         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43124
43125 2009-12-08  Eric Blake  <ebb9@byu.net>
43126
43127         fchdir: avoid memory leak on re-registration.
43128         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43129
43130 2009-12-08  Jim Meyering  <meyering@redhat.com>
43131
43132         init.sh: avoid Solaris 10 /bin/sh portability problem
43133         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43134         sourced script:
43135           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43136           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43137           bar
43138         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43139         and two tests used that idiom.
43140         * tests/init.sh: Update suggested usage comments.
43141         (path_prepend_): New function, to be used in place
43142         of the --src-path=DIR option.
43143         (setup_): Move PATH-prepending code into path_prepend_.
43144         * tests/test-pread.sh: Adapt to new usage.
43145         * tests/test-xalloc-die.sh: Likewise.
43146
43147 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43148
43149         * doc/gnulib.texi (Glibc pty.h): Add.
43150         * doc/glibc-functions/forkpty.texi: Add.
43151         * doc/glibc-functions/openpty.texi: Add.
43152         Suggested by Bruno Haible.
43153
43154 2009-12-08  Eric Blake  <ebb9@byu.net>
43155
43156         fchdir: fix logic bugs
43157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43158         * tests/test-fchdir.c (main): Enhance test.
43159         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43160         is in use.
43161
43162         dup2: fix logic bugs
43163         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43164         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43165         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43166         exists.
43167         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43168
43169 2009-12-07  Eric Blake  <ebb9@byu.net>
43170
43171         unlink: fix m4 detection
43172         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43173
43174         unistd-safer: add unit test
43175         * modules/unistd-safer-tests: New file.
43176         * tests/test-dup-safer.c: Likewise.
43177         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43178         * tests/test-dup2.c (setmode): Likewise.
43179         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43180
43181         cloexec: preserve text vs. binary across dup_cloexec
43182         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43183         mode.
43184         * modules/dup2-tests (Depends-on): Add binary-io.
43185         * modules/cloexec-tests (Depends-on): Likewise.
43186         * tests/test-dup2.c (setmode, is_mode): New helpers.
43187         (main): Add tests that translation mode is preserved.
43188         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43189         Reported by Bruno Haible.
43190
43191         mgetgroups: reduce duplicate listings
43192         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43193         resulting array.
43194         * tests/test-chown.h (test_chown): Simplify client.
43195         * tests/test-lchown.h (test_lchown): Likewise.
43196
43197 2009-12-06  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43200         value.
43201
43202 2009-12-06  Bruno Haible  <bruno@clisp.org>
43203
43204         * lib/progname.c: Include stdio.h, stdlib.h.
43205         (set_program_name): Reject a NULL argument.
43206
43207 2009-12-05  Eric Blake  <ebb9@byu.net>
43208
43209         pipe2-safer: new module
43210         * modules/pipe2-safer: New file.
43211         * lib/unistd-safer.h (pipe2_safer): New prototype.
43212         * lib/unistd--.h (pipe2): New wrapper.
43213         * lib/pipe-safer.c (pipe2_safer): New function.
43214         * modules/pipe (Depends-on): Add pipe2-safer.
43215         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43216
43217         stdlib-safer: preserve cloexec flag for mkostemp[s]
43218         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43219         fd_safer_flag.
43220
43221         unistd-safer: allow preservation of cloexec status via flag
43222         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43223         prototypes.
43224         * lib/dup-safer.c (dup_safer_flag): New function.
43225         * lib/fd-safer.c (fd_safer_flag): Likewise.
43226         * modules/cloexec (configure.ac): Set witness.
43227
43228         test-dup2: enhance test
43229         * modules/dup2-tests (Depends-on): Add cloexec.
43230         * tests/test-dup2.c (main): Enhance test.
43231
43232         cloexec: add dup_cloexec
43233         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43234         header and comments.
43235         * lib/cloexec.c (set_cloexec_flag): Add comments.
43236         (dup_cloexec): New function, with mingw implementation borrowed
43237         from...
43238         * lib/w32spawn.h (dup_noinherit): ...here.
43239         * modules/execute (Depends-on): Add cloexec.
43240         * modules/pipe (Depends-on): Likewise.
43241         * modules/cloexec (Depends-on): Add dup2.
43242         * modules/cloexec-tests (Files): New file.
43243         * tests/test-cloexec.c: Likewise.
43244
43245         test-xalloc-die: fix test for mingw
43246         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43247         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43248         directory and .exe suffix off argv[0] output.
43249
43250         test-fseeko: fix test for mingw
43251         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43252         than undefining fseek, so test will pass on mingw.
43253
43254 2009-12-05  Bruno Haible  <bruno@clisp.org>
43255
43256         * lib/progname.h (set_program_name): Clarify specification.
43257         * lib/progname.c (set_program_name): Likewise.
43258         Reported by Jim Meyering.
43259
43260 2009-12-05  Jim Meyering  <meyering@redhat.com>
43261
43262         maint.mk: backslash-escape parens in default regexp
43263         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43264         backslash-escape the literal parentheses.
43265
43266         maint.mk: news-date-check: use grep -E
43267         * top/maint.mk (today): Define a Make variable, not a...
43268         (news-date-check): ...shell variable.
43269         (news-date-regexp): Use the Make variable.
43270         Use grep's -E option.  Change the failing diagnostic to mention
43271         the variable, $(news-date-regexp).
43272
43273 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43274
43275         maintainer-makefile: allow customization of NEWS entry format
43276         * top/maint.mk (news-date-regexp): New overridable variable.
43277         (news-date-check): Use it.
43278
43279 2009-12-04  Eric Blake  <ebb9@byu.net>
43280
43281         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43282         * lib/mgetgroups.h (xgetgroups): New prototype.
43283         * lib/mgetgroups.c (xgetgroups): New wrapper.
43284         (mgetgroups): Handle ENOSYS.
43285         * modules/mgetgroups (Depends-on): Add realloc.
43286         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43287
43288         mgetgroups: avoid argument promotion issues with -1
43289         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43290         for invalid gid_t.
43291         * tests/test-chown.h (getegid, test_chown): Likewise.
43292         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43293
43294 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43295
43296         exclude: Fix header file problems.
43297         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43298
43299 2009-12-01  Jim Meyering  <meyering@redhat.com>
43300
43301         fts: fts_open: do not let an empty string cause immediate failure
43302         This is required in support of GNU rm, for which the command
43303         "rm A '' B" must process and remove both A and B, in spite of
43304         the empty string argument.
43305         * lib/fts.c (fts_open): Do not let the presence of an empty string
43306         cause fts_open to fail immediately.  Most fts-using tools must be
43307         able to process all arguments, in order, and can be expected to
43308         diagnose such arguments themselves.
43309
43310 2009-11-30  Eric Blake  <ebb9@byu.net>
43311
43312         utimens: fix compilation error
43313         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43314         Declare variable at right scope.
43315
43316 2009-11-29  Jim Meyering  <meyering@redhat.com>
43317
43318         bootstrap: handle perl-5.11's changed --version output
43319         * build-aux/bootstrap (get_version): Handle perl separately,
43320         since perl-5.11's --version output is different.
43321
43322 2009-11-28  Jim Meyering  <meyering@redhat.com>
43323
43324         userspec: depend on the inttostr module, too
43325         * modules/userspec (Depends-on): Add inttostr.
43326
43327         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43328         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43329         number of MAXUID when it evaluates to (uid_t) -1.
43330         Likewise for group ID.  Reported by Matt McCutchen in
43331         <http://savannah.gnu.org/bugs/?28113>
43332
43333         userspec: reformat to use spaces, not TABs
43334         * lib/userspec.c: Expand TABs to spaces.
43335         Add Emacs' "indent-tabs-mode: nil" hint.
43336
43337 2009-11-27  Eric Blake  <ebb9@byu.net>
43338
43339         getopt-gnu: flush out another BSD bug
43340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43341         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43342         flush out BSD bug.
43343         * tests/test-getopt.h (test_getopt): End lists with NULL.
43344         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43345         (test_getopt_long_posix): Enhance test.
43346         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43347         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43348         getopt-gnu.
43349         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43350         Likewise.
43351
43352 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43353
43354         * modules/idpriv-droptemp-tests (Notice): Fix text.
43355
43356 2009-11-27  Jim Meyering  <meyering@redhat.com>
43357
43358         test-xalloc-die: avoid spurious failure due to libtool argv difference
43359         In a libtool-enabled project, this test would fail due to a difference
43360         in the emitted program name, e.g.,
43361         -test-xalloc-die: memory exhausted
43362         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43363         Use program to avoid that.
43364         * modules/xalloc-die-tests (Depends-on): Add progname.
43365         * tests/test-xalloc-die.c: Include progname.h".
43366         (program_name): Remove decl.
43367         (main): Call set_program_name.
43368         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43369
43370 2009-11-26  Richard Jones  <rjones@redhat.com>
43371
43372         w32sock: leave win32 error in place.
43373         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43374
43375 2009-11-26  Eric Blake  <ebb9@byu.net>
43376
43377         init.sh: suggest to use skip_ and fail_ functions in comments
43378         * tests/init.sh: Add a sentence.
43379
43380 2009-11-25  Bruno Haible  <bruno@clisp.org>
43381
43382         init.sh: add documentation in comments
43383         * tests/init.sh: Add some developer and user documentation.
43384
43385 2009-11-26  Jim Meyering  <meyering@redhat.com>
43386
43387         init.sh: accommodate even those who specify bogus srcdir manually
43388         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43389         configure-time tests to be sanitized, so that there is no need to
43390         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43391         (with no double quotes) suffices.  However, since tests may be
43392         invoked manually, and since you may explicitly set srcdir to the
43393         name of a directory containing spaces, do quote its uses here.
43394         * tests/test-pread.sh: Likewise.
43395         Suggested by Bruno Haible.
43396
43397         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43398         * tests/test-pread.sh: Write no data into the pipe, because
43399         test-pread actually reads none.  This avoids a diagnostic,
43400         "bash: echo: write error: Broken pipe", that arises in the unusual
43401         event something is ignoring SIGPIPE, and might be interpreted
43402         as some sort of failure.  Reported by Bruno Haible.
43403
43404 2009-11-25  Jim Meyering  <meyering@redhat.com>
43405
43406         test-pread: cover failure with ESPIPE and EINVAL
43407         * tests/test-pread.c (main): Test for failure, too.
43408         * tests/test-pread.sh: Invoke with stdin on a pipe.
43409         Suggested by Eric Blake.
43410
43411         pread: improvement and fix
43412         * modules/pread (Depends-on): Depend on lseek, for portability to
43413         e.g., mingw.  Suggested by Eric Blake.
43414         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43415
43416         unistd.in.h: correct declaration of pread
43417         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43418         Reported by Richard W.M. Jones.
43419
43420         test-pread.sh: distribute the test script
43421         * modules/pread-tests (Files): Include test-pread.sh.
43422
43423         test-pread.sh: clean up
43424         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43425         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43426         That is unnecessary, since it's always ".".
43427         Suggestion from Eric Blake.
43428
43429         test-pread.sh: make executable
43430         * tests/test-pread.sh: Set executable bit.
43431         Reported by Eric Blake.
43432
43433         correct typo in test-pread.sh
43434         * tests/test-pread.sh: Add #! line.
43435
43436         test pread
43437         * tests/test-pread.c: New file.
43438         * tests/test-pread.sh: Likewise.
43439         * modules/pread-tests: Likewise.
43440
43441         pread: new module
43442         * modules/pread: New file.
43443         * lib/unistd.in.h (pread): Define/declare.
43444         * lib/pread.c (pread): New file.
43445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43446         * modules/unistd (Makefile.am): Substitute witnesses.
43447         * doc/posix-functions/pread.texi (pread): Update.
43448         * MODULES.html.sh: Add pread.
43449
43450 2009-11-25  Jim Meyering  <meyering@redhat.com>
43451
43452         tests/init.sh: new file to be used via most *.sh tests
43453         * tests/init.sh: New file.
43454
43455 2009-11-25  Eric Blake  <ebb9@byu.net>
43456
43457         utimens: work around older Linux failure with symlinks
43458         * lib/utimens.c (lutimensat_works_really): New variable.
43459         (fdutimens, lutimens): Use it to manage kernels that support
43460         nanosecond times on files, but not on symlinks.
43461         Reported by Ondřej Vašík.
43462
43463         utimes: fix configure grammar
43464         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43465
43466 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43467
43468         regex: Fix fastmap for multibyte character ranges.
43469         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43470         characters when a multibyte character range is included.
43471
43472 2009-11-22  Andy Wingo  <wingo@pobox.com>
43473
43474         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43475         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43476
43477 2009-11-24  Bruno Haible  <bruno@clisp.org>
43478
43479         doc: Most *_l functions exist in MacOS X 10.5.
43480         * doc/posix-functions/duplocale.texi: Update platforms list.
43481         * doc/posix-functions/freelocale.texi: Likewise.
43482         * doc/posix-functions/newlocale.texi: Likewise.
43483         * doc/posix-functions/uselocale.texi: Likewise.
43484         * doc/posix-functions/isalnum_l.texi: Likewise.
43485         * doc/posix-functions/isalpha_l.texi: Likewise.
43486         * doc/posix-functions/isblank_l.texi: Likewise.
43487         * doc/posix-functions/iscntrl_l.texi: Likewise.
43488         * doc/posix-functions/isdigit_l.texi: Likewise.
43489         * doc/posix-functions/isgraph_l.texi: Likewise.
43490         * doc/posix-functions/islower_l.texi: Likewise.
43491         * doc/posix-functions/isprint_l.texi: Likewise.
43492         * doc/posix-functions/ispunct_l.texi: Likewise.
43493         * doc/posix-functions/isspace_l.texi: Likewise.
43494         * doc/posix-functions/isupper_l.texi: Likewise.
43495         * doc/posix-functions/iswalnum_l.texi: Likewise.
43496         * doc/posix-functions/iswalpha_l.texi: Likewise.
43497         * doc/posix-functions/iswblank_l.texi: Likewise.
43498         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43499         * doc/posix-functions/iswctype_l.texi: Likewise.
43500         * doc/posix-functions/iswdigit_l.texi: Likewise.
43501         * doc/posix-functions/iswgraph_l.texi: Likewise.
43502         * doc/posix-functions/iswlower_l.texi: Likewise.
43503         * doc/posix-functions/iswprint_l.texi: Likewise.
43504         * doc/posix-functions/iswpunct_l.texi: Likewise.
43505         * doc/posix-functions/iswspace_l.texi: Likewise.
43506         * doc/posix-functions/iswupper_l.texi: Likewise.
43507         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43508         * doc/posix-functions/isxdigit_l.texi: Likewise.
43509         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43510         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43511         * doc/posix-functions/strcoll_l.texi: Likewise.
43512         * doc/posix-functions/strfmon_l.texi: Likewise.
43513         * doc/posix-functions/strftime_l.texi: Likewise.
43514         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43515         * doc/posix-functions/strxfrm_l.texi: Likewise.
43516         * doc/posix-functions/tolower_l.texi: Likewise.
43517         * doc/posix-functions/toupper_l.texi: Likewise.
43518         * doc/posix-functions/towctrans_l.texi: Likewise.
43519         * doc/posix-functions/towlower_l.texi: Likewise.
43520         * doc/posix-functions/towupper_l.texi: Likewise.
43521         * doc/posix-functions/wcscoll_l.texi: Likewise.
43522         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43523         * doc/posix-functions/wctrans_l.texi: Likewise.
43524         * doc/posix-functions/wctype_l.texi: Likewise.
43525         * doc/glibc-functions/strptime_l.texi: Likewise.
43526         * doc/glibc-functions/strtod_l.texi: Likewise.
43527         * doc/glibc-functions/strtof_l.texi: Likewise.
43528         * doc/glibc-functions/strtol_l.texi: Likewise.
43529         * doc/glibc-functions/strtold_l.texi: Likewise.
43530         * doc/glibc-functions/strtoll_l.texi: Likewise.
43531         * doc/glibc-functions/strtoul_l.texi: Likewise.
43532         * doc/glibc-functions/strtoull_l.texi: Likewise.
43533         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43534         * doc/glibc-functions/wcstod_l.texi: Likewise.
43535         * doc/glibc-functions/wcstof_l.texi: Likewise.
43536         * doc/glibc-functions/wcstol_l.texi: Likewise.
43537         * doc/glibc-functions/wcstold_l.texi: Likewise.
43538         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43539         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43540         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43541
43542 2009-11-24  Bruno Haible  <bruno@clisp.org>
43543
43544         duplocale: Fix logic bug.
43545         * lib/duplocale.c: Don't include <langinfo.h>.
43546         (_NL_LOCALE_NAME): Remove macro.
43547         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43548         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43549
43550 2009-11-23  Jim Meyering  <meyering@redhat.com>
43551
43552         test-update-copyright: don't hard-code /usr/bin/perl
43553         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43554         perl to print the current year.  Gilles Espinasse reported that
43555         the replaced use of perl was hard-coded as /usr/bin/perl.
43556
43557 2009-11-23  Bruno Haible  <bruno@clisp.org>
43558
43559         duplocale: Add support for glibc 2.3.x.
43560         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43561
43562 2009-11-22  Bruno Haible  <bruno@clisp.org>
43563
43564         vasnprintf: Tiny optimization.
43565         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43566         MacOS X.
43567
43568 2009-11-22  Bruno Haible  <bruno@clisp.org>
43569
43570         Tests for module 'duplocale'.
43571         * modules/duplocale-tests: New file.
43572         * tests/test-duplocale.c: New file.
43573
43574         New module 'duplocale'.
43575         * m4/duplocale.m4: New file.
43576         * lib/locale.in.h (duplocale): New declaration.
43577         * lib/duplocale.c: New file.
43578         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43579         gl_LOCALE_H_DEFAULTS): New macros.
43580         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43581         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43582         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43583         REPLACE_DUPLOCALE.
43584         * modules/duplocale: New file.
43585         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43586
43587 2009-11-22  Bruno Haible  <bruno@clisp.org>
43588
43589         * modules/locale-tests (configure.ac): Test for newlocale function.
43590         * tests/test-locale.c: When the system has extended locale functions,
43591         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43592
43593         locale: Make locale_t available when possible.
43594         * lib/locale.in.h: Include <xlocale.h> when it exists.
43595         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43596         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43597         * modules/locale (Depends-on): Add extensions.
43598         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43599         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43600
43601 2009-11-22  Bruno Haible  <bruno@clisp.org>
43602
43603         Add comments.
43604         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43605         invocation.
43606         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43607         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43608         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43609
43610 2009-11-22  Bruno Haible  <bruno@clisp.org>
43611
43612         error: account for the possibility of freopen (stdout).
43613         * lib/error.c: Include <unistd.h>.
43614         (flush_stdout): New function, extracted from error and error_at_line.
43615         Determine stdout's fd dynamically.
43616         (error, error_at_line): Invoke flush_stdout.
43617         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43618         * modules/error (Depends-on): Add unistd.
43619
43620 2009-11-22  Bruno Haible  <bruno@clisp.org>
43621
43622         diffseq: Add comment.
43623         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43624
43625 2009-11-22  Jim Meyering  <meyering@redhat.com>
43626
43627         c-stack: avoid defining an unused static function
43628         * lib/c-stack.c (find_stack_direction): Do not define this function
43629         when it will not be used.
43630
43631         diffseq: avoid spurious gcc warnings
43632         * lib/diffseq.h (IF_LINT2): Define.
43633         (compareseq): Use it to initialize two members of "part".
43634         This avoids two used-uninitialized warnings.
43635
43636 2009-11-21  Jim Meyering  <meyering@redhat.com>
43637
43638         c-stack: avoid "ignoring return value of `write'" warning
43639         * lib/c-stack.c: Include "ignore-value.h".
43640         (die): Explicitly ignore each write return value.
43641         * modules/c-stack (Depends-on): Add ignore-value.
43642
43643 2009-11-21  Bruno Haible  <bruno@clisp.org>
43644
43645         diffseq: reduce scope of variable 'best'.
43646         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43647         variable, earlier used for two different purposes.
43648
43649 2009-11-21  Jim Meyering  <meyering@redhat.com>
43650
43651         diffseq: remove useless assignment to "best"
43652         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43653         assignment.  At that point "best" is already guaranteed to be zero.
43654
43655 2009-11-20  Eric Blake  <ebb9@byu.net>
43656
43657         build: mention ftp redirector in release announcements
43658         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43659         values that used to come from cfg.mk; mention FTP redirect URL.
43660         * build-aux/announce-gen: Mention the mirror list.
43661         Suggested by Karl Berry.
43662
43663         nanosleep: improve port to mingw
43664         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43666         LIB_NANOSLEEP, but only when needed.
43667         * modules/select (Link): Document LIBSOCKET.
43668         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43669         enough.
43670
43671         nanosleep: work around cygwin bug
43672         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43673         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43674         bug.
43675         (getnow): Delete, not needed.
43676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43677         LIB_CLOCK_GETTIME.
43678         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43679         clock-time, gettime.
43680         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43681         bug.
43682         * modules/nanosleep-tests: New test.
43683         * tests/test-nanosleep.c: New file.
43684
43685         sleep: work around cygwin bug
43686         * lib/sleep.c (rpl_sleep): Work around the bug.
43687         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43688         (gl_PREREQ_SLEEP): Delete unused macro.
43689         * modules/sleep (Depends-on): Add verify.
43690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43691         * modules/unistd (Makefile.am): Substitute witness.
43692         * lib/unistd.in.h (sleep): Update prototype.
43693         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43694         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43695         * modules/sleep-tests (Depends-on): Check for alarm.
43696
43697 2009-11-20  Jim Meyering  <meyering@redhat.com>
43698
43699         maint.mk: improve sc_prohibit_magic_number_exit
43700         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43701         so it does not match uses like System.exit(1).
43702         Add comments showing how to correct all offenders.
43703
43704 2009-11-19  Eric Blake  <ebb9@byu.net>
43705
43706         xalloc-die-tests: add missing library
43707         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43708
43709         test-xvasprintf: silence compiler warnings
43710         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43711         empty string from gcc.
43712
43713 2009-11-19  Jim Meyering  <meyering@redhat.com>
43714
43715         xfreopen: new module, from coreutils
43716         * modules/xfreopen: New module.
43717         * lib/xfreopen.c: New file.
43718         * lib/xfreopen.h: New file.
43719         * MODULES.html.sh (File stream based Input/Output"): Add it.
43720
43721 2009-11-19  Eric Blake  <ebb9@byu.net>
43722
43723         manywarnings: depend on warnings
43724         * modules/manywarnings (Depends-on): Add warnings.
43725
43726         build: avoid compiler warnings
43727         * lib/select.c (rpl_select): Delete unused variable.
43728         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43729
43730 2009-11-18  Eric Blake  <ebb9@byu.net>
43731
43732         tests: avoid false negative with --with-packager
43733         * tests/test-version-etc.sh: Discard packager information.
43734         * tests/test-argp-version-etc-1.sh: Likewise.
43735         Reported by Mike Frysinger.
43736
43737         utimens: fix regression on Solaris
43738         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43739         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43740         can only change fd timestamps via futimesat.  Instead, use an
43741         additional witness macro to avoid BSD bug.
43742         Reported by Jim Meyering.
43743
43744 2009-11-17  Eric Blake  <ebb9@byu.net>
43745
43746         usleep: use it to simplify tests
43747         * modules/stat-time-tests (Depends-on): Add usleep.
43748         (configure.ac): Drop usleep check.
43749         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43750         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43751         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43752         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43753         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43754         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43755         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43756         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43757         Likewise.
43758         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43759         * tests/test-lchown.h (nap): Likewise.
43760         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43761         * tests/test-stat-time.c (nap): Likewise.
43762         * tests/test-utimens-common.h (nap): Update comments.
43763
43764         usleep: new module
43765         * modules/usleep: New file.
43766         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43767         * lib/usleep.c (usleep): Likewise.
43768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43769         * modules/unistd (Makefile.am): Substitute witnesses.
43770         * lib/unistd.in.h (usleep): Add declaration.
43771         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43772         * MODULES.html.sh (Date and time): Likewise.
43773         * modules/usleep-tests (Depends-on): New test.
43774         * tests/test-usleep.c: New file.
43775
43776         chown: work around OpenBSD bug
43777         * lib/chown.c (rpl_chown): Work around the bug.
43778         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43779         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43780         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43781         * modules/chown (Depends-on): Add stdbool.
43782         * modules/lchown (Depends-on): Likewise.
43783         * doc/posix-functions/chown.texi (chown): Document the bug.
43784         * doc/posix-functions/lchown.texi (lchown): Likewise.
43785         * tests/test-lchown.h (test_chown): Relax test.
43786
43787         mkstemp: avoid conflict with C++ keyword template
43788         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43789         * lib/mkostemp.c (mkostemp): Likewise.
43790         * lib/mkostemps.c (mkostemps): Likewise.
43791         * lib/mkstemp.c (mkstemp): Likewise.
43792         * lib/mkstemps.c (mkstemps): Likewise.
43793
43794         xalloc-die-tests: optimize
43795         * tests/test-xalloc-die.sh: Reduce number of processes.
43796
43797 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43798
43799         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43800         patch from ludo@gnu.org (Ludovic Courtès).
43801
43802 2009-11-17  Jim Meyering  <meyering@redhat.com>
43803
43804         version-etc: use proper license string
43805         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43806         * modules/version-etc-fsf: Likewise.
43807
43808 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43809
43810         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43811         printed to stdout.  Deal with EOL differences.
43812
43813 2009-11-17  Eric Blake  <ebb9@byu.net>
43814
43815         unsetenv: work around Solaris bug
43816         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43817         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43818         Reported by Jim Meyering.
43819
43820         vasnprintf: avoid compiler warnings
43821         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43822         variables.
43823         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43824
43825 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43826
43827         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43828         settings since xalloc-die is no longer the self test,
43829         xalloc-die.sh is.
43830
43831 2009-11-17  Jim Meyering  <meyering@redhat.com>
43832
43833         test-xalloc-die.sh: make the code agree with the commit log
43834         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43835         at the end, just in case you happen to have a test-xalloc-die
43836         program in some other PATH directory.
43837
43838         test-xalloc-die.sh: fix a portability bug
43839         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43840         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43841         Otherwise, argv[0] (as often seen in diagnostics) would be too
43842         system-dependent, sometimes with, and sometimes without the leading "./".
43843
43844         version-etc-fsf: relax license to LGPLv3+
43845         * modules/version-etc-fsf (License): Relax license.
43846
43847 2009-11-16  Eric Blake  <ebb9@byu.net>
43848
43849         xalloc-die-tests: avoid printing null pointer
43850         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43851         shell script.
43852         * tests/test-xalloc-die.c (program_name): Declare.
43853         * tests/test-xalloc-die.sh (tmpfiles): New file.
43854
43855         setenv, unsetenv: work around various bugs
43856         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43857         (setenv) [HAVE_SETENV]: Work around bugs.
43858         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43859         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43860         for bugs.
43861         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43862         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43864         * modules/stdlib (Makefile.am): Update substitutions.
43865         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43866         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43867         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43868         * modules/setenv-tests: New test.
43869         * modules/unsetenv-tests: Likewise.
43870         * tests/test-setenv.c: New file.
43871         * tests/test-unsetenv.c: Likewise.
43872
43873 2009-11-16  Jim Meyering  <meyering@redhat.com>
43874
43875         version-etc: relax license to LGPLv3+
43876         * modules/version-etc (License): Relax license.
43877
43878         better AC_REQUIRE expanded-before-required-warning avoidance
43879         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43880         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43881         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43882         which is no longer needed.
43883
43884 2009-11-16  Eric Blake  <ebb9@byu.net>
43885
43886         test-freading: clean up temporary file
43887         * tests/test-freading.c (main): Remove file on success, and use
43888         ASSERT more liberally.
43889         Reported by Jim Meyering.
43890
43891 2009-11-16  Jim Meyering  <meyering@redhat.com>
43892
43893         avoid new AC_REQUIRE expanded-before-required warnings
43894         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43895         merely using it.
43896         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43897         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43898
43899 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43900
43901         * tests/test-xalloc-die.c: New file.
43902         * modules/xalloc-die-tests: New file.
43903         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43904         XFAIL_TESTS so it can be appended by modules.
43905
43906 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43907
43908         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43909         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43910
43911 2009-11-14  Eric Blake  <ebb9@byu.net>
43912
43913         fnmatch: avoid compiler warning
43914         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43915         to silence compiler warning about mismatch signedness in ?:.
43916         Reported by Robert Millan.
43917
43918         intprops: add double-inclusion guard
43919         * lib/intprops.h: Allow idempotent includes.
43920         Suggested by Bruce Korb.
43921
43922         openat: detect Solaris fchownat bug
43923         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43924         penalizing glibc chownat when only lchownat is broken.
43925         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43926         trailing slash bugs.
43927         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43928         * modules/openat-tests (Files): Include more files.
43929         (Depends-on): Add mgetgroups, sleep, stat-time.
43930         (configure.ac): Add additional checks.
43931         (Makefile.am): Build new test.
43932         * tests/test-fchownat.c: New file.
43933
43934         lchown: detect Solaris and FreeBSD bug
43935         * lib/lchown.c (rpl_lchown): Work around bug.
43936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43938         * modules/unistd (Makefile.am): Populate it.
43939         * lib/unistd.in.h (lchown): Update declaration.
43940         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43941         * modules/lchown-tests: New file.
43942         * tests/test-lchown.h (test_lchown): Likewise.
43943         * tests/test-lchown.c (main): Likewise.
43944
43945         chown: detect Solaris and FreeBSD bug
43946         * lib/chown.c (rpl_chown): Work around bug.
43947         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43948         (gl_PREREQ_CHOWN): Delete.
43949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43950         * modules/unistd (Makefile.am): Populate it.
43951         * lib/unistd.in.h (chown): Update declaration.
43952         * lib/lchown.c (chown): Update client.
43953         * modules/lchown (Depends-on): Add lstat.
43954         * doc/posix-functions/chown.texi (chown): Document the bug.
43955         * doc/posix-functions/getgroups.texi (getgroups): Document
43956         getgroups pitfall.
43957         * modules/chown-tests: New file.
43958         * tests/test-chown.h (test_chown): Likewise.
43959         * tests/test-chown.c (main): Likewise.
43960
43961 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43962
43963         gnulib-tool: correctly detect absence of m4 directories
43964         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43965
43966 2009-11-14  Jim Meyering  <meyering@redhat.com>
43967
43968         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43969         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43970
43971 2009-11-14  John W. Eaton  <jwe@gnu.org>
43972
43973         strftime.h: wrap function declaration in extern "C" block
43974         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43975
43976 2009-11-13  Eric Blake  <ebb9@byu.net>
43977
43978         getgroups: avoid compiler warning
43979         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43980
43981         getgroups: work around FreeBSD bug
43982         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43983         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43984         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43985         * tests/test-getgroups.c (main): Fix buffer overrun.
43986
43987         getgroups: avoid compilation failure
43988         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43989         * modules/getgroups (Depends-on): Add stdint.
43990
43991 2009-11-13  Jim Meyering  <meyering@redhat.com>
43992
43993         test-getgroups: avoid compilation failure
43994         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43995
43996 2009-11-13  Eric Blake  <ebb9@byu.net>
43997
43998         mgetgroups: new module, taken from coreutils
43999         * modules/mgetgroups: New file.
44000         * lib/mgetgroups.h: Likewise.
44001         * lib/mgetgroups.c (mgetgroups): Likewise.
44002         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44003         * MODULES.html.sh (Users and groups): Mention it.
44004
44005         getgroups: don't expose GETGROUPS_T to user
44006         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44007         an element at a time if GETGROUPS_T is wrong size.
44008         * lib/getugroups.h (getugroups): Change signature.
44009         * lib/unistd.in.h (getgroups): Likewise.
44010         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44011         signature needs fixing.
44012         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44013         AC_TYPE_GETGROUPS.
44014         * modules/group-member (Depends-on): Add getgroups.
44015         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44016         (group_member): Rely on getgroups replacement.
44017         * lib/getugroups.c (getugroups): Use gid_t.
44018         * tests/test-getgroups.c (main): Likewise.
44019         * NEWS: Mention the signature change.
44020         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44021         problem with signature.
44022         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44023         GETGROUPS_T is still useful for setgroups.
44024
44025         getgroups, getugroups: provide stubs for mingw
44026         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44027         * lib/getugroups.c (getugroups): Likewise.
44028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44029         function.  Modernize replacement scheme.
44030         (gl_PREREQ_GETGROUPS): Delete.
44031         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44032         * modules/getgroups (configure.ac): Declare witness.
44033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44034         * modules/unistd (Depends-on): Substitute witness.
44035         * lib/unistd.in.h (getgroups): Declare replacement.
44036
44037         getgroups: avoid calling exit
44038         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44039         drop xalloc.
44040         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44041         dependencies.
44042         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44043         exiting, in the rare case of malloc failure.
44044
44045         getgroups: fix logic error
44046         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44047         has more than 20 groups.
44048         * modules/getgroups-tests: New test.
44049         * tests/test-getgroups.c: New file.
44050
44051 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44052
44053         * tests/test-base64.c: Improve.
44054
44055 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44056
44057         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44058         Blake <ebb9@byu.net>.
44059
44060 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44061
44062         * tests/test-xvasprintf.c: Add %s%s related checks.
44063
44064 2009-11-12  Eric Blake  <ebb9@byu.net>
44065
44066         version-etc: match standards.texi style
44067         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44068         and use <> only for URLs.
44069
44070 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44071
44072         fts: do not fail on a submount during traversal
44073         * lib/fts.c (fts_build): Read the stat info again after opening
44074         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44075         Original report at http://bugzilla.redhat.com/501848.
44076
44077 2009-11-12  Jim Meyering  <meyering@redhat.com>
44078
44079         bootstrap: sync from coreutils
44080         * build-aux/bootstrap (bootstrap_epilogue): New function.
44081         Use git_modules_config in one more place.  This make bootstrap's
44082         --gnulib-srcdir option more useful for testing.
44083
44084         bootstrap: generalize autoheader check
44085         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44086         AC_CONFIG_HEADERS.
44087
44088 2009-11-11  Eric Blake  <ebb9@byu.net>
44089
44090         mkfifoat: use new modules for Solaris and BSD bugs
44091         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44092         * lib/mkfifoat.c (mknodat): Split...
44093         * lib/mknodat.c (mknodat): ...into new file.
44094         * modules/mkfifoat (Files): Ship new file.
44095         (Depends-on): Add mkfifo, mknod.
44096         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44097         (Depends-on): Add symlink.
44098         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44099         redundant with test_mkfifo.h.
44100         (do_mkfifoat, do_mknodat): New helpers.
44101
44102         mknod: new module
44103         * modules/mknod: New file.
44104         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44105         * lib/mknod.c (mknod): Likewise.
44106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44107         defaults.
44108         * modules/sys_stat (Makefile.am): Substitute them.
44109         * lib/sys_stat.in.h (mknod): Declare replacement.
44110         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44111         Document it.
44112         * doc/posix-functions/mknod.texi (mknod): Likewise.
44113         * modules/mknod-tests: New test.
44114         * tests/test-mknod.c: Likewise.
44115
44116         mkfifo: new module
44117         * modules/mkfifo: New file.
44118         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44119         * lib/mkfifo.c (mkfifo): Likewise.
44120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44121         defaults.
44122         * modules/sys_stat (Makefile.am): Substitute them.
44123         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44124         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44125         Document it.
44126         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44127         * modules/mkfifo-tests: New test.
44128         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44129         from test-mkfifoat.c.
44130         * tests/test-mkfifo.c: New file.
44131
44132         readlink: detect FreeBSD bug
44133         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44134         slash on symlink.
44135         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44136         * tests/test-readlink.h (test_readlink): Enhance test.
44137
44138         symlink: detect FreeBSD bug
44139         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44140         slash on symlink.
44141         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44142         * tests/test-symlink.h (test_symlink): Enhance test.
44143
44144 2009-11-10  Eric Blake  <ebb9@byu.net>
44145
44146         link: detect FreeBSD bug
44147         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44148         symlink.
44149         * doc/posix-functions/link.texi (link): Document the bug.
44150         * tests/test-link.h (test_link): Enhance test.
44151         * tests/test-linkat.c (main): Update caller.
44152
44153         unlink, remove: detect FreeBSD bug
44154         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44155         slash on symlink.
44156         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44157         * doc/posix-functions/remove.texi (remove): Likewise.
44158         * tests/test-unlink.h (test_unlink): Enhance test.
44159         * tests/test-remove.c (main): Likewise.
44160
44161 2009-11-09  Eric Blake  <ebb9@byu.net>
44162
44163         rename: detect FreeBSD bug
44164         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44165         slash on symlink.
44166         * modules/renameat-tests (Depends-on): Add filenamecat.
44167         * tests/test-rename.h (test_rename): Allow one more errno.
44168         * tests/test-renameat.c (main): Likewise.
44169         * doc/posix-functions/rename.texi (rename): Document the bug.
44170
44171         open: detect FreeBSD bug
44172         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44173         symlink.
44174         * doc/posix-functions/open.texi (open): Document the bug.
44175         * doc/posix-functions/utimes.texi (utimes): Likewise.
44176         * tests/test-open.h (test_open): Add parameters, and test symlink
44177         handling.
44178         * tests/test-open.c (main): Adjust caller.
44179         * tests/test-fcntl-safer.c (main): Likewise.
44180         * modules/open-tests (Depends-on): Add stdbool, symlink.
44181         * modules/fcntl-safer-tests (Depends-on): Likewise.
44182         * tests/test-openat.c (main): Add test-open tests.
44183
44184         stat: detect FreeBSD bug
44185         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44186         symlink.
44187         * doc/posix-functions/stat.texi (stat): Document the bug.
44188         * tests/test-stat.h (test_stat_func): Add argument.
44189         * tests/test-stat.c (main): Adjust caller.
44190         * tests/test-fstatat.c (main): Likewise.
44191         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44192         Reported by Jim Meyering.
44193
44194 2009-11-09  James Youngman  <jay@gnu.org>
44195
44196         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44197         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44198
44199 2009-11-08  Jim Meyering  <meyering@redhat.com>
44200
44201         utimens: remove invalid futimesat call
44202         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44203         It used the file descriptor of the target file as the DIR_FD
44204         parameter and NULL as the file name.  That caused failure with
44205         errno == EFAULT on FreeBSD-8.0-rc2
44206
44207 2009-11-07  Eric Blake  <ebb9@byu.net>
44208
44209         fflush, freadseek: use fseeko, not fseek
44210         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44211         (clear_ungetc_buffer): Avoid potential problems on large files.
44212         * lib/freadseek.c (freadseek): Likewise.
44213         * modules/freadseek (Depends-on): Add fseeko.
44214         * modules/fseek (configure.ac): Set a witness.
44215         * tests/test-fflush.c (main): Use fseeko.
44216         * tests/test-fpurge.c (fseek): Disable link warning.
44217         * tests/test-freadable.c (fseek): Likewise.
44218         * tests/test-freading.c (fseek): Likewise.
44219         * tests/test-fseeko.c (fseek): Likewise.
44220         * tests/test-ftell.c (fseek): Likewise.
44221         * tests/test-ftello.c (fseek): Likewise.
44222         * tests/test-fwritable.c (fseek): Likewise.
44223         * tests/test-fwriting.c (fseek): Likewise.
44224
44225 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44226
44227         * modules/memchr (Depends-on): Drop getpagesize dependency.
44228
44229 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44230
44231         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44232         Reported by Ludovic Courtès.
44233         * build-aux/pmccabe2html: Improve example usage.
44234         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44235
44236 2009-11-06  Jim Meyering  <meyering@redhat.com>
44237
44238         do-release-commit-and-tag: New module.
44239         Automate the release-commit and tag process.
44240         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44241         * modules/do-release-commit-and-tag: New file.
44242         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44243
44244 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44245
44246         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44247         because test-select.c uses inet_pton.
44248
44249 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44250
44251         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44252         GETADDRINFO_LIB.  Bump serial number.
44253         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44254         Suggested by Eric Blake <ebb9@byu.net>.
44255
44256 2009-11-05  Eric Blake  <ebb9@byu.net>
44257
44258         strtod: detect darwin bug
44259         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44260         Reported by Leo Davis.
44261
44262         freopen-safer: new module
44263         * modules/freopen-safer: New module.
44264         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44265         * lib/freopen-safer.c (freopen_safer): New file.
44266         * lib/stdio-safer.h (freopen_safer): New declaration.
44267         * lib/stdio--.h (freopen): New override.
44268         * MODULES.html.sh (File stream based Input/Output): Mention it.
44269         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44270         freopen-safer module.
44271         * doc/posix-functions/stderr.texi (stderr): Likewise.
44272         * doc/posix-functions/stdin.texi (stdin): Likewise.
44273         * doc/posix-functions/stdout.texi (stdout): Likewise.
44274         * modules/freopen-safer-tests: New test.
44275         * tests/test-reopen-safer.c: New file.
44276
44277 2009-11-05  Jim Meyering  <meyering@redhat.com>
44278
44279         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44280         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44281
44282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44283
44284         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44285
44286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44287
44288         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44289
44290 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44291
44292         Fix link error.
44293         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44294         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44295
44296 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44297
44298         * tests/test-func.c: Also test value of __func__.
44299
44300 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44301
44302         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44303         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44304
44305 2009-11-05  Bruno Haible  <bruno@clisp.org>
44306
44307         Fix link error.
44308         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44309         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44310         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44311
44312 2009-11-05  Bruno Haible  <bruno@clisp.org>
44313
44314         Tests for module 'inet_pton'.
44315         * modules/inet_pton-tests: New file.
44316         * tests/test-inet_pton.c: New file.
44317
44318 2009-11-05  Bruno Haible  <bruno@clisp.org>
44319
44320         Tests for module 'inet_ntop'.
44321         * modules/inet_ntop-tests: New file.
44322         * tests/test-inet_ntop.c: New file.
44323
44324 2009-11-04  Eric Blake  <ebb9@byu.net>
44325
44326         stdlib-safer: wrap all mkstemp variants
44327         * modules/mkostemp (configure.ac): Set witness.
44328         * modules/mkostemps (configure.ac): Likewise.
44329         * modules/mkstemps (configure.ac): Likewise.
44330         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44331         (mkstemps_safer): Wrap more functions.
44332         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44333         wrapping.
44334         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44335         (mkstemps_safer): Implement the wrappers.
44336
44337         mkstemps, mkostemps: new modules
44338         * modules/mkostemps: New module.
44339         * modules/mkstemps: Likewise.
44340         * lib/mkostemps.c (mkostemps): New file.
44341         * lib/mkstemps.c (mkstemps): Likewise.
44342         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44343         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44345         * modules/stdlib (Makefile.am): Substitute them.
44346         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44347         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44348         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44349         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44350         * MODULES.html.sh (File system functions): Mention them.
44351
44352         tempname: resync from glibc
44353         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44354         same values for __GT_FILE as glibc.  Abort even when assertions
44355         are disabled.
44356         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44357         match its value otherwise.  Allow idempotent inclusion.
44358         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44359         * lib/mkostemp.c (mkostemp): Likewise.
44360         * lib/mkstemp.c (mkstemp): Likewise.
44361         * lib/tmpfile.c (tmpfile): Likewise.
44362         * NEWS: Document this.
44363
44364         utimens: fix use of futimens on older Linux
44365         * lib/utimens.c (fdutimens): Use updated, rather than original,
44366         timespec to avoid bug in older Linux kernel.
44367         Reported by Simon Josefsson.
44368
44369 2009-11-04  Bruno Haible  <bruno@clisp.org>
44370
44371         Make num_processors more flexible and consistent.
44372         * lib/nproc.h (enum nproc_query): New type.
44373         (num_processors): Add a 'query' argument.
44374         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44375         (num_processors): Add a 'query' argument. Test the value of the
44376         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44377         mingw, count the number of CPUs available for the current process.
44378         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44379         Check for sched_getaffinity and sched_getaffinity_np.
44380         * modules/nproc (Depends-on): Add c-ctype, extensions.
44381         * NEWS: Mention the change.
44382
44383 2009-11-03  Bruno Haible  <bruno@clisp.org>
44384
44385         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44386
44387 2009-11-03  Jim Meyering  <meyering@redhat.com>
44388
44389         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44390         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44391         if it is defined.
44392
44393 2009-11-02  Eric Blake  <ebb9@byu.net>
44394
44395         mktime, timegm: share common declaration
44396         * lib/mktime-internal.h: New file.
44397         * lib/mktime.c: Use it rather than open-coding a declaration.
44398         * lib/timegm.c: Likewise.
44399         * modules/mktime (Files): Ship it.
44400         * modules/timegm (Files): Likewise.
44401         Suggested by Bruno Haible.
44402
44403         test-update-copyright: update test to match script changes
44404         * tests/test-update-copyright.sh: Avoid hard-coding perl
44405         location.  Don't update *.bak created by earlier runs.
44406
44407 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44408             Simon Josefsson  <simon@josefsson.org>
44409             Bruno Haible  <bruno@clisp.org>
44410
44411         Fix link error on Solaris 8.
44412         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44413         also in libnsl. Define also INET_PTON_LIB.
44414         * modules/inet_pton (Link): New section.
44415
44416 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44417             Bruno Haible  <bruno@clisp.org>
44418
44419         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44420         * modules/inet_ntop (Link): New section.
44421         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44422
44423 2009-11-02  Eric Blake  <ebb9@byu.net>
44424
44425         maint: avoid compiler warnings in m4 macros
44426         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44427         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44428
44429 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44430
44431         * m4/pmccabe2html.m4: Remove file.
44432         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44433         function.  Change maintainer.
44434         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44435         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44436         Courtès).
44437
44438 2009-10-31  Eric Blake  <ebb9@byu.net>
44439
44440         fseeko: fix m4 regression
44441         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44442         regression from 2009-10-27.
44443         Reported by Ralf Wildenhues.
44444
44445 2009-10-31  Jim Meyering  <meyering@redhat.com>
44446
44447         inttostr: aesthetics and improved (compile-time) safety
44448         Define inttype_is_signed rather than inttype_is_unsigned,
44449         since the sole use is via "#if inttype_is_signed".
44450         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44451         inttype_is_unsigned.
44452         * lib/offtostr.c (inttype_is_signed): Likewise.
44453         * lib/uinttostr.c (inttype_is_signed): Likewise.
44454         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44455         * lib/inttostr.c (inttostr): Use verify to cross-check the
44456         inttype_is_signed value and the signedness of the actual type.
44457         * modules/inttostr (Depends-on): Add verify.
44458
44459 2009-10-30  Eric Blake  <ebb9@byu.net>
44460
44461         build: avoid compiler warnings
44462         * lib/fchmodat.c (lchmod): Mark unused variables.
44463         * lib/getopt.c (_getopt_initialize): Likewise.
44464         * lib/mktime.c (__mktime_internal): Provide prototype.
44465         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44466         older gcc that do not understand #pragma GCC diagnostic.
44467         * lib/uinttostr.c (inttype_is_unsigned): Define.
44468         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44469
44470 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44471
44472         stat: fix compilation on AIX
44473         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44474         only see struct stat64.
44475
44476 2009-10-30  Eric Blake  <ebb9@byu.net>
44477
44478         exclude: make more robust
44479         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44480         rather than masking a coding bug.
44481         Suggested by Bruno Haible.
44482
44483 2009-10-30  Jim Meyering  <meyering@redhat.com>
44484
44485         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44486         Rather than putting #!/usr/bin/perl on the first line,
44487         start with a variant of what's recommended by "man perlrun" that
44488         invokes the first "perl" program from your shell's search path.
44489         * build-aux/gitlog-to-changelog: Replace #!... as above.
44490         Add a "Local Variables" perl mode setting.
44491         Prompted by a patch from Ludovic Courtès.
44492         Improved by Eric Blake.
44493         * build-aux/useless-if-before-free: Likewise.
44494         * build-aux/announce-gen: Likewise.
44495         * build-aux/update-copyright: Likewise.
44496
44497 2009-10-29  Eric Blake  <ebb9@byu.net>
44498
44499         filenamecat-lgpl: adjust clients
44500         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44501         filenamecat.
44502         * modules/renameat (Depends-on): Likewise.
44503
44504         filenamecat: split into filenamecat-lgpl
44505         * modules/filenamecat-lgpl: New module.
44506         * modules/filenamecat (Files): Move library-safe files into
44507         filenamecat-lgpl.
44508         (Depends-on): Add filenamecat-lgpl.
44509         (configure.ac): Declare witness.
44510         * lib/filenamecat.h (file_name_concat): Only declare when using
44511         GPL module.
44512         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44513         Move...
44514         * lib/filenamecat-lgpl.c: ...into new file.
44515         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44516         (gl_FILE_NAME_CONCAT): Use it.
44517         * MODULES.html.sh (File system functions): Mention new module.
44518
44519         argp: avoid memory leak
44520         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44521         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44522         base_name, since the latter malloc()s and can call exit().
44523         Leak introduced 2006-07-03.
44524
44525         dirname-lgpl: adjust clients that don't need full dirname
44526         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44527         * modules/filenamecat (Depends-on): Likewise.
44528         * modules/linkat (Depends-on): Likewise.
44529         * modules/mkancesdirs (Depends-on): Likewise.
44530         * modules/mkdir (Depends-on): Likewise.
44531         * modules/openat (Depends-on): Likewise.
44532         * modules/savewd (Depends-on): Likewise.
44533         * modules/rename (Depends-on): Likewise.
44534         (License): Relax license.
44535         * modules/mkdir-tests (Depends-on): Drop progname.
44536         (Makefile.am): Delete unneeded LDADD.
44537         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44538
44539         dirname: split into dirname-lgpl
44540         * modules/dirname-lgpl: New module.
44541         * modules/dirname (Files): Move library-safe files into
44542         dirname-lgpl.
44543         (Depends-on): Add dirname-lgpl.
44544         (configure.ac): Declare witness.
44545         * modules/double-slash-root (License): Relax license.
44546         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44547         module.
44548         * lib/dirname.c (dir_len, mdir_name): Move...
44549         * lib/dirname-lgpl.c: ...into new file.
44550         * lib/basename.c (last_component, base_len): Move...
44551         * lib/basename-lgpl.c: ...into new file.
44552         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44553         (gl_DIRNAME): Use it.
44554         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44555         Mention new module.
44556         * modules/dirname-tests (Depends-on): Add progname.
44557         * tests/test-dirname.c (program_name): Delete.
44558
44559         mkdir: make safe for libraries
44560         * modules/mkdir (Depends-on): Drop xalloc.
44561         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44562         exit.
44563
44564         tests: avoid some compiler warnings
44565         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44566         literals.
44567         * tests/test-memchr.c (main): Avoid type mismatch.
44568         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44569         * tests/test-base64.c (main): Likewise.
44570         * tests/test-getdelim.c (main): Likewise.
44571         * tests/test-gethostname.c (main): Likewise.
44572         * tests/test-getline.c (main): Likewise.
44573         * tests/test-netinet_in.c (main): Likewise.
44574         * tests/test-select.c (open_server_socket, main): Likewise.
44575         * tests/test-select-stdin.c (main): Likewise.
44576         * tests/test-sockets.c (main): Likewise.
44577         * tests/test-strsignal.c (main): Likewise.
44578         * tests/test-sys_select.c (main): Likewise.
44579         * tests/test-sys_socket.c (main): Likewise.
44580         * tests/test-u64.c (main): Likewise.
44581         * tests/test-xfprintf-posix.c (main): Likewise.
44582         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44583
44584         sockets: avoid compiler warning
44585         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44586
44587         maint: detect usage(1) and other suspicious exits
44588         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44589
44590 2009-10-29  Jim Meyering  <meyering@redhat.com>
44591
44592         timespec: long-to-int truncation could make timespec_cmp malfunction
44593         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44594         a multiple of 2^32 nanoseconds as no difference.
44595
44596 2009-10-28  Jim Meyering  <meyering@redhat.com>
44597
44598         fprintftime: wrap macro code argument in "do {...} while(0)"
44599         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44600         cpy macro must be a statement that can be followed by a semicolon.
44601         Now that the else clause contains a comment and is hence longer
44602         than one line, I require curly braces.  That in turn requires
44603         that we wrap this code block in the standard do...while(0).
44604
44605         fprintftime: remove stray semicolon from previous change
44606         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44607
44608         fprintftime: avoid a warning about ignored fwrite return value
44609         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44610         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44611         that is unsafe.
44612         * modules/fprintftime (Depends-on): Add ignore-value.
44613
44614         exclude: avoid an unwarranted warning
44615         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44616
44617 2009-10-27  Eric Blake  <ebb9@byu.net>
44618
44619         fseek: avoid compilation failure when fflush is replaced
44620         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44621         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44622         module is in use.
44623         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44624         module is not in use; since REPLACE_FSEEK worked otherwise.
44625         (GNULIB_FTELLO): Likewise for ftell.
44626         Reported by Ian Beckwith and others.
44627
44628 2009-10-27  Bruno Haible  <bruno@clisp.org>
44629
44630         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44631         Reported by Jim Meyering.
44632
44633 2009-10-27  Jim Meyering  <jim@meyering.net>
44634             Bruno Haible  <bruno@clisp.org>
44635
44636         Avoid warning despite dropping the return value of fwrite.
44637         * lib/unicodeio.c: Include ignore-value.h.
44638         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44639         * modules/unicodeio (Depends-on): Add ignore-value.
44640
44641 2009-10-26  Eric Blake  <ebb9@byu.net>
44642
44643         areadlinkat: fix fallback path
44644         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44645         pointer and zero.
44646
44647 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44648
44649         Use a better IO block size for modern systems
44650         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44651         * lib/md2.c: Likewise.
44652         * lib/md4.c: Likewise.
44653         * lib/md5.c: Likewise.
44654         * lib/sha1.c: Likewise.
44655         * lib/sha256.c: Likewise.
44656         * lib/sha512.c: Likewise.
44657
44658 2009-10-22  Eric Blake  <ebb9@byu.net>
44659
44660         tests: avoid several compiler warnings
44661         * tests/test-getcwd.c (main): Avoid buffer underflow.
44662         * tests/test-getdate.c (main): String literals are not safe with
44663         putenv, so use setenv.  Declare unused argument.
44664         * modules/getdate-tests (Depends-on): Add setenv.
44665         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44666         problems with string literals in char *.
44667         * tests/test-hash.c (main): Avoid shadowing declaration.
44668         (insert_new): Treat string literals as char const *.
44669         * tests/test-getopt.h (test_getopt): Likewise.
44670         (getopt_loop): Alter types to minimize casting elsewhere.
44671         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44672         (test_getopt_long_posix): Likewise.
44673         (do_getopt_long): Add wrapper to minimize casting.
44674         * tests/test-atexit.c (clear_temp_file): Use void.
44675         * tests/test-areadlink-with-size.c (main): Declare unused
44676         arguments.
44677         * tests/test-areadlink.c (main): Likewise.
44678         * tests/test-areadlinkat-with-size.c (main): Likewise.
44679         * tests/test-areadlinkat.c (main): Likewise.
44680         * tests/test-canonicalize-lgpl.c (main): Likewise.
44681         * tests/test-canonicalize.c (main): Likewise.
44682         * tests/test-dirent-safer.c (main): Likewise.
44683         * tests/test-dirname.c (main): Likewise.
44684         * tests/test-dup2.c (main): Likewise.
44685         * tests/test-fchdir.c (main): Likewise.
44686         * tests/test-fcntl-h.c (main): Likewise.
44687         * tests/test-fcntl-safer.c (main): Likewise.
44688         * tests/test-fdopendir.c (main): Likewise.
44689         * tests/test-fdutimensat.c (main): Likewise.
44690         * tests/test-fflush.c (main): Likewise.
44691         * tests/test-filenamecat.c (main): Likewise.
44692         * tests/test-filevercmp.c (main): Likewise.
44693         * tests/test-fopen-safer.c (main): Likewise.
44694         * tests/test-fopen.c (main): Likewise.
44695         * tests/test-fpending.c (main): Likewise.
44696         * tests/test-fpurge.c (main): Likewise.
44697         * tests/test-freading.c (main): Likewise.
44698         * tests/test-fstatat.c (main): Likewise.
44699         * tests/test-fsync.c (main): Likewise.
44700         * tests/test-futimens.c (main): Likewise.
44701         * tests/test-getndelim2.c (main): Likewise.
44702         * tests/test-gettimeofday.c (main): Likewise.
44703         * tests/test-getopt.c (main): Likewise.
44704         * tests/test-i-ring.c (main): Likewise.
44705         * tests/test-inttypes.c (main): Likewise.
44706         * tests/test-link.c (main): Likewise.
44707         * tests/test-lstat.c (main): Likewise.
44708         * tests/test-math.c (main): Likewise.
44709         * tests/test-md5.c (main): Likewise.
44710         * tests/test-memchr2.c (main): Likewise.
44711         * tests/test-memrchr.c (main): Likewise.
44712         * tests/test-mkdir.c (main): Likewise.
44713         * tests/test-mkdirat.c (main): Likewise.
44714         * tests/test-mkfifoat.c (main): Likewise.
44715         * tests/test-open.c (main): Likewise.
44716         * tests/test-openat-safer.c (main): Likewise.
44717         * tests/test-openat.c (main): Likewise.
44718         * tests/test-quotearg.c (main): Likewise.
44719         * tests/test-rawmemchr.c (main): Likewise.
44720         * tests/test-readlink.c (main): Likewise.
44721         * tests/test-remove.c (main): Likewise.
44722         * tests/test-rename.c (main): Likewise.
44723         * tests/test-renameat.c (main): Likewise.
44724         * tests/test-rmdir.c (main): Likewise.
44725         * tests/test-sha1.c (main): Likewise.
44726         * tests/test-signal.c (main): Likewise.
44727         * tests/test-sigaction.c (main): Likewise.
44728         * tests/test-stat.c (main): Likewise.
44729         * tests/test-stat-time.c (main): Likewise.
44730         * tests/test-stddef.c (main): Likewise.
44731         * tests/test-stdint.c (main): Likewise.
44732         * tests/test-stdio.c (main): Likewise.
44733         * tests/test-stdlib.c (main): Likewise.
44734         * tests/test-strchrnul.c (main): Likewise.
44735         * tests/test-strerror.c (main): Likewise.
44736         * tests/test-string.c (main): Likewise.
44737         * tests/test-strtod.c (main): Likewise.
44738         * tests/test-strverscmp.c (main): Likewise.
44739         * tests/test-symlink.c (main): Likewise.
44740         * tests/test-symlinkat.c (main): Likewise.
44741         * tests/test-sys_stat.c (main): Likewise.
44742         * tests/test-sys_time.c (main): Likewise.
44743         * tests/test-time.c (main): Likewise.
44744         * tests/test-unistd.c (main): Likewise.
44745         * tests/test-unlink.c (main): Likewise.
44746         * tests/test-unlinkat.c (main): Likewise.
44747         * tests/test-utimens.c (main): Likewise.
44748         * tests/test-utimensat.c (main): Likewise.
44749         * tests/test-version-etc.c (main): Likewise.
44750         * tests/test-wchar.c (main): Likewise.
44751         * tests/test-wctype.c (main): Likewise.
44752         * tests/test-xprintf-posix.c (main): Likewise.
44753         * tests/test-posixtm.c (main): Likewise.
44754         (STREQ): Delete unused macro.
44755         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44756         shadowed variables.
44757         * tests/test-memchr.c (main): Likewise.
44758
44759 2009-10-21  Eric Blake  <ebb9@byu.net>
44760
44761         areadlinkat: avoid failure on older glibc
44762         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44763         rather than mis-comparing 0 against FUNC_RESULT of char*.
44764
44765 2009-10-21  Bruno Haible  <bruno@clisp.org>
44766
44767         * modules/stpncpy (License): Relicense under LGPLv2+.
44768         Reported by David Lutterkort <lutter@redhat.com>.
44769
44770 2009-10-20  Eric Blake  <ebb9@byu.net>
44771
44772         utimensat: work around Solaris 9 bug
44773         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44774         has trailing slash bugs.
44775         * tests/test-lutimens.h (test_lutimens): Enhance test.
44776         * tests/test-utimens.h (test_utimens): Likewise.
44777         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44778         * doc/posix-functions/utimes.texi (utimes): Likewise.
44779         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44780         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44781         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44782         * doc/posix-functions/futimens.texi (futimens): Likewise.
44783
44784         fdutimensat: new module
44785         * modules/fdutimensat: New file.
44786         * lib/fdutimensat.c (fdutimensat): Likewise.
44787         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44788         * MODULES.html.sh (File system functions): Mention module.
44789         * modules/fdutimensat-tests: New test.
44790         * tests/test-fdutimensat.c: Likewise.
44791
44792         doc: regenerate INSTALL
44793         * doc/INSTALL: Reflect recent autoconf update.
44794         * doc/INSTALL.ISO: Likewise.
44795         * doc/INSTALL.UTF-8: Likewise.
44796
44797 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44798
44799         acl: warn if ACL support is not detected
44800         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44801
44802 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44803
44804         * lib/nproc.h: Add extern "C" block for C++.
44805
44806 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44807             Bruno Haible  <bruno@clisp.org>
44808
44809         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44810         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44811         * doc/posix-functions/isalpha.texi: Likewise.
44812         * doc/posix-functions/isblank.texi: Likewise.
44813         * doc/posix-functions/iscntrl.texi: Likewise.
44814         * doc/posix-functions/isdigit.texi: Likewise.
44815         * doc/posix-functions/isgraph.texi: Likewise.
44816         * doc/posix-functions/islower.texi: Likewise.
44817         * doc/posix-functions/isprint.texi: Likewise.
44818         * doc/posix-functions/ispunct.texi: Likewise.
44819         * doc/posix-functions/isspace.texi: Likewise.
44820         * doc/posix-functions/isupper.texi: Likewise.
44821         * doc/posix-functions/isxdigit.texi: Likewise.
44822
44823 2009-10-18  Bruno Haible  <bruno@clisp.org>
44824
44825         Tests for module 'isblank'.
44826         * modules/isblank-tests: New file.
44827         * tests/test-isblank.c: New file.
44828
44829         New module 'isblank'.
44830         * lib/isblank.c: New file.
44831         * m4/isblank.m4: New file.
44832         * modules/isblank: New file.
44833         * doc/posix-functions/isblank.texi: Mention the new module.
44834
44835 2009-10-18  Bruno Haible  <bruno@clisp.org>
44836
44837         New module 'ctype'.
44838         * lib/ctype.in.h: New file.
44839         * m4/ctype.m4: New file.
44840         * modules/ctype: New file.
44841         * doc/posix-headers/ctype.texi: Mention the new module.
44842
44843 2009-10-18  Jim Meyering  <meyering@redhat.com>
44844
44845         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44846         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44847         right after its initialization, rather than farther down.
44848         Keeping these in close proximity makes it easier to ensure
44849         that each such variable is initialized.  E.g.,
44850
44851             LIB_CLOCK_GETTIME=
44852             AC_SUBST([LIB_CLOCK_GETTIME])
44853
44854         This change also increments these serial numbers.
44855         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44856         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44858
44859 2009-10-18  Bruno Haible  <bruno@clisp.org>
44860
44861         Don't let environment variables perturb build.
44862         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44863         (gl_PREREQ_GETHRXTIME): ... not here.
44864
44865 2009-10-18  Bruno Haible  <bruno@clisp.org>
44866
44867         Avoid symlink attack in localcharset module.
44868         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44869         (O_NOFOLLOW): Define fallback.
44870         (get_charset_aliases): Don't open the file if it is a symbolic link.
44871         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44872         gl_FCNTL_H.
44873         (gl_FCNTL_H): Require it.
44874         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44875         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44876         Reported by Fergal Glynn <fglynn@veracode.com>.
44877
44878 2009-10-18  Bruno Haible  <bruno@clisp.org>
44879
44880         Implement nproc for mingw.
44881         * lib/nproc.c: Include <windows.h>
44882         (num_processors): On native Windows platforms, try GetSystemInfo.
44883
44884 2009-10-18  Bruno Haible  <bruno@clisp.org>
44885
44886         Implement nproc for IRIX.
44887         * lib/nproc.c: Include <sys/sysmp.h>.
44888         (num_processors): On IRIX systems, try sysmp.
44889         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44890
44891 2009-10-18  Bruno Haible  <bruno@clisp.org>
44892
44893         Implement nproc for HP-UX.
44894         * lib/nproc.c: Include <sys/pstat.h>
44895         (num_processors): On HP-UX systems, try pstat_getdynamic.
44896         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44897         pstat_getdynamic.
44898
44899 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44900             Bruno Haible  <bruno@clisp.org>
44901
44902         Implement nproc for NetBSD, OpenBSD.
44903         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44904         (ARRAY_SIZE): New macro.
44905         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44906         * m4/nproc.m4: New file.
44907         * modules/nproc (Files): Add m4/nproc.m4.
44908         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44909         (Makefile.am): Instead, augment lib_SOURCES.
44910
44911 2009-10-18  Bruno Haible  <bruno@clisp.org>
44912
44913         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44914         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44915         sys/param.h.
44916
44917 2009-10-16  Eric Blake  <ebb9@byu.net>
44918
44919         utimensat: new module
44920         * modules/utimensat: New file.
44921         * lib/utimensat.c (utimensat): Likewise.
44922         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44923         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44924         so we can work around Linux bugs.
44925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44926         * modules/sys_stat (Makefile.am): Substitute them.
44927         * lib/sys_stat.in.h (utimensat): Declare it.
44928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44929         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44930         * modules/utimensat-tests: New test.
44931         * tests/test-utimensat.c: Likewise.
44932
44933         utimens: let lutimens work on non-symlinks
44934         * lib/utimens.c (lutimens): Fall back to utimens rather than
44935         failing with ENOSYS, when file is not a symlink.
44936         (utimens): Reduce redirection.
44937         * tests/test-lutimens.h (test_lutimens): Update test to cover
44938         non-symlinks.
44939         * tests/test-utimens.h (test_utimens): Update test to cover
44940         symlinks.
44941         * tests/test-utimens.c (main): Update caller.
44942
44943         utimens: cache whether utimensat syscall works
44944         * lib/utimens.c (utimensat_works_really): New cache variable.
44945         (fdutimens, lutimens): Use it to avoid failing syscall.
44946
44947         test-stat-time, test-utimens: improve portability
44948         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44949         ext4 on alpha, and for cygwin.
44950         * tests/test-utimens-common.h: New file.
44951         (nap): Factor delays into single function.
44952         * tests/test-lutimens.h (test_lutimens): Use new header.
44953         * tests/test-futimens.h (test_futimens): Likewise.
44954         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44955         timestamps to occur from same machine, as was done previously for
44956         test_utimens.
44957         * modules/utimens-tests (Files): Ship new file.
44958         * modules/futimens-tests (Files): Likewise.
44959         Reported in part by Jim Meyering.
44960
44961         sys_stat: sort replacement declarations
44962         * lib/sys_stat.in.h: Sort declarations.
44963         * lib/futimens.c (futimens): Fix typo.
44964
44965 2009-10-15  Jim Meyering  <meyering@redhat.com>
44966
44967         don't let environment settings perturb build
44968         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44969         could cause a configure-time and/or build-time malfunction.
44970         Typically, a configure-time function-in-library test is performed
44971         via code like this:
44972
44973           LIB_VAR=
44974           AC_SUBST([LIB_VAR])
44975           prefix_saved_LIBS=$LIBS
44976             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44977                        [test "$ac_cv_search_FUNC" = "none required" ||
44978                         LIB_VAR=$ac_cv_search_FUNC])
44979           LIBS=$prefix_saved_LIBS
44980
44981         However, in each of the files affected by this change, the LIB_VAR=
44982         initialization was omitted.  Thus, when set in the environment, its
44983         value would propagate into generated Makefiles when FUNC is not found
44984         in LIB_NAME.
44985         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44986         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44988
44989 2009-10-14  Eric Blake  <ebb9@byu.net>
44990
44991         fchdir: avoid infinite recursion in mingw
44992         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44993         recursing.
44994
44995         test-stat-time: port to mingw
44996         * tests/test-stat-time.c (force_unlink): Return a value.
44997         (test_ctime) [W32]: Fix compilation error.
44998         (nap): Don't call usleep with too large an argument.  Use
44999         force_unlink.
45000         * doc/pastposix-functions/usleep.texi (usleep): Document the
45001         portability issue.
45002
45003 2009-10-13  Jim Meyering  <meyering@redhat.com>
45004
45005         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45006         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45007         * modules/pipe-filter-ii: Likewise.
45008         * modules/sys_socket-tests: Likewise.
45009         * modules/tsearch-tests: Likewise.
45010         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45011         (check): Depend on it.
45012
45013 2009-10-12  Eric Blake  <ebb9@byu.net>
45014
45015         utimens-tests: port to NFS file systems
45016         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45017         comparisons to avoid spurious failures from timestamp drift
45018         between NFS machines.
45019
45020 2009-10-12  Eric Blake  <ebb9@byu.net>
45021
45022         stat-time-tests: minor cleanups
45023         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45024         * tests/test-stat-time.c (nap): Separate assignment from call.
45025         Suggested by Paolo Bonzini and Bruno Haible.
45026
45027         sys_stat: guarantee struct timespec
45028         * lib/sys_stat.in.h (includes): Always include <time.h>
45029         * modules/sys_stat (Depends-on): Add time.
45030         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45031         mode_t permission values.
45032         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45033         get at subsecond timestamps.
45034
45035 2009-10-10  Eric Blake  <ebb9@byu.net>
45036
45037         futimens: new module
45038         * modules/futimens: New file.
45039         * lib/futimens.c (futimens): Likewise.
45040         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45041         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45042         we can work around Linux bugs.
45043         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45044         * modules/sys_stat (Makefile.am): Substitute them.
45045         * lib/sys_stat.in.h (futimens): Declare it.
45046         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45047         * doc/posix-functions/futimens.texi (futimens): Likewise.
45048         * modules/futimens-tests: New test.
45049         * tests/test-futimens.c: Likewise.
45050
45051         utimens: introduce fdutimens
45052         * lib/utimens.h (fdutimens): New prototype.
45053         * lib/utimens.c (gl_futimens): Move guts...
45054         (fdutimens): ...to new interface.
45055         * tests/test-utimens.c (do_fdutimens): Use it.
45056
45057         utimens: add UTIME_NOW and UTIME_OMIT support
45058         * lib/utimens.c (validate_timespec, update_timespec): New helper
45059         functions.
45060         (gl_futimens, lutimens): Use them.
45061         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45062         stdbool, sys_stat.
45063         (Link): Mention resulting library dependency.
45064         * modules/utimecmp (Link): Likewise.
45065         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45066         (Makefile.am): Pick up library dependency.
45067         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45068         definition.
45069         * tests/test-sys_stat.c: Test the definitions.
45070         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45071         * NEWS: Document library dependency.
45072
45073         utimecmp: support symlink timestamps
45074         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45075         hashing when possible.  Use pathconf when available.
45076         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45077         * modules/utimecmp (Depends-on): Add lstat.
45078
45079         utimens: add lutimens interface
45080         * lib/utimens.c (lutimens): New function.
45081         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45082         * lib/utimens.h (lutimens): Declare new interface.
45083         * tests/test-utimens.c (main): Enhance test.
45084         * tests/test-lutimens.h (test_lutimens): New file.
45085         * modules/utimens-tests (Files): Distribute it.
45086         (Depends-on): Add symlink.
45087         (configure.ac): Check for usleep.
45088
45089         utimens: validate futimens usage
45090         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45091         fewer syscalls on failure later on.  Avoid compiler warning on
45092         mingw.
45093         * modules/utimens (Depends-on): Add dup2.
45094
45095         utimens: add test
45096         * modules/utimens-tests: New test.
45097         * tests/test-utimens.h: New file.
45098         * tests/test-futimens.h: Likewise.
45099         * tests/test-utimens.c: Likewise.
45100
45101         doc: mention timestamp portability issues
45102         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45103         instead.
45104         * doc/posix-functions/utime.texi (utime): Likewise.
45105         * doc/posix-functions/utimes.texi (utimes): Likewise.
45106         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45107         instead.
45108         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45109         module.
45110         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45111         Mention weakness with symlink timestamps.
45112         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45113         to utimensat/futimens instead.
45114         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45115
45116         test-dup2: enhance test
45117         * tests/test-dup2.c (main): Also check AT_FDCWD.
45118
45119         test-stat-time: avoid more spurious failures
45120         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45121         xfs; and avoid race if the two timestamps cross quantization edge.
45122
45123         relocatable: prefer 'file system' over 'filesystem'
45124         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45125         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45126         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45127         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45128         * lib/relocatable.c (compute_curr_prefix): Likewise.
45129
45130 2009-10-10  Jim Meyering  <meyering@redhat.com>
45131
45132         stat-time-tests: check for the usleep function
45133         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45134
45135 2009-10-10  Bruno Haible  <bruno@clisp.org>
45136
45137         * modules/xnanosleep: Put the Link section after the Include section.
45138
45139 2009-10-09  Eric Blake  <ebb9@byu.net>
45140
45141         dup2: work around FreeBSD 6.1 bug
45142         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45143         * doc/posix-functions/dup2.texi (dup2): Document it.
45144         Reported by Nelson H. F. Beebe and Jim Meyering.
45145
45146         test-stat-time: port to buggy NFS clients
45147         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45148         (test_ctime): Also skip test if mtime and ctime are skewed.
45149
45150         maint: prefer 'file system' over 'filesystem'
45151         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45152         * doc/posix-functions/lstat.texi (lstat): Likewise.
45153         * lib/file-has-acl.c (file_has_acl): Likewise.
45154         * lib/fwriteerror.c [TEST]: Likewise.
45155         * tests/test-areadlink.h (test_areadlink): Likewise.
45156         * tests/test-areadlinkat-with-size.c (main): Likewise.
45157         * tests/test-areadlinkat.c (main): Likewise.
45158         * tests/test-canonicalize-lgpl.c (main): Likewise.
45159         * tests/test-canonicalize.c (main): Likewise.
45160         * tests/test-fstatat.c (main): Likewise.
45161         * tests/test-linkat.c (main): Likewise.
45162         * tests/test-lstat.h (test_lstat_func): Likewise.
45163         * tests/test-mkdir.h (test_mkdir): Likewise.
45164         * tests/test-readlink.h (test_readlink): Likewise.
45165         * tests/test-remove.c (main): Likewise.
45166         * tests/test-rename.h (test_rename): Likewise.
45167         * tests/test-renameat.c (main): Likewise.
45168         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45169         * tests/test-symlink.h (test_symlink): Likewise.
45170         * tests/test-symlinkat.c (main): Likewise.
45171         * tests/test-unlink.h (test_unlink_func): Likewise.
45172         * tests/test-unlinkat.c (main): Likewise.
45173
45174         maint: make realtime library usage explicit
45175         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45176         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45177         * modules/settime (Link): Likewise.
45178         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45179
45180         test-stat-time: speed up execution
45181         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45182         warning on mingw.
45183         (nap): New helper function.
45184         (prepare_test): Use it to reduce sleep time.
45185         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45186         execution.
45187         * modules/stat-time-tests (configure.ac): Check for usleep.
45188
45189 2009-10-09  Jim Meyering  <meyering@redhat.com>
45190
45191         selinux-h: always use getfilecon wrappers
45192         * lib/getfilecon.c: New file.
45193         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45194         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45195         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45196         (fgetfilecon): Provide a stub.
45197         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45198         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45199         file unconditionally.
45200         When <selinux/selinux.h> is found, arrange to use wrappers.
45201         * modules/selinux-h (Files): Add getfilecon.c.
45202         (Makefile.am): Substitute include-next-related bits
45203         into the now-always-generated selinux/selinux.h file.
45204         * doc/glibc-functions/lgetfilecon.texi: New file.
45205         * doc/glibc-functions/fgetfilecon.texi: New file.
45206         * doc/glibc-functions/getfilecon.texi: New file.
45207         * doc/glibc-functions/getfilecon-desc.texi: New file.
45208         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45209         which to pull in the new files.
45210         * MODULES.html.sh (Misc): Add selinux-h.
45211
45212 2009-10-08  Jim Meyering  <meyering@redhat.com>
45213
45214         unistd: fix comment typo
45215         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45216
45217 2009-10-08  Eric Blake  <ebb9@byu.net>
45218
45219         areadlink: use SIZE_MAX consistently
45220         * modules/areadlink (Depends-on): Add stdint.
45221         * modules/areadlink-with-size (Depends-on): Likewise.
45222         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45223         gives NULL; drop sys/types, since unistd gives size_t; and add
45224         stdint for SIZE_MAX.
45225         (SIZE_MAX): Rely on headers.
45226         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45227         and add stdint.
45228         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45229         (SIZE_MAX): Likewise.
45230         (INITIAL_BUF_SIZE): Turn into enum.
45231         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45232
45233 2009-10-08  Jim Meyering  <meyering@redhat.com>
45234
45235         areadlinkat: avoid compilation failure
45236         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45237         Fix typo in comment.
45238
45239 2009-10-07  Eric Blake  <ebb9@byu.net>
45240
45241         areadlinkat-with-size: new module
45242         * modules/areadlinkat-with-size: New module.
45243         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45244         * lib/areadlink.h (areadlinkat): Declare it.
45245         * MODULES.html.sh (File system functions): Mention it.
45246         * modules/areadlinkat-with-size-tests: New test.
45247         * tests/test-areadlinkat-with-size.c: New file.
45248
45249         xreadlinkat: new module
45250         * modules/xreadlinkat: New module.
45251         * lib/xreadlinkat.c (xreadlinkat): New file.
45252         * lib/xreadlink.h (xreadlinkat): Declare it.
45253         * MODULES.html.sh (File system functions): Mention it.
45254
45255         areadlinkat: new module
45256         * lib/at-func.c (FUNC_FAIL): New define.
45257         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45258         * modules/areadlinkat: New module.
45259         * lib/linkat.c (areadlinkat): Move...
45260         * lib/areadlinkat.c (areadlinkat): ...to new file.
45261         * lib/areadlink.h (areadlinkat): Declare it.
45262         * modules/linkat (Depends-on): Add areadlinkat.
45263         * MODULES.html.sh (File system functions): Mention it.
45264         * modules/areadlinkat-tests: New test.
45265         * tests/test-areadlinkat.c: New file.
45266
45267         areadlink, areadlink-with-size: add tests
45268         * modules/areadlink-tests: New test.
45269         * modules/areadlink-with-size-tests: Likewise.
45270         * tests/test-areadlink.h: New file.
45271         * tests/test-areadlink.c: Likewise.
45272         * tests/test-areadlink-with-size.c: Likewise.
45273
45274         maint: minor cleanups
45275         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45276         _UNUSED_PARAMETER_ instead.
45277         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45278         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45279         * modules/linkat-tests (Files): Distribute test-link.h.
45280
45281         openat, utimens: whitespace cleanup
45282         * lib/openat.c: Prefer space throughout, rather than mix of 8
45283         spaces vs. tabs.
45284         * lib/at-func.c: Likewise.
45285         * lib/utimens.c: Likewise.
45286
45287         openat: avoid using wrong fd
45288         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45289         working directory chooses same fd.
45290         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45291
45292         mkdir, mkdirat: fix cygwin 1.5.x bug
45293         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45295         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45296         bug.
45297         (gl_PREREQ_MKDIR): Delete unused macro.
45298         * modules/mkdir (Files): Track file rename.
45299         (configure.ac): Update macro name.
45300         * modules/openat (Depends-on): Add mkdir.
45301         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45302
45303         mkdir, mkdirat: add tests
45304         * modules/mkdir-tests: New test.
45305         * tests/test-mkdir.h: New file.
45306         * tests/test-mkdir.c: Likewise.
45307         * tests/test-mkdirat.c: Likewise.
45308         * modules/openat-tests (Files): Add new files.
45309         (Makefile.am): Run new test.
45310
45311 2009-10-06  Eric Blake  <ebb9@byu.net>
45312
45313         doc: tweak *at function documentation
45314         * doc/posix-functions/faccessat.texi (faccessat): Mention
45315         known issue with replacement.
45316         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45317         * doc/posix-functions/linkat.texi (linkat): Likewise.
45318         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45319         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45320         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45321         * doc/posix-functions/renameat.texi (renameat): Likewise.
45322         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45323
45324         openat: fix GNU/Hurd bug in unlinkat
45325         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45326         broken.
45327         * doc/posix-functions/unlink.texi (unlink): Document this.
45328         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45329
45330         fdopendir: fix GNU/Hurd bug
45331         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45332         allowing non-directory fds.
45333         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45335         * modules/dirent (Makefile.am): Substitute it.
45336         * lib/dirent.in.h (fdopendir): Declare replacement.
45337         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45338         * tests/test-fdopendir.c (main): Test something other than
45339         /dev/null, since on Hurd that behaves like a directory.
45340
45341         test-symlink: port to GNU/Hurd
45342         * tests/test-symlink.h (test_symlink): Relax expected errno.
45343
45344         doc: tweak more cygwin information
45345         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45346         now compatible with glibc.
45347         * doc/posix-functions/getopt.texi (getopt): Likewise.
45348
45349         getopt-gnu: add another test
45350         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45351         guarantee behavior relied on by m4.
45352         * tests/test-getopt.c (main): Use it.
45353         * modules/getopt-posix-tests (Depends-on): Add setenv.
45354         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45355
45356         getopt: fix compilation on darwin
45357         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45358         include.
45359         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45360         Reported by Ludovic Courtès.
45361
45362 2009-10-06  Bruno Haible  <bruno@clisp.org>
45363
45364         * modules/size_max (Description): Discourage its use.
45365         Reported by Simon Josefsson.
45366
45367 2009-10-06  Jim Meyering  <meyering@redhat.com>
45368
45369         linkat: avoid compilation failure
45370         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45371
45372 2009-10-05  Eric Blake  <ebb9@byu.net>
45373
45374         linkat: support Linux 2.6.17
45375         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45376         linkat on Linux, but allow cache variable override.
45377         * lib/linkat.c (rpl_linkat): Define override.
45378         * modules/linkat (Depends-on): Add symlinkat.
45379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45380         * modules/unistd (Makefile.am): Substitute it.
45381         * lib/unistd.in.h (linkat): Declare replacement.
45382         Reported by Pádraig Brady.
45383
45384         quotearg: port test to systems with C.UTF-8 locale
45385         * tests/test-quotearg.c (struct result_strings): Add another
45386         member, differentiating between C.ASCII and C.UTF-8 handling.
45387         (compare_strings): Add parameter.
45388         (main): Adjust all callers.
45389
45390         getopt: avoid clash with FreeBSD _getopt_internal
45391         * lib/getopt.in.h (_getopt_internal): Override the name.
45392         * lib/getopt_int.h (includes): Pick up any overrides.
45393         Reported by Reuben Thomas.
45394
45395         hash: allow C89 compilation
45396         * lib/hash.c (check_tuning): Move declaration before statement.
45397         Reported by Reuben Thomas.
45398
45399 2009-10-05  Karl Berry  <karl@gnu.org>
45400
45401         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45402
45403 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45404             Bruno Haible  <bruno@clisp.org>
45405
45406         * lib/uname.c (uname): Use a table-driven algorithm to compute
45407         Windows NT versions.
45408
45409 2009-10-04  Bruno Haible  <bruno@clisp.org>
45410
45411         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45412         program_invocation_short_name.
45413         * modules/progname (configure.ac): Test for presence of
45414         program_invocation_short_name.
45415         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45416
45417 2009-10-04  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/progname.c (set_program_name): Fix comment.
45420         Reported by Jim Meyering.
45421
45422 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45423             Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/uname.c: Include <string.h>.
45426         (uname): Do only one call to GetVersionEx in the common case.
45427
45428 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45429             Bruno Haible  <bruno@clisp.org>
45430
45431         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45432         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45433         (uname): Add support for Windows CE and various non-x86 CPU types.
45434
45435 2009-10-03  Bruno Haible  <bruno@clisp.org>
45436
45437         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45438         invocation to tests/configure.ac.
45439         Reported by Ian Beckwith <ianb@erislabs.net>.
45440
45441 2009-10-02  Eric Blake  <ebb9@byu.net>
45442
45443         fchdir: avoid compiler warning
45444         * lib/fchdir.c (canonicalize_file_name)
45445         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45446
45447         test-open: support mingw errno values
45448         * tests/test-open.h (test_open): Relax test.
45449         * tests/test-fopen.h (test_fopen): Likewise.
45450         * tests/test-openat-safer.c (main): Likewise.
45451
45452         open: fix opening directory on mingw
45453         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45454
45455         test-open: on GNU/Hurd, /dev/null is a directory
45456         * tests/test-fopen.h (main): Rename...
45457         (test_fopen): ...to this.  Use a guaranteed non-directory when
45458         confirming open behavior on trailing slash.
45459         * tests/test-openat-safer.c (main): Likewise.
45460         * tests/test-open.h (main): Likewise....
45461         (test_open): ...to this.
45462         * tests/test-fopen.c (main): Adjust caller.
45463         * tests/test-fopen-safer.c (main): Likewise.
45464         * tests/test-open.c (main): Likewise.
45465         * tests/test-fcntl-safer.c (main): Likewise.
45466         Reported by Samuel Thibault.
45467
45468         rename, fchdir: don't ignore chdir failure
45469         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45470         * lib/rename.c (rpl_rename) [W32]: Likewise.
45471         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45472         an empty destination directory if source cannot be renamed,
45473         although there is still possibility for failure.
45474         * doc/posix-functions/rename.texi (rename): Document the race.
45475         Reported by Jim Meyering.
45476
45477         maint: cleanup whitespace in recent commits
45478         * lib/rename.c (rpl_rename): Remove tabs.
45479         * tests/test-link.h (test_link): Likewise.
45480         * lib/fchdir.c (get_name): Likewise.
45481         Reported by Jim Meyering.
45482
45483 2009-10-02  Ben Pfaff  <blp@gnu.org>
45484
45485         relocatable-prog-wrapper: Add missing dependency on
45486         double-slash-root.
45487         * modules/relocatable-prog-wrapper: Add dependency.
45488         Reported by Ian Beckwith <ianb@erislabs.net>.
45489
45490 2009-10-02  Eric Blake  <ebb9@byu.net>
45491
45492         renameat: fix Solaris bugs
45493         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45494         needed fixing.
45495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45496         * modules/stdio (Makefile.am): Substitute it.
45497         * lib/stdio.in.h (renameat): Declare replacement.
45498         * lib/renameat.c (rpl_renameat): Implement fix.
45499
45500         renameat: new module
45501         * modules/renameat: New file.
45502         * lib/renameat.c (renameat): Likewise.
45503         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45505         * modules/stdio (Makefile.am): Substitute them.
45506         * lib/stdio.in.h (renameat): Declare it.
45507         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45508         * doc/posix-functions/renameat.texi (renameat): Likewise.
45509         * modules/renameat-tests: New test.
45510         * tests/test-renameat.c: Likewise.
45511
45512         rename: fix mingw bugs
45513         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45514         directory overwrite bugs.
45515
45516         rename: fix another cygwin 1.5 bug
45517         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45518         checks.
45519         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45520         unnecessary cygwin workarounds.  Also work around bug with moving
45521         full directory onto an empty one.
45522         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45523
45524         rename-dest-slash: merge into rename module
45525         * modules/rename-dest-slash (Status): Mark obsolete.
45526         (Depends-on): Add rename.
45527         (Files): Let rename do it all.
45528         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45529         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45530         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45531         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45532         * lib/rename.c (rpl_rename): Update comments.
45533
45534         rename: fix cygwin 1.5.x bugs
45535         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45536         * lib/rename.c (rpl_rename): Work around them.
45537         * modules/rename (Depends-on): Add same-inode.
45538
45539         rename: fix Solaris 10 bug
45540         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45541         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45542         was the only bug.
45543
45544         rename: fix Solaris 9 bug
45545         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45546         on non-directory.  Avoid calling exit.
45547         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45548         strdup.
45549         * modules/rename-tests (Depends-on): Drop lstat.
45550         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45551         (gl_PREREQ_RENAME): Delete unused macro.
45552
45553         rename-dest-slash: fix NetBSD bug
45554         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45555         links.
45556         * modules/rename-dest-slash (Depends-on): Add same-inode.
45557
45558         rename-tests: new test, exposes several platform bugs
45559         * modules/rename-tests: New file.
45560         * tests/test-rename.h: Likewise.
45561         * tests/test-rename.c: Likewise.
45562         * doc/posix-functions/rename.texi (rename): Improve documentation,
45563         including bugs that will eventually be fixed in gnulib.
45564
45565 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45566
45567         * lib/uname.c: Include <stdlib.h>
45568         (uname): Assume version info is available.
45569
45570 2009-10-02  Jim Meyering  <meyering@redhat.com>
45571
45572         gnu-web-doc-update: correct --help output
45573         * build-aux/gnu-web-doc-update: Make --help output relevant.
45574
45575         gnu-web-doc-update: add standard options
45576         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45577
45578         gnu-web-doc-update: New module.
45579         Use this script to automatically update the on-line web documentation
45580         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45581         * modules/gnu-web-doc-update: New file, from coreutils.
45582         * build-aux/gnu-web-doc-update: New script.
45583
45584 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45585
45586         link: LoadLibrary is not needed.
45587         * lib/link.c: Use GetModuleHandle.
45588
45589 2009-10-01  Eric Blake  <ebb9@byu.net>
45590
45591         getopt: bump serial number
45592         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45593         change.
45594
45595         tests: tighten link, rmdir, and remove tests
45596         * tests/test-link.h (includes): No need to use <config.h> here.
45597         Clean up if directory hard link was created, otherwise test for
45598         trailing '.'.
45599         * tests/test-linkat.c (main): Simplify.
45600         * tests/test-remove.c (main): Enhance test for trailing '.'.
45601         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45602
45603 2009-10-01  Jim Meyering  <meyering@redhat.com>
45604
45605         maint.mk: requiring "make major" was annoying, for a "minor" release.
45606         What is intended is "stable", to contrast with alpha and beta,
45607         so require "make stable", not "make major".
45608         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45609         (get_tool_versions): Likewise.
45610         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45611
45612 2009-09-30  Ben Pfaff  <blp@gnu.org>
45613
45614         Fix broken build of replacement for Windows tmpfile().
45615         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45616         flags argument added along with the 'mkostemp' module.
45617
45618 2009-09-28  Bruno Haible  <bruno@clisp.org>
45619
45620         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45621         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45622         to 'remove_elt'.
45623         (gl_list_remove): Update.
45624         * lib/gl_list.c (gl_list_remove): Update.
45625         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45626         to 'remove_elt'.
45627         (gl_oset_remove): Update.
45628         * lib/gl_list.c (gl_oset_remove): Update.
45629         Reported by Eric Blake.
45630
45631 2009-09-28  Eric Blake  <ebb9@byu.net>
45632
45633         doc: mention yet more cygwin 1.7 status
45634         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45635         cygwin.
45636         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45637         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45638
45639         argp: fix test failure
45640         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45641         that are not upper-case.  Pass correct range to tolower.
45642
45643 2009-09-27  Jim Meyering  <meyering@redhat.com>
45644
45645         test-yesno: work around sparc-dash here-document infelicity
45646         Without this change, the literal \177 byte in a here document
45647         would make dash 0.5.5.1-3 access uninitialized memory.
45648         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45649         Instead, use a marker, "@", and filter through tr to create the desired
45650         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45651
45652 2009-09-27  Bruno Haible  <bruno@clisp.org>
45653
45654         Disable untested support for new flavours of ACLs on AIX.
45655         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45656         progress.
45657         * lib/set-mode-acl.c (qset_acl): Likewise.
45658
45659 2008-12-07  Bruno Haible  <bruno@clisp.org>
45660
45661         Add support for new flavours of ACLs on AIX. (Untested.)
45662         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45663         (file_has_acl): Add support for newer AIX.
45664         * lib/set-mode-acl.c (qset_acl): Likewise.
45665         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45666         Rainer Tammer <tammer@tammer.net>.
45667
45668 2009-09-26  Eric Blake  <ebb9@byu.net>
45669
45670         argp: fix compilation of getopt
45671         * lib/getopt.in.h (includes): Use different guard than glibc.
45672         Reported by Sergey Poznyakoff.
45673
45674         doc: mention more cygwin 1.7 status
45675         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45676         bug.
45677         * doc/posix-functions/execl.texi (execl): Likewise.
45678         * doc/posix-functions/execle.texi (execle): Likewise.
45679         * doc/posix-functions/execlp.texi (execlp): Likewise.
45680         * doc/posix-functions/execv.texi (execv): Likewise.
45681         * doc/posix-functions/execve.texi (execve): Likewise.
45682         * doc/posix-functions/execvp.texi (execvp): Likewise.
45683         * doc/glibc-functions/canonicalize_file_name.texi
45684         (canonicalize_file_name): Cygwin 1.7 now provides this.
45685         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45686         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45687         on AT_SYMLINK_NOFOLLOW.
45688
45689 2009-09-24  Eric Blake  <ebb9@byu.net>
45690
45691         test-linkat: make test more robust
45692         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45693
45694         getopt: fix inclusion guards for cygwin
45695         * modules/getopt-posix (Depends-on): Add include-next.
45696         (Makefile.am): Substitute more items in replacement header.
45697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45698         <getopt.h>.
45699         * lib/getopt.in.h (includes): Use split inclusion guard, and
45700         prefer <getopt.h> over include <unistd.h> when one is present.
45701         (option): Also override name of 'struct option'.
45702
45703         same-inode: revert prior change; it is not yet ready
45704         * NEWS: Undo mention of this change.
45705         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45706         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45707         * lib/cycle-check.c (cycle_check): Likewise.
45708         * lib/same.c (same_name): Likewise.
45709         * lib/at-func2.c (at_func2): Likewise.
45710
45711 2009-09-23  Eric Blake  <ebb9@byu.net>
45712
45713         linkat: new module
45714         * modules/linkat: New file.
45715         * lib/at-func2.c (at_func2): Likewise.
45716         * lib/linkat.c (linkat): Likewise.
45717         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45718         * lib/openat-priv.h (at_func2): Add declaration.
45719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45720         * modules/unistd (Makefile.am): Substitute them.
45721         * lib/unistd.in.h (linkat): Declare it.
45722         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45723         * doc/posix-functions/linkat.texi (linkat): Likewise.
45724         * doc/posix-functions/link.texi (link): Tweak wording.
45725         * tests/test-link.c (main): Move guts...
45726         * tests/test-link.h (test_link): ...into new file.
45727         * modules/linkat-tests: New test.
45728         * tests/test-linkat.c: Likewise.
45729         * modules/link-tests (Files): Ship new file.
45730         (Depends-on): Add stdbool.
45731
45732         dirname: add library-safe mdir_name
45733         * lib/dirname.h (mdir_name): New prototype.
45734         * lib/dirname.c (dir_name): Move guts...
45735         (mdir_name): ...to new function that avoids xalloc_die.
45736
45737         fchdir: another mingw fix
45738         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45739         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45740         on mingw (where it has not yet been ported), and make it optional
45741         elsewhere.
45742         (_gl_register_fd): Use it.
45743
45744         same-inode: make SAME_INODE tri-state, to port to mingw
45745         * NEWS: Mention this change.
45746         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45747         st_ino always being 0.
45748         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45749         * lib/cycle-check.c (cycle_check): Likewise.
45750         * lib/same.c (same_name): Likewise.
45751
45752         lstat: avoid mingw compilation error
45753         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45755         lstat ourselves.
45756         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45757         was adequate.
45758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45759         the checks for lstat.
45760         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45761
45762         link: fix test failure on Solaris 9
45763         * lib/link.c (rpl_link): Don't assume link will catch bogus
45764         trailing slash on source.
45765
45766         test-symlinkat: enhance test
45767         * tests/test-readlink.c (main): Move guts...
45768         * tests/test-readlink.h (test_readlink): ...into new file.
45769         * tests/test-symlink.c (main): Move guts...
45770         * tests/test-symlink.h (test_symlink): ...into new file.
45771         * tests/test-symlinkat.c (main): Use new files for further
45772         coverage.
45773         (do_symlink, do_readlink): New helper functions.
45774         * modules/symlink-tests (Files): Ship new file.
45775         (Depends-on): Add stdbool.
45776         * modules/readlink-tests (Files): Ship new file.
45777         (Depends-on): Add stdbool.
45778         * modules/symlinkat-tests (Files): Use new files.
45779
45780 2009-09-23  Eric Blake  <ebb9@byu.net>
45781
45782         readlink: document portability issue with symlink length
45783         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45784         systems have bogus st_size on symlinks, and mention the
45785         areadlink-with-size module.
45786         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45787         * doc/posix-functions/readlink.texi (readlink): Mention the
45788         areadlink module, and ERANGE failure.
45789         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45790         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45791
45792         readlink: fix Solaris 9 bug with trailing slash
45793         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45794         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45795         * doc/posix-functions/readlink.texi (readlink): Document this.
45796         * modules/readlink-tests: New test.
45797         * tests/test-readlink.c: Likewise.
45798
45799         readlink: fix cygwin 1.5.x bug with return type
45800         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45801         * lib/unistd.in.h (readlink): Use ssize_t.
45802         * lib/readlink.c (readlink): Likewise.
45803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45804         * modules/unistd (Makefile.am): Substitute it.
45805         * lib/unistd.in.h (readlink): Declare replacement.
45806         * doc/posix-functions/readlink.texi (readlink): Document this.
45807
45808         symlink: use throughout gnulib
45809         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45810         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45811         symlink is not used.
45812         * modules/symlinkat (Depends-on): Add symlink.
45813         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45814         * modules/canonicalize-tests (Depends-on): Likewise.
45815         * modules/lstat-tests (Depends-on): Likewise.
45816         * modules/openat-tests (Depends-on): Likewise.
45817         * modules/remove-tests (Depends-on): Likewise.
45818         * modules/rmdir-tests (Depends-on): Likewise.
45819         * modules/unlink-tests (Depends-on): Likewise.
45820         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45821         * tests/test-canonicalize.c (symlink): Likewise.
45822         * tests/test-fstatat.c (symlink): Likewise.
45823         * tests/test-lstat.c (symlink): Likewise.
45824         * tests/test-remove.c (symlink): Likewise.
45825         * tests/test-rmdir.c (symlink): Likewise.
45826         * tests/test-unlink.c (symlink): Likewise.
45827         * tests/test-unlinkat.c (symlink): Likewise.
45828
45829         symlink: new module, for Solaris 9 bug
45830         * modules/symlink: New file.
45831         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45832         * lib/symlink.c: Likewise.
45833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45834         * modules/unistd (Makefile.am): Substitute them.
45835         * lib/unistd.in.h (symlink): Declare replacement.
45836         * MODULES.html.sh (File system functions): Mention it.
45837         * doc/posix-functions/symlink.texi (symlink): Likewise.
45838         * modules/symlink-tests: New test.
45839         * tests/test-symlink.c: Likewise.
45840
45841 2009-09-23  Bruno Haible  <bruno@clisp.org>
45842
45843         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45844         when needed.
45845         Test case: gnulib-tool --import --with-tests atexit inttypes.
45846         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45847
45848 2009-09-23  Bruno Haible  <bruno@clisp.org>
45849
45850         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45851         subcommand, not in a subshell.
45852
45853 2009-09-22  Eric Blake  <ebb9@byu.net>
45854
45855         unistd: sort replacement declarations
45856         * lib/unistd.in.h: Sort declarations.
45857
45858         open, openat: minor optimization
45859         * lib/open.c (open): If open succeeded, len is non-zero.
45860         * lib/openat.c (rpl_openat): Likewise.
45861
45862         link-follow: ensure correct result
45863         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45864         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45865         distinguish between possible failures.
45866
45867 2009-09-21  Eric Blake  <ebb9@byu.net>
45868
45869         fts: avoid compiler warning
45870         * lib/fts.c (dirent_inode_sort_may_be_useful)
45871         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45872
45873 2009-09-19  Bruno Haible  <bruno@clisp.org>
45874
45875         * lib/progreloc.c (canonicalize_file_name): New declaration.
45876
45877 2009-09-19  Eric Blake  <ebb9@byu.net>
45878
45879         link: fix quoting
45880         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45881
45882         openat: fix openat bugs on Solaris 9
45883         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45884         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45885         * modules/openat (Depends-on): Add open.
45886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45887         * modules/fcntl-h (Makefile.am): Substitute it.
45888         * lib/fcntl.in.h (openat): Declare replacement.
45889         * doc/posix-functions/openat.texi (openat): Document this.
45890
45891         openat: move fstatat and unlinkat into correct files
45892         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45893         compiled.
45894         * lib/openat.c (fstatat, unlinkat): Move...
45895         * lib/fstatat.c (fstatat): ...into correct files.
45896         * lib/unlinkat.c (unlinkat): Likewise.
45897
45898         openat: fix unlinkat bugs on Solaris 9
45899         * lib/unlinkat.c (unlinkat): New file.
45900         * modules/openat (Depends-on): Add unlink.
45901         (Files): Distribute it.
45902         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45903         trailing slash behavior is broken.
45904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45905         * modules/unistd (Makefile.am): Substitute it.
45906         * lib/unistd.in.h (unlinkat): Declare replacement.
45907         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45908
45909         openat: fix fstatat bugs on Solaris 9
45910         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45911         stat.
45912         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45913
45914         test-unlinkat: enhance test, to expose Solaris 9 bug
45915         * tests/test-unlink.c (main): Factor guts...
45916         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45917         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45918         * tests/test-rmdir.c (main): Adjust caller.
45919         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45920         (unlinker): New helper function.
45921         (rmdirat): Enhance check.
45922         * modules/rmdir-tests (Depends-on): Add stdbool.
45923         * modules/unlink-tests (Depends-on): Likewise.
45924         (Files): Add test-unlink.h.
45925         * modules/openat-tests (Files): Likewise.
45926         (Depends-on): Add unlinkdir.
45927
45928         test-fstatat: new test, to expose Solaris 9 bugs
45929         * tests/test-stat.c (main): Factor guts...
45930         * tests/test-stat.h (test_stat_func): ...into new file.
45931         * tests/test-lstat.c (main): Factor guts...
45932         * tests/test-lstat.h (test_lstat_func): ...into new file.
45933         * tests/test-fstatat.c: New file.
45934         * modules/stat-tests (Files): Add test-stat.h.
45935         * modules/lstat-tests (Files): Add test-lstat.h.
45936         (Depends-on): Add stdbool.
45937         * modules/openat-tests (Depends-on): Add pathmax.
45938         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45939         (Makefile.am): Run new test.
45940
45941         remove: new module, for mingw and Solaris 9 bugs
45942         * modules/remove: New file.
45943         * lib/remove.c: Likewise.
45944         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45946         * modules/stdio (Makefile.am): Use them.
45947         * lib/stdio.in.h (remove): Declare replacement.
45948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45949         * doc/posix-functions/remove.texi (remove): Likewise.
45950         * modules/remove-tests: New test.
45951         * tests/test-remove.c: Likewise.
45952
45953         unlink: new module, for Solaris 9 bug
45954         * modules/unlink: New file.
45955         * lib/unlink.c: Likewise.
45956         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45958         * modules/unistd (Makefile.am): Use them.
45959         * lib/unistd.in.h (stat): Declare replacement.
45960         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45961         * doc/posix-functions/unlink.texi (unlink): Likewise.
45962         * modules/unlink-tests: New test.
45963         * tests/test-unlink.c: Likewise.
45964
45965         lstat: fix Solaris 9 bug
45966         * lib/lstat.c (lstat): Also check for trailing slash on
45967         non-symlink, non-directories.  Use stat module to simplify logic.
45968         * doc/posix-functions/lstat.texi (lstat): Document it.
45969         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45970         (configure.ac): Check for symlink.
45971         * tests/test-lstat.c (main): Add more tests.
45972
45973         stat: add as dependency to other modules
45974         * modules/chown (Depends-on): Add stat.
45975         * modules/euidaccess (Depends-on): Likewise.
45976         * modules/fchdir (Depends-on): Likewise.
45977         * modules/isdir (Depends-on): Likewise.
45978         * modules/link (Depends-on): Likewise.
45979         * modules/lstat (Depends-on): Likewise.
45980         * modules/mkdir-p (Depends-on): Likewise.
45981         * modules/modechange (Depends-on): Likewise.
45982         * modules/open (Depends-on): Likewise.
45983         * modules/readlink (Depends-on): Likewise.
45984         * modules/same (Depends-on): Likewise.
45985
45986         stat: fix Solaris 9 bug
45987         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45988         slash.
45989         * lib/stat.c (rpl_stat): Work around it.
45990         * doc/posix-functions/stat.texi (stat): Update documentation.
45991
45992         stat: new module, for mingw bug
45993         * modules/stat: New file.
45994         * lib/stat.c: Likewise.
45995         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45997         * modules/sys_stat (Makefile.am): Use them.
45998         * lib/sys_stat.in.h (stat): Declare replacement.
45999         * lib/openat.c (fstatat): Deal with lstat and stat being function
46000         macros.
46001         * modules/openat (Depends-on): Add inline.
46002         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46003         * doc/posix-functions/stat.texi (stat): Likewise.
46004         * modules/stat-tests: New test.
46005         * tests/test-stat.c: Likewise.
46006
46007 2009-09-19  Jim Meyering  <meyering@redhat.com>
46008
46009         syntax-check: detect unnecessary inclusion of canonicalize.h
46010         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46011
46012 2009-09-19  Eric Blake  <ebb9@byu.net>
46013
46014         canonicalize-lgpl: adjust clients to use correct header
46015         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46016         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46017         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46018         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46019         * lib/progreloc.c (includes): Likewise.
46020
46021 2009-09-19  Jim Meyering  <meyering@redhat.com>
46022
46023         test-posixtm.c: correct a comment
46024         * tests/test-posixtm.c: Correct first-line comment.
46025         Spotted by Eric Blake.
46026
46027 2009-09-16  Jim Meyering  <meyering@redhat.com>
46028
46029         posixtm-tests: make T const-correct; add a test case
46030         * tests/test-posixtm.c (T): Declare const.
46031         Add a test for -(2^31+1).
46032         Remove useless can-succeed-only-in-2002 test.
46033
46034         posixtm-tests: adjust the sole failing test
46035         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46036         expected output matches what mktime now produces.  Cross-checked via
46037         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46038
46039         posixtm: move #ifdef'd tests into a new module
46040         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46041         * tests/test-posixtm.c: ... this new file.
46042         * modules/posixtm-tests: New module.
46043
46044 2009-09-19  Eric Blake  <ebb9@byu.net>
46045
46046         openat: simplify use of at-func.c
46047         * lib/at-func.c (includes): Include prerequisites here, to
46048         simplify requirements on client files.
46049         * lib/openat-priv.h: Add double-inclusion guard.
46050         * lib/faccessat.c (includes): Simplify.
46051         * lib/fchmodat.c (includes): Likewise.
46052         * lib/fchownat.c (includes): Likewise.
46053         * lib/mkdirat.c (includes): Likewise.
46054         * lib/mkfifoat.c (includes): Likewise.
46055         * lib/symlinkat.c (includes): Likewise.
46056
46057         openat: allow return of fd 0
46058         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46059         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46060         unistd-safer.
46061         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46062         <fcntl.h>; this module does not leak fds.
46063         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46064         must be allowed to return 0, leaving openat_safer to add the
46065         safety.
46066         (openat_permissive): Avoid writing to just-opened fd 2 if
46067         restoring the current directory fails.
46068         * lib/openat-die.c (openat_restore_fail): Add comment.
46069         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46070         (save_cwd): Guarantee safe fd, but without use of open_safer.
46071         * tests/test-openat.c: New test.
46072         * modules/openat-tests (Files, Makefile.am): Distribute and build
46073         new file.
46074
46075         relocatable-prog-wrapper: fix build
46076         * modules/relocatable-prog-wrapper (Files): Update name of
46077         canonicalize m4 file, broken on 2009-09-17.
46078         Reported by emad hajjar <aleppos@hotmail.com>.
46079
46080 2009-09-19  Bruno Haible  <bruno@clisp.org>
46081
46082         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46083         * lib/safe-alloc.c: Likewise.
46084         Reported by Ian Beckwith <ianb@erislabs.net>.
46085
46086 2009-09-18  Bruno Haible  <bruno@clisp.org>
46087
46088         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46089         Reported by <erobles@sensacd.com.mx>.
46090
46091 2009-09-17  Eric Blake  <ebb9@byu.net>
46092
46093         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46094         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46095         slashes when checking if last component is missing.
46096         * tests/test-canonicalize.c (main): Test this.
46097
46098         canonicalize, canonicalize-lgpl: honor // if distinct from /
46099         * modules/canonicalize (Files): Add double-slash-root.m4.
46100         * modules/canonicalize-lgpl (Files): Likewise.
46101         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46102         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46103         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46104         fallback definition.
46105         (canonicalize_filename_mode): Use it to protect //.
46106         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46107         (__realpath): Likewise.
46108         * tests/test-canonicalize.c (main): Test this.
46109         * tests/test-canonicalize-lgpl.c (main): Likewise.
46110         * modules/canonicalize-tests (Depends-on): Add same-inode.
46111         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46112
46113         canonicalize-lgpl: fix glibc bug with trailing slash
46114         * m4/canonicalize-lgpl.m4: Move contents...
46115         * m4/canonicalize.m4: ...here.
46116         (gl_CANONICALIZE_LGPL): Factor realpath check...
46117         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46118         glibc 2.3.5 bug, fixed 2005-04-27.
46119         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46120         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46121         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46122         * modules/canonicalize-lgpl (Files): Manage file rename.
46123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46124         * modules/stdlib (Makefile.am): Substitute witness.
46125         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46126         is needed.
46127         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46128         replacement is required.
46129         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46130         * doc/glibc-functions/canonicalize_file_name.texi
46131         (canonicalize_file_name): Document this.
46132         * doc/posix-functions/realpath.texi (realpath): Likewise.
46133
46134         canonicalize-lgpl: reject non-directory with trailing slash
46135         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46136         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46137         catches failures in glibc 2.3.5.
46138         * tests/test-canonicalize.c (main): Likewise.
46139
46140         canonicalize-lgpl: use native realpath if it works
46141         * lib/canonicalize-lgpl.c (realpath): Guard with
46142         FUNC_REALPATH_WORKS.
46143         * lib/stdlib.in.h (realpath): Make declaration optional based on
46144         HAVE_REALPATH.
46145         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46146         native realpath works.
46147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46148         * modules/stdlib (Makefile.am): Substitute witness.
46149
46150         canonicalize, canonicalize-lgpl: use <stdlib.h>
46151         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46152         (Include): Mention <stdlib.h>.
46153         (configure.ac): Mention functions we provide.
46154         * modules/canonicalize (configure.ac): Likewise.
46155         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46156         realpath if canonicalize_file_name is missing.
46157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46158         * modules/stdlib (Makefile.am): Substitute witnesses.
46159         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46160         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46161         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46162         * NEWS: Document this.
46163         * doc/glibc-functions/canonicalize_file_name.texi
46164         (canonicalize_file_name): Likewise.
46165         * doc/posix-functions/realpath.texi (realpath): Likewise.
46166         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46167
46168         test-canonicalize: consolidate into single C program
46169         * tests/test-canonicalize.sh: Delete; move setup into...
46170         * tests/test-canonicalize.c (main): ...the program, making it
46171         easier to run in debugger.  Add some tests.
46172         * modules/canonicalize-tests (Files): Remove unused file.
46173         (Depends-on): Add progname.
46174         (configure.ac, Makefile.am): Simplify.
46175
46176         test-canonicalize-lgpl: consolidate into single C program
46177         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46178         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46179         easier to run in debugger.  Add some tests.
46180         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46181         (configure.ac, Makefile.am): Simplify.
46182
46183         canonicalize: avoid resolvepath
46184         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46185         unnecessary checks.
46186         * lib/canonicalize.c (includes): Simplify.
46187         (canonicalize_file_name): Drop resolvepath implementation.
46188         * modules/canonicalize (Depends-on): Drop filenamecat.
46189
46190         canonicalize: don't lose errno
46191         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46192         over calls to free.
46193
46194         canonicalize: simplify errno handling
46195         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46196         assignment.
46197
46198         canonicalize, canonicalize-lgpl: update module dependencies
46199         * modules/canonicalize (Depends-on): Add extensions, lstat,
46200         pathmax, stdlib.
46201         (Files): Drop pathmax.h.
46202         (configure.ac): Adjust macro name.
46203         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46204         lstat, stdlib, sys_stat.
46205         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46206         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46207         extensions.
46208         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46209         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46210         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46211         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46212         declaration, if available.
46213         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46214         we can rely on the readlink module.
46215         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46216         (includes): Use <unistd.h> unconditionally.
46217
46218 2009-09-17  Eric Blake  <ebb9@byu.net>
46219
46220         maint: make Include sections of modules consistent
46221         * modules/alloca: Use only header name; no need to list #include.
46222         * modules/alloca-opt: Likewise.
46223         * modules/arpa_inet: Likewise.
46224         * modules/canon-host: Likewise.
46225         * modules/configmake: Likewise.
46226         * modules/dirent: Likewise.
46227         * modules/eealloc: Likewise.
46228         * modules/environ: Likewise.
46229         * modules/fchdir: Likewise.
46230         * modules/fcntl: Likewise.
46231         * modules/fcntl-h: Likewise.
46232         * modules/gethrxtime: Likewise.
46233         * modules/gettime: Likewise.
46234         * modules/ignore-value: Likewise.
46235         * modules/inet_ntop: Likewise.
46236         * modules/inet_pton: Likewise.
46237         * modules/inttypes: Likewise.
46238         * modules/isnand-nolibm: Likewise.
46239         * modules/isnanf-nolibm: Likewise.
46240         * modules/mbchar: Likewise.
46241         * modules/mbfile: Likewise.
46242         * modules/mbiter: Likewise.
46243         * modules/mbuiter: Likewise.
46244         * modules/netdb: Likewise.
46245         * modules/netinet_in: Likewise.
46246         * modules/nproc: Likewise.
46247         * modules/pagealign_alloc: Likewise.
46248         * modules/poll: Likewise.
46249         * modules/printf-frexp: Likewise.
46250         * modules/pthread: Likewise.
46251         * modules/putenv: Likewise.
46252         * modules/random_r: Likewise.
46253         * modules/relocatable-prog: Likewise.
46254         * modules/search: Likewise.
46255         * modules/select: Likewise.
46256         * modules/selinux-h: Likewise.
46257         * modules/settime: Likewise.
46258         * modules/signal: Likewise.
46259         * modules/size_max: Likewise.
46260         * modules/socklen: Likewise.
46261         * modules/ssize_t: Likewise.
46262         * modules/stdarg: Likewise.
46263         * modules/stdbool: Likewise.
46264         * modules/stddef: Likewise.
46265         * modules/stdint: Likewise.
46266         * modules/stdio: Likewise.
46267         * modules/stdlib: Likewise.
46268         * modules/string: Likewise.
46269         * modules/strings: Likewise.
46270         * modules/sys_file: Likewise.
46271         * modules/sys_ioctl: Likewise.
46272         * modules/sys_select: Likewise.
46273         * modules/sys_socket: Likewise.
46274         * modules/sys_stat: Likewise.
46275         * modules/sys_time: Likewise.
46276         * modules/sys_times: Likewise.
46277         * modules/sys_utsname: Likewise.
46278         * modules/sys_wait: Likewise.
46279         * modules/sysexits: Likewise.
46280         * modules/time: Likewise.
46281         * modules/times: Likewise.
46282         * modules/tmpfile: Likewise.
46283         * modules/trim: Likewise.
46284         * modules/unistd: Likewise.
46285         * modules/wchar: Likewise.
46286         * modules/wctype: Likewise.
46287
46288 2009-09-17  Bruno Haible  <bruno@clisp.org>
46289
46290         Make getdate.y compile on QNX and NetBSD 5 / i386.
46291         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46292         TIME_T_FITS_IN_LONG_INT.
46293         * lib/getdate.y (long_time_t): New type.
46294         (relative_time): Change type of 'seconds' field to long_time_t.
46295         (get_date): Update types of local variables. Check against overflow
46296         during conversion from long_time_t to time_t.
46297         Reported by Matt Kraai <kraai@ftbfs.org>
46298         and Hasso Tepper <hasso@netbsd.org>.
46299
46300 2009-09-17  Bruno Haible  <bruno@clisp.org>
46301
46302         * modules/COPYING: Update copyright years.
46303         * modules/README: Likeiwse.
46304         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46305         Reported by Ian Beckwith <ianb@erislabs.net>.
46306
46307 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46308
46309         * users.txt: Update references for gnuit package.
46310
46311 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46312
46313         * m4/getdelim.m4: Fix typo in copyright line.
46314
46315 2009-09-17  Bruno Haible  <bruno@clisp.org>
46316
46317         * lib/atoll.c: Use the standard header with GPL copyright.
46318         * lib/argz.in.h: Likewise.
46319         * lib/glob.c: Likewise.
46320         * lib/glob-libc.h: Likewise.
46321         * lib/random_r.c: Likewise.
46322         * lib/siglist.h: Likewise.
46323         * lib/strsignal.c: Likewise.
46324         Reported by Ian Beckwith <ianb@erislabs.net>.
46325
46326 2009-09-17  Eric Blake  <ebb9@byu.net>
46327
46328         rmdir: ensure correct dependency order
46329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46330
46331 2009-09-17  Bruno Haible  <bruno@clisp.org>
46332
46333         Disable assertion that fails on NetBSD 5 / i386.
46334         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46335         Reported by Sam Steingold <sds@gnu.org>
46336         and Hasso Tepper <hasso@netbsd.org>.
46337
46338 2009-09-16  Eric Blake  <ebb9@byu.net>
46339
46340         unlinkdir: port to mingw
46341         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46342         on which no one can unlink a directory.
46343
46344         stdlib: sort witness names
46345         * modules/stdlib (Makefile.am): Sort replacements.
46346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46347         * lib/stdlib.in.h: Likewise.
46348
46349         parse-duration-tests: avoid link failure
46350         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46351         LIBINTL.
46352         Reported by Tom G. Christensen.
46353
46354         openat-tests: ensure unlinkat behaves like rmdir
46355         * tests/test-rmdir.c (main): Factor guts...
46356         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46357         * modules/rmdir-tests (Files): Ship new file.
46358         * modules/openat-tests: New test.
46359         * tests/test-unlinkat.c: Likewise.
46360
46361         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46362         * modules/rmdir-errno (Status, Notice): Now obsolete.
46363
46364         rmdir: work around cygwin 1.5.x and mingw bugs
46365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46366         * lib/rmdir.c (rmdir): Work around it.
46367         * modules/rmdir (Status, Notice): No longer obsolete.
46368         (Files): Add dos.m4.
46369         (Depends-on): Add unistd.
46370         (configure.ac): Set witnesses.
46371         (License): Relax to LGPLv2+.
46372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46373         * modules/unistd (Makefile.am): Substitute witnesses.
46374         * lib/unistd.in.h (rmdir): Declare replacement.
46375         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46376         * modules/rmdir-tests: New tests.
46377         * tests/test-rmdir.c: Likewise.
46378
46379 2009-09-15  Eric Blake  <ebb9@byu.net>
46380
46381         fchdir: improve use of replacement functions
46382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46384         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46385         REPLACE_CLOSEDIR.
46386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46387         * modules/sys_stat (Makefile.am): Substitute correct witness.
46388         * modules/dirent (Makefile.am): Likewise.
46389         * modules/unistd (Makefile.am): Likewise.
46390         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46391         * lib/unistd.in.h (dup): Likewise.
46392         * lib/sys_stat.in.h (fstat): Likewise.
46393
46394         maint: ignore gnulib-tool temp files
46395         * .gitignore: Ignore files created during gnulib-tool --test.
46396
46397 2009-09-13  Jim Meyering  <meyering@redhat.com>
46398
46399         posixtm: don't reject a time that specify "60" as the number of seconds
46400         * lib/posixtm.c (posixtime): The code to reject invalid dates
46401         would also reject a time specified with the .60 suffix.
46402         But POSIX allows that, in order to accommodate leap seconds.
46403         So don't reject it.
46404         (main): Adjust tests accordingly.
46405         * modules/posixtm (Depends-on): Add stpcpy.
46406
46407 2009-09-11  Jim Meyering  <meyering@redhat.com>
46408
46409         announce-gen: include [$release_type] in emitted Subject:
46410         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46411         e.g., [stable] in the emitted Subject: line.
46412
46413 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46414
46415         Remove obsolete macros from several modules.
46416         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46417         obsolete Autoconf macros with their modern counterparts.
46418         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46419         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46420         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46421         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46423         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46425         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46426         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46427         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46428         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46430         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46431         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46432         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46433         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46434         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46435         * m4/time_r.m4 (gl_TIME_R): Likewise.
46436         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46437         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46438         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46439
46440         Fix copyright header in build-aux scripts.
46441         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46442         recommendation.
46443         * build-aux/ncftpput-ftp: Likewise.
46444         * build-aux/update-copyright: Likewise.
46445
46446 2009-09-09  Eric Blake  <ebb9@byu.net>
46447
46448         test-link: allow Linux choice of errno
46449         * tests/test-link.c (main): Relax test for alternate error.
46450
46451         strndup: fix improper m4 caching
46452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46453         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46454         (gl_PREREQ_STRNDUP): Delete.
46455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46456         * modules/string (Makefile.am): Substitute it.
46457         * lib/string.in.h (strndup): Modernize prototype.
46458
46459         getcwd: port to mingw
46460         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46461         different from the POSIX assumptions made throughout the getcwd
46462         module; fortunately, the mingw getcwd does not need replacement.
46463         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46464         * modules/getcwd-tests: New test.
46465         * tests/test-getcwd.c: Likewise.
46466
46467         link: fix platform bugs
46468         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46469         * lib/link.c (link): Work around them.  Fix related mingw bug.
46470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46471         * modules/unistd (Makefile.am): Substitute it.
46472         * lib/unistd.in.h (link): Declare replacement.
46473         * doc/posix-functions/link.texi (link): Document this.
46474         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46475
46476         test-link: consolidate into single C program, test more cases
46477         * tests/test-link.sh: Delete.
46478         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46479         at least Cygwin and Solaris.
46480         * modules/link-tests (Files): Remove unused file.
46481         (Depends-on): Add errno, sys_stat.
46482         (Makefile.am): Simplify.
46483
46484 2009-09-08  Bruno Haible  <bruno@clisp.org>
46485
46486         Work around towlower, towupper bug on mingw.
46487         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46488         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46489         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46490         * doc/posix-functions/towupper.texi: Likewise.
46491         Reported by Eric Blake.
46492
46493 2009-09-08  Jim Meyering  <meyering@redhat.com>
46494
46495         build: don't try to run autoheader if we don't use it
46496         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46497         is not used in configure.ac.
46498
46499 2009-09-08  Eric Blake  <ebb9@byu.net>
46500
46501         euidaccess: fix compilation error
46502         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46503
46504         rawmemchr: relax license
46505         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46506         okay.
46507         Reported by Jim Meyering.
46508
46509         mkfifoat: new module
46510         * modules/mkfifoat: New file.
46511         * lib/mkfifoat.c: Likewise.
46512         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46514         * modules/sys_stat (Makefile.am): Use them.
46515         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46516         * MODULES.html.sh (File system functions): Mention module.
46517         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46518         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46519         * modules/mkfifoat-tests: New test.
46520         * tests/test-mkfifoat.c: Likewise.
46521
46522         strchrnul: relax license
46523         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46524         okay.
46525         Reported by Jim Meyering.
46526
46527 2009-09-08  Eric Blake  <ebb9@byu.net>
46528
46529         fstatat: fix compilation on Solaris
46530         * lib/fstatat.c (includes): Add fcntl.h.
46531         Reported by Pádraig Brady.
46532
46533 2009-09-07  Eric Blake  <ebb9@byu.net>
46534
46535         rename: modernize replacement
46536         * modules/rename (Depends-on): Add stdio.
46537         (configure.ac): Declare witness.
46538         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46539         stdio take care of replacement.
46540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46541         * modules/stdio (Makefile.am): Substitute them.
46542         * lib/stdio.in.h (rename): Declare replacement.
46543         * lib/rename.c (includes): Allow cross-compilation to non-windows
46544         machines.
46545         * doc/posix-functions/rename.texi (rename): Improve
46546         documentation.
46547
46548         stdio: sort witness names
46549         * modules/stdio (Makefile.am): Sort replacements.
46550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46551         * lib/stdio.in.h: Likewise.
46552
46553         getcwd: minor cleanups
46554         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46555         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46556
46557         openat: provide more convenience names
46558         * modules/faccessat (configure.ac): Add C witness.
46559         * lib/unistd.in.h (readlinkat): Fix typo.
46560         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46561         convenience wrappers.
46562         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46563         wrappers in syntax checks.
46564
46565 2009-09-06  Eric Blake  <ebb9@byu.net>
46566
46567         doc: fix comments in recent patches
46568         * lib/faccessat.c: Mention correct function.
46569         * lib/fchmodat.c: Likewise.
46570         * lib/fchownat.c: Likewise.
46571         * lib/symlinkat.c: Likewise.
46572         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46573         constants.
46574
46575         faccessat, symlinkat: continue cleanup of previous patch
46576         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46577         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46578         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46580         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46581         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46582         set.
46583
46584 2009-09-06  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46587         (fstatat): Declare if GNULIB_FSTATAT is set.
46588         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46589         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46590         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46591         * modules/fcntl-h (Files): Remove m4/openat.m4.
46592         * modules/sys_stat (Files): Remove m4/openat.m4.
46593         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46594         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46595         * modules/unistd (Files): Remove m4/openat.m4.
46596         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46597         GNULIB_OPENAT.
46598         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46599         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46600         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46601         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46602         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46603         gl_OPENAT_DEFAULTS.
46604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46605         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46606         Don't require gl_OPENAT_DEFAULTS.
46607         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46608         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46609         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46610         (gl_OPENAT_DEFAULTS): Remove macro.
46611
46612 2009-09-06  Bruno Haible  <bruno@clisp.org>
46613
46614         * modules/openat (configure.ac): Remove unneeded witness.
46615
46616 2009-09-06  Bruno Haible  <bruno@clisp.org>
46617
46618         Set errno to ENOSYS when a function is entirely unsupported.
46619         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46620         EOPNOTSUPP.
46621         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46622         * modules/chown (Depends-on): Remove errno.
46623
46624 2009-09-06  Bruno Haible  <bruno@clisp.org>
46625
46626         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46627
46628 2009-09-06  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46631
46632 2009-09-06  Ben Pfaff  <blp@gnu.org>
46633             Bruno Haible  <bruno@clisp.org>
46634
46635         Work around a glibc bug in strtok_r.
46636         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46637         Undefine if UNDEFINE_STRTOK_R is set.
46638         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46640         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46642         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46643         UNDEFINE_STRTOK_R.
46644         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46645
46646 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46647
46648         exclude: minor fix
46649         * lib/exclude.c: Include wctype.h
46650
46651 2009-09-06  Akim Demaille  <demaille@gostai.com>
46652
46653         bootstrap: improve error message
46654         * build-aux/bootstrap (find_tool): Upon failure, report the list
46655         of candidates.
46656         Honor the initial value of the envvar.
46657
46658 2009-09-05  Eric Blake  <ebb9@byu.net>
46659
46660         symlinkat: new module
46661         * modules/symlinkat: New file.
46662         * lib/symlinkat.c: Likewise.
46663         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46665         * modules/unistd (Makefile.am): Use them.
46666         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46667         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46668         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46669         * MODULES.html.sh (File system functions): Mention module.
46670         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46671         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46672         * modules/symlinkat-tests: New test.
46673         * tests/test-symlinkat.c: Likewise.
46674
46675         test-openat-safer: add more checks
46676         * tests/test-openat-safer.c (main): Check more code paths.
46677
46678 2009-09-05  Jim Meyering  <meyering@redhat.com>
46679
46680         syntax-check: detect unnecessary inclusion of openat.h
46681         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46682
46683 2009-09-05  Bruno Haible  <bruno@clisp.org>
46684
46685         Support towlower, towupper.
46686         * doc/posix-functions/towlower.texi: Mention module wctype.
46687         * doc/posix-functions/towupper.texi: Likewise.
46688         * lib/wctype.in.h (towlower, towupper): New functions.
46689         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46690         (ASSERT): New macro.
46691         (e): New variable.
46692         (main): Test also towlower, towupper. Test WEOF argument.
46693         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46694
46695 2009-09-05  Bruno Haible  <bruno@clisp.org>
46696
46697         Fix conversion behaviour when the input is invalid.
46698         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46699         mark occurring in first pass of indirect conversion.
46700         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46701         input.
46702         Found by clang's static analyzer.
46703
46704 2009-09-05  Bruno Haible  <bruno@clisp.org>
46705
46706         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46707         where direct conversion is possible.
46708
46709 2009-09-04  Eric Blake  <ebb9@byu.net>
46710
46711         openat: fail with ENOENT on empty name
46712         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46713         buffer.
46714
46715         link-follow: fix logic bug in prior patch
46716         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46717         reversed sense of yes and no in prior patch.  Avoid confusing
46718         compilation failure with desired semantics.
46719
46720         link-follow: accommodate mingw and cross-compilation
46721         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46722         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46723         cross-compilation results to -1, to make linkat easier to
46724         implement when cross-compiling.  Trivially support mingw.
46725         * modules/link-follow (configure.ac): Call new name.
46726         * NEWS: Mention this.
46727
46728 2009-09-03  Eric Blake  <ebb9@byu.net>
46729
46730         faccessat: compile replacement
46731         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46732         needed.
46733
46734         fts: fix compilation error
46735         * lib/fts.c (includes): Re-add "openat.h", for
46736         openat_needs_fchdir.
46737
46738         faccessat: new module
46739         * modules/faccessat: New file.
46740         * lib/faccessat.c: Likewise.
46741         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46743         * modules/unistd (Makefile.am): Use it.
46744         * lib/unistd.in.h (faccessat): Declare it.
46745         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46746         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46747         * MODULES.html.sh (File system functions): Mention it.
46748         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46749         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46750
46751         euidaccess: prefer POSIX over non-standard implementation
46752         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46753         * lib/euidaccess.c (euidaccess): Use it if available.
46754
46755         openat: make template easier to use
46756         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46757         AT_FUNC_F2 to be undefined.
46758         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46759         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46760         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46761         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46762         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46763         Likewise.
46764         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46765         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46766         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46767         Likewise.
46768
46769         openat: declare in POSIX headers
46770         * NEWS: Mention this.
46771         * modules/openat (configure.ac): Declare witnesses.
46772         (Depends-on): Add fcntl-h, sys_stat, unistd.
46773         (Include): Mention correct headers.
46774         * modules/fcntl-h (Depends-on): Add link-warning.
46775         (Files): Add openat.m4.
46776         (Makefile.am): Substitute witnesses.
46777         * modules/sys_stat (Files, Makefile.am): Likewise.
46778         * modules/unistd (Files, Makefile.am): Likewise.
46779         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46780         (gl_OPENAT_DEFAULTS): New macro.
46781         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46783         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46784         (SYS_STAT_H): Remove unused variable.
46785         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46786         * lib/fcntl--.h (includes): Remove unneeded header.
46787         * lib/openat-safer.c (includes): Likewise.
46788         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46789         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46790         appropriate headers.
46791         (__OPENAT_PREFIX): Delete.
46792         * lib/fcntl.in.h (openat): Provide declaration.
46793         (AT_FDCWD): Fix Solaris bug.
46794         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46795         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46796         * lib/fchmodat.c (includes):  Adjust to find declaration.
46797         * lib/fchownat.c (includes): Likewise.
46798         * lib/mkdirat.c (includes): Likewise.
46799         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46800         still visible.
46801
46802 2009-09-02  Eric Blake  <ebb9@byu.net>
46803
46804         errno: use consistently
46805         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46806         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46807         * lib/canonicalize.c (ELOOP): Likewise.
46808         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46809         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46810         * lib/lchown.c (EOPNOTSUPP): Likewise.
46811         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46812         * lib/savewd.c (ESTALE): Likewise.
46813         * lib/settime.c (ENOSYS): Likewise.
46814         * lib/utimens.c (ENOSYS): Likewise.
46815         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46816         * lib/chdir-safer.c (ELOOP): Likewise.
46817         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46818         * modules/c-stack (Depends-on): Add errno.
46819         * modules/canonicalize (Depends-on): Likewise.
46820         * modules/chdir-safer (Depends-on): Likewise.
46821         * modules/fdopendir (Depends-on): Likewise.
46822         * modules/inet_ntop (Depends-on): Likewise.
46823         * modules/inet_pton (Depends-on): Likewise.
46824         * modules/lchown (Depends-on): Likewise.
46825         * modules/openat (Depends-on): Likewise.
46826         * modules/savewd (Depends-on): Likewise.
46827         * modules/settime (Depends-on): Likewise.
46828         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46829
46830         fts: avoid leaking fds
46831         * modules/fts (Depends-on): Add cloexec.
46832         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46833         flag.
46834
46835         fts: make directory fds more robust
46836         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46837         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46838
46839         backupfile, chdir-long, fts, savedir: make safer
46840         * lib/backupfile.c (includes): Use "dirent--.h", since
46841         numbered_backup can write to stderr during readdir.
46842         * lib/savedir.c (includes): Likewise.
46843         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46844         emulation can write to stderr on failure.
46845         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46846         * lib/getcwd.c: Document why opendir_safer is unused.
46847         * lib/glob.c: Likewise.
46848         * lib/scandir.c: Likewise.
46849         * lib/openat-proc.c: Likewise, for open_safer.
46850         * modules/backupfile (Depends-on): Add dirent-safer.
46851         * modules/savedir (Depends-on): Likewise.
46852         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46853         * modules/chdir-long (Depends-on): Add openat-safer.
46854
46855         openat-safer: new module
46856         * modules/openat-safer: New file.
46857         * lib/openat-safer.c: Likewise.
46858         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46859         * lib/fcntl-safer.h (openat_safer): Declare.
46860         * lib/fcntl--.h (openat): Override.
46861         * MODULES.html.sh (File descriptor based I/O): Mention it.
46862         * lib/openat.h: Add double-inclusion guards.
46863         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46864         "fcntl--.h", so we can implement openat.
46865         * modules/openat-safer-tests: New test.
46866         * tests/test-openat-safer.c: New file.
46867
46868         dirent-safer: new module
46869         * modules/dirent-safer: New file.
46870         * lib/dirent--.h: Likewise.
46871         * lib/dirent-safer.h: Likewise.
46872         * lib/opendir-safer.c: Likewise.
46873         * m4/dirent-safer.m4: Likewise.
46874         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46875         * modules/dirent-safer-tests: New test.
46876         * tests/test-dirent-safer.c: New file.
46877         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46878
46879         fdopendir: optimize on mingw
46880         * lib/unistd.in.h (_gl_directory_name): New prototype.
46881         * lib/fchdir.c (_gl_directory_name): Implement it.
46882         (fchdir): Use it to simplify implementation.
46883         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46884         fchdir, when available, to avoid calling [f]chdir().
46885
46886         fdopendir: split into its own module
46887         * lib/openat.c (fdopendir): Move...
46888         * lib/fdopendir.c: ...into new file.
46889         * modules/fdopendir: New module.
46890         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46891         * modules/openat (Depends-on): Add fdopendir.
46892         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46893         fdopendir here.
46894         * modules/savedir (Depends-on): Only need fdopendir, not full
46895         openat.
46896         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46897         * lib/openat.h (fdopendir): Drop prototype.
46898         * lib/dirent.in.h (fdopendir): Provide prototype.
46899         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46900         * modules/dirent (Makefile.am): Substitute them.
46901         * MODULES.html.sh (File system functions): Mention it.
46902         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46903         * modules/fdopendir-tests: New file.
46904         * tests/test-fdopendir.c: Likewise.
46905
46906         fchdir: use more consistent macro convention
46907         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46908         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46909         REPLACE_FCHDIR, rather than relying on config.h macros.
46910         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46911         inside a single make-time REPLACE_FCHDIR block, rather than using
46912         the config.h FCHDIR_REPLACEMENT.
46913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46914         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46915         Manage fstat replacement.
46916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46917         REPLACE_FCHDIR.
46918         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46919         (Makefile.am): Substitute REPLACE_FCHDIR.
46920         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46921         FCHDIR_REPLACEMENT.
46922         * lib/dup-safer.c (dup_safer): Likewise.
46923         * lib/dup2.c (rpl_dup2): Likewise.
46924         * lib/dup3.c (rpl_dup3): Likewise.
46925         * lib/open.c (rpl_open): Likewise.
46926
46927         fchdir: simplify error handling, and support dup3
46928         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46929         stdbool, malloc-posix, realloc-posix.
46930         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46931         (ensure_dirs_slot): Return false on allocation failure.
46932         (rpl_dup2): Delete.
46933         (_gl_register_dup): New function.
46934         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46935         (_gl_register_fd): Close fd on allocation failure.
46936         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46937         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46938         prototype.
46939         (rpl_dup2_fchdir): Delete prototype.
46940         * lib/open.c (open): Update caller.
46941         * lib/dup2.c (dup2): Track fchdir metadata.
46942         * lib/dup3.c (dup3): Likewise.
46943         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46945
46946 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46947
46948         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46949         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46950         don't pass arguments to AC_OUTPUT.
46951
46952 2009-09-02  Bruno Haible  <bruno@clisp.org>
46953
46954         * modules/mkdtemp (License): Relicense under LGPLv2+.
46955         Reported by Paolo Bonzini.
46956
46957 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46958
46959         Replace uses of obsolete autoconf macros in Jim's modules.
46960         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46961         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46962         can evoke a warning from autoconf when run with -Wobsolete
46963         enabled.  They were declared obsolete for good reasons (see
46964         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46965         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46966         should not continue using the deprecated macros.
46967         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46968         obsolete Autoconf macros with modern counterparts.
46969         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46970         * m4/dos.m4 (gl_AC_DOS): Likewise.
46971         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46973         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46974         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46975         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46976         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46977         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46978         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46979         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46980         Likewise.
46981         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46982         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46983         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46984         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46985         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46986         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46987
46988 2009-09-01  Eric Blake  <ebb9@byu.net>
46989
46990         fchdir: fix off-by-one bug in previous patch
46991         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46992         (_gl_unregister_fd): Delete useless if.
46993
46994 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46995
46996         maint.mk: sort the list of syntax-check rules
46997         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46998         easier to get a sense of progress when the rules are run sequentially
46999         and take a long time.
47000
47001 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47002
47003         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47004         * modules/netinet_in: Likewise.
47005         * modules/sys_file: Likewise.
47006         * modules/sys_ioctl: Likewise.
47007         * modules/sys_select: Likewise.
47008         * modules/sys_socket: Likewise.
47009         * modules/sys_stat: Likewise.
47010         * modules/sys_time: Likewise.
47011         * modules/sys_times: Likewise.
47012         * modules/sys_utsname: Likewise.
47013         * modules/sys_wait: Likewise.
47014
47015 2009-09-01  Jim Meyering  <meyering@redhat.com>
47016
47017         fts: help ensure that return values are not ignored
47018         * lib/fts_.h (__GNUC_PREREQ): Define.
47019         (__attribute_warn_unused_result__): Define.
47020         (fts_children, fts_close, fts_open, fts_read): Declare with
47021         __attribute_warn_unused_result__.
47022
47023         fts: fts_close now fails also when closing a dir file descriptor fails
47024         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47025         and propagate to caller, along with errno.
47026
47027         announce-gen: correct formatting in --help output
47028         * build-aux/announce-gen (usage): Move the one-line description in
47029         --help output "up", to where it belongs, just after Usage:.
47030
47031 2009-08-31  Eric Blake  <ebb9@byu.net>
47032
47033         fchdir: port to mingw
47034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47035         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47036         opened, then use a substitute.
47037         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47038         replacement.
47039         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47040         (_gl_register_fd): No need to check stat if open already filters
47041         all directories.
47042         (fchdir): Fix error condition to match POSIX.
47043         * modules/fchdir (Depends-on): Add sys_stat.
47044         * doc/posix-functions/open.texi (open): Document the limitation.
47045         * modules/fchdir-tests: New file.
47046         * tests/test-fchdir.c: Likewise.
47047
47048         canonicalize: allow cross-testing from cygwin to mingw
47049         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47050         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47051         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47052         Likewise.
47053         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47054         target does not support symlinks.
47055         * tests/test-canonicalize-lgpl.sh: Likewise.
47056
47057         chown: avoid compilation warning on mingw
47058         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47059         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47060         mingw.
47061         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47062         * modules/chown (Depends-on): Add errno.
47063
47064 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47065
47066         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47067         command.
47068
47069 2009-08-31  Jim Meyering  <meyering@redhat.com>
47070
47071         canonicalize: remove useless initialization
47072         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47073         initialization of local, "end".
47074
47075 2009-08-30  Bruno Haible  <bruno@clisp.org>
47076
47077         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47078         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47079         ENOSYS.
47080
47081 2009-08-30  Bruno Haible  <bruno@clisp.org>
47082
47083         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47084         /usr/xpg4/bin/tr when it exists.
47085         * tests/test-pipe-filter-gi1.sh: Likewise.
47086
47087 2009-08-30  Bruno Haible  <bruno@clisp.org>
47088
47089         Work around deficient /usr/bin/id program on Solaris.
47090         * tests/test-file-has-acl.sh (ID): New variable.
47091         * tests/test-set-mode-acl.sh (ID): Likewise.
47092         * tests/test-copy-acl.sh (ID): Likewise.
47093         * tests/test-copy-file.sh (ID): Likewise.
47094
47095 2009-08-30  Bruno Haible  <bruno@clisp.org>
47096
47097         New module 'xstriconveh'.
47098         * lib/xstriconveh.h: New file.
47099         * lib/xstriconveh.c: New file.
47100         * modules/xstriconveh: New file.
47101
47102 2009-08-30  Bruno Haible  <bruno@clisp.org>
47103
47104         Make it easier to use mem_cd_iconveh.
47105         * lib/striconveh.h (iconveh_t): New type.
47106         (iconveh_open, iconveh_close): New declarations.
47107         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47108         with a single 'const iconveh_t *' argument.
47109         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47110         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47111         with a single 'const iconveh_t *' argument.
47112         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47113         * tests/test-striconveh.c (main): Update.
47114         * NEWS: Mention the change.
47115
47116 2009-08-30  Bruno Haible  <bruno@clisp.org>
47117
47118         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47119         problem.
47120
47121 2009-08-30  Bruno Haible  <bruno@clisp.org>
47122
47123         Work around iconv_open problem on Solaris.
47124         * lib/iconv_open-solaris.gperf: New file.
47125         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47126         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47127         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47128         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47129         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47130         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47131
47132 2009-08-29  Jim Meyering  <meyering@redhat.com>
47133
47134         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47135         * top/maint.mk (cvs-check): Remove target; it was just an alias
47136         to the better-named vc-diff-check.
47137         (maintainer-distcheck): Remove rule.  It was used only from
47138         the (alpha/beta/major) target, and all of its commands but one
47139         were coreutils-specific.
47140         (vc-dist): Remove rule.
47141         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47142         Run vc-diff-check, not vc-dist.
47143         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47144
47145 2009-08-27  Bruno Haible  <bruno@clisp.org>
47146
47147         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47148         of 0.
47149
47150 2009-08-27  Bruno Haible  <bruno@clisp.org>
47151
47152         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47153         compilers.
47154         * doc/func.texi: Document the SunPRO C bug.
47155
47156 2009-08-27  Bruno Haible  <bruno@clisp.org>
47157
47158         Fix link error on Solaris.
47159         * tests/test-parse-duration.c (xstrdup): Remove function.
47160
47161 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47162
47163         ignore-value: handle pointer types, too
47164         * lib/ignore-value.h (__attribute__): Remove definition.
47165         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47166         of a more concise and more-often effective "(void) i" statement.
47167         (ignore_ptr): New function to suppress warnings from functions that
47168         return pointers, and to make it explicit that one function doesn't
47169         handle all cases.
47170
47171 2009-08-25  Bruno Haible  <bruno@clisp.org>
47172
47173         dup2: work around a Linux bug.
47174         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47175         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47176         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47177         Reported by Simon Josefsson.
47178
47179 2009-08-25  Jim Meyering  <meyering@redhat.com>
47180
47181         libguestfs uses gnulib
47182         * users.txt: Add libguestfs.
47183
47184 2009-08-24  Eric Blake  <ebb9@byu.net>
47185
47186         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47187         * lib/pipe2.c (includes): Add binary-io.h.
47188         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47189
47190 2009-08-24  Bruno Haible  <bruno@clisp.org>
47191
47192         Tolerate declared but missing accept4 syscall.
47193         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47194         available.
47195         * lib/sys_socket.in.h (accept4): If the function is already present,
47196         override it.
47197         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47198         * modules/accept4 (Makefile.am): Compile accept4.c always.
47199         Reported by Paolo Bonzini and Eric Blake.
47200
47201 2009-08-23  Bruno Haible  <bruno@clisp.org>
47202
47203         New module 'accept4'.
47204         * lib/sys_socket.in.h (accept4): New declaration.
47205         * lib/accept4.c: New file.
47206         * m4/accept4.m4: New file.
47207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47208         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47209         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47210         HAVE_ACCEPT4.
47211         * modules/accept4: New file.
47212         * doc/glibc-functions/accept4.texi: Mention the new module.
47213
47214 2009-08-24  Jim Meyering  <meyering@redhat.com>
47215
47216         progname: also set global program_invocation_name, when possible
47217         Before this change, a libtool-enabled program that calls glibc's
47218         error function would report the program name as
47219         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47220         * modules/progname (configure.ac): Check for a declaration of
47221         program_invocation_name.
47222         * lib/progname.c:  Include <errno.h>.
47223         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47224         Set program_invocation_name.
47225
47226 2009-08-23  Bruno Haible  <bruno@clisp.org>
47227
47228         * lib/dup3.c: Include <string.h>.
47229
47230 2009-08-23  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47233         * lib/pipe2.c (pipe2): Likewise.
47234         Suggested by Eric Blake.
47235
47236 2009-08-23  Bruno Haible  <bruno@clisp.org>
47237
47238         Tolerate declared but missing dup3 syscall.
47239         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47240         * lib/unistd.in.h (dup3): If the function is already present,
47241         override it.
47242         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47243         * modules/dup3 (Makefile.am): Compile dup3.c always.
47244         Reported by Paolo Bonzini.
47245
47246 2009-08-23  Bruno Haible  <bruno@clisp.org>
47247
47248         Tolerate declared but missing pipe2 syscall.
47249         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47250         available.
47251         * lib/unistd.in.h (pipe2): If the function is already present,
47252         override it.
47253         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47254         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47255         Reported by Paolo Bonzini.
47256
47257 2009-08-23  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/pipe2.c (pipe2): Move #ifs inside function.
47260
47261 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47262
47263         quotearg: document limitations of quote_these_too
47264         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47265         those limitations are created.
47266         * lib/quotearg.h (set_char_quoting): Document that digits and
47267         letters that are special after backslash are not permitted.
47268         (quotearg_char): Cross-reference set_char_quoting documentation.
47269
47270 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47271
47272         quotearg: implement custom_quoting_style
47273         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47274         right_quote fields.
47275         (set_custom_quoting): New public function.
47276         (quotearg_buffer_restyled): Add left_quote and right_quote
47277         arguments, handle them very much like locale quoting, and update
47278         all uses.
47279         (quotearg_n_custom): New public function.
47280         (quotearg_n_custom_mem): New public function.
47281         (quotearg_custom): New public function.
47282         (quotearg_custom_mem): New public function.
47283         * lib/quotearg.h: Prototype and document new public functions.
47284         (enum quoting_style): For escape_quoting_style and
47285         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47286         ignored even though they're otherwise like c_quoting_style.
47287         Add custom_quoting_style member and document with comparison to
47288         clocale_quoting_style.
47289         * tests/test-quotearg.c (custom_quotes): New array.
47290         (custom_results): New array.
47291         (main): Extend to test custom quoting.
47292
47293 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47294
47295         quotearg: fix right quote escaping when it's in quote_these_too
47296         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47297         quote, be sure to prepend only one backslash.
47298         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47299         (main): Test it.
47300
47301 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47302
47303         quotearg-tests: test escaping of embedded locale quotes
47304         * tests/test-quotearg.c (struct result_strings): Add member for
47305         new input.
47306         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47307         (inputs): Add new input.
47308         (results_g): Add expected results.
47309         (flag_results): Likewise.
47310         (locale_results): Likewise.
47311         (compare_strings): Check those.
47312
47313 2009-08-23  Bruno Haible  <bruno@clisp.org>
47314
47315         Tests for module 'dup3'.
47316         * modules/dup3-tests: New file.
47317         * tests/test-dup3.c: New file.
47318
47319         New module 'dup3'.
47320         * lib/unistd.in.h (dup3): New declaration.
47321         * lib/dup3.c: New file.
47322         * m4/dup3.m4: New file.
47323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47324         HAVE_DUP3.
47325         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47326         * modules/dup3: New file.
47327         * doc/glibc-functions/dup3.texi: Mention the new module.
47328
47329 2009-08-23  Bruno Haible  <bruno@clisp.org>
47330
47331         Tweak the dup2 test.
47332         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47333         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47334         the test file is still empty. Fix argument order of lseek.
47335
47336 2009-08-23  Bruno Haible  <bruno@clisp.org>
47337
47338         Avoid test link errors when the modules getopt-gnu, gettext are used.
47339         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47341
47342 2009-08-23  Bruno Haible  <bruno@clisp.org>
47343
47344         Fix getdtablesize() on mingw.
47345         * lib/getdtablesize.c (getdtablesize): Implement differently.
47346         * lib/unistd.in.h (getdtablesize): Improve comment.
47347
47348 2009-08-23  Bruno Haible  <bruno@clisp.org>
47349
47350         New module 'mkostemp'.
47351         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47352         * lib/stdlib.in.h (mksotemp): New declaration.
47353         * lib/mkostemp.c: New file, from glibc with modifications.
47354         * lib/tempname.h (GT_FILE): Remove outdated comment.
47355         (gen_tempname): Add flags argument.
47356         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47357         (__GT_FILE): Map to 1.
47358         (small_open, large_open): Remove macros.
47359         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47360         * lib/mkstemp.c (mkstemp): Update.
47361         * lib/mkdtemp.c (mkdtemp): Likewise.
47362         * m4/mkostemp.m4: New file.
47363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47364         HAVE_MKOSTEMP.
47365         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47366         HAVE_MKOSTEMP.
47367         * modules/mkostemp: New file, based on modules/mkstemp.
47368         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47369         * NEWS: Mention the change.
47370
47371 2009-08-23  Bruno Haible  <bruno@clisp.org>
47372
47373         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47374         Reported by Eric Blake.
47375
47376 2009-08-23  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47379         Reported by Eric Blake.
47380
47381 2009-08-23  Bruno Haible  <bruno@clisp.org>
47382
47383         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47384         * modules/pipe2 (Depends-on): Likewise.
47385
47386 2009-08-23  Eric Blake  <ebb9@byu.net>
47387
47388         fcntl-h: add O_TTY_INIT support
47389         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47390         * tests/test-fcntl-h.c (o): Test it.
47391         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47392
47393         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47394         * modules/fcntl: Move <fcntl.h> header replacement...
47395         * modules/fcntl-h: ...to new name, so as not to collide with
47396         like-named function.
47397         * tests/test-fcntl.c: Rename...
47398         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47399         * modules/fcntl-tests: Rename...
47400         * modules/fcntl-h-tests: ...to this.  Update test file name.
47401         * modules/chdir-long (Depends-on): Update clients.
47402         * modules/chdir-safer (Depends-on): Likewise.
47403         * modules/fcntl-safer (Depends-on): Likewise.
47404         * modules/fts (Depends-on): Likewise.
47405         * modules/mkancesdirs (Depends-on): Likewise.
47406         * modules/mkdir-p (Depends-on): Likewise.
47407         * modules/open (Depends-on): Likewise.
47408         * modules/savewd (Depends-on): Likewise.
47409         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47410         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47411
47412 2009-08-22  Bruno Haible  <bruno@clisp.org>
47413
47414         * modules/binary-io (License): Relicense under LGPL.
47415         * modules/pipe2 (License): Likewise.
47416
47417 2009-08-22  Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47420         return value.
47421         * lib/pipe-filter-gi.c (filter_init): Likewise.
47422         Reported by Eric Blake.
47423
47424 2009-08-22  Bruno Haible  <bruno@clisp.org>
47425
47426         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47427         * modules/pipe (Depends-on): Add pipe2.
47428
47429 2009-08-22  Bruno Haible  <bruno@clisp.org>
47430
47431         Tests for module 'pipe2'.
47432         * modules/pipe2-tests: New file.
47433         * tests/test-pipe2.c: New file.
47434
47435         New module 'pipe2'.
47436         * lib/unistd.in.h (pipe2): New declaration.
47437         * lib/pipe2.c: New file.
47438         * m4/pipe2.m4: New file.
47439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47440         HAVE_PIPE2.
47441         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47442         * modules/pipe2: New file.
47443         * doc/glibc-functions/pipe2.texi: Mention the new module.
47444
47445 2009-08-22  Bruno Haible  <bruno@clisp.org>
47446
47447         Reference some new glibc functions.
47448         * doc/glibc-functions/accept4.texi: New file.
47449         * doc/glibc-functions/dup3.texi: New file.
47450         * doc/glibc-functions/mkostemp.texi: New file.
47451         * doc/glibc-functions/pipe2.texi: New file.
47452         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47453         (Glibc sys/socket.h): Refer to accept4.
47454         (Glibc unistd.h): Refer to dup3, pipe2.
47455         Reported by Eric Blake.
47456
47457 2009-08-22  Jim Meyering  <meyering@redhat.com>
47458             Bruno Haible  <bruno@clisp.org>
47459
47460         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47461         This makes it so packages using automake-1.11's silent-rules option
47462         can print e.g., a single "GEN    configmake.h" line, rather than
47463         the 30+ statements that perform the job.  If you want to see the
47464         actual commands, you can still run "make V=1".
47465         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47466         so that make output is abbreviated when those variables are defined
47467         appropriately.
47468         * modules/argz: Likewise.
47469         * modules/arpa_inet: Likewise.
47470         * modules/byteswap: Likewise.
47471         * modules/configmake: Likewise.
47472         * modules/dirent: Likewise.
47473         * modules/errno: Likewise.
47474         * modules/fcntl: Likewise.
47475         * modules/float: Likewise.
47476         * modules/fnmatch: Likewise.
47477         * modules/getopt-posix: Likewise.
47478         * modules/glob: Likewise.
47479         * modules/iconv_open: Likewise.
47480         * modules/inttypes: Likewise.
47481         * modules/localcharset: Likewise.
47482         * modules/locale: Likewise.
47483         * modules/math: Likewise.
47484         * modules/netdb: Likewise.
47485         * modules/netinet_in: Likewise.
47486         * modules/poll: Likewise.
47487         * modules/posix_spawnp-tests: Likewise.
47488         * modules/sched: Likewise.
47489         * modules/search: Likewise.
47490         * modules/selinux-h: Likewise.
47491         * modules/signal: Likewise.
47492         * modules/spawn: Likewise.
47493         * modules/stdarg: Likewise.
47494         * modules/stdbool: Likewise.
47495         * modules/stddef: Likewise.
47496         * modules/stdint: Likewise.
47497         * modules/stdio: Likewise.
47498         * modules/stdlib: Likewise.
47499         * modules/string: Likewise.
47500         * modules/strings: Likewise.
47501         * modules/sys_file: Likewise.
47502         * modules/sys_ioctl: Likewise.
47503         * modules/sys_select: Likewise.
47504         * modules/sys_socket: Likewise.
47505         * modules/sys_stat: Likewise.
47506         * modules/sys_time: Likewise.
47507         * modules/sys_times: Likewise.
47508         * modules/sys_utsname: Likewise.
47509         * modules/sys_wait: Likewise.
47510         * modules/sysexits: Likewise.
47511         * modules/time: Likewise.
47512         * modules/unistd: Likewise.
47513         * modules/wchar: Likewise.
47514         * modules/wctype: Likewise.
47515
47516 2009-08-22  Jim Meyering  <meyering@redhat.com>
47517
47518         announce-gen: detect write failure
47519         * build-aux/announce-gen: Add Coda at end.
47520         Remove equivalent-but-more-verbose block at top.
47521
47522 2009-08-19  Akim Demaille  <demaille@gostai.com>
47523
47524         bootstrap: --help to stdout.
47525         * bootstrap (usage): Don't send --help to stderr.
47526         Use a here doc instead of a long string.
47527
47528 2009-08-21  Eric Blake  <ebb9@byu.net>
47529
47530         test-popen-safer: split from test-popen
47531         * tests/test-popen.c (main): Move...
47532         * tests/test-popen.h: ...into new file.
47533         * tests/test-popen-safer2.c: New file.
47534         * modules/popen-tests (Files): Add test-popen.h.
47535         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47536         Suggested by Bruno Haible.
47537
47538         test-fcntl-safer: split from test-open
47539         * tests/test-open.c (main): Move...
47540         * tests/test-open.h: ...into new file.
47541         * tests/test-fcntl-safer.c: New file.
47542         * modules/open-tests (Files): Add test-open.h.
47543         * modules/fcntl-safer-tests: New file.
47544         Suggested by Bruno Haible.
47545
47546         test-fopen-safer: split from test-fopen
47547         * tests/test-fopen.c (main): Move...
47548         * tests/test-fopen.h: ...into new file.
47549         * tests/test-fopen-safer.c: New file.
47550         * modules/fopen-tests (Files): Add test-fopen.h.
47551         * modules/fopen-safer-tests: New file.
47552         Suggested by Bruno Haible.
47553
47554 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47555
47556         popen-safer: test O_CLOEXEC at run-time.
47557         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47558
47559 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47560
47561         fcntl: move more flags to the header
47562         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47563         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47564         * lib/fcntl.in.h: Do both things here.
47565
47566 2009-08-21  Jim Meyering  <meyering@redhat.com>
47567
47568         consistently remove $@-t before redirecting to it
47569         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47570         * modules/alloca-opt: Likewise.
47571         * modules/byteswap: Likewise.
47572         * modules/fnmatch: Likewise.
47573         * modules/getopt-posix: Likewise.
47574         * modules/glob: Likewise.
47575         * modules/poll: Likewise.
47576         * modules/posix_spawnp-tests: Likewise.
47577         * modules/sys_socket: Likewise.
47578         * modules/sysexits: Likewise.
47579
47580 2009-08-21  Eric Blake  <ebb9@byu.net>
47581
47582         popen: simplify access to original popen
47583         * lib/popen.c (rpl_popen): No need to worry about popen being a
47584         macro.
47585         Reported by Bruno Haible.
47586
47587 2009-08-20  Eric Blake  <ebb9@byu.net>
47588
47589         build: avoid some compiler warnings
47590         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47591         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47592         type.
47593         (new_exclude_segment, excluded_file_pattern_p)
47594         (excluded_file_name_p): Reduce scope.
47595         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47596         old-style declaration.
47597
47598 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47599
47600         * tests/test-exclude1.sh: Handle Windows EOL.
47601         * tests/test-exclude2.sh: Likewise.
47602         * tests/test-exclude3.sh: Likewise.
47603         * tests/test-exclude4.sh: Likewise.
47604         * tests/test-exclude5.sh: Likewise.
47605         * tests/test-exclude6.sh: Likewise.
47606         * tests/test-exclude7.sh: Likewise.
47607
47608 2009-08-19  Akim Demaille  <demaille@gostai.com>
47609
47610         bootstrap: find sha1sum when named gsha1sum.
47611         * bootstrap (find_tool): New.
47612         ($SHA1SUM): New.
47613         Use it.
47614
47615 2009-08-20  Jim Meyering  <meyering@redhat.com>
47616
47617         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47618         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47619         expression that converts "." in a file name to "\." in the resulting
47620         regexp.  Start with a dummy statement, so that prior shell variable
47621         definitions are expanded portably.  Reported by Simon Josefsson.
47622
47623 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47624
47625         Fix polling for writeability of a screen buffer.
47626         * lib/poll.c: Distinguish input and screen buffers for the
47627         Win32 implementation.
47628         * lib/select.c: Likewise.
47629
47630 2009-08-19  Eric Blake  <ebb9@byu.net>
47631
47632         popen-safer: prevent popen from clobbering std descriptors
47633         * modules/popen-safer: New file.
47634         * lib/popen-safer.c: Likewise.
47635         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47636         * lib/stdio--.h (popen): Provide override.
47637         * lib/stdio-safer.h (popen_safer): Provide declaration.
47638         * tests/test-popen.c (includes): Partially test this.
47639         * modules/popen-safer-tests: New file, for more tests.
47640         * tests/test-popen-safer.c: Likewise.
47641         * MODULES.html.sh (file stream based Input/Output): Mention it.
47642
47643         tests: test some of the *-safer modules
47644         * modules/fopen-safer (Depends-on): Add fopen.
47645         * modules/fcntl-safer (Depends-on): Add fcntl.
47646         * modules/stdlib-safer (Depends-on): Add stdlib.
47647         (configure.ac): Set indicator.
47648         * modules/unistd-safer (configure.ac): Likewise.
47649         * modules/tmpfile-safer (configure.ac): Likewise.
47650         (Depends-on): Add tmpfile.
47651         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47652         active.
47653         * tests/test-fopen.c (includes): Test safer versions when they are
47654         in use.
47655         * tests/test-open.c (includes): Likewise.
47656
47657         popen: fix cygwin 1.5 bug when stdin closed
47658         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47659         * modules/popen: New file.
47660         * modules/popen-tests: Likewise.
47661         * tests/test-popen.c: Likewise.
47662         * m4/popen.m4: Likewise.
47663         * lib/popen.c: Likewise.
47664         * lib/stdio.in.h (popen): New declaration.
47665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47666         * modules/stdio (Makefile.am): Likewise.
47667         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47668
47669 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47670
47671         maint.mk: give full control over update-copyright exclusions
47672         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47673         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47674         (update-copyright): Don't force inclusion of top-level
47675         ChangeLog.  Don't force exclusion of all COPYING files, but make
47676         them the default exclusion instead.
47677
47678 2009-08-16  Bruno Haible  <bruno@clisp.org>
47679
47680         Fix test failures on Solaris 10.
47681         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47682         tests when Solaris iconv() is used.
47683         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47684         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47685         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47686         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47687         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47688
47689 2009-08-16  Bruno Haible  <bruno@clisp.org>
47690
47691         Fix test failures on Solaris 10.
47692         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47693         'tr' program and pass it as first argument.
47694         * tests/test-pipe-filter-gi1.sh: Likewise.
47695         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47696         program as first argument.
47697         * tests/test-pipe-filter-gi1.c (main): Likewise.
47698
47699 2009-08-16  Eric Blake  <ebb9@byu.net>
47700
47701         fpurge: fix previous commits
47702         * modules/fpurge (Makefile.am): Make replacement conditional,
47703         partially reverting 2007-04-29 change; missed in previous
47704         attempt.
47705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47706         is missing.
47707
47708 2009-08-16  Bruno Haible  <bruno@clisp.org>
47709
47710         Clarify fpurge's effect on the file position.
47711         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47712         * tests/test-fpurge.c (main): Make a second pass for checking the file
47713         position.
47714
47715 2009-08-16  Bruno Haible  <bruno@clisp.org>
47716
47717         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47718         declaration of fpurge is missing.
47719         * tests/test-fpurge.c (main): Check that the file has not more contents
47720         than expected. Close the file before removing it.
47721
47722 2009-08-15  Eric Blake  <ebb9@byu.net>
47723
47724         fpurge: don't wrap working cygwin implementation
47725         * lib/fpurge.c (fpurge): Fix comment typo.
47726         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47727         1.7 to avoid replacement.
47728         * tests/test-fpurge.c (main): Enhance test.
47729
47730 2009-08-15  Eric Blake  <ebb9@byu.net>
47731         and Jim Meyering  <meyering@redhat.com>
47732
47733         test-update-copyright: skip if perl is insufficient
47734         * tests/test-update-copyright.sh: Failure to run maintainer tool
47735         should not cause testsuite failure on cygwin 1.5.
47736
47737 2009-08-14  Eric Blake  <ebb9@byu.net>
47738
47739         doc: mention more functions added in cygwin 1.7.0
47740         * doc/posix-headers/limits.texi (limits.h): Update for recent
47741         cygwin additions.
47742         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47743         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47744         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47745         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47746         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47747
47748 2009-08-14  Eric Blake  <ebb9@byu.net>
47749
47750         maint.mk: simplify update-copyright rule
47751         * top/maint.mk (update-copyright-local): Delete, and document how
47752         to do it in cfg.mk instead.
47753         (update-copyright-exclude-regexp): Delete, and document how to do
47754         it in .x-update-copyright instead.
47755         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47756         exclude ChangeLog.
47757
47758 2009-08-14  Bruno Haible  <bruno@clisp.org>
47759
47760         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47761
47762 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47763
47764         maint.mk: support update-copyright-env
47765         * top/maint.mk (update-copyright-env): Define place-holder.
47766         (update-copyright): Expand $(update-copyright-env) before
47767         invoking update-copyright.
47768
47769 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47770
47771         update-copyright: implement forced reformatting
47772         * build-aux/update-copyright: Implement and document
47773         UPDATE_COPYRIGHT_FORCE.
47774         * tests/test-update-copyright.sh: Test it.
47775
47776 2009-08-14  Eric Blake  <ebb9@byu.net>
47777         and Bruno Haible  <bruno@clisp.org>
47778
47779         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47780         * tests/test-locale.c: Revert previous patch related to NULL.
47781         * tests/test-stdio.c: Likewise.
47782         * tests/test-stdlib.c: Likewise.
47783         * tests/test-string.c: Likewise.
47784         * tests/test-unistd.c: Likewise.
47785         * modules/time-tests (Depends-on): Add verify.
47786         * modules/wchar-tests (Depends-on): Likewise.
47787         * tests/test-time.c: Test for NULL compliance.
47788         * tests/test-wchar.c: Likewise.
47789         * modules/locale (Depends-on): Add stddef.
47790         * modules/stdio (Depends-on): Likewise.
47791         * modules/stdlib (Depends-on): Likewise.
47792         * modules/string (Depends-on): Likewise.
47793         * modules/time (Depends-on): Likewise.
47794         * modules/unistd (Depends-on): Likewise.
47795         * modules/wchar (Depends-on): Likewise.
47796         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47797         * lib/stdlib.in.h (includes): Likewise.
47798         * lib/string.in.h (includes): Likewise.
47799         * lib/time.in.h (includes): Likewise.
47800         * lib/unistd.in.h (includes): Likewise.
47801         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47802         replaced.
47803         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47804         * m4/stddef_h.m4: New file.
47805         * modules/stddef: Likewise.
47806         * lib/stddef.in.h: Likewise.
47807         * modules/stddef-tests: Likewise.
47808         * tests/test-stddef.c: Likewise.
47809         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47810         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47811         * doc/posix-headers/locale.texi (locale.h): Likewise.
47812         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47813         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47814         * doc/posix-headers/string.texi (string.h): Likewise.
47815         * doc/posix-headers/time.texi (time.h): Likewise.
47816         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47817         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47818
47819 2009-08-14  Eric Blake  <ebb9@byu.net>
47820
47821         doc: improve git diff of texinfo files
47822         * .gitattributes: Add rule for *.texi files, with hint on how to
47823         use it.
47824         Copied from m4, and based on a report by Bruno Haible.
47825
47826 2009-08-14  Bruno Haible  <bruno@clisp.org>
47827
47828         Disable multithread support by default on Cygwin 1.5.x for real.
47829         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47830
47831 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47832
47833         update-copyright: much ado about intervals
47834         * build-aux/update-copyright: Implement and document
47835         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47836         of copyright year intervals.
47837         Also, document UPDATE_COPYRIGHT_YEAR.
47838         * tests/test-update-copyright.sh: Test it.
47839
47840         update-copyright: convert 2-digit to 4-digit years
47841         * build-aux/update-copyright: Implement and document.
47842         * tests/test-update-copyright.sh: Update.
47843
47844 2009-08-14  Jim Meyering  <meyering@redhat.com>
47845
47846         test-exclude: avoid coreutils "make check" failure
47847         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47848         just as in test-argmatch.c.
47849
47850 2009-08-13  Eric Blake  <ebb9@byu.net>
47851
47852         test-dup2: fix bad assumption
47853         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47854         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47855
47856         test-version-etc: fix CRLF portability issue
47857         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47858         recognize \r.
47859         * tests/test-argp-version-etc-1.sh: Likewise.
47860
47861         getopt: update client modules
47862         * modules/argp (Depends-on): Use getopt-gnu.
47863         * modules/git-merge-changelog (Depends-on): Likewise.
47864         * modules/long-options (Depends-on): Likewise.
47865         * modules/xstrtol (Depends-on): Likewise.
47866
47867 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47868
47869         * tests/test-version-etc.sh: Don't fail on different
47870         project/version.  Don't fail on CRLF differences.  Rewrite to use
47871         multiple -e instead of multiple sed forks, suggested by Eric Blake
47872         <ebb9@byu.net>.
47873         * tests/test-argp-version-etc-1.sh: Likewise.
47874
47875 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47876
47877         * tests/test-version-etc.sh: Don't fail on different
47878         project/version.
47879
47880 2009-08-12  Bruno Haible  <bruno@clisp.org>
47881
47882         Tests for modules 'getopt-posix', 'getopt-gnu'.
47883         * modules/getopt-posix-tests: New file.
47884         * tests/test-getopt.c: New file.
47885         * tests/test-getopt.h: New file.
47886         * tests/test-getopt_long.h: New file.
47887
47888         New modules 'getopt-posix', 'getopt-gnu'.
47889         * modules/getopt-gnu: New file, renamed from modules/getopt.
47890         * modules/getopt-posix: New file.
47891         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47892         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47893         (gl_GETOPT): Remove macro.
47894         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47895         Disable the test against BSD systems that declare optreset. Test
47896         against mingw bug. Test against lack of support of optional arguments
47897         on many platforms.
47898         * doc/glibc-headers/getopt.texi: Update module name and list of
47899         relevant platforms.
47900         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47901         'getopt-gnu' and more portability problems.
47902         * NEWS: Mention the changes.
47903
47904 2009-08-12  Bruno Haible  <bruno@clisp.org>
47905
47906         Ensure that optarg etc. get declared by <unistd.h>.
47907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47908         AC_USE_SYSTEM_EXTENSIONS.
47909         * modules/getopt (Depends-on): Add 'extensions'.
47910
47911 2009-08-12  Bruno Haible  <bruno@clisp.org>
47912
47913         Avoid test link errors.
47914         * modules/pipe-filter-ii-tests (Makefile.am): Define
47915         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47916         * modules/pipe-filter-gi-tests (Makefile.am): Define
47917         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47919
47920 2009-08-12  Bruno Haible  <bruno@clisp.org>
47921
47922         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47923         gl_GETOPT_SUBSTITUTE before.
47924         (gl_GETOPT): Use it.
47925         * m4/argp.m4 (gl_ARGP): Update.
47926         Reported by Sergey Poznyakoff.
47927
47928         * m4/getopt.m4: Reorder macros.
47929         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47930         (gl_GETOPT_SUBSTITUTE): Remove macro.
47931
47932 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47933
47934         Minor improvement in gitlog-to-changelog
47935
47936         * build-aux/gitlog-to-changelog: New option `--format' makes
47937         output format string configurable.
47938
47939 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47940
47941         Optimize exclude: use hash tables for non-wildcard patterns.
47942
47943         * lib/exclude.c: Include hash.h and mbuiter.h
47944         (struct exclude_pattern, exclude_segment): New data types.
47945         (struct exclude): Rewrite.
47946         (fnmatch_pattern_has_wildcards): New function.
47947         (new_exclude_segment, free_exclude_segment): New functions.
47948         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47949         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47950         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47951         * modules/exclude: Depend on hash and mbuiter.
47952
47953         * modules/exclude-tests: New file.
47954         * tests/test-exclude.c: New file.
47955         * tests/test-exclude1.sh: New file.
47956         * tests/test-exclude2.sh: New file.
47957         * tests/test-exclude3.sh: New file.
47958         * tests/test-exclude4.sh: New file.
47959         * tests/test-exclude5.sh: New file.
47960         * tests/test-exclude6.sh: New file.
47961         * tests/test-exclude7.sh: New file.
47962
47963 2009-08-12  Bruno Haible  <bruno@clisp.org>
47964
47965         Ensure that getopt() gets declared by <unistd.h>.
47966         * lib/unistd.in.h: Conditionally include getopt.h.
47967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47968         Set GNULIB_UNISTD_H_GETOPT.
47969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47970         GNULIB_UNISTD_H_GETOPT.
47971         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47972
47973 2009-08-12  Bruno Haible  <bruno@clisp.org>
47974
47975         Clarify logic.
47976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47977         gl_replace_getopt instead of GETOPT_H.
47978
47979 2009-08-12  Bruno Haible  <bruno@clisp.org>
47980
47981         * m4/getopt.m4: Add comments.
47982
47983 2009-08-12  Bruno Haible  <bruno@clisp.org>
47984
47985         Disable multithread support by default on Cygwin 1.5.x.
47986         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47987         set gl_use_threads=no if not specified otherwise.
47988
47989 2009-08-11  Bruno Haible  <bruno@clisp.org>
47990
47991         Avoid compilation error on NetBSD 5.0.
47992         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47993         * tests/test-stdio.c: Likewise.
47994         * tests/test-stdlib.c: Likewise.
47995         * tests/test-string.c: Likewise.
47996         * tests/test-unistd.c: Likewise.
47997         Reported by Greg Troxel <gdt@ir.bbn.com>
47998         at <https://savannah.gnu.org/support/?106973>.
47999
48000 2009-08-11  Bruno Haible  <bruno@clisp.org>
48001
48002         * modules/dup2-tests (Depends-on): Remove close.
48003
48004         Undo 2009-07-19 commit.
48005         * modules/acl-tests (Depends-on): Remove close.
48006         * modules/binary-io-tests (Depends-on): Likewise.
48007         * modules/closein-tests (Depends-on): Likewise.
48008         * modules/flock-tests (Depends-on): Likewise.
48009         * modules/fsync-tests (Depends-on): Likewise.
48010         * modules/lseek-tests (Depends-on): Likewise.
48011         * modules/pipe-tests (Depends-on): Likewise.
48012         * modules/posix_spawn-tests (Depends-on): Likewise.
48013         * modules/posix_spawnp-tests (Depends-on): Likewise.
48014         * modules/stat-time-tests (Depends-on): Likewise.
48015         * modules/yesno-tests (Depends-on): Likewise.
48016
48017 2009-08-10  Bruno Haible  <bruno@clisp.org>
48018
48019         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48020
48021 2009-08-10  Bruno Haible  <bruno@clisp.org>
48022
48023         Fix a gcc warning.
48024         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48025
48026 2009-08-10  Bruno Haible  <bruno@clisp.org>
48027
48028         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48029         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48030         not only the first time.
48031         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48032         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48033         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48034         is 1, not only the the first time.
48035
48036 2009-08-10  Bruno Haible  <bruno@clisp.org>
48037
48038         Make it possible to use module 'gethostname' without module 'close'.
48039         * lib/unistd.in.h (close): Evoke a link error only if
48040         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48042         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48043         * modules/unistd (Makefile.am): Substitute
48044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48045         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48046         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48048         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48049         * modules/sys_ioctl (Makefile.am): Substitute
48050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48051         * modules/socket (configure.ac): On native Windows, set
48052         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48053         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48054         Reported by Sam Steingold <sds@gnu.org>.
48055
48056 2009-08-10  Bruno Haible  <bruno@clisp.org>
48057
48058         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48059         * modules/ioctl (configure.ac): Likewise.
48060
48061 2009-08-10  Bruno Haible  <bruno@clisp.org>
48062
48063         Avoid collision between gnulib wrapper and libintl wrapper.
48064         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48065         already defined in intl/printf.c.
48066         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48067         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48068
48069 2009-08-09  Bruno Haible  <bruno@clisp.org>
48070
48071         Make <sys/select.h> really self-contained, also on Solaris 10.
48072         * lib/sys_select.in.h: Include <string.h>.
48073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48074         Solaris 10 problem.
48075         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48076         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48077         Reported by Jim Meyering.
48078
48079 2009-08-09  Bruno Haible  <bruno@clisp.org>
48080
48081         Avoid warnings from 'aclocal' that are due to a use of macro name
48082         AM_XGETTEXT_OPTION that is not defined in automake.
48083         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48084         automake.
48085         * modules/error (configure.ac): Likewise.
48086         * modules/propername (configure.ac): Likewise.
48087         * modules/vasprintf (configure.ac): Likewise.
48088         * modules/verror (configure.ac): Likewise.
48089         * modules/xprintf (configure.ac): Likewise.
48090         * modules/xvasprintf (configure.ac): Likewise.
48091
48092 2009-08-08  Bruno Haible  <bruno@clisp.org>
48093
48094         Avoid compilation error in C++ mode.
48095         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48096         Reported by Sam Steingold <sds@gnu.org>.
48097
48098 2009-08-08  Bruno Haible  <bruno@clisp.org>
48099
48100         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48101         for the various Unix platforms.
48102         * doc/posix-headers/limits.texi: Update platforms list regarding
48103         HOST_NAME_MAX.
48104         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48105
48106 2009-08-07  Jim Meyering  <meyering@redhat.com>
48107
48108         selinux-at: fix typo in a comment
48109         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48110         Spotted by Paolo Bonzini.
48111
48112         selinux-at: remove redundant m4 code, add documentation
48113         * modules/selinux-at (configure.ac): Remove redundant code.
48114         LIB_SELINUX is already set via the dependent module, selinux-h.
48115         (Include): Add quotes around selinux-at.h.
48116         * lib/selinux-at.h: Add documentation.
48117         Reported by Bruno Haible in
48118         http://marc.info/?l=gnulib-bug&m=124958988300749
48119
48120 2009-08-07  Bruno Haible  <bruno@clisp.org>
48121
48122         Avoid link error on MacOS X 10.3 and 10.4.
48123         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48124         on non-ELF systems.
48125         * lib/argp-pv.c (argp_program_version): Likewise.
48126         Reported by Simon Josefsson.
48127
48128 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48129
48130         * tests/test-version-etc.sh: Use $EXEEXT.
48131
48132 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48133
48134         update-copyright: update documentation to point to maint.mk
48135         * build-aux/update-copyright: Here.
48136
48137 2009-08-06  Jim Meyering  <meyering@redhat.com>
48138
48139         maint.mk: support update-copyright-local
48140         * top/maint.mk (update-copyright-local): Define place-holder.
48141         (update-copyright): Depend on $(update-copyright-local).
48142
48143 2009-08-06  Jim Meyering  <meyering@redhat.com>
48144
48145         selinux-at: new module
48146         Initially written for coreutils, this module will soon be
48147         used by findutils, too.
48148         * MODULES.html.sh [Misc]: Add selinux-at.
48149         * lib/selinux-at.h: New file, from coreutils.
48150         * lib/selinux-at.c: Likewise.
48151         * modules/selinux-at: Likewise.
48152         (License): Change from LGPL to GPL, since it depends
48153         on the GPL'd openat module.
48154
48155         doc: update README
48156         * README: Remove references to cogito.
48157         Remove cvs-repo-updating instructions from 2007.
48158         Don't imply that CVS is better if you have limited disk space.
48159
48160 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48161
48162         update-copyright: support C-style comments
48163         * build-aux/update-copyright: Implement and document.
48164         * tests/test-update-copyright.sh: Test.
48165
48166 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48167
48168         update-copyright: support omitted "(C)"
48169         * build-aux/update-copyright: Implement and document.  Also,
48170         allow variable whitespace before "(C)".
48171         * tests/test-update-copyright.sh: Test.
48172
48173 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48174
48175         update-copyright: don't trip on non-FSF copyright statements
48176         * build-aux/update-copyright: Fix so that the first correctly
48177         formatted FSF copyright statement is recognized no matter what
48178         appears before it.  Update documentation.
48179         * tests/test-update-copyright.sh: Test that.
48180
48181 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48182
48183         update-copyright: clean up code a little
48184         * build-aux/update-copyright: Append "_re" to the name of any
48185         variable holding a regular expression.
48186         Replace "old" and "new" with "stmt" in variable names.
48187         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48188         handled correctly.
48189         Format code more consistently.
48190
48191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48192
48193         update-copyright-tests: improve portability
48194         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48195         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48196
48197 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48198
48199         update-copyright: support @copyright{} and &copy;
48200         * build-aux/update-copyright: Implement and document.
48201         * tests/test-update-copyright.sh: Test.
48202
48203 2009-08-04  Jim Meyering  <meyering@redhat.com>
48204
48205         update-copyright-tests: correctly test EOL=\r\n handling
48206         * tests/test-update-copyright.sh: Put \r at the end of some lines
48207         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48208
48209         maint.mk: make update-copyright exclusion list more configurable
48210         * top/maint.mk (update-copyright): Default to excluding COPYING,
48211         but allow an override, in case someone does want to update that file.
48212
48213         maint.mk: don't update copyright date in COPYING
48214         * top/maint.mk (update-copyright): Exclude COPYING.
48215
48216         maint.mk: add a copyright-updating rule
48217         * top/maint.mk (update-copyright): New rule.
48218         Derived from coreutils/Makefile.am.
48219
48220         update-copyright: rename some variables
48221         * build-aux/update-copyright: Rename a few variables for clarity.
48222         Tweak syntax.  List Joel E. Denny as coauthor.
48223
48224 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48225
48226         update-copyright: fix bug for 2-digit last year and add tests
48227         * build-aux/update-copyright: Fix bug.
48228         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48229         specified.
48230         * modules/update-copyright-tests: New
48231         * tests/test-update-copyright.sh: New.
48232
48233 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48234
48235         update-copyright: handle leading tabs in line prefix
48236         * build-aux/update-copyright: Count leading tabs as 8 spaces
48237         when computing margin.  This helps with the formatting of
48238         ChangeLogs, for example.
48239         Fix documentation a little.
48240
48241 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48242
48243         update-copyright: support EOL=\r\n
48244         * build-aux/update-copyright: Implement that.
48245
48246 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48247
48248         update-copyright: automatically format copyright statements
48249         * build-aux/update-copyright: Implement that.
48250         Also, be a little more predictable and safer by always failing
48251         when the full copyright format is not perfectly recognized as an
48252         unbroken whole.  Discussed at
48253         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48254         Rewrite documentation.
48255
48256 2009-08-03  Bruno Haible  <bruno@clisp.org>
48257
48258         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48259
48260 2009-08-02  Bruno Haible  <bruno@clisp.org>
48261
48262         Tests for module 'uname'.
48263         * modules/uname-tests: New file.
48264         * tests/test-uname.c: New file.
48265
48266         New module 'uname'.
48267         * lib/uname.c: New file.
48268         * m4/uname.m4: New file.
48269         * modules/uname: New file.
48270         * doc/posix-functions/uname.texi: Mention the new module.
48271
48272 2009-08-02  Bruno Haible  <bruno@clisp.org>
48273
48274         Tests for module 'sys_utsname'.
48275         * modules/sys_utsname-tests: New file.
48276         * tests/test-sys_utsname.c: New file.
48277
48278         New module 'sys_utsname'.
48279         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48280         * m4/sys_utsname_h.m4: New file.
48281         * modules/sys_utsname: New file.
48282         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48283
48284 2009-08-02  Bruno Haible  <bruno@clisp.org>
48285
48286         Implicitly initialize the sockets library.
48287         * lib/gethostname.c: Include sockets.h.
48288         (rpl_gethostname): Invoke gl_sockets_startup.
48289         * lib/socket.c: Include sockets.h.
48290         (rpl_socket): Invoke gl_sockets_startup.
48291         * modules/gethostname (Depends-on): Add sockets.
48292         * modules/socket (Depends-on): Likewise.
48293         * tests/test-poll.c: Don't include sockets.h.
48294         (main): Don't invoke gl_sockets_startup.
48295         * tests/test-select.c: Don't include sockets.h.
48296         (main): Don't invoke gl_sockets_startup.
48297
48298 2009-08-02  Bruno Haible  <bruno@clisp.org>
48299
48300         Allow multiple calls to gl_sockets_startup.
48301         * lib/sockets.c (initialized_sockets_version): New variable.
48302         (gl_sockets_startup): Do nothing if already called for this or a higher
48303         version.
48304         (gl_sockets_cleanup): Reset initialized_sockets_version.
48305
48306 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48307
48308         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48309         different project/version.
48310
48311 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48312             Bruno Haible  <bruno@clisp.org>
48313
48314         Tests for module 'pipe-filter-gi'.
48315         * modules/pipe-filter-gi-tests: New file.
48316         * tests/test-pipe-filter-gi1.sh: New file.
48317         * tests/test-pipe-filter-gi1.c: New file.
48318         * tests/test-pipe-filter-gi2.sh: New file.
48319         * tests/test-pipe-filter-gi2-main.c: New file.
48320         * tests/test-pipe-filter-gi2-child.c: New file.
48321
48322         New module 'pipe-filter-gi'.
48323         * lib/pipe-filter-gi.c: New file.
48324         * modules/pipe-filter-gi: New file.
48325
48326 2009-08-02  Bruno Haible  <bruno@clisp.org>
48327             Paolo Bonzini  <bonzini@gnu.org>
48328
48329         Tests for module 'pipe-filter-ii'.
48330         * modules/pipe-filter-ii-tests: New file.
48331         * tests/test-pipe-filter-ii1.sh: New file.
48332         * tests/test-pipe-filter-ii1.c: New file.
48333         * tests/test-pipe-filter-ii2.sh: New file.
48334         * tests/test-pipe-filter-ii2-main.c: New file.
48335         * tests/test-pipe-filter-ii2-child.c: New file.
48336
48337         New module 'pipe-filter-ii'.
48338         * lib/pipe-filter.h: New file.
48339         * lib/pipe-filter-ii.c: New file.
48340         * lib/pipe-filter-aux.h: New file.
48341         * modules/pipe-filter-ii: New file.
48342
48343 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48344
48345         * lib/gc-libgcrypt.c: Change copyright to FSF.
48346         * lib/gc-gnulib.c: Likewise.
48347
48348 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48349
48350         * lib/gethostname.c: Include limits.h.
48351
48352 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48353             Bruno Haible  <bruno@clisp.org>
48354
48355         Ensure HOST_NAME_MAX as part of the gethostname module.
48356         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48357         define also HOST_NAME_MAX.
48358         * tests/test-gethostname.c: Include <limits.h>.
48359         (main): Check also HOST_NAME_MAX.
48360         * doc/posix-headers/limits.texi: Document the mingw problem.
48361
48362 2009-08-02  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48365         Add comments.
48366
48367 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48368
48369         * lib/gethostname.c: Add Windows wrapper.
48370         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48371         * modules/gethostname: Depend on sys_socket & errno, for also
48372         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48373         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48374
48375 2009-07-31  Jim Meyering  <meyering@redhat.com>
48376
48377         getloadavg: fix symbol name in comment
48378         * lib/getloadavg.c: Correct a typo I introduced when adding
48379         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48380         Matt Kraai spotted the problem.
48381
48382 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48383
48384         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48385         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48386         code also if ! defined N_NAME_POINTER.
48387         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48388         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48389         but the n_name member is a 12-byte array.
48390
48391 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48392
48393         update-copyright: generalize comment handling
48394         * build-aux/update-copyright: Handle copyright statements
48395         within more comment styles.
48396         Document usage.
48397         Report any file with an external copyright holder or parse failure.
48398
48399 2009-07-29  Jim Meyering  <meyering@redhat.com>
48400
48401         mktime: correct setting of REPLACE_MKTIME
48402         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48403
48404         update-copyright: new module
48405         * modules/update-copyright: New file.
48406         * build-aux/update-copyright: New file.
48407         * MODULES.html.sh (maint+release support): Add update-copyright.
48408
48409 2009-07-27  Bruno Haible  <bruno@clisp.org>
48410
48411         Fix compilation error when <ctime> is used and mktime is replaced.
48412         * lib/time.in.h (mktime): New declaration.
48413         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48414         REPLACE_MKTIME instead of defining mktime in config.h.
48415         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48416         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48417         Reported by Ross McFarland <rwmcfa1@neces.com>.
48418
48419 2009-07-27  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48422         Reported by Matt Kraai <mkraai@beckman.com>.
48423
48424 2009-07-25  Jim Meyering  <meyering@redhat.com>
48425
48426         maint.mk: avoid warnings about missing files
48427         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48428         diagnostic when .prev-version does not exist.
48429         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48430         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48431         nonexistent cfg.mk.
48432         Suggestions from Simon Josefsson.
48433
48434 2009-07-25  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48437         defined as macros. Needed on QNX 6.4.1.
48438         Reported by Matt Kraai <mkraai@beckman.com>.
48439
48440 2009-07-23  Jim Meyering  <meyering@redhat.com>
48441
48442         maint.mk: invoke "make dist" with a working value of XZ_OPT
48443         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48444
48445 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48446
48447         Make fseeko.c compile on QNX.
48448         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48449
48450 2009-07-22  Peter Simons  <simons@cryp.to>
48451
48452         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48453         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48454         * lib/md4.h: Likewise.
48455         * lib/md5.h: Likewise.
48456         * lib/sha1.h: Likewise.
48457         * lib/sha256.h: Likewise.
48458         * lib/sha512.h: Likewise.
48459
48460         tests-sha1: don't assign literal string to 'char *' variable
48461         * tests/test-sha1.c (main): Declare locals with "const" to match
48462         attributes of the right hand side.
48463
48464 2009-07-21  Eric Blake  <ebb9@byu.net>
48465
48466         dup2: fix more mingw problems
48467         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48468         fd to itself.
48469         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48470         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48471         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48472         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48473         care of mingw bugs.
48474
48475 2009-07-21  Jim Meyering  <meyering@redhat.com>
48476
48477         vc-list-files: avoid failure when /bin/sh is dash
48478         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48479         On some Debian based systems, /bin/sh is a symlink to dash, and running
48480         this command would omit the "/" following each 'tests' prefix:
48481           dash -x build-aux/vc-list-files -C . tests
48482         That is because bash and dash work differently:
48483           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48484           bash ok
48485           dash odd
48486
48487 2009-07-21  Eric Blake  <ebb9@byu.net>
48488
48489         dup2-tests: test previous patch
48490         * modules/dup2-tests: New file.
48491         * tests/test-dup2.c: Likewise.
48492         * tests/test-open.c (main): Avoid unspecified behavior.
48493         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48494         test.
48495
48496         dup2: work around mingw and cygwin 1.5 bug
48497         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48499         * modules/unistd (Makefile.am): Substitute it.
48500         * lib/unistd.in.h (dup2): Declare the replacement.
48501         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48502         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48503         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48504         * modules/execute (Depends-on): Add dup2.
48505         * modules/fseterr (Depends-on): Likewise.
48506         * modules/pipe (Depends-on): Likewise.
48507         * modules/posix_spawn-internal (Depends-on): Likewise.
48508
48509 2009-07-21  Bruno Haible  <bruno@clisp.org>
48510
48511         * modules/.gitattributes: New file.
48512
48513 2009-07-20  Bruno Haible  <bruno@clisp.org>
48514
48515         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48516         (main): Use it.
48517
48518 2009-07-20  Eric Blake  <ebb9@byu.net>
48519
48520         test-pipe: make a bit more robust.
48521         * tests/test-pipe.c (myerr): Allow error messages regardless of
48522         what we do to stderr.
48523         (test_pipe): Rearrange to avoid deadlock.
48524         (child_main): Try a larger read, to ensure we avoided deadlock.
48525         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48526         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48527         if misused.
48528
48529 2009-07-19  Jim Meyering  <meyering@redhat.com>
48530
48531         fts: avoid false-positive cycle-detection
48532         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48533         for each new command line argument.
48534
48535 2009-07-19  Bruno Haible  <bruno@clisp.org>
48536
48537         Fix build error on mingw with the modules sys_select and unistd.
48538         * modules/acl-tests (Depends-on): Add close.
48539         * modules/binary-io-tests (Depends-on): Likewise.
48540         * modules/closein-tests (Depends-on): Likewise.
48541         * modules/flock-tests (Depends-on): Likewise.
48542         * modules/fsync-tests (Depends-on): Likewise.
48543         * modules/lseek-tests (Depends-on): Likewise.
48544         * modules/pipe-tests (Depends-on): Likewise.
48545         * modules/posix_spawn-tests (Depends-on): Likewise.
48546         * modules/posix_spawnp-tests (Depends-on): Likewise.
48547         * modules/stat-time-tests (Depends-on): Likewise.
48548         * modules/yesno-tests (Depends-on): Likewise.
48549
48550 2009-07-19  Bruno Haible  <bruno@clisp.org>
48551
48552         Unify conditionals.
48553         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48554         macros, not at the compiler macros.
48555         * lib/pipe.c: Likewise.
48556         * lib/execute.c: Likewise.
48557         * lib/spawni.c: Likewise.
48558
48559 2009-07-19  Bruno Haible  <bruno@clisp.org>
48560
48561         Fix handling of closed stdin/stdout/stderr on mingw.
48562         * lib/w32spawn.h: Include unistd.h.
48563         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48564         file descriptor with O_NOINHERIT flag.
48565         (fd_safer_noinherit): New function, based on fd-safer.c.
48566         (dup_safer_noinherit): New function, based on dup-safer.c.
48567         (undup_safer_noinherit): New function.
48568         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48569         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48570         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48571         instead of fd_safer.
48572         * tests/test-pipe.c: Include <windows.h>.
48573         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48574         result.
48575
48576         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48577         from main.
48578         (test_pipe): Pass an extra argument for disambiguation.
48579         (main): Invoke parent_main or child_main.
48580
48581         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48582         consistently.
48583
48584 2009-07-18  Eric Blake  <ebb9@byu.net>
48585
48586         test-pipe: fix mingw build
48587         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48588
48589 2009-07-18  Bruno Haible  <bruno@clisp.org>
48590
48591         * modules/pipe-tests (Makefile.am): Fix typo.
48592
48593 2009-07-18  Eric Blake  <ebb9@byu.net>
48594
48595         error: fix mingw build
48596         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48597         Reported by Bruno Haible.
48598
48599         error: avoid undefined use of stdout
48600         * lib/error.c (error, error_at_line): Check that fd 1 is open
48601         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48602         is handling faults and the close_stdout module wants to report the
48603         detection of closed stdout as an error.
48604
48605 2009-07-17  Eric Blake  <ebb9@byu.net>
48606
48607         pipe: be robust in face of closed fds
48608         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48609         should cause child to misbehave.
48610         * modules/pipe-tests: New module.
48611         * tests/test-pipe.c: New file.
48612         * tests/test-pipe.sh: New file.
48613         Reported by Akim Demaille.
48614
48615 2009-07-14  Bruno Haible  <bruno@clisp.org>
48616
48617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48618         Reported by anonymous kc.
48619
48620 2009-07-07  Jim Meyering  <meyering@redhat.com>
48621
48622         maint.mk: don't look for translatable strings in *.m4 or *.mk
48623         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48624         when searching for translatable strings.
48625
48626 2009-07-05  Jim Meyering  <meyering@redhat.com>
48627
48628         remove superfluous parentheses in STREQ definition
48629         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48630         * lib/getugroups.c (STREQ): Likewise.
48631         * lib/fnmatch.c (STREQ): Likewise.
48632         Spotted by Bruno Haible.
48633
48634 2009-07-04  Jim Meyering  <meyering@redhat.com>
48635
48636         argv-iter: new module
48637         * MODULES.html.sh: Add argv-iter.
48638         * lib/argv-iter.c, lib/argv-iter.h: New files.
48639         * modules/argv-iter: New file.
48640         * modules/argv-iter-tests: New file.
48641         * tests/test-argv-iter.c: Test it.
48642
48643 2009-07-04  Bruno Haible  <bruno@clisp.org>
48644
48645         Fix assertion.
48646         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48647         contains more exact copies of a given entry than file2, leave the extra
48648         copies unpaired rather than aborting.
48649         Reported by Eric Blake.
48650
48651 2009-07-02  Bruno Haible  <bruno@clisp.org>
48652
48653         Speedup git-merge-changelog for git cherry-pick.
48654         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48655         (entries_mapping_get): New function, extracted from compute_mapping.
48656         (entries_mapping_reverse_get): New function.
48657         (compute_mapping): Add a 'full' argument. Return the result in a
48658         'struct entries_mapping'.
48659         (main): Update. Access the mappings through entries_mapping_get.
48660         Reported by Eric Blake.
48661
48662 2009-07-02  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48665         best_i.
48666
48667 2009-07-02  Bruno Haible  <bruno@clisp.org>
48668
48669         Speed up approximate search for matching ChangeLog entries.
48670         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48671         argument. Call fstrcmp_bounded instead of fstrcmp.
48672         (compute_mapping, try_split_merged_entry, main): Update callers.
48673
48674 2009-07-02  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48677
48678 2009-06-30  Bruno Haible  <bruno@clisp.org>
48679
48680         Reduce the number of uc_is_cased calls.
48681         * lib/unicase.h (casing_suffix_context_t): Add
48682         'first_char_except_ignorable' field.
48683         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48684         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48685         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48686         Update initializer.
48687         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48688         case-ignorable characters.
48689         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48690         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48691         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48692         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48693         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48694
48695 2009-06-30  Bruno Haible  <bruno@clisp.org>
48696
48697         Tests for module 'unicase/ignorable'.
48698         * modules/unicase/ignorable-tests: New file.
48699         * tests/unicase/test-ignorable.c: New file, generated by
48700         gen-uni-tables.
48701
48702         Tests for module 'unicase/cased'.
48703         * modules/unicase/cased-tests: New file.
48704         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48705         * tests/unicase/test-predicate-part1.h: New file, derived from
48706         tests/unictype/test-predicate-part1.h.
48707         * tests/unicase/test-predicate-part2.h: New file, same as
48708         tests/unictype/test-predicate-part2.h.
48709
48710         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48711         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48712         (output_casing_properties): New function.
48713         (main): Call it.
48714         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48715         * lib/unicase/cased.c: Include unictype/bitmap.h.
48716         (uc_is_cased): Define through a bitmap lookup.
48717         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48718         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48719         (uc_is_case_ignorable): Define through a bitmap lookup.
48720         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48721         lib/unictype/bitmap.h.
48722         (Depends-on): Add inline. Clean up.
48723         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48724         lib/unictype/bitmap.h.
48725         (Depends-on): Add inline. Clean up.
48726         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48727         recognition.
48728         * tests/unicase/test-u16-tolower.c (main): Likewise.
48729         * tests/unicase/test-u32-tolower.c (main): Likewise.
48730
48731 2009-06-30  Bruno Haible  <bruno@clisp.org>
48732
48733         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48734         * lib/unicase/u16-casemap.c: Likewise.
48735         * lib/unicase/u32-casemap.c: Likewise.
48736
48737 2009-06-29  Bruno Haible  <bruno@clisp.org>
48738
48739         Define u32_casefold as a wrapper around u32_ct_casefold.
48740         * lib/unicase/u32-casefold.c: Update.
48741         * modules/unicase/u32-casefold (Depends-on): Add
48742         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48743         unicase/empty-suffix-context. Clean up.
48744
48745         Define u16_casefold as a wrapper around u16_ct_casefold.
48746         * lib/unicase/u16-casefold.c: Update.
48747         * modules/unicase/u16-casefold (Depends-on): Add
48748         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48749         unicase/empty-suffix-context. Clean up.
48750
48751         Define u8_casefold as a wrapper around u8_ct_casefold.
48752         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48753         * lib/unicase/u8-casefold.c: Update.
48754         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48756
48757         Define u32_totitle as a wrapper around u32_ct_totitle.
48758         * lib/unicase/u32-totitle.c: Update.
48759         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48760         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48761
48762         Define u16_totitle as a wrapper around u16_ct_totitle.
48763         * lib/unicase/u16-totitle.c: Update.
48764         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48765         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48766
48767         Define u8_totitle as a wrapper around u8_ct_totitle.
48768         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48769         functions.
48770         (FUNC): Delegate to U_CT_TOTITLE.
48771         * lib/unicase/u8-totitle.c: Update.
48772         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48773         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48774
48775         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48776         invocation.
48777         * modules/unicase/u32-tolower (Depends-on): Add
48778         unicase/empty-prefix-context, unicase/empty-suffix-context.
48779
48780         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48781         invocation.
48782         * modules/unicase/u16-tolower (Depends-on): Add
48783         unicase/empty-prefix-context, unicase/empty-suffix-context.
48784
48785         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48786         * modules/unicase/u8-tolower (Depends-on): Add
48787         unicase/empty-prefix-context, unicase/empty-suffix-context.
48788
48789         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48790         invocation.
48791         * modules/unicase/u32-toupper (Depends-on): Add
48792         unicase/empty-prefix-context, unicase/empty-suffix-context.
48793
48794         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48795         invocation.
48796         * modules/unicase/u16-toupper (Depends-on): Add
48797         unicase/empty-prefix-context, unicase/empty-suffix-context.
48798
48799         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48800         * modules/unicase/u8-toupper (Depends-on): Add
48801         unicase/empty-prefix-context, unicase/empty-suffix-context.
48802
48803         New module 'unicase/u32-ct-casefold'.
48804         * lib/unicase/u32-ct-casefold.c: New file.
48805         * modules/unicase/u32-ct-casefold: New file.
48806
48807         New module 'unicase/u16-ct-casefold'.
48808         * lib/unicase/u16-ct-casefold.c: New file.
48809         * modules/unicase/u16-ct-casefold: New file.
48810
48811         New module 'unicase/u8-ct-casefold'.
48812         * lib/unicase/u8-ct-casefold.c: New file.
48813         * lib/unicase/u-ct-casefold.h: New file, derived from
48814         lib/unicase/u-casefold.h.
48815         * modules/unicase/u8-ct-casefold: New file.
48816
48817         New module 'unicase/u32-ct-totitle'.
48818         * lib/unicase/u32-ct-totitle.c: New file.
48819         * modules/unicase/u32-ct-totitle: New file.
48820
48821         New module 'unicase/u16-ct-totitle'.
48822         * lib/unicase/u16-ct-totitle.c: New file.
48823         * modules/unicase/u16-ct-totitle: New file.
48824
48825         New module 'unicase/u8-ct-totitle'.
48826         * lib/unicase/u8-ct-totitle.c: New file.
48827         * lib/unicase/u-ct-totitle.h: New file, derived from
48828         lib/unicase/u-totitle.h.
48829         * modules/unicase/u8-ct-totitle: New file.
48830
48831         New module 'unicase/u32-ct-tolower'.
48832         * lib/unicase/u32-ct-tolower.c: New file.
48833         * modules/unicase/u32-ct-tolower: New file.
48834
48835         New module 'unicase/u16-ct-tolower'.
48836         * lib/unicase/u16-ct-tolower.c: New file.
48837         * modules/unicase/u16-ct-tolower: New file.
48838
48839         New module 'unicase/u8-ct-tolower'.
48840         * lib/unicase/u8-ct-tolower.c: New file.
48841         * modules/unicase/u8-ct-tolower: New file.
48842
48843         New module 'unicase/u32-ct-toupper'.
48844         * lib/unicase/u32-ct-toupper.c: New file.
48845         * modules/unicase/u32-ct-toupper: New file.
48846
48847         New module 'unicase/u16-ct-toupper'.
48848         * lib/unicase/u16-ct-toupper.c: New file.
48849         * modules/unicase/u16-ct-toupper: New file.
48850
48851         New module 'unicase/u8-ct-toupper'.
48852         * lib/unicase/u8-ct-toupper.c: New file.
48853         * modules/unicase/u8-ct-toupper: New file.
48854
48855         Add context arguments to u*_casemap functions.
48856         * lib/unicase/unicasemap.h: Include unicase.h.
48857         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48858         suffix_context arguments.
48859         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48860         functions.
48861         (FUNC): Add prefix_context and suffix_context arguments. Use
48862         uc_is_cased and uc_is_case_ignorable.
48863         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48864         * lib/unicase/u16-casemap.c: Likewise.
48865         * lib/unicase/u32-casemap.c: Likewise.
48866         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48867         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48868         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48869         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48870         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48871         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48872
48873         New module 'unicase/u32-suffix-context'.
48874         * lib/unicase/u32-suffix-context.c: New file.
48875         * modules/unicase/u32-suffix-context: New file.
48876
48877         New module 'unicase/u16-suffix-context'.
48878         * lib/unicase/u16-suffix-context.c: New file.
48879         * modules/unicase/u16-suffix-context: New file.
48880
48881         New module 'unicase/u8-suffix-context'.
48882         * lib/unicase/u8-suffix-context.c: New file.
48883         * lib/unicase/u-suffix-context.h: New file.
48884         * modules/unicase/u8-suffix-context: New file.
48885
48886         New module 'unicase/empty-suffix-context'.
48887         * lib/unicase/empty-suffix-context.c: New file.
48888         * modules/unicase/empty-suffix-context: New file.
48889
48890         New module 'unicase/u32-prefix-context'.
48891         * lib/unicase/u32-prefix-context.c: New file.
48892         * modules/unicase/u32-prefix-context: New file.
48893
48894         New module 'unicase/u16-prefix-context'.
48895         * lib/unicase/u16-prefix-context.c: New file.
48896         * modules/unicase/u16-prefix-context: New file.
48897
48898         New module 'unicase/u8-prefix-context'.
48899         * lib/unicase/u8-prefix-context.c: New file.
48900         * lib/unicase/u-prefix-context.h: New file.
48901         * lib/unicase/context.h: New file.
48902         * modules/unicase/u8-prefix-context: New file.
48903
48904         New module 'unicase/empty-prefix-context'.
48905         * lib/unicase/empty-prefix-context.c: New file.
48906         * modules/unicase/empty-prefix-context: New file.
48907
48908         New module 'unicase/ignorable'.
48909         * lib/unicase/ignorable.c: New file.
48910         * modules/unicase/ignorable: New file.
48911
48912         New module 'unicase/cased'.
48913         * lib/unicase/caseprop.h: New file.
48914         * lib/unicase/cased.c: New file.
48915         * modules/unicase/cased: New file.
48916
48917         New functions for case mapping of substrings.
48918         * lib/unicase.h (casing_prefix_context_t): New type.
48919         (unicase_empty_prefix_context): New variable.
48920         (u8_casing_prefix_context, u16_casing_prefix_context,
48921         u32_casing_prefix_context, u8_casing_prefixes_context,
48922         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48923         declarations.
48924         (casing_suffix_context_t): New type.
48925         (unicase_empty_suffix_context): New variable.
48926         (u8_casing_suffix_context, u16_casing_suffix_context,
48927         u32_casing_suffix_context, u8_casing_suffixes_context,
48928         u16_casing_suffixes_context, u32_casing_suffixes_context,
48929         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48930         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48931         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48932         declarations.
48933
48934 2009-06-28  Jim Meyering  <meyering@redhat.com>
48935
48936         boostrap: indent only with spaces
48937         * build-aux/bootstrap: Indent only with spaces, never TABs.
48938
48939         bootstrap: split long lines
48940         * build-aux/bootstrap: Keep line length < 80.
48941
48942         bootstrap: sync from coreutils
48943         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48944         just as autoreconf does.  Verify a list of prerequisite
48945         package-name,version-number pairs if defined in bootstrap.conf.
48946         Refer to README-prereq, if prerequisites are not satisfied.
48947
48948 2009-06-27  Eric Blake  <ebb9@byu.net>
48949
48950         tests: add test for bogus NULL definition
48951         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48952         * tests/test-stdlib.c: Likewise.
48953         * tests/test-string.c: Likewise.
48954         * tests/test-locale.c: Likewise.
48955         * tests/test-unistd.c: Likewise.
48956         * modules/stdio-tests (Depends-on): Add verify.
48957         * modules/stdlib-tests (Depends-on): Likewise.
48958         * modules/string-tests (Depends-on): Likewise.
48959         * modules/locale-tests (Depends-on): Likewise.
48960         * modules/unistd-tests (Depends-on): Likewise.
48961
48962 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48963
48964         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48965         self-explaining comment.
48966         * m4/selinux-selinux-h: Update serial.
48967         (gl_LIBSELINUX): New macro, adding a warning for missing development
48968         packages to code extracted from...
48969         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48970         Add warning for missing development packages here, too.
48971
48972 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48973
48974         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48975
48976 2009-06-25  Eric Blake  <ebb9@byu.net>
48977
48978         version-etc: fix regression
48979         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48980         gcc.
48981         (version_etc): Use it, to catch bugs with trailing NULL.
48982         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48983         (version_etc_va): Fix logic bug.
48984         * modules/version-etc-tests: Add test.
48985         * tests/test-version-etc.c: New file.
48986         * tests/test-version-etc.sh: Likewise.
48987
48988 2009-06-25  Sam Steingold  <sds@gnu.org>
48989
48990         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48991         mbtowc declaration.
48992
48993 2009-06-25  Eric Blake  <ebb9@byu.net>
48994
48995         fpurge: migrate into <stdio.h>
48996         * lib/fpurge.h: Delete...
48997         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48998         * lib/fpurge.c (fpurge): Change declaring header.
48999         * modules/fpurge (Files): Drop deleted file.
49000         (Depends-on): Add stdio.
49001         (configure.ac): Set witness.
49002         * modules/stdio (Makefile.am): Support fpurge macros.
49003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49004         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49005         * lib/fflush.c: Update client.
49006         * tests/test-fpurge.c: Likewise.
49007         * NEWS: Mention the change.
49008
49009 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49010
49011         * lib/argp-version-etc.c (program_authors): Add const
49012         qualifier.
49013         * lib/version-etc.c: Fix typos in the comments.
49014         * modules/argp-version-etc: Depends on version-etc.
49015
49016 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49017
49018         argp-version-etc: new module.
49019
49020         * lib/argp-version-etc.c: New file.
49021         * lib/argp-version-etc.h: New file.
49022         * modules/argp-version-etc: New file.
49023         * modules/argp-version-etc-tests: New file.
49024         * tests/test-argp-version-etc.c: New test.
49025         * tests/test-argp-version-etc-1.sh: New test.
49026
49027 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49028
49029         Provide additional interfaces and documentation for version-etc
49030         module.
49031
49032         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49033         interfaces.
49034         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49035         prototypes.
49036
49037 2009-06-24  Bruno Haible  <bruno@clisp.org>
49038
49039         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49040         HAVE_LIB${NAME} macro.
49041         Reported by Sam Steingold <sds@gnu.org>.
49042
49043 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49044
49045         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49046         needed.
49047
49048 2009-06-21  Bruno Haible  <bruno@clisp.org>
49049
49050         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49051         work.
49052         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49053         together with LIB${NAME}, LTLIB${NAME}.
49054         Reported by Sam Steingold <sds@gnu.org>.
49055
49056 2009-06-20  Jim Meyering  <meyering@redhat.com>
49057
49058         tests: make sc_require_test_exit_idiom more generic
49059         * top/maint.mk (Exit_witness_file): New overridable variable.
49060         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49061         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49062
49063 2009-06-19  Jim Meyering  <meyering@redhat.com>
49064
49065         hash: reverse order of src/dst parameters in an internal interface
49066         * lib/hash.c (transfer_entries): Reverse order of parameters to
49067         put DST before SRC.  Adjust callers.
49068
49069         tests: test-hash: avoid wholesale duplication
49070         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49071         Instead, use a loop and add a single conditional.
49072
49073         tests: test-hash: allow seed selection via a command line argument
49074         * tests/test-hash.c (get_seed): New function.
49075         (main): Use it.
49076
49077 2009-06-19  Eric Blake  <ebb9@byu.net>
49078
49079         hash: avoid memory leak on allocation failure
49080         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49081         failure.  Factor repeated algorithm...
49082         (transfer_entries): ...into new helper routine.
49083         (hash_delete): React to hash_rehash return value.
49084
49085         hash: reduce memory pressure in hash_rehash no-op case
49086         * lib/hash.c (next_prime): Avoid overflow.
49087         (hash_initialize): Factor bucket size computation...
49088         (compute_bucket_size): ...into new helper function.
49089         (hash_rehash): Use new function and open coding to reduce memory
49090         pressure, and avoid a memory leak in USE_OBSTACK code.
49091         Reported by Jim Meyering.
49092
49093 2009-06-18  Eric Blake  <ebb9@byu.net>
49094
49095         hash: make rotation more obvious
49096         * modules/hash (Depends-on): Add bitrotate and stdint.
49097         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49098         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49099         (SIZE_MAX): Rely on headers for definition.
49100         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49101         (raw_hasher): Use rotr_sz.
49102         Suggested by Jim Meyering.
49103
49104         hash: fix memory leak in last patch
49105         * lib/hash.c (hash_rehash): Avoid memory leak.
49106
49107         hash: avoid no-op rehashing
49108         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49109
49110         hash: provide default callback functions
49111         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49112         (hash_initialize): Use them as defaults.
49113         * tests/test-hash.c (main): Test this.
49114
49115         hash: minor optimization
49116         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49117         when possible.
49118         (hash_initialize): Document this promise.
49119         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49120         * tests/test-hash.c (hash_compare_strings): Test this.
49121
49122 2009-06-18  Bruno Haible  <bruno@clisp.org>
49123
49124         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49125         going to be replaced anyway.
49126
49127 2009-06-18  Bruno Haible  <bruno@clisp.org>
49128
49129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49130         in one place.
49131         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49132         be replaced anyway.
49133
49134 2009-06-18  Eric Blake  <ebb9@byu.net>
49135
49136         hash: check for resize before insertion
49137         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49138         threshold before insertion, so that a pathological hash_rehash
49139         that fills every bucket can still trigger another rehash.
49140
49141 2009-06-18  Jim Meyering  <meyering@redhat.com>
49142
49143         hash-tests: add a loop around the small tests
49144         * tests/test-hash.c (main): Repeat small tests with selected
49145         small initial table sizes.
49146
49147 2009-06-17  Eric Blake  <ebb9@byu.net>
49148
49149         hash: minor cleanups
49150         * lib/hash.h (hash_entry): Make opaque, by moving...
49151         * lib/hash.c (hash_entry): ...here.
49152         (hash_insert): Clarify restrictions on what can be inserted.
49153         (hash_get_next): Clarify when it is safe to remove an element
49154         during traversal.
49155         (check_tuning): Skip verification when tuning is known safe.
49156         (hash_initialize): Clarify restrictions on tuning.
49157
49158 2009-06-17  Jim Meyering  <jim@meyering.net>
49159         and Eric Blake  <ebb9@byu.net>
49160
49161         hash-tests: new module
49162         * modules/hash-tests: New file.
49163         * tests/test-hash.c: New file.
49164
49165 2009-06-17  Eric Blake  <ebb9@byu.net>
49166
49167         strstr-simple: document new module
49168         * MODULES.html.sh: Document new module.
49169
49170         strstr, strcasestr: replace on platforms with broken memchr
49171         * modules/strstr: Split into...
49172         * modules/strstr-simple: ...new module that does not care about
49173         performance, but does care about glibc bug.
49174         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49175         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49176         if platform memchr is broken, per Debian bug 521737.
49177         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49178         memchr.
49179         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49180         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49181         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49182         * modules/mountlist (Depends-on): Add strstr-simple.
49183         * modules/gen-uni-tables (Depends-on): Likewise.
49184         * modules/argz (Depends-on): Add strstr.
49185
49186 2009-06-17  Bruno Haible  <bruno@clisp.org>
49187
49188         * modules/posix_spawn-internal (Depends-on): Add errno.
49189
49190 2009-06-17  Bruno Haible  <bruno@clisp.org>
49191
49192         Define missing ESTALE on Interix 3.5.
49193         * lib/errno.in.h (ESTALE): Assign a value if missing.
49194         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49196         missing.
49197         * doc/posix-headers/errno.texi: Mention the Interix bug.
49198         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49199
49200 2009-06-15  Eric Blake  <ebb9@byu.net>
49201
49202         memchr, memchr2: add valgrind exception
49203         * lib/memchr.valgrind: New file.
49204         * lib/memchr2.valgrind: New file.
49205         * modules/memchr (Files): Distribute valgrind file.
49206         * modules/memchr2 (Files): Likewise.
49207
49208         docs: memchr is no longer obsolete
49209         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49210         * lib/string.in.h (memchr): Simplify logic.
49211
49212 2009-06-14  Jim Meyering  <meyering@redhat.com>
49213
49214         link-follow: fix the "checking..." message to not mention trailing slash
49215         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49216         never considered trailing slashes.
49217
49218 2009-06-14  Bruno Haible  <bruno@clisp.org>
49219
49220         * m4/memchr.m4: Mention also the bug on IA-64.
49221         * doc/posix-functions/memchr.texi: Likewise.
49222
49223 2009-06-12  Eric Blake  <ebb9@byu.net>
49224
49225         memchr: detect broken x86_64 and alpha implementations
49226         * modules/memchr-tests (Depends-on): Move mmap detection...
49227         * modules/memchr (Depends-on): ...here.
49228         (configure.ac): Set indicator.
49229         * lib/string.in.h (memchr): Declare replacement.
49230         * modules/string (Makefile.am): Trigger replacement.
49231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49232         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49233         bugs.
49234         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49235         * modules/getpagesize (License): Relax license.
49236
49237 2009-06-11  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/idpriv.h: Add more references.
49240
49241 2009-06-08  Bruno Haible  <bruno@clisp.org>
49242
49243         Tests for module 'idpriv-droptemp'.
49244         * modules/idpriv-droptemp-tests: New file.
49245         * tests/test-idpriv-droptemp.sh: New file.
49246         * tests/test-idpriv-droptemp.su.sh: New file.
49247         * tests/test-idpriv-droptemp.c: New file.
49248
49249         New module 'idpriv-droptemp'.
49250         * lib/idpriv-droptemp.c: New file.
49251         * modules/idpriv-droptemp: New file.
49252
49253 2009-06-08  Bruno Haible  <bruno@clisp.org>
49254
49255         Tests for module 'idpriv-drop'.
49256         * modules/idpriv-drop-tests: New file.
49257         * tests/test-idpriv-drop.sh: New file.
49258         * tests/test-idpriv-drop.su.sh: New file.
49259         * tests/test-idpriv-drop.c: New file.
49260
49261         New module 'idpriv-drop'.
49262         * lib/idpriv.h: New file.
49263         * lib-idpriv-drop.c: New file.
49264         * m4/idpriv.m4: New file.
49265         * modules/idpriv-drop: New file.
49266
49267 2009-06-08  Bruno Haible  <bruno@clisp.org>
49268
49269         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49270         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49271         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49272         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49273         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49274         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49275         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49276
49277 2009-06-08  Eric Blake  <ebb9@byu.net>
49278
49279         test-strstr: use memory fence, when possible
49280         * tests/test-strstr.c (main): Use memory fence, in order to be
49281         more likely to trigger Debian bug 521737.
49282         * modules/strstr-tests (Files): Pull in additional files.
49283
49284         memchr: no longer obsolete, for wider field testing
49285         * modules/memchr (Status, Notice): Delete, this module is no
49286         longer obsolete.
49287         * modules/vasnprintf (Depends-on): Add memchr.
49288
49289 2009-06-07  Jim Meyering  <meyering@redhat.com>
49290
49291         hash: declare some functions with the warn_unused_result attribute
49292         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49293
49294 2009-06-07  Bruno Haible  <bruno@clisp.org>
49295
49296         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49297         Reported by Eric Blake.
49298
49299 2009-06-06  Eric Blake  <ebb9@byu.net>
49300
49301         test-alignof: fix typo with long double
49302         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49303         compiler error.
49304
49305 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49306
49307         Escape non-texinfo { and }s.
49308         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49309         markup error.
49310
49311 2009-06-04  Jim Meyering  <meyering@redhat.com>
49312
49313         gitlog-to-changelog: don't infloop on an empty commit log
49314         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49315         Reported by Boris Petersen <transacid@centerim.org>.
49316
49317 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49318
49319         version-etc: extend for packagers
49320         Add three new configure options, intended for packagers:
49321           --with-packager="packager name"
49322           --with-packager-version="packager-specific version"
49323           --with-packager-bug-reports="packager bug reporting"
49324         An example with coreutils:
49325           $ ./configure \
49326             --with-packager=Gentoo \
49327             --with-packager-bug-report=http://bugs.gentoo.org/ \
49328             --with-packager-version="patchset 1.6"
49329           $ ./src/ls --version | head -n2
49330           ls (GNU coreutils) 7.1-dirty
49331           Packaged by Gentoo (patchset 1.6)
49332         Note that the bug reporting info via --help doesn't show up because
49333         coreutils uses its own custom emit_bug_reporting_address() implementation
49334         in src/system.h.  If it didn't, it'd look like:
49335           $ ./src/ls --help | tail -n4
49336           Report bugs to <bug-coreutils@gnu.org>.
49337           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49338           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49339           General help using GNU software: <http://www.gnu.org/gethelp/>.
49340         * lib/version-etc.c: Print new information, if provided.
49341         * m4/version-etc.m4: New file.
49342         * modules/version-etc (Files): Add m4/version-etc.m4.
49343         (configure.ac): Add gl_VERSION_ETC.
49344
49345 2009-05-31  Bruno Haible  <bruno@clisp.org>
49346
49347         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49348         and 'int64_t'.
49349         * modules/alignof-tests (Dependencies): Add stdint.
49350         Reported by Eric Blake.
49351
49352 2009-05-31  Bruno Haible  <bruno@clisp.org>
49353
49354         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49355         restriction due to compiler bugs.
49356         Reported by Eric Blake.
49357
49358 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49359             Bruno Haible  <bruno@clisp.org>
49360
49361         Fix test-alignof failure.
49362         * lib/alignof.h (alignof_slot): New macro.
49363         (alignof_type): New macro, with the same semantics as the previous
49364         'alignof'.
49365         (alignof): Alias to alignof_slot.
49366         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49367         check that the results are usable as constant expressions.
49368
49369 2009-05-31  Bruno Haible  <bruno@clisp.org>
49370
49371         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49372         * tests/test-memchr.c (main): Check that memchr does not read past the
49373         first occurrence of the byte.
49374         * tests/test-strstr.c (main): Update comment.
49375         Suggested by Eric Blake.
49376
49377 2009-05-30  Bruno Haible  <bruno@clisp.org>
49378
49379         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49380         detail how to use dumpbin.
49381         Reported by David Byron <dbyron@dbyron.com>.
49382
49383 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49384
49385         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49386
49387 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49388
49389         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49390
49391 2009-05-28  Bruno Haible  <bruno@clisp.org>
49392
49393         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49394         build-aux/ files.
49395
49396 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49397
49398         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49399
49400 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49401
49402         * gnulib-tool (sed_transform_main_lib_file)
49403         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49404         regexps.
49405
49406 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49407
49408         * tests/test-strstr.c: Add another self-test.
49409         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49410         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49411
49412 2009-05-23  Bruno Haible  <bruno@clisp.org>
49413
49414         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49415         change.
49416
49417 2009-05-21  Bruno Haible  <bruno@clisp.org>
49418
49419         Simplify use of mode_t varargs.
49420         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49421         uses 'mode_t' or 'int'.
49422         * lib/openat.c (openat): Likewise.
49423         * lib/open-safer.c (open_safer): Likewise.
49424         * m4/mode_t.m4: New file.
49425         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49426         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49428         * modules/open (Files): Add m4/mode_t.m4.
49429         * modules/openat (Files): Likewise.
49430         * modules/fcntl-safer (Files): Likewise.
49431         Suggested by Eric Blake.
49432
49433 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49434
49435         * doc/glibc-functions/fallocate.texi: New file.
49436         * doc/gnulib.texi: Include it.
49437
49438 2009-05-21  Eric Blake  <ebb9@byu.net>
49439             Bruno Haible  <bruno@clisp.org>
49440
49441         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49442         invocations.
49443         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49444
49445 2009-05-21  Eric Blake  <ebb9@byu.net>
49446             Bruno Haible  <bruno@clisp.org>
49447
49448         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49449         include_next. Fix of 2008-11-20 commit.
49450         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49451         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49452         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49453         NEXT_MATH_H.
49454         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49455         instead of NEXT_MATH_H.
49456
49457 2009-05-21  Bruno Haible  <bruno@clisp.org>
49458
49459         Avoid redefinition warnings for SIZE_MAX.
49460         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49461         Reported by Simon Josefsson.
49462
49463 2009-05-21  Bruno Haible  <bruno@clisp.org>
49464
49465         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49466         AC_CACHE_VAL.
49467
49468 2009-05-20  Bruno Haible  <bruno@clisp.org>
49469
49470         Make zeroptr.h work on mingw.
49471         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49472         mprotect.
49473         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49474         * modules/memchr2-tests (configure.ac): Likewise.
49475         * modules/memcmp-tests (configure.ac): Likewise.
49476         * modules/memmem-tests (configure.ac): Likewise.
49477         * modules/memrchr-tests (configure.ac): Likewise.
49478         Reported by Simon Josefsson.
49479
49480 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49481
49482         * tests/test-glob.c: Include string.h for strcmp prototype.
49483
49484 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49485
49486         * modules/getdelim (Depends-on): Add explicit stdint, although it
49487         was implicitly already pulled in via realloc-posix.
49488         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49489
49490 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49491
49492         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49493         G. Christensen" <tgc@jupiterrise.com>.
49494         * m4/sys_socket_h.m4: Check for sa_family_t.
49495         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49496         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49497         * tests/test-sys_socket.c: Check that sa_family_t works.
49498
49499 2009-05-18  Eric Blake  <ebb9@byu.net>
49500
49501         maint.mk: allow gnulib_dir in VPATH build
49502         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49503
49504 2009-05-15  Jim Meyering  <meyering@redhat.com>
49505
49506         maint.mk: Give gnulib_dir a default definition.
49507         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49508         Thus, most packages no longer need to specify this variable in cfg.mk
49509
49510 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49511
49512         rename.m4: fix typos that would make non-mingw cross-configure fail
49513         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49514
49515 2009-05-13  Eric Blake  <ebb9@byu.net>
49516
49517         mmap-anon: avoid out-of-order autoconf expansion
49518         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49519         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49520         * modules/memchr-tests (Depends-on): Add extensions.
49521         * modules/memchr2-tests (Depends-on): Add extensions.
49522         * modules/memcmp-tests (Depends-on): Add extensions.
49523         * modules/memmem-tests (Depends-on): Add extensions.
49524         * modules/memrchr-tests (Depends-on): Add extensions.
49525
49526 2009-05-13  Bruno Haible  <bruno@clisp.org>
49527
49528         Make some tests ISO C 99 compliant.
49529         * tests/zerosize-ptr.h: New file.
49530         * tests/test-memchr.c: Include zerosize-ptr.h.
49531         (main): Use a zero-size object pointer instead of NULL.
49532         * tests/test-memchr2.c: Include zerosize-ptr.h.
49533         (main): Use a zero-size object pointer instead of NULL.
49534         * tests/test-memcmp.c: Include zerosize-ptr.h.
49535         (main): Use a zero-size object pointer instead of NULL.
49536         * tests/test-memmem.c: Include zerosize-ptr.h.
49537         (main): Use a zero-size object pointer instead of NULL.
49538         * tests/test-memrchr.c: Include zerosize-ptr.h.
49539         (main): Use a zero-size object pointer instead of NULL.
49540         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49541         m4/mmap-anon.m4.
49542         (Depends-on): Add getpagesize.
49543         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49544         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49545         m4/mmap-anon.m4.
49546         (Depends-on): Add getpagesize.
49547         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49548         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49549         m4/mmap-anon.m4.
49550         (Depends-on): Add getpagesize.
49551         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49552         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49553         m4/mmap-anon.m4.
49554         (Depends-on): Add getpagesize.
49555         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49556         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49557         m4/mmap-anon.m4.
49558         (Depends-on): Add getpagesize.
49559         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49560
49561 2009-05-12  Bruno Haible  <bruno@clisp.org>
49562
49563         Tests for module 'alignof'.
49564         * modules/alignof-tests: New file.
49565         * tests/test-alignof.c: New file.
49566
49567 2009-05-12  Bruno Haible  <bruno@clisp.org>
49568
49569         Fix alignof macro.
49570         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49571         vendor compilers that are always correct.
49572
49573 2009-05-12  Bruno Haible  <bruno@clisp.org>
49574
49575         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49576         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49577         not whether its fully works.
49578
49579 2009-05-12  Bruno Haible  <bruno@clisp.org>
49580
49581         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49582
49583 2009-05-12  Jim Meyering  <meyering@redhat.com>
49584
49585         * top/maint.mk: Adjust backslash alignment.
49586
49587 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49588
49589         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49590
49591 2009-05-11  Eric Blake  <ebb9@byu.net>
49592
49593         argp: avoid undefined behavior
49594         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49595         macros.
49596
49597 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49598
49599         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49600         user.name to prevent git commit from complaining.
49601
49602 2009-05-10  Bruno Haible  <bruno@clisp.org>
49603
49604         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49605         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49606         it rewrites every file name only once.
49607         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49608
49609 2009-05-08  Bruno Haible  <bruno@clisp.org>
49610
49611         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49612         instead of 'max'.
49613
49614 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49615
49616         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49617         sockaddr_storage test.
49618
49619 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49620
49621         * modules/sys_socket (Makefile.am): Substitute
49622         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49623         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49624         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49625         * tests/test-sys_socket.c: Check sockaddr_storage.
49626
49627 2009-05-08  Bruno Haible  <bruno@clisp.org>
49628
49629         New module 'alignof'.
49630         * lib/alignof.h: New file.
49631         * modules/alignof: New file.
49632
49633 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49634             Bruno Haible  <bruno@clisp.org>
49635
49636         Fix test-file-has-acl on FreeBSD.
49637         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49638         mask is implicitly added.
49639         * tests/test-file-has-acl.c: Include <signal.h>.
49640         (main): Terminate the test after 5 seconds.
49641         * modules/acl-tests (configure.ac): Check for alarm function.
49642
49643 2009-05-04  Bruno Haible  <bruno@clisp.org>
49644
49645         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49646         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49647         * modules/errno (configure.ac): Drop AC_REQUIRE.
49648         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49649         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49650
49651 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49652
49653         * modules/glob-tests: New module.
49654         * tests/test-glob.c: Add.
49655
49656 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49657
49658         * modules/fnmatch-tests: New module.
49659         * tests/test-fnmatch.c: Add.
49660
49661 2009-05-04  Eric Blake  <ebb9@byu.net>
49662
49663         maint: make the new no-submodule-changes rule VPATH-safe
49664         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49665
49666 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49667             Bruno Haible  <bruno@clisp.org>
49668
49669         acl: Fix infinite loop on FreeBSD.
49670         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49671         of return value from acl_get_entry.
49672         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49673         Likewise.
49674
49675 2009-05-03  Bruno Haible  <bruno@clisp.org>
49676
49677         * lib/acl-internal.h (acl_entries): Clarify return value.
49678         * lib/acl_entries.c (acl_entries): Likewise.
49679
49680 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49681
49682         Bug fix in acl module.
49683         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49684
49685 2009-05-03  Bruno Haible  <bruno@clisp.org>
49686
49687         Create gperf-generated file in the source dir, not in the build dir.
49688         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49689         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49690         * modules/unicase/locale-language (unicase/locale-languages.h):
49691         Likewise.
49692         * modules/unicase/special-casing (unicase/special-casing-table.h):
49693         Likewise.
49694         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49695         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49696         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49697         Reported by Ralf Wildenhues.
49698
49699 2009-05-03  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/fnmatch (Description, configure.ac): Taken from
49702         fnmatch-posix.
49703         * modules/fnmatch-posix: Turn into a symbolic reference to the
49704         'fnmatch' module, and deprecate.
49705         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49706
49707 2009-05-03  Bruno Haible  <bruno@clisp.org>
49708
49709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49710         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49711         Reported by Ralf Wildenhues.
49712
49713 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49714
49715         * m4/fnmatch.m4: Fix fnmatch re-define.
49716
49717 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49718
49719         priv-set: new module and tests; adapt write-any-file
49720         * lib/priv-set.c: New file.
49721         * lib/priv-set.h: New file.
49722         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49723         * lib/write-any-file.c: Simplify by using priv-set module.
49724         * m4/priv-set.m4: New file.
49725         * modules/priv-set: New file.
49726         * modules/unlinkdir: Add dependency on priv-set module.
49727         * modules/write-any-file: Likewise.
49728
49729         Tests for module 'priv-set'.
49730         * modules/priv-set-tests: New file.
49731         * tests/test-priv-set.c: New file.
49732
49733 2009-05-03  Jim Meyering  <meyering@redhat.com>
49734             Bruno Haible  <bruno@clisp.org>
49735
49736         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49737         use the converted UTF-8 variant of the name instead.
49738
49739 2009-05-03  Jim Meyering  <meyering@redhat.com>
49740
49741         tests: tighten some getdate tests
49742         * tests/test-getdate.c (main): Tighten tests: require equality,
49743         not just greater than.  Set TZ envvar to UTC0.
49744
49745 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49746
49747         getdate: correctly interpret "next monday" when run on a Monday
49748         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49749         that e.g., "next tues" (when run on a tuesday) results in a date
49750         that is one week in the future, and not today's date.
49751         I.e., add a week when the wday is the same as the current one.
49752         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49753         and earlier by Martin Bernreuther and Jan Minář.
49754         * tests/test-getdate.c (main): Check that "next DAY" is always in
49755         the future and that "last DAY" is always in the past.
49756
49757 2009-05-02  Jim Meyering  <meyering@redhat.com>
49758
49759         build: ensure that a release build fails when a submodule is unclean
49760         * top/maint.mk (no-submodule-changes): New rule.
49761         (alpha beta major): Depend on it.
49762
49763 2009-05-02  Bruno Haible  <bruno@clisp.org>
49764
49765         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49766         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49767         shell variable gl_fnmatch_required to detect which variant is
49768         requested.
49769         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49770         gl_FUNC_FNMATCH_POSIX.
49771         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49772         exclude fnmatch-posix.
49773
49774 2009-05-02  Bruno Haible  <bruno@clisp.org>
49775
49776         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49777         * modules/mbsrtowcs (License): Change to LGPLv2+.
49778         * modules/strnlen1 (License): Likewise.
49779         Reported by Simon Josefsson.
49780
49781 2009-05-02  Bruno Haible  <bruno@clisp.org>
49782
49783         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49784         "cross".
49785         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49786         gnulib-tool was called with option --source-base=lib.
49787
49788 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49789
49790         Use automake *-local hooks without commands, for extensibility.
49791         * modules/localcharset (Makefile.am): Rename install-exec-local
49792         rule to install-exec-localcharset, and make it a prerequisite of
49793         install-exec-local.  Likewise, rename the uninstall-local rule to
49794         uninstall-localcharset, and make it a prerequisite of the former.
49795
49796 2009-05-01  Bruno Haible  <bruno@clisp.org>
49797
49798         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49799         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49800         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49802         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49803         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49804         m4/locale-zh.m4, m4/codeset.m4.
49805
49806         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49807         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49808         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49809         m4/locale-zh.m4.
49810
49811         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49812         REPLACE_WCRTOMB if mbstate_t must be replaced.
49813         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49814         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49815
49816 2009-05-01  Bruno Haible  <bruno@clisp.org>
49817
49818         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49819         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49820         dngettext, dcngettext, textdomain, bindtextdomain,
49821         bind_textdomain_codeset): Undefine before redefining.
49822
49823 2009-04-30  Bruno Haible  <bruno@clisp.org>
49824
49825         Fix bug introduced on 2009-04-25.
49826         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49827         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49828         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49829         is defined.
49830         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49831         is defined.
49832         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49833         is defined.
49834         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49835
49836 2009-04-28  Bruno Haible  <bruno@clisp.org>
49837
49838         Comment tweaks.
49839         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49840         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49841         * lib/unicase.h (u*_casexfrm): Likewise.
49842         Reported by Paolo Bonzini.
49843
49844 2009-04-28  Bruno Haible  <bruno@clisp.org>
49845
49846         Fix a compilation error.
49847         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49848         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49849         Reported by Jim Meyering.
49850
49851 2009-04-27  Bruno Haible  <bruno@clisp.org>
49852
49853         New module 'libunistring'.
49854         * modules/libunistring: New file.
49855         * m4/libunistring.m4: New file.
49856         * MODULES.html.sh (Unicode string functions): Add it.
49857
49858 2009-04-27  Eric Blake  <ebb9@byu.net>
49859
49860         maint.mk: allow package-specific header to provide <config.h>
49861         * top/maint.mk (sc_require_config_h): New variable.
49862         (sc_require_config_h, sc_require_config_h_first): Use it.
49863
49864 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49865
49866         * top/maint.mk (sc_avoid_if_before_free): Except
49867         useless-if-before-free script.
49868
49869 2009-04-27  Eric Blake  <ebb9@byu.net>
49870
49871         maintainer-makefile: depend on all required helper scripts
49872         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49873         useless-if-before-free.
49874         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49875         version, rather than assuming gnulib checkout is available.
49876         Reported by Simen Josefsson.
49877
49878 2009-04-26  Bruno Haible  <bruno@clisp.org>
49879
49880         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49881         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49882         "../" or "..".
49883
49884 2009-04-26  Bruno Haible  <bruno@clisp.org>
49885
49886         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49887         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49888         AC_LIB_HAVE_LINKFLAGS.
49889
49890 2009-04-26  Bruno Haible  <bruno@clisp.org>
49891
49892         Simplify calling convention of u*_conv_from_encoding.
49893         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49894         u32_conv_from_encoding): Expect a resultbuf argument and return the
49895         result directly as a pointer.
49896         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49897         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49898         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49899         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49900         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49901         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49902         Update.
49903         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49904         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49905         * lib/vasnprintf.c (VASNPRINTF): Update.
49906         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49907         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49908         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49909         * NEWS: Mention the change.
49910
49911 2009-04-26  Bruno Haible  <bruno@clisp.org>
49912
49913         Simplify calling convention of u*_conv_to_encoding.
49914         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49915         u32_conv_to_encoding): Expect a resultbuf argument and return the
49916         result directly as a pointer.
49917         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49918         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49919         freeing scaled_offsets if mem_iconveha failed.
49920         * lib/unicase/u-casexfrm.h (FUNC): Update.
49921         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49922         * lib/vasnprintf.c (VASNPRINTF): Update.
49923         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49924         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49925         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49926         * NEWS: Mention the change.
49927
49928 2009-04-26  Bruno Haible  <bruno@clisp.org>
49929
49930         Avoid test failures on AIX and OSF/1.
49931         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49932         malloc(0).
49933         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49934         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49935         Likewise.
49936         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49937         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49938         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49939         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49940         * doc/posix-functions/malloc.texi: Document the portability problem
49941         related to malloc(0).
49942
49943 2009-04-26  Bruno Haible  <bruno@clisp.org>
49944
49945         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49946         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49947         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49948
49949 2009-04-25  Bruno Haible  <bruno@clisp.org>
49950
49951         Avoid link error when creating a namespace clean library.
49952         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49953         as macro with arguments if already defined as an alias.
49954         * lib/signbitf.c (gl_signbitf): Don't undefine.
49955         * lib/signbitd.c (gl_signbitd): Don't undefine.
49956         * lib/signbitl.c (gl_signbitl): Don't undefine.
49957
49958 2009-04-25  Jim Meyering  <meyering@redhat.com>
49959
49960         vc-list-files: fix another quoting bug
49961         * build-aux/vc-list-files: Avoid sed backslash expansion
49962         of pathological directory names.
49963
49964 2009-04-25  Eric Blake  <ebb9@byu.net>
49965
49966         vc-list-files: fix shell quoting error
49967         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49968         timestamp.
49969
49970 2009-04-25  Jim Meyering  <meyering@redhat.com>
49971
49972         vc-list-files: restore lost functionality with subdir argument
49973         * build-aux/vc-list-files: When given a non-"." sub-directory
49974         argument, substitute the $dir/ prefix back onto each resulting name.
49975         Otherwise, coreutils' root_tests check would fail.
49976
49977 2009-04-24  Eric Blake  <ebb9@byu.net>
49978
49979         vc-list-files: ignore git symlinks
49980         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49981         than ls-files, to ignore git symlinks.
49982
49983         maint.mk: import improvements from m4
49984         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49985         (move_if_change): Delete unused macro.
49986         (news-date-check, vc-diff-check): Support VPATH builds.
49987         (announcement): Likewise.  Split --bootstrap-tools list...
49988         (boostrap-tools): ...into separate list, which can be overridden
49989         in cfg.mk.
49990         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49991         requiring dependency on useless-if-before-free module.
49992         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49993         Support VPATH builds.
49994
49995 2009-04-24  Jim Meyering  <meyering@redhat.com>
49996
49997         maint.mk: remove coreutils-specific rules and variables
49998         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49999         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50000         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50001
50002         maint.mk: remove obsolete rule
50003         * top/maint.mk (rel-check): Remove rule.
50004         (WGET, WGETFLAGS): Remove now-unused variables.
50005
50006 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50007
50008         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50009         consistency.
50010
50011         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50012         '$(PATH_SEPARATOR)' instead of ':'.
50013
50014 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50015
50016         * lib/getopt1.c (main): Use 'const' for static array.
50017
50018 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50019
50020         * top/maint.mk: Sync with coreutils.
50021         * NEWS: Explain incompatibilities.
50022
50023 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50024             Bruno Haible  <bruno@clisp.org>
50025
50026         Fix cross-compilation results.
50027         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50028         statement, as third argument of AC_TRY_RUN.
50029         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50030         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50031         Likewise.
50032         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50033         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50034         Likewise.
50035         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50036         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50037         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50038
50039 2009-04-20  Bruno Haible  <bruno@clisp.org>
50040
50041         Avoid test failure on mingw.
50042         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50043
50044 2009-04-20  Bruno Haible  <bruno@clisp.org>
50045
50046         Avoid compilation error on mingw.
50047         * modules/localename-tests (Depends-on): Add locale.
50048
50049 2009-04-19  Bruno Haible  <bruno@clisp.org>
50050
50051         Support for building a shared library on Windows platforms.
50052         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50053         (main): Test the presence of UNINORM_NFC here.
50054         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50055         (main): Test the presence of UNINORM_NFD here.
50056         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50057         (main): Test the presence of UNINORM_NFKC here.
50058         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50059         (main): Test the presence of UNINORM_NFKD here.
50060
50061 2009-04-19  Bruno Haible  <bruno@clisp.org>
50062
50063         Avoid a compiler warning.
50064         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50065         Change type of variable 'sequence'.
50066
50067 2009-04-19  Bruno Haible  <bruno@clisp.org>
50068
50069         * modules/configmake (Makefile.am): When the contents of configmake.h
50070         does not change, arrange to preserve its modification time.
50071
50072 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50073
50074         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50075         gettext domain.
50076
50077 2009-04-16  Jim Meyering  <meyering@redhat.com>
50078
50079         useless-if-before-free: improve conversion code
50080         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50081         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50082
50083 2009-04-14  Bruno Haible  <bruno@clisp.org>
50084
50085         * modules/fcntl (Depends-on): Add extensions.
50086         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50087
50088 2009-04-12  Ben Pfaff  <blp@gnu.org>
50089
50090         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50091         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50092
50093 2009-03-20  Ben Pfaff  <blp@gnu.org>
50094
50095         Make rename replace existing destinations on Windows.
50096         * m4/rename.m4: Add test for Mingw.
50097         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50098         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50099         * doc/posix-functions/rename.texi: Document.
50100
50101 2009-04-10  Bruno Haible  <bruno@clisp.org>
50102
50103         New include file "iconveh.h".
50104         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50105         * lib/striconveh.h: Include it.
50106         (enum iconv_ilseq_handler): Remove definition.
50107         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50108         striconveh.h.
50109         * lib/striconveha.c: Include striconveh.h.
50110         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50111         * modules/striconveh (Files): Add lib/iconveh.h.
50112         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50113         lib/striconveh.h.
50114
50115 2009-04-10  Bruno Haible  <bruno@clisp.org>
50116
50117         * lib/uniconv.h: Update comment.
50118
50119 2009-04-10  Bruno Haible  <bruno@clisp.org>
50120
50121         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50122         always.
50123         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50124         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50125         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50126         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50127         "unistring-notinline.h", so that the function gets defined always.
50128         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50129         * lib/unistr/u8-uctomb.c: Likewise.
50130         * lib/unistr/u16-mbtouc.c: Likewise.
50131         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50132         * lib/unistr/u16-uctomb.c: Likewise.
50133         * lib/unistr/u32-mbtouc.c: Likewise.
50134         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50135         * lib/unistr/u32-uctomb.c: Likewise.
50136
50137 2009-04-10  Bruno Haible  <bruno@clisp.org>
50138
50139         Mark 'utime' obsolete.
50140         * modules/utime (Status, Notice): New sections.
50141         Suggested by Jim Meyering.
50142
50143         Fix cross-compile guess for utime test.
50144         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50145         autoconf.
50146         * doc/posix-functions/utime.texi: Give more precisions.
50147         Reported by Jan <ipif@ymail.com>.
50148
50149 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50150
50151         filevercmp: correct today's change
50152         * lib/filevercmp.c: Also handle coreutils' test inputs.
50153         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50154
50155         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50156         for reporting it.
50157         * lib/filevercmp.c: Special handle for "", "." and "..".
50158         * tests/test-filevercmp.c: Enlarge the set suite.
50159
50160 2009-04-07  Jim Meyering  <meyering@redhat.com>
50161
50162         useless-if-before-free: show how to remove braced useless free, too
50163         * build-aux/useless-if-before-free: still only in a comment, though.
50164
50165 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50166
50167         maint.mk: import changes to syntax-check macros from coreutils
50168         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50169         Use them in the relevant macros.
50170
50171 2009-04-06  Bruno Haible  <bruno@clisp.org>
50172
50173         Fix unportable use of bit-fields.
50174         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50175         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50176         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50177
50178 2009-04-06  Bruno Haible  <bruno@clisp.org>
50179
50180         Avoid test failures on AIX and OSF/1.
50181         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50182         that malloc(0) = NULL.
50183         * tests/unicase/test-u8-tolower.c (check): Likewise.
50184         * tests/unicase/test-u8-totitle.c (check): Likewise.
50185         * tests/unicase/test-u8-toupper.c (check): Likewise.
50186         * tests/unicase/test-u16-casefold.c (check): Likewise.
50187         * tests/unicase/test-u16-tolower.c (check): Likewise.
50188         * tests/unicase/test-u16-totitle.c (check): Likewise.
50189         * tests/unicase/test-u16-toupper.c (check): Likewise.
50190         * tests/unicase/test-u32-casefold.c (check): Likewise.
50191         * tests/unicase/test-u32-tolower.c (check): Likewise.
50192         * tests/unicase/test-u32-totitle.c (check): Likewise.
50193         * tests/unicase/test-u32-toupper.c (check): Likewise.
50194         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50195         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50196         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50197         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50198         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50199         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50200         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50201         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50202         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50203         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50204         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50205         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50206
50207 2009-04-05  Bruno Haible  <bruno@clisp.org>
50208
50209         Work around an autoconf limitation.
50210         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50211         comment line if it would be longer than 3 KB.
50212
50213 2009-04-05  Bruno Haible  <bruno@clisp.org>
50214
50215         Avoid test failure with libiconv-1.13.
50216         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50217         of the expected test results.
50218
50219 2009-04-05  Bruno Haible  <bruno@clisp.org>
50220
50221         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50222         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50223         that it should be installed.
50224
50225 2009-04-05  Bruno Haible  <bruno@clisp.org>
50226
50227         * gnulib-tool: New option --copy-file.
50228         (func_usage): Document it.
50229         (func_dest_tmpfilename): Moved out of func_import.
50230         (func_add_file, func_update_file): New functions, extracted from
50231         func_import.
50232         (func_import): Update.
50233
50234 2009-04-05  Karl Berry  <karl@gnu.org>
50235
50236         * README: prominently mention gnulib-tool.
50237         Rearrange sections so getting the code is near the top.
50238
50239 2009-04-05  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/unicase.h: Mention u*_cmp2.
50242         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50243         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50244         * lib/unicase/ulc-casecmp.c: Likewise.
50245         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50246         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50247         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50248         unistr/u8-cmp.
50249         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50250         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50251         unistr/u16-cmp.
50252         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50253         unistr/u32-cmp.
50254
50255         * lib/uninorm.h: Mention u*_cmp2.
50256         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50257         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50258         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50259         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50260         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50261         unistr/u8-cmp.
50262         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50263         unistr/u16-cmp.
50264         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50265         unistr/u32-cmp.
50266
50267         New module 'unistr/u32-cmp2'.
50268         * lib/unistr/u32-cmp2.c: New file.
50269         * modules/unistr/u32-cmp2: New file.
50270
50271         New module 'unistr/u16-cmp2'.
50272         * lib/unistr/u16-cmp2.c: New file.
50273         * modules/unistr/u16-cmp2: New file.
50274
50275         New module 'unistr/u8-cmp2'.
50276         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50277         * lib/unistr/u8-cmp2.c: New file.
50278         * lib/unistr/u-cmp2.h: New file.
50279         * modules/unistr/u8-cmp2: New file.
50280
50281 2009-04-05  Bruno Haible  <bruno@clisp.org>
50282
50283         * lib/unictype.h (uc_property_is_valid): New macro.
50284         * tests/unictype/test-pr_byname.c (main): Use it.
50285
50286         * lib/unistr.h: Doc fixes.
50287         * lib/uniconv.h: Doc fixes.
50288         * lib/unictype.h: Doc fixes.
50289
50290 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50291
50292         Port coreutils 7.2 to Solaris 8.
50293
50294         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50295         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50296         for Solaris 8.  This is a bit of a hack, as it means it's the
50297         caller's responsibility to add -lnsl if needed, but most likely it
50298         won't be needed since only getaddrinfo uses this and getaddrinfo
50299         isn't needed on Solaris 8.
50300
50301         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50302         problem to Solaris 8 encountered with coreutils 7.2, which
50303         resulted in a message "fnmatch.c:292: warning: passing argument 4
50304         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50305         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50306
50307 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50308
50309         * m4/ld-version-script.m4: Add FIXME comment.
50310
50311 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50312
50313         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50314         SOVERSION variable.
50315
50316 2009-04-02  Bruno Haible  <bruno@clisp.org>
50317
50318         * Makefile (info, html, dvi, pdf): Combine the rules.
50319         Suggested by Jim Meyering.
50320
50321 2009-04-01  Bruno Haible  <bruno@clisp.org>
50322
50323         * Makefile (info, html, dvi, pdf): New targets.
50324         Reported by Reuben Thomas <rrt@sc3d.org>.
50325
50326 2009-04-01  Bruno Haible  <bruno@clisp.org>
50327
50328         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50329         can be put into PATH.
50330         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50331
50332 2009-04-01  Bruno Haible  <bruno@clisp.org>
50333
50334         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50335
50336 2009-04-01  Bruno Haible  <bruno@clisp.org>
50337
50338         Rename module 'visibility'.
50339         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50340         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50341         * doc/gnulib.texi: Update.
50342         * MODULES.html.sh (Misc): Update.
50343         * NEWS: Mention the change.
50344
50345 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50346
50347         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50348         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50349         Eric Blake <ebb9@byu.net> for review.
50350         * MODULES.html.sh: Add lib-msvc-compat.
50351         * doc/gnulib.texi: Link to new section.
50352         * m4/ld-output-def.m4: New file.
50353         * doc/ld-output-def.texi: New file.
50354
50355 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50356
50357         Rename ld-version-script to lib-symbol-versions.  Suggested by
50358         Bruno Haible <bruno@clisp.org>.
50359         * modules/ld-version-script: Renamed to lib-symbol-versions.
50360         * doc/ld-version-script.texi: Fix module name.
50361         * MODULES.html.sh: Add lib-symbol-versions.
50362
50363 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50364
50365         * modules/u64-tests: New file.
50366         * tests/test-u64.c: New file.
50367
50368 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50369
50370         * MODULES.html.sh: Mention u64.
50371         * modules/u64: New module.
50372         * modules/crypto/sha512: Depend on u64 module instead of providing
50373         u64.h.
50374
50375 2009-03-27  Eric Blake  <ebb9@byu.net>
50376
50377         test-strerror: make debugging EAI_SYSTEM easier
50378         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50379         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50380         failure was EAI_SYSTEM.
50381
50382 2009-03-25  Bruno Haible  <bruno@clisp.org>
50383
50384         Fix a problem with --enable-relocatable on Solaris 7.
50385         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50386         since 2008-02-24.
50387
50388 2009-03-25  Eric Blake  <ebb9@byu.net>
50389
50390         test-sockets: avoid gcc warning
50391         * tests/test-sockets.c (main): Silence compiler warning.
50392
50393 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50394
50395         New modules nproc, pthread, contributed by Glen Lenker.
50396
50397         * MODULES.html.sh: Add pthread, nproc.
50398         * lib/nproc.c: New file.
50399         * lib/nproc.h: New file.
50400         * lib/pthread.in.h: New file.
50401         * m4/pthread.m4: New file.
50402         * modules/nproc: New file.
50403         * modules/pthread: New file.
50404
50405 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50406
50407         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50408         New variable.
50409
50410 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50411
50412         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50413         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50414         * tests/test-filevercmp.c: Add tests for backup suffixes.
50415
50416 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50417
50418         * modules/stdlib (Depends-on): Add stdint, needed when defining
50419         struct random_data on, for example, HP-UX 10.20.  Reported by
50420         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50421
50422 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50423
50424         * lib/readline.c (readline): Call fflush on stdout after printing
50425         prompt.
50426
50427 2009-03-20  Bruno Haible  <bruno@clisp.org>
50428
50429         Remove dependency from 'close' module to -lws2_32 on native Windows.
50430         * lib/close-hook.h: New file.
50431         * lib/close-hook.c: New file.
50432         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50433         w32sock.h.
50434         (_gl_close_fd_maybe_socket): Remove function.
50435         (rpl_close): Invoke execute_all_close_hooks instead of
50436         _gl_close_fd_maybe_socket.
50437         * lib/sockets.c: Include close-hook.h, w32sock.h.
50438         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50439         (close_sockets_hook): New variable.
50440         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50441         (gl_sockets_cleanup): Unregister it.
50442         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50443         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50444         * modules/close-hook: New file.
50445         * modules/close (Files): Remove lib/w32sock.h.
50446         (Depends-on): Add close-hook.
50447         (Link): Remove section.
50448         * modules/sockets (Files): Add lib/w32sock.h.
50449         (Depends-on): Add close-hook.
50450         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50451         invocation.
50452         * NEWS: Mention that LIB_CLOSE is gone.
50453
50454 2009-03-23  Eric Blake  <ebb9@byu.net>
50455
50456         signal-tests: test previous patch
50457         * tests/test-signal.c: New file.
50458         * modules/signal-tests: Likewise.
50459
50460         signal.h: always support 'volatile sig_atomic_t'
50461         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50462         (gl_SIGNAL_H_DEFAULTS): Add a default.
50463         * modules/signal (Makefile.am): Substitute if needed.
50464         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50465         users can blindly add volatile.
50466         * doc/posix-headers/signal.texi (signal.h): Document it.
50467         Reported by Matthew Woehlke.
50468
50469 2009-03-23  Jim Meyering  <meyering@redhat.com>
50470
50471         pathmax: PATH_MAX: use pathconf only when available
50472         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50473         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50474         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50475         This avoids a link failure in a PSP cross-compilation environment
50476         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50477
50478         * lib/vasnprintf.c (divide): Fix typo in comment.
50479
50480 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50481
50482         * gnulib-tool (func_filter_filelist): Fix comment.
50483
50484 2009-03-20  Bruno Haible  <bruno@clisp.org>
50485
50486         Make sockets.h self-contained.
50487         * lib/sockets.c: Include sockets.h first.
50488         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50489
50490 2009-03-19  Eric Blake  <ebb9@byu.net>
50491
50492         doc: mention more functions added in cygwin 1.7.0
50493         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50494         addition.
50495         * doc/posix-functions/log2f.texi: Likewise.
50496
50497 2009-03-19  Jim Meyering  <meyering@redhat.com>
50498
50499         fsusage: avoid syntax error due to statement-before-declaration
50500         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50501         after all declarations.  Reported by Matthew Woehlke in
50502         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50503
50504 2009-03-18  Eric Blake  <ebb9@byu.net>
50505
50506         build-aux/compile: sync from automake
50507         * build-aux/compile: New file, from automake.
50508         * config/srclist.txt: Mention build-aux/compile.
50509
50510 2009-03-17  Bruno Haible  <bruno@clisp.org>
50511
50512         * lib/git-merge-changelog.c: Fix typo in comment.
50513         Reported by Reuben Thomas <rrt@sc3d.org>.
50514
50515 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50516
50517         * m4/regex.m4: update and improve help for
50518         --without-included-regex.
50519
50520 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50521
50522         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50523         failure on missing include files.
50524
50525 2009-03-17  Eric Blake  <ebb9@byu.net>
50526
50527         doc: mention more functions added in cygwin 1.7.0
50528         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50529         addition.
50530         * doc/posix-functions/fwscanf.texi: Likewise.
50531         * doc/posix-functions/swprintf.texi: Likewise.
50532         * doc/posix-functions/swscanf.texi: Likewise.
50533         * doc/posix-functions/vfwprintf.texi: Likewise.
50534         * doc/posix-functions/vfwscanf.texi: Likewise.
50535         * doc/posix-functions/vswprintf.texi: Likewise.
50536         * doc/posix-functions/vswscanf.texi: Likewise.
50537         * doc/posix-functions/vwprintf.texi: Likewise.
50538         * doc/posix-functions/vwscanf.texi: Likewise.
50539         * doc/posix-functions/wcscasecmp.texi: Likewise.
50540         * doc/posix-functions/wcsdup.texi: Likewise.
50541         * doc/posix-functions/wcsftime.texi: Likewise.
50542         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50543         * doc/posix-functions/wprintf.texi: Likewise.
50544         * doc/posix-functions/wscanf.texi: Likewise.
50545         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50546
50547 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50548
50549         maint.mk: really add $(AM_MAKEFLAGS)
50550         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50551         was inadvertently omitted in the last commit.
50552         Spotted by Bruno Haible.
50553
50554         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50555         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50556         $(AM_MAKEFLAGS)' rather than plain `make'.
50557
50558         gnulib-tool: execute $MAKE not make
50559         * gnulib-tool: Default $MAKE to 'make'.
50560         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50561         than make.  Initialize $MAKE in the do-autobuild script.
50562
50563         gnulib-tool: use $MAKE not make in generated files
50564         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50565         make, in generated files.  Initialize $MAKE in the do-autobuild
50566         script.
50567
50568         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50569
50570         GNUmakefile: disable parallelism only for multiple, recursive targets
50571         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50572         additions in the Makefile.
50573         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50574         by Automake.
50575         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50576         are listed on the command line and at least one of them is
50577         listed in $(ALL_RECURSIVE_TARGETS).
50578
50579 2009-03-14  Bruno Haible  <bruno@clisp.org>
50580
50581         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50582         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50583         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50584         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50585         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50586         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50587         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50588         unistr/u8-uctomb.
50589         * modules/unistr/u8-strchr (Depends-on): Likewise.
50590         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50591         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50592         unistr/u16-uctomb.
50593         * modules/unistr/u16-strchr (Depends-on): Likewise.
50594         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50595
50596 2009-03-12  Bruno Haible  <bruno@clisp.org>
50597
50598         Work around select() bug on Interix 3.5.
50599         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50600         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50601         * m4/select.m4: New file.
50602         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50603         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50604         * modules/select (Files): Add m4/select.m4.
50605         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50606         * modules/nanosleep (Depends-on): Add select.
50607         * modules/poll (Depends-on): Likewise.
50608         * doc/posix-functions/select.texi: Mention the Interix bug.
50609         Reported by Markus Duft <mduft@gentoo.org>.
50610
50611         * lib/select.c: Renamed from lib/winsock-select.c.
50612         * modules/select (Files): Add lib/select.c, remove
50613         lib/winsock-select.c.
50614         (configure.ac): Update.
50615
50616 2009-03-12  Jim Meyering  <meyering@redhat.com>
50617
50618         avoid gcc warnings about unused macro definitions
50619         * lib/readtokens.c (STREQ): Remove unused definition.
50620         * lib/xmalloc.c (SIZE_MAX): Likewise.
50621         * lib/openat-die.c (N_): Likewise.
50622         * lib/mountlist.c (SIZE_MAX): Remove definition.
50623         Instead, include <stdint.h>.
50624         * lib/readutmp.c: Likewise.
50625         * modules/readutmp (Depends-on): Add stdint.
50626         * modules/mountlist (Depends-on): Add stdint.
50627         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50628
50629 2009-03-10  Bruno Haible  <bruno@clisp.org>
50630
50631         Tests for module 'mbmemcasecoll'.
50632         * modules/mbmemcasecoll-tests: New file.
50633         * tests/test-mbmemcasecoll1.sh: New file.
50634         * tests/test-mbmemcasecoll2.sh: New file.
50635         * tests/test-mbmemcasecoll3.sh: New file.
50636         * tests/test-mbmemcasecoll.c: New file.
50637
50638         New module 'mbmemcasecoll'.
50639         * lib/mbmemcasecoll.h: New file.
50640         * lib/mbmemcasecoll.c: New file.
50641         * modules/mbmemcasecoll: New file.
50642
50643         * tests/test-mbmemcasecmp.h: New file, extracted from
50644         tests/test-mbmemcasecmp.c.
50645         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50646         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50647         (main): Update.
50648         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50649
50650 2009-03-09  Bruno Haible  <bruno@clisp.org>
50651
50652         Tests for module 'mbmemcasecmp'.
50653         * modules/mbmemcasecmp-tests: New file.
50654         * tests/test-mbmemcasecmp1.sh: New file.
50655         * tests/test-mbmemcasecmp2.sh: New file.
50656         * tests/test-mbmemcasecmp3.sh: New file.
50657         * tests/test-mbmemcasecmp.c: New file.
50658
50659         New module 'mbmemcasecmp'.
50660         * lib/mbmemcasecmp.h: New file.
50661         * lib/mbmemcasecmp.c: New file.
50662         * modules/mbmemcasecmp: New file.
50663
50664 2009-03-09  Bruno Haible  <bruno@clisp.org>
50665
50666         Tests for module 'unicase/ulc-casecoll'.
50667         * modules/unicase/ulc-casecoll-tests: New file.
50668         * tests/unicase/test-ulc-casecoll1.sh: New file.
50669         * tests/unicase/test-ulc-casecoll2.sh: New file.
50670         * tests/unicase/test-ulc-casecoll.c: New file.
50671
50672         New module 'unicase/ulc-casecoll'.
50673         * lib/unicase.h (ulc_casecoll): New declaration.
50674         * lib/unicase/ulc-casecoll.c: New file.
50675         * modules/unicase/ulc-casecoll: New file.
50676
50677         New module 'unicase/ulc-casexfrm'.
50678         * lib/unicase.h (ulc_casexfrm): New declaration.
50679         * lib/unicase/ulc-casexfrm.c: New file.
50680         * modules/unicase/ulc-casexfrm: New file.
50681
50682 2009-03-09  Bruno Haible  <bruno@clisp.org>
50683
50684         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50685         invocations.
50686
50687         * m4/mbscasecmp.m4: Remove file.
50688         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50689         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50690
50691         * m4/mbscasestr.m4: Remove file.
50692         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50693         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50694
50695         * m4/mbschr.m4: Remove file.
50696         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50697         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50698
50699         * m4/mbscspn.m4: Remove file.
50700         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50701         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50702
50703         * m4/mbslen.m4: Remove file.
50704         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50705         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50706
50707         * m4/mbsncasecmp.m4: Remove file.
50708         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50709         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50710
50711         * m4/mbsnlen.m4: Remove file.
50712         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50713         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50714
50715         * m4/mbspbrk.m4: Remove file.
50716         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50717         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50718
50719         * m4/mbspcasecmp.m4: Remove file.
50720         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50721         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50722
50723         * m4/mbsrchr.m4: Remove file.
50724         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50725         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50726
50727         * m4/mbssep.m4: Remove file.
50728         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50729         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50730
50731         * m4/mbsspn.m4: Remove file.
50732         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50733         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50734
50735         * m4/mbsstr.m4: Remove file.
50736         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50737         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50738
50739         * m4/mbstok_r.m4: Remove file.
50740         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50741         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50742
50743         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50744
50745         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50746         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50747
50748         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50749
50750 2009-03-08  Bruno Haible  <bruno@clisp.org>
50751
50752         Tests for module 'unicase/ulc-casecmp'.
50753         * modules/unicase/ulc-casecmp-tests: New file.
50754         * tests/unicase/test-ulc-casecmp1.sh: New file.
50755         * tests/unicase/test-ulc-casecmp2.sh: New file.
50756         * tests/unicase/test-ulc-casecmp.c: New file.
50757
50758         New module 'unicase/ulc-casecmp'.
50759         * lib/unicase.h (ulc_casecmp): New declaration.
50760         * lib/unicase/ulc-casecmp.c: New file.
50761         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50762         'const SRC_UNIT *'.
50763         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50764         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50765         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50766         * modules/unicase/ulc-casecmp: New file.
50767
50768         Tests for module 'unicase/u32-is-cased'.
50769         * modules/unicase/u32-is-cased-tests: New file.
50770         * tests/unicase/test-u32-is-cased.c: New file.
50771
50772         Tests for module 'unicase/u16-is-cased'.
50773         * modules/unicase/u16-is-cased-tests: New file.
50774         * tests/unicase/test-u16-is-cased.c: New file.
50775
50776         Tests for module 'unicase/u8-is-cased'.
50777         * modules/unicase/u8-is-cased-tests: New file.
50778         * tests/unicase/test-u8-is-cased.c: New file.
50779         * tests/unicase/test-is-cased.h: New file.
50780
50781         New module 'unicase/u32-is-cased'.
50782         * lib/unicase/u32-is-cased.c: New file.
50783         * modules/unicase/u32-is-cased: New file.
50784
50785         New module 'unicase/u16-is-cased'.
50786         * lib/unicase/u16-is-cased.c: New file.
50787         * modules/unicase/u16-is-cased: New file.
50788
50789         New module 'unicase/u8-is-cased'.
50790         * lib/unicase/u8-is-cased.c: New file.
50791         * lib/unicase/u-is-cased.h: New file.
50792         * modules/unicase/u8-is-cased: New file.
50793
50794         Tests for module 'unicase/u32-is-casefolded'.
50795         * modules/unicase/u32-is-casefolded-tests: New file.
50796         * tests/unicase/test-u32-is-casefolded.c: New file.
50797
50798         Tests for module 'unicase/u16-is-casefolded'.
50799         * modules/unicase/u16-is-casefolded-tests: New file.
50800         * tests/unicase/test-u16-is-casefolded.c: New file.
50801
50802         Tests for module 'unicase/u8-is-casefolded'.
50803         * modules/unicase/u8-is-casefolded-tests: New file.
50804         * tests/unicase/test-u8-is-casefolded.c: New file.
50805         * tests/unicase/test-is-casefolded.h: New file.
50806
50807         New module 'unicase/u32-is-casefolded'.
50808         * lib/unicase/u32-is-casefolded.c: New file.
50809         * modules/unicase/u32-is-casefolded: New file.
50810
50811         New module 'unicase/u16-is-casefolded'.
50812         * lib/unicase/u16-is-casefolded.c: New file.
50813         * modules/unicase/u16-is-casefolded: New file.
50814
50815         New module 'unicase/u8-is-casefolded'.
50816         * lib/unicase/u8-is-casefolded.c: New file.
50817         * modules/unicase/u8-is-casefolded: New file.
50818
50819         Tests for module 'unicase/u32-is-titlecase'.
50820         * modules/unicase/u32-is-titlecase-tests: New file.
50821         * tests/unicase/test-u32-is-titlecase.c: New file.
50822
50823         Tests for module 'unicase/u16-is-titlecase'.
50824         * modules/unicase/u16-is-titlecase-tests: New file.
50825         * tests/unicase/test-u16-is-titlecase.c: New file.
50826
50827         Tests for module 'unicase/u8-is-titlecase'.
50828         * modules/unicase/u8-is-titlecase-tests: New file.
50829         * tests/unicase/test-u8-is-titlecase.c: New file.
50830         * tests/unicase/test-is-titlecase.h: New file.
50831
50832         New module 'unicase/u32-is-titlecase'.
50833         * lib/unicase/u32-is-titlecase.c: New file.
50834         * modules/unicase/u32-is-titlecase: New file.
50835
50836         New module 'unicase/u16-is-titlecase'.
50837         * lib/unicase/u16-is-titlecase.c: New file.
50838         * modules/unicase/u16-is-titlecase: New file.
50839
50840         New module 'unicase/u8-is-titlecase'.
50841         * lib/unicase/u8-is-titlecase.c: New file.
50842         * modules/unicase/u8-is-titlecase: New file.
50843
50844         Tests for module 'unicase/u32-is-lowercase'.
50845         * modules/unicase/u32-is-lowercase-tests: New file.
50846         * tests/unicase/test-u32-is-lowercase.c: New file.
50847
50848         Tests for module 'unicase/u16-is-lowercase'.
50849         * modules/unicase/u16-is-lowercase-tests: New file.
50850         * tests/unicase/test-u16-is-lowercase.c: New file.
50851
50852         Tests for module 'unicase/u8-is-lowercase'.
50853         * modules/unicase/u8-is-lowercase-tests: New file.
50854         * tests/unicase/test-u8-is-lowercase.c: New file.
50855         * tests/unicase/test-is-lowercase.h: New file.
50856
50857         New module 'unicase/u32-is-lowercase'.
50858         * lib/unicase/u32-is-lowercase.c: New file.
50859         * modules/unicase/u32-is-lowercase: New file.
50860
50861         New module 'unicase/u16-is-lowercase'.
50862         * lib/unicase/u16-is-lowercase.c: New file.
50863         * modules/unicase/u16-is-lowercase: New file.
50864
50865         New module 'unicase/u8-is-lowercase'.
50866         * lib/unicase/u8-is-lowercase.c: New file.
50867         * modules/unicase/u8-is-lowercase: New file.
50868
50869         Tests for module 'unicase/u32-is-uppercase'.
50870         * modules/unicase/u32-is-uppercase-tests: New file.
50871         * tests/unicase/test-u32-is-uppercase.c: New file.
50872
50873         Tests for module 'unicase/u16-is-uppercase'.
50874         * modules/unicase/u16-is-uppercase-tests: New file.
50875         * tests/unicase/test-u16-is-uppercase.c: New file.
50876
50877         Tests for module 'unicase/u8-is-uppercase'.
50878         * modules/unicase/u8-is-uppercase-tests: New file.
50879         * tests/unicase/test-u8-is-uppercase.c: New file.
50880         * tests/unicase/test-is-uppercase.h: New file.
50881
50882         New module 'unicase/u32-is-uppercase'.
50883         * lib/unicase/u32-is-uppercase.c: New file.
50884         * modules/unicase/u32-is-uppercase: New file.
50885
50886         New module 'unicase/u16-is-uppercase'.
50887         * lib/unicase/u16-is-uppercase.c: New file.
50888         * modules/unicase/u16-is-uppercase: New file.
50889
50890         New module 'unicase/u8-is-uppercase'.
50891         * lib/unicase/u8-is-uppercase.c: New file.
50892         * modules/unicase/u8-is-uppercase: New file.
50893
50894         New module 'unicase/u32-is-invariant'.
50895         * lib/unicase/u32-is-invariant.c: New file.
50896         * modules/unicase/u32-is-invariant: New file.
50897
50898         New module 'unicase/u16-is-invariant'.
50899         * lib/unicase/u16-is-invariant.c: New file.
50900         * modules/unicase/u16-is-invariant: New file.
50901
50902         New module 'unicase/u8-is-invariant'.
50903         * lib/unicase/u8-is-invariant.c: New file.
50904         * lib/unicase/invariant.h: New file.
50905         * lib/unicase/u-is-invariant.h: New file.
50906         * modules/unicase/u8-is-invariant: New file.
50907
50908         Tests for module 'unicase/u32-casecoll'.
50909         * modules/unicase/u32-casecoll-tests: New file.
50910         * tests/unicase/test-u32-casecoll.c: New file.
50911
50912         Tests for module 'unicase/u16-casecoll'.
50913         * modules/unicase/u16-casecoll-tests: New file.
50914         * tests/unicase/test-u16-casecoll.c: New file.
50915
50916         Tests for module 'unicase/u8-casecoll'.
50917         * modules/unicase/u8-casecoll-tests: New file.
50918         * tests/unicase/test-u8-casecoll.c: New file.
50919
50920         New module 'unicase/u32-casecoll'.
50921         * lib/unicase/u32-casecoll.c: New file.
50922         * modules/unicase/u32-casecoll: New file.
50923
50924         New module 'unicase/u16-casecoll'.
50925         * lib/unicase/u16-casecoll.c: New file.
50926         * modules/unicase/u16-casecoll: New file.
50927
50928         New module 'unicase/u8-casecoll'.
50929         * lib/unicase/u8-casecoll.c: New file.
50930         * lib/unicase/u-casecoll.h: New file.
50931         * modules/unicase/u8-casecoll: New file.
50932
50933         New module 'unicase/u32-casexfrm'.
50934         * lib/unicase/u32-casexfrm.c: New file.
50935         * modules/unicase/u32-casexfrm: New file.
50936
50937         New module 'unicase/u16-casexfrm'.
50938         * lib/unicase/u16-casexfrm.c: New file.
50939         * modules/unicase/u16-casexfrm: New file.
50940
50941         New module 'unicase/u8-casexfrm'.
50942         * lib/unicase/u8-casexfrm.c: New file.
50943         * lib/unicase/u-casexfrm.h: New file.
50944         * modules/unicase/u8-casexfrm: New file.
50945
50946         Tests for module 'unicase/u32-casecmp'.
50947         * modules/unicase/u32-casecmp-tests: New file.
50948         * tests/unicase/test-u32-casecmp.c: New file.
50949
50950         Tests for module 'unicase/u16-casecmp'.
50951         * modules/unicase/u16-casecmp-tests: New file.
50952         * tests/unicase/test-u16-casecmp.c: New file.
50953
50954         Tests for module 'unicase/u8-casecmp'.
50955         * modules/unicase/u8-casecmp-tests: New file.
50956         * tests/unicase/test-u8-casecmp.c: New file.
50957         * tests/unicase/test-casecmp.h: New file.
50958
50959         New module 'unicase/u32-casecmp'.
50960         * lib/unicase/u32-casecmp.c: New file.
50961         * modules/unicase/u32-casecmp: New file.
50962
50963         New module 'unicase/u16-casecmp'.
50964         * lib/unicase/u16-casecmp.c: New file.
50965         * modules/unicase/u16-casecmp: New file.
50966
50967         New module 'unicase/u8-casecmp'.
50968         * lib/unicase/u8-casecmp.c: New file.
50969         * lib/unicase/u-casecmp.h: New file.
50970         * modules/unicase/u8-casecmp: New file.
50971
50972         Tests for module 'unicase/u32-casefold'.
50973         * modules/unicase/u32-casefold-tests: New file.
50974         * tests/unicase/test-u32-casefold.c: New file.
50975
50976         Tests for module 'unicase/u16-casefold'.
50977         * modules/unicase/u16-casefold-tests: New file.
50978         * tests/unicase/test-u16-casefold.c: New file.
50979
50980         Tests for module 'unicase/u8-casefold'.
50981         * modules/unicase/u8-casefold-tests: New file.
50982         * tests/unicase/test-u8-casefold.c: New file.
50983
50984         New module 'unicase/u32-casefold'.
50985         * lib/unicase/u32-casefold.c: New file.
50986         * modules/unicase/u32-casefold: New file.
50987
50988         New module 'unicase/u16-casefold'.
50989         * lib/unicase/u16-casefold.c: New file.
50990         * modules/unicase/u16-casefold: New file.
50991
50992         New module 'unicase/u8-casefold'.
50993         * lib/unicase/u8-casefold.c: New file.
50994         * lib/unicase/u-casefold.h: New file.
50995         * modules/unicase/u8-casefold: New file.
50996
50997         New module 'unicase/tocasefold'.
50998         * lib/unicase/casefold.h: New file.
50999         * lib/unicase/tocasefold.c: New file.
51000         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51001         * modules/unicase/tocasefold: New file.
51002
51003         Tests for module 'unicase/u32-totitle'.
51004         * modules/unicase/u32-totitle-tests: New file.
51005         * tests/unicase/test-u32-totitle.c: New file.
51006
51007         Tests for module 'unicase/u16-totitle'.
51008         * modules/unicase/u16-totitle-tests: New file.
51009         * tests/unicase/test-u16-totitle.c: New file.
51010
51011         Tests for module 'unicase/u8-totitle'.
51012         * modules/unicase/u8-totitle-tests: New file.
51013         * tests/unicase/test-u8-totitle.c: New file.
51014
51015         New module 'unicase/u32-totitle'.
51016         * lib/unicase/u32-totitle.c: New file.
51017         * modules/unicase/u32-totitle: New file.
51018
51019         New module 'unicase/u16-totitle'.
51020         * lib/unicase/u16-totitle.c: New file.
51021         * modules/unicase/u16-totitle: New file.
51022
51023         New module 'unicase/u8-totitle'.
51024         * lib/unicase/u8-totitle.c: New file.
51025         * lib/unicase/u-totitle.h: New file.
51026         * modules/unicase/u8-totitle: New file.
51027
51028         Tests for module 'unicase/u32-tolower'.
51029         * modules/unicase/u32-tolower-tests: New file.
51030         * tests/unicase/test-u32-tolower.c: New file.
51031
51032         Tests for module 'unicase/u16-tolower'.
51033         * modules/unicase/u16-tolower-tests: New file.
51034         * tests/unicase/test-u16-tolower.c: New file.
51035
51036         Tests for module 'unicase/u8-tolower'.
51037         * modules/unicase/u8-tolower-tests: New file.
51038         * tests/unicase/test-u8-tolower.c: New file.
51039
51040         New module 'unicase/u32-tolower'.
51041         * lib/unicase/u32-tolower.c: New file.
51042         * modules/unicase/u32-tolower: New file.
51043
51044         New module 'unicase/u16-tolower'.
51045         * lib/unicase/u16-tolower.c: New file.
51046         * modules/unicase/u16-tolower: New file.
51047
51048         New module 'unicase/u8-tolower'.
51049         * lib/unicase/u8-tolower.c: New file.
51050         * modules/unicase/u8-tolower: New file.
51051
51052         Tests for module 'unicase/u32-toupper'.
51053         * modules/unicase/u32-toupper-tests: New file.
51054         * tests/unicase/test-u32-toupper.c: New file.
51055
51056         Tests for module 'unicase/u16-toupper'.
51057         * modules/unicase/u16-toupper-tests: New file.
51058         * tests/unicase/test-u16-toupper.c: New file.
51059
51060         Tests for module 'unicase/u8-toupper'.
51061         * modules/unicase/u8-toupper-tests: New file.
51062         * tests/unicase/test-u8-toupper.c: New file.
51063
51064         New module 'unicase/u32-toupper'.
51065         * lib/unicase/u32-toupper.c: New file.
51066         * modules/unicase/u32-toupper: New file.
51067
51068         New module 'unicase/u16-toupper'.
51069         * lib/unicase/u16-toupper.c: New file.
51070         * modules/unicase/u16-toupper: New file.
51071
51072         New module 'unicase/u8-toupper'.
51073         * lib/unicase/u8-toupper.c: New file.
51074         * modules/unicase/u8-toupper: New file.
51075
51076         New module 'unicase/u32-casemap'.
51077         * lib/unicase/u32-casemap.c: New file.
51078         * modules/unicase/u32-casemap: New file.
51079
51080         New module 'unicase/u16-casemap'.
51081         * lib/unicase/u16-casemap.c: New file.
51082         * modules/unicase/u16-casemap: New file.
51083
51084         New module 'unicase/u8-casemap'.
51085         * lib/unicase/unicasemap.h: New file.
51086         * lib/unicase/u8-casemap.c: New file.
51087         * lib/unicase/u-casemap.h: New file.
51088         * modules/unicase/u8-casemap: New file.
51089
51090         New module 'unicase/special-casing'.
51091         * lib/unicase/special-casing.h: New file.
51092         * lib/unicase/special-casing.c: New file.
51093         * lib/unicase/special-casing-table.gperf: New file, generated by
51094         gen-uni-tables.c.
51095         * modules/unicase/special-casing: New file.
51096
51097         Tests for module 'unicase/locale-language'.
51098         * modules/unicase/locale-language-tests: New file.
51099         * tests/unicase/test-locale-language.sh: New file.
51100         * tests/unicase/test-locale-language.c: New file.
51101
51102         New module 'unicase/locale-language'.
51103         * lib/unicase/locale-language.c: New file.
51104         * lib/unicase/locale-languages.gperf: New file.
51105         * modules/unicase/locale-language: New file.
51106
51107         Generate more tables for case conversion and case folding.
51108         * lib/gen-uni-tables.c (SCC_*): New enum items.
51109         (struct special_casing_rule): New type.
51110         (casing_rules, num_casing_rules, allocated_casing_rules): New
51111         variables.
51112         (add_casing_rule, fill_casing_rules): New functions.
51113         (struct casefold_rule): New type.
51114         (casefolding_rules, num_casefolding_rules,
51115         allocated_casefolding_rules): New variables.
51116         (fill_casefolding_rules): New function.
51117         (unicode_casefold): New variable.
51118         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51119         sort_casing_rules, output_casing_rules): New functions.
51120         (main): Accept to more arguments: SpecialCasing.txt and
51121         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51122         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51123         Output mapping for casefolding.
51124
51125         * lib/unicase.h: Include stdbool.h, uninorm.h.
51126         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51127         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51128         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51129         arguments.
51130         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51131         resultp arguments.
51132         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51133         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51134         resultp arguments.
51135         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51136         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51137         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51138         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51139         declarations.
51140         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51141
51142 2009-03-08  Bruno Haible  <bruno@clisp.org>
51143
51144         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51145         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51146         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51147         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51148
51149 2009-03-07  Bruno Haible  <bruno@clisp.org>
51150
51151         Adjust u*_normcmp, u*_normcoll API.
51152         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51153         u16_normcoll, u32_normcoll): Change failure conventions.
51154         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51155         errno and return -1.
51156         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51157
51158 2009-03-07  Bruno Haible  <bruno@clisp.org>
51159
51160         Tests for module 'uninorm/u32-normcoll'.
51161         * modules/uninorm/u32-normcoll-tests: New file.
51162         * tests/uninorm/test-u32-normcoll.c: New file.
51163
51164         Tests for module 'uninorm/u16-normcoll'.
51165         * modules/uninorm/u16-normcoll-tests: New file.
51166         * tests/uninorm/test-u16-normcoll.c: New file.
51167
51168         Tests for module 'uninorm/u8-normcoll'.
51169         * modules/uninorm/u8-normcoll-tests: New file.
51170         * tests/uninorm/test-u8-normcoll.c: New file.
51171
51172 2009-03-07  Bruno Haible  <bruno@clisp.org>
51173
51174         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51175         tests/uninorm/test-u32-normcmp.c.
51176         * tests/uninorm/test-u32-normcmp.c: Include it.
51177         (test_nonascii): New function, extracted from main. Add some more
51178         tests.
51179         (main): Invoke test_ascii and test_nonascii.
51180         * modules/uninorm/u32-normcmp-tests (Files): Add
51181         tests/uninorm/test-u32-normcmp.h.
51182         (Depends-on): Remove uninorm/u32-normcmp.
51183
51184         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51185         tests/uninorm/test-u16-normcmp.c.
51186         * tests/uninorm/test-u16-normcmp.c: Include it.
51187         (test_nonascii): New function, extracted from main. Add some more
51188         tests.
51189         (main): Invoke test_ascii and test_nonascii.
51190         * modules/uninorm/u16-normcmp-tests (Files): Add
51191         tests/uninorm/test-u16-normcmp.h.
51192         (Depends-on): Remove uninorm/u16-normcmp.
51193
51194         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51195         tests/uninorm/test-u8-normcmp.c.
51196         * tests/uninorm/test-u8-normcmp.c: Include it.
51197         (test_nonascii): New function, extracted from main. Add some more
51198         tests.
51199         (main): Invoke test_ascii and test_nonascii.
51200         * modules/uninorm/u8-normcmp-tests (Files): Add
51201         tests/uninorm/test-u8-normcmp.h.
51202         (Depends-on): Remove uninorm/u8-normcmp.
51203
51204 2009-03-07  Bruno Haible  <bruno@clisp.org>
51205
51206         New module 'uninorm/u32-normcoll'.
51207         * lib/uninorm/u32-normcoll.c: New file.
51208         * modules/uninorm/u32-normcoll: New file.
51209
51210         New module 'uninorm/u16-normcoll'.
51211         * lib/uninorm/u16-normcoll.c: New file.
51212         * modules/uninorm/u16-normcoll: New file.
51213
51214         New module 'uninorm/u8-normcoll'.
51215         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51216         declarations.
51217         * lib/uninorm/u8-normcoll.c: New file.
51218         * lib/uninorm/u-normcoll.h: New file.
51219         * modules/uninorm/u8-normcoll: New file.
51220
51221         New module 'uninorm/u32-normxfrm'.
51222         * lib/uninorm/u32-normxfrm.c: New file.
51223         * modules/uninorm/u32-normxfrm: New file.
51224
51225         New module 'uninorm/u16-normxfrm'.
51226         * lib/uninorm/u16-normxfrm.c: New file.
51227         * modules/uninorm/u16-normxfrm: New file.
51228
51229         New module 'uninorm/u8-normxfrm'.
51230         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51231         declarations.
51232         * lib/uninorm/u8-normxfrm.c: New file.
51233         * lib/uninorm/u-normxfrm.h: New file.
51234         * modules/uninorm/u8-normxfrm: New file.
51235
51236 2009-03-07  Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51239         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51240         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51241
51242 2009-03-07  Bruno Haible  <bruno@clisp.org>
51243
51244         New module 'memxfrm'.
51245         * lib/memxfrm.h: New file.
51246         * lib/memxfrm.c: New file.
51247         * modules/memxfrm: New file.
51248
51249 2009-03-07  Bruno Haible  <bruno@clisp.org>
51250
51251         New module 'memcmp2'.
51252         * lib/memcmp2.h: New file.
51253         * lib/memcmp2.c: New file.
51254         * modules/memcmp2: New file.
51255
51256 2009-03-07  Bruno Haible  <bruno@clisp.org>
51257
51258         Tests for module 'uninorm/decomposing-form'.
51259         * modules/uninorm/decomposing-form-tests: New file.
51260         * tests/uninorm/test-decomposing-form.c: New file.
51261
51262         New module 'uninorm/decomposing-form'.
51263         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51264         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51265         Add 'decomposing_variant' field.
51266         * lib/uninorm/decomposing-form.c: New file.
51267         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51268         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51269         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51270         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51271         * modules/uninorm/decomposing-form: New file.
51272         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51273         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51274
51275 2009-03-07  Bruno Haible  <bruno@clisp.org>
51276
51277         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51278         strings.
51279
51280 2009-03-06  Bruno Haible  <bruno@clisp.org>
51281
51282         Tests for module 'uninorm/u32-normcmp'.
51283         * tests/uninorm/test-u32-normcmp.c: New file.
51284         * modules/uninorm/u32-normcmp-tests: New file.
51285
51286         Tests for module 'uninorm/u16-normcmp'.
51287         * tests/uninorm/test-u16-normcmp.c: New file.
51288         * modules/uninorm/u16-normcmp-tests: New file.
51289
51290         Tests for module 'uninorm/u8-normcmp'.
51291         * tests/uninorm/test-u8-normcmp.c: New file.
51292         * modules/uninorm/u8-normcmp-tests: New file.
51293
51294         New module 'uninorm/u32-normcmp'.
51295         * lib/uninorm/u32-normcmp.c: New file.
51296         * modules/uninorm/u32-normcmp: New file.
51297
51298         New module 'uninorm/u16-normcmp'.
51299         * lib/uninorm/u16-normcmp.c: New file.
51300         * modules/uninorm/u16-normcmp: New file.
51301
51302         New module 'uninorm/u8-normcmp'.
51303         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51304         declarations.
51305         * lib/uninorm/u8-normcmp.c: New file.
51306         * lib/uninorm/u-normcmp.h: New file.
51307         * modules/uninorm/u8-normcmp: New file.
51308
51309 2009-03-06  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51312         Reported by Eric Blake.
51313
51314 2009-03-06  Eric Blake  <ebb9@byu.net>
51315             Bruno Haible  <bruno@clisp.org>
51316
51317         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51318         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51319         condition.
51320         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51321         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51322         condition.
51323         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51324
51325 2009-03-06  Eric Blake  <ebb9@byu.net>
51326
51327         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51328         to avoid compiler warnings.
51329         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51330
51331 2009-03-05  Bruno Haible  <bruno@clisp.org>
51332
51333         * tests/test-ftell.c (main): Disable test beyond end of file on
51334         FreeMiNT.
51335         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51336
51337 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51338
51339         * lib/filevercmp.c: Move hidden files up in ordering.
51340         * tests/test-filevercmp.c: Add tests for hidden files.
51341
51342 2009-03-04  Bruno Haible  <bruno@clisp.org>
51343
51344         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51345         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51346         AM_CFLAGS.
51347         Reported by Simon Josefsson.
51348
51349 2009-03-03  Bruno Haible  <bruno@clisp.org>
51350
51351         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51352         Reported by Simon Josefsson.
51353
51354         * doc/ld-version-script.texi: Update node reference.
51355
51356 2009-03-03  Bruno Haible  <bruno@clisp.org>
51357
51358         * modules/visibility (License): Change to 'unlimited'.
51359         Suggested by Simon Josefsson.
51360
51361 2009-03-03  Jim Meyering  <meyering@redhat.com>
51362
51363         unlinkdir: cannot_unlink_dir may modify process state
51364         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51365         it's neither thread-safe nor appropriate for use in a library.
51366
51367 2009-03-03  Eric Blake  <ebb9@byu.net>
51368
51369         test-closein: silence test under Darwin
51370         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51371         care if it dies from EPIPE or EBADF.
51372
51373 2009-03-03  Bruno Haible  <bruno@clisp.org>
51374
51375         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51376         earlier.
51377         * doc/visibility.texi: Fix @node and @section.
51378
51379 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51380
51381         * doc/gnulib.texi: Link to sections for ld version script and
51382         visibility.
51383         * doc/visibility.texi: Add @node and @section.
51384         * modules/ld-version-script: New module.
51385         * m4/ld-version-script.m4: New file.
51386         * doc/ld-version-script.texi: New file.
51387
51388 2009-03-02  David Lutterkort  <lutter@redhat.com>
51389
51390         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51392
51393 2009-03-02  Bruno Haible  <bruno@clisp.org>
51394
51395         * doc/visibility.texi: Mention libtool's -export-symbols option.
51396
51397 2009-03-02  Jim Meyering  <meyering@redhat.com>
51398
51399         announce-gen: new option: --no-print-checksums
51400         * build-aux/announce-gen (usage): Describe it.
51401         (print_checksums): Print a newline here, not in the [*] footnote.
51402         (main): Honor it.
51403
51404 2009-03-01  Bruno Haible  <bruno@clisp.org>
51405
51406         Use socklen_t in the native Windows replacements prototypes.
51407         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51408         instead of 'int'.
51409         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51410         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51411         * modules/getsockopt (Depends-on): Add socklen.
51412         * modules/setsockopt (Depends-on): Add socklen.
51413
51414 2009-03-01  Bruno Haible  <bruno@clisp.org>
51415
51416         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51417         least 4.2.
51418
51419 2009-03-01  Eric Blake  <ebb9@byu.net>
51420             Bruno Haible  <bruno@clisp.org>
51421
51422         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51423         error messages.
51424         * lib/wait-process.c (wait_subprocess): Omit error message about
51425         deadly signal sent to the child of termsigp != NULL.
51426
51427 2009-03-01  Eric Blake  <ebb9@byu.net>
51428
51429         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51430
51431 2009-03-01  Bruno Haible  <bruno@clisp.org>
51432
51433         Avoid a gcc warning.
51434         * tests/test-sched.c (b): Make global.
51435         Reported by Eric Blake.
51436
51437 2009-01-19  Martin Lambers  <marlam@marlam.de>
51438
51439         Provide POSIX semantics for socket timeout options on W32.
51440         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51441         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51442         * modules/setsockopt: Depend on sys_time module for struct timeval.
51443         * modules/getsockopt: Depend on sys_time module for struct timeval.
51444
51445 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51446
51447         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51448         __USE_GNU, for consistency with netdb.in.h.
51449         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51450
51451 2009-03-01  Bruno Haible  <bruno@clisp.org>
51452
51453         More support for FreeMiNT.
51454         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51455         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51456
51457 2009-03-01  Bruno Haible  <bruno@clisp.org>
51458
51459         More support for FreeMiNT.
51460         * lib/fpurge.c (fpurge): Correct last commit.
51461         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51462
51463 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51464
51465         Fix unportable awk script in vc-list-files.
51466         * build-aux/vc-list-files: In the replacement awk script, use
51467         substr with a second argument of 1, not zero.
51468         Report by Simon Josefsson.
51469
51470 2009-02-28  Bruno Haible  <bruno@clisp.org>
51471
51472         More support for FreeMiNT.
51473         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51474         to FreeMiNT today.
51475         * lib/fwriting.c (fwriting): Likewise.
51476         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51477
51478 2009-02-28  Bruno Haible  <bruno@clisp.org>
51479
51480         * tests/test-freadseek.c (main): Disable test beyond end of file on
51481         FreeMiNT.
51482         * tests/test-ftello.c (main): Likewise.
51483         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51484
51485 2009-02-28  Bruno Haible  <bruno@clisp.org>
51486
51487         Add tentative support for FreeMiNT.
51488         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51489         * lib/fpurge.c (fpurge): Likewise.
51490         * lib/freadable.c (freadable): Likewise.
51491         * lib/freading.c (freading): Likewise.
51492         * lib/freadptr.c (freadptr): Likewise.
51493         * lib/freadseek.c (freadptrinc): Likewise.
51494         * lib/fseeko.c (rpl_fseeko): Likewise.
51495         * lib/fseterr.c (fseterr): Likewise.
51496         * lib/fwritable.c (fwritable): Likewise.
51497         * lib/fwriting.c (fwriting): Likewise.
51498         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51499         Hourihane.
51500         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51501
51502 2009-02-28  Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51505         SIGCHLD.
51506         Reported by Jim Meyering.
51507
51508 2009-02-28  Bruno Haible  <bruno@clisp.org>
51509
51510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51511         Mention the results of these tests on various platforms.
51512         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51513         order.
51514         * doc/posix-functions/printf.texi: Likewise.
51515         * doc/posix-functions/snprintf.texi: Likewise.
51516         * doc/posix-functions/sprintf.texi: Likewise.
51517         * doc/posix-functions/vfprintf.texi: Likewise.
51518         * doc/posix-functions/vprintf.texi: Likewise.
51519         * doc/posix-functions/vsnprintf.texi: Likewise.
51520         * doc/posix-functions/vsprintf.texi: Likewise.
51521         * doc/glibc-functions/obstack_printf.texi: Likewise.
51522         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51523
51524 2009-02-28  Bruno Haible  <bruno@clisp.org>
51525
51526         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51527         Reported by Loïc Minier <lool@dooz.org>.
51528
51529 2009-02-27  Bruno Haible  <bruno@clisp.org>
51530
51531         * gnulib-tool (func_import): Make the sed expression used to create the
51532         sed script for updating the .gitignore file POSIX compliant.
51533         Reported by Eric Blake.
51534
51535 2009-02-27  Bruno Haible  <bruno@clisp.org>
51536
51537         * gnulib-tool (sed): Don't alias as "sed --posix".
51538         Reported by Eric Blake.
51539
51540 2009-02-27  Bruno Haible  <bruno@clisp.org>
51541
51542         Avoid test link errors.
51543         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51544         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51545         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51546         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51548
51549 2009-02-27  Bruno Haible  <bruno@clisp.org>
51550
51551         Avoid spurious "(cached)" in configure output.
51552         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51553         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51554         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51555         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51556         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51557         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51558         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51559         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51560         Reported by Eric Blake.
51561
51562 2009-02-27  Eric Blake  <ebb9@byu.net>
51563
51564         printf: fix regression in previous patch
51565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51566
51567 2009-02-27  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51570         value.
51571         * lib/stdint.in.h: Likewise.
51572         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51573
51574 2009-02-27  Eric Blake  <ebb9@byu.net>
51575
51576         doc: mention more functions added in cygwin 1.7.0
51577         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51578         addition.
51579         * doc/posix-functions/open_wmemstream.texi: Likewise.
51580         * doc/posix-functions/wcsnlen.texi: Likewise.
51581         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51582         * doc/posix-functions/wcstod.texi: Likewise.
51583         * doc/posix-functions/wcstof.texi: Likewise.
51584         * doc/posix-functions/wcstoimax.texi: Likewise.
51585         * doc/posix-functions/wcstok.texi: Likewise.
51586         * doc/posix-functions/wcstoumax.texi: Likewise.
51587
51588         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51590         * doc/posix-functions/fprintf.texi: Update.
51591         * doc/posix-functions/printf.texi: Update.
51592         * doc/posix-functions/snprintf.texi: Update.
51593         * doc/posix-functions/sprintf.texi: Update.
51594         * doc/posix-functions/vfprintf.texi: Update.
51595         * doc/posix-functions/vprintf.texi: Update.
51596         * doc/posix-functions/vsnprintf.texi: Update.
51597         * doc/posix-functions/vsprintf.texi: Update.
51598         * doc/glibc-functions/obstack_printf.texi: Update.
51599         * doc/glibc-functions/obstack_vprintf.texi: Update.
51600
51601 2009-02-26  Eric Blake  <ebb9@byu.net>
51602
51603         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51604         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51605         compilation bug by using runtime conversion.
51606         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51607         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51608         * modules/ceill-tests (Files): Use nan.h.
51609         * modules/floorl-tests (Files): Likewise.
51610         * modules/frexpl-tests (Files): Likewise.
51611         * modules/isnanl-tests (Files): Likewise.
51612         * modules/ldexpl-tests (Files): Likewise.
51613         * modules/roundl-tests (Files): Likewise.
51614         * modules/truncl-tests (Files): Likewise.
51615         * tests/test-ceill.c (main): Use a working NaN.
51616         * tests/test-floorl.c (main): Likewise.
51617         * tests/test-frexpl.c (main): Likewise.
51618         * tests/test-isnan.c (test_long_double): Likewise.
51619         * tests/test-isnanl.h (main): Likewise.
51620         * tests/test-ldexpl.h (main): Likewise.
51621         * tests/test-roundl.h (main): Likewise.
51622         * tests/test-truncl.h (main): Likewise.
51623         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51624
51625 2009-02-26  Eric Blake  <ebb9@byu.net>
51626             Bruno Haible  <bruno@clisp.org>
51627
51628         Work around a *printf bug with %ls on Solaris.
51629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51630         precision is specified, sprintf stops converting the wide string
51631         argument when the number of bytes that have been produced by this
51632         conversion equals or exceeds the precision.
51633         * doc/posix-functions/fprintf.texi: Update.
51634         * doc/posix-functions/printf.texi: Update.
51635         * doc/posix-functions/snprintf.texi: Update.
51636         * doc/posix-functions/sprintf.texi: Update.
51637         * doc/posix-functions/vfprintf.texi: Update.
51638         * doc/posix-functions/vprintf.texi: Update.
51639         * doc/posix-functions/vsnprintf.texi: Update.
51640         * doc/posix-functions/vsprintf.texi: Update.
51641         * doc/glibc-functions/obstack_printf.texi: Update.
51642         * doc/glibc-functions/obstack_vprintf.texi: Update.
51643
51644 2009-02-26  Eric Blake  <ebb9@byu.net>
51645
51646         stdlib: favor compiler check of random.h
51647         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51648         to avoid an ObjC random.h installed by Swarm.
51649
51650 2009-02-26  Bruno Haible  <bruno@clisp.org>
51651
51652         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51653         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51654         Reported by Gary V. Vaughan <gary@gnu.org>.
51655
51656 2009-02-26  Bruno Haible  <bruno@clisp.org>
51657
51658         Fix *printf behaviour regarding the %ls directive.
51659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51660         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51661         NEED_PRINTF_DIRECTIVE_LS.
51662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51663         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51665         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51666         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51667         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51668         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51673         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51677         * doc/posix-functions/fprintf.texi: Update.
51678         * doc/posix-functions/printf.texi: Update.
51679         * doc/posix-functions/snprintf.texi: Update.
51680         * doc/posix-functions/sprintf.texi: Update.
51681         * doc/posix-functions/vfprintf.texi: Update.
51682         * doc/posix-functions/vprintf.texi: Update.
51683         * doc/posix-functions/vsnprintf.texi: Update.
51684         * doc/posix-functions/vsprintf.texi: Update.
51685         * doc/glibc-functions/obstack_printf.texi: Update.
51686         * doc/glibc-functions/obstack_vprintf.texi: Update.
51687         Reported by Eric Blake.
51688
51689 2009-02-25  Bruno Haible  <bruno@clisp.org>
51690
51691         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51692         with known value.
51693         Reported by Gary V. Vaughan <gary@gnu.org>.
51694
51695 2009-02-25  Bruno Haible  <bruno@clisp.org>
51696
51697         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51698         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51699         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51700         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51701         Reported by Gary V. Vaughan <gary@gnu.org>.
51702
51703 2009-02-25  Bruno Haible  <bruno@clisp.org>
51704
51705         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51706         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51707         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51708         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51709         Reported by Gary V. Vaughan <gary@gnu.org>.
51710
51711 2009-02-25  Eric Blake  <ebb9@byu.net>
51712
51713         tests: skip fseek/ftell tests if ungetc is broken
51714         * m4/ungetc.m4: New file.
51715         * modules/fseek-tests: Split test, so ungetc dependency is
51716         separate from rest of test.
51717         * modules/fseeko-tests: Likewise.
51718         * modules/ftell-tests: Likewise.
51719         * modules/ftello-tests: Likewise.
51720         * tests/test-fseek.c (main): Isolate ungetc dependency.
51721         * tests/test-fseeko.c (main): Likewise.
51722         * tests/test-ftell.c (main): Likewise.
51723         * tests/test-ftello.c (main): Likewise.
51724         * tests/test-fseek2.sh: New file.
51725         * tests/test-fseeko2.sh: Likewise.
51726         * tests/test-ftell2.sh: Likewise.
51727         * tests/test-ftello2.sh: Likewise.
51728
51729 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51730
51731         test-getaddrinfo: fix usage of skip return code 77
51732         * tests/test-gettaddrinfo.c: Return skip code 77 only
51733         for first occurrence of skip (4x77 is not 77)
51734
51735 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51736
51737         strtod: avoid C99 decl-after-statement
51738         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51739
51740 2009-02-24  Eric Blake  <ebb9@byu.net>
51741
51742         strtod: detect HP-UX 11.31 bug
51743         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51744         Reported by Gary V. Vaughan.
51745
51746 2009-02-23  Bruno Haible  <bruno@clisp.org>
51747
51748         Fix invalid read past end of memory block.
51749         * lib/vasnprintf.c (DCHAR_SET): Define.
51750         (local_wcslen): Define only when needed.
51751         (local_strnlen, local_wcsnlen): New functions.
51752         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51753         directives that involve a conversion ourselves.
51754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51755         wcsnlen, mbrtowc, wcrtomb.
51756         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51757         * tests/test-vasprintf-posix.c (test_function): Likewise.
51758         * tests/test-snprintf-posix.h (test_function): Likewise.
51759         * tests/test-sprintf-posix.h (test_function): Likewise.
51760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51761
51762 2009-02-22  Bruno Haible  <bruno@clisp.org>
51763
51764         Implement new clarified decomposition of Hangul syllables.
51765         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51766         of type LTV, return only a pairwise decomposition.
51767         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51768         Likewise.
51769         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51770         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51771         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51772
51773 2009-02-22  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51776         zero-length results and shrink excess allocated memory.
51777         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51778         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51779         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51780         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51781         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51782         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51783         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51784         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51785         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51786         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51787         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51788         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51789
51790 2009-02-21  Bruno Haible  <bruno@clisp.org>
51791
51792         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51793         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51794         spaces after a period. Put a space between a macro name and its
51795         argument list. Trivial rewordings.
51796         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51797         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51798         (main): Return 0 explicitly.
51799
51800 2009-02-21  Bruno Haible  <bruno@clisp.org>
51801
51802         Tests for module 'uninorm/filter'.
51803         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51804         * modules/uninorm/filter-tests: New file.
51805
51806         New module 'uninorm/filter'.
51807         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51808         uninorm_filter_flush, uninorm_filter_free): New declarations.
51809         * lib/uninorm/uninorm-filter.c: New file.
51810         * modules/uninorm/filter: New file.
51811
51812 2009-02-21  Bruno Haible  <bruno@clisp.org>
51813
51814         Tests for module 'uninorm/nfkc'.
51815         * tests/uninorm/test-nfkc.c: New file.
51816         * tests/uninorm/test-u8-nfkc.c: New file.
51817         * tests/uninorm/test-u16-nfkc.c: New file.
51818         * tests/uninorm/test-u32-nfkc.c: New file.
51819         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51820         * tests/uninorm/test-u32-nfkc-big.c: New file.
51821         * modules/uninorm/nfkc-tests: New file.
51822
51823         New module 'uninorm/nfkc'.
51824         * lib/uninorm/nfkc.c: New file.
51825         * modules/uninorm/nfkc: New file.
51826
51827         Tests for module 'uninorm/nfkd'.
51828         * tests/uninorm/test-nfkd.c: New file.
51829         * tests/uninorm/test-u8-nfkd.c: New file.
51830         * tests/uninorm/test-u16-nfkd.c: New file.
51831         * tests/uninorm/test-u32-nfkd.c: New file.
51832         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51833         * tests/uninorm/test-u32-nfkd-big.c: New file.
51834         * modules/uninorm/nfkd-tests: New file.
51835
51836         New module 'uninorm/nfkd'.
51837         * lib/uninorm/nfkd.c: New file.
51838         * modules/uninorm/nfkd: New file.
51839
51840         Tests for module 'uninorm/nfc'.
51841         * tests/uninorm/test-nfc.c: New file.
51842         * tests/uninorm/test-u8-nfc.c: New file.
51843         * tests/uninorm/test-u16-nfc.c: New file.
51844         * tests/uninorm/test-u32-nfc.c: New file.
51845         * tests/uninorm/test-u32-nfc-big.sh: New file.
51846         * tests/uninorm/test-u32-nfc-big.c: New file.
51847         * modules/uninorm/nfc-tests: New file.
51848
51849         New module 'uninorm/nfc'.
51850         * lib/uninorm/nfc.c: New file.
51851         * modules/uninorm/nfc: New file.
51852
51853         Tests for module 'uninorm/nfd'.
51854         * tests/uninorm/test-nfd.c: New file.
51855         * tests/uninorm/test-u8-nfd.c: New file.
51856         * tests/uninorm/test-u16-nfd.c: New file.
51857         * tests/uninorm/test-u32-nfd.c: New file.
51858         * tests/uninorm/test-u32-nfd-big.sh: New file.
51859         * tests/uninorm/test-u32-nfd-big.c: New file.
51860         * tests/uninorm/test-u32-normalize-big.h: New file.
51861         * tests/uninorm/test-u32-normalize-big.c: New file.
51862         * tests/uninorm/NormalizationTest.txt: New file, created from
51863         Unicode 5.1.0 NormalizationTest.txt.
51864         * modules/uninorm/nfd-tests: New file.
51865
51866         New module 'uninorm/nfd'.
51867         * lib/uninorm/nfd.c: New file.
51868         * modules/uninorm/nfd: New file.
51869
51870         New module 'uninorm/u32-normalize'.
51871         * lib/uninorm/u32-normalize.c: New file.
51872         * modules/uninorm/u32-normalize: New file.
51873
51874         New module 'uninorm/u16-normalize'.
51875         * lib/uninorm/u16-normalize.c: New file.
51876         * modules/uninorm/u16-normalize: New file.
51877
51878         New module 'uninorm/u8-normalize'.
51879         * lib/uninorm/u8-normalize.c: New file.
51880         * lib/uninorm/normalize-internal.h: New file.
51881         * lib/uninorm/u-normalize-internal.h: New file.
51882         * modules/uninorm/u8-normalize: New file.
51883
51884         New module 'uninorm/decompose-internal'.
51885         * lib/uninorm/decompose-internal.c: New file.
51886         * modules/uninorm/decompose-internal: New file.
51887
51888         Tests for module 'uninorm/composition'.
51889         * tests/uninorm/test-composition.c: New file.
51890         * modules/uninorm/composition-tests: New file.
51891
51892         New module 'uninorm/composition'.
51893         * lib/uninorm/composition.c: New file.
51894         * lib/uninorm/composition-table.gperf: New file, generated by
51895         gen-uni-tables.
51896         * modules/uninorm/composition: New file.
51897
51898         Tests for module 'uninorm/compat-decomposition'.
51899         * tests/uninorm/test-compat-decomposition.c: New file.
51900         * modules/uninorm/compat-decomposition-tests: New file.
51901
51902         New module 'uninorm/compat-decomposition'.
51903         * lib/uninorm/decompose-internal.h: New file.
51904         * lib/uninorm/compat-decomposition.c: New file.
51905         * modules/uninorm/compat-decomposition: New file.
51906
51907         Tests for module 'uninorm/canonical-decomposition'.
51908         * tests/uninorm/test-canonical-decomposition.c: New file.
51909         * modules/uninorm/canonical-decomposition-tests: New file.
51910
51911         New module 'uninorm/canonical-decomposition'.
51912         * lib/uninorm/canonical-decomposition.c: New file.
51913         * modules/uninorm/canonical-decomposition: New file.
51914
51915         Tests for module 'uninorm/decomposition'.
51916         * tests/uninorm/test-decomposition.c: New file.
51917         * modules/uninorm/decomposition-tests: New file.
51918
51919         New module 'uninorm/decomposition'.
51920         * lib/uninorm/decomposition.c: New file.
51921         * modules/uninorm/decomposition: New file.
51922
51923         New module 'uninorm/decomposition-table'.
51924         * lib/uninorm/decomposition-table.h: New file.
51925         * lib/uninorm/decomposition-table.c: New file.
51926         * lib/uninorm/decomposition-table1.h: New file, generated by
51927         gen-uni-tables.
51928         * lib/uninorm/decomposition-table2.h: New file, generated by
51929         gen-uni-tables.
51930         * modules/uninorm/decomposition-table: New file.
51931
51932         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51933         (UC_DECOMP_*): New enumeration items.
51934         (get_decomposition): New function.
51935         (struct decomp_table): New type.
51936         (output_decomposition, output_decomposition_tables): New functions.
51937         (unicode_composition_exclusions): New variable.
51938         (fill_composition_exclusions, debug_output_composition_tables): New
51939         functions.
51940         (main): Accept one more argument. Invoke fill_composition_exclusions.
51941         Output decomposition and composition tables.
51942
51943         New module 'uninorm/base'.
51944         * lib/uninorm.h: New file.
51945         * lib/unictype.h: Update comment.
51946         * modules/uninorm/base: New file.
51947
51948 2009-02-21  David Lutterkort  <lutter@redhat.com>
51949
51950         Tests for module 'safe-alloc'.
51951         * tests/test-safe-alloc.c: New file.
51952         * modules/safe-alloc-tests: New file.
51953
51954         New module 'safe-alloc'.
51955         * lib/safe-alloc.h: New file.
51956         * lib/safe-alloc.c: New file.
51957         * m4/safe-alloc.m4: New file.
51958         * modules/safe-alloc: New file.
51959         * doc/safe-alloc.texi: New file.
51960         * doc/gnulib.texi: Include it.
51961         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51962         safe-alloc.
51963
51964 2009-02-18  Bruno Haible  <bruno@clisp.org>
51965
51966         Fix link error on non-glibc systems.
51967         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51968         variable.
51969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51970
51971 2009-02-18  Jim Meyering  <meyering@redhat.com>
51972
51973         fts: avoid used-uninitialized error due to recent change
51974         * lib/fts.c (fts_read): Guard uses of the new member,
51975         parent->fts_n_dirs_remaining, since it's not relevant for
51976         the parent of a directory specified on the command-line.
51977
51978 2009-02-17  James Youngman  <jay@gnu.org>
51979             Bruno Haible  <bruno@clisp.org>
51980
51981         * m4/include_next.m4: Reformulate comment.
51982
51983 2009-02-16  Jim Meyering  <meyering@redhat.com>
51984
51985         fts: add #if guards so that the fts_lgpl module still builds
51986         * lib/fts.c: Guard just-added hash-table-using parts with
51987         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51988         Reported by Simon Josefsson.
51989
51990 2009-02-15  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/array-mergesort-tests: New file.
51993         * tests/test-array-mergesort.c: New file.
51994
51995         New module 'array-mergesort'.
51996         * modules/array-mergesort: New file.
51997         * lib/array-mergesort.h: New file.
51998
51999 2009-02-15  Bruno Haible  <bruno@clisp.org>
52000
52001         Fix 2009-02-07 commit.
52002         * lib/gen-uni-tables.c (output_predicate, output_category,
52003         output_combclass, output_bidi_category, output_decimal_digit,
52004         output_digit, output_numeric, output_mirror, output_scripts,
52005         output_ident_category, output_simple_mapping): Fix format directives.
52006         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52007
52008 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52009
52010         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52011         fixes are available from IBM.
52012
52013 2009-02-13  Jim Meyering  <meyering@redhat.com>
52014
52015         fts: arrange not to stat non-directories in more cases
52016         This makes GNU find (when it doesn't need to stat each file)
52017         *much* more efficient at traversing reiserfs file systems.
52018         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52019         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52020         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52021         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52022         (leaf_optimization_applies): New function.
52023         (LCO_hash, LCO_compare): New helper functions.
52024         (link_count_optimize_ok): New function.
52025         (fts_stat): Initialize new member (if dir).
52026         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52027         we've just stat'ed a directory.  Skip the stat call when possible.
52028         ---
52029         Note this AFS-related exchange:
52030         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52031         and note find's pioctl call in find/fstype.c.
52032         But that is necessary only if you want to enable the
52033         optimization for AFS, and for now, I don't.
52034
52035         fts: move a function definition "up" (no semantic change)
52036         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52037         "up" to precede upcoming use of a related function.
52038
52039 2009-02-11  Jim Meyering  <meyering@redhat.com>
52040
52041         fts: correct internal computation of nlinks (optimization-related)
52042         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52043         whether the current entry is a directory, so don't test it.
52044
52045 2009-02-10  Bruno Haible  <bruno@clisp.org>
52046
52047         Tests for module 'uniwbrk/ulc-wordbreaks'.
52048         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52049         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52050         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52051
52052         Tests for module 'uniwbrk/u32-wordbreaks'.
52053         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52054         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52055
52056         Tests for module 'uniwbrk/u16-wordbreaks'.
52057         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52058         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52059
52060         Tests for module 'uniwbrk/u8-wordbreaks'.
52061         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52062         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52063
52064 2009-02-10  Bruno Haible  <bruno@clisp.org>
52065
52066         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52067         property.
52068         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52069         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52070         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52071
52072 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52073
52074         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52075         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52076
52077 2009-02-10  Bruno Haible  <bruno@clisp.org>
52078
52079         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52080         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52081         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52082         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52083         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52084         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52085
52086 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52087
52088         * lib/sockets.h (gl_fd_to_handle): New function.
52089
52090         * tests/test-sockets.c: Call gl_fd_to_handle.
52091
52092 2009-02-09  Bruno Haible  <bruno@clisp.org>
52093
52094         * doc/havelib.texi: Document the conventions on bi-arch systems.
52095
52096 2009-02-08  Bruno Haible  <bruno@clisp.org>
52097
52098         Document the AC_LIB_LINKFLAGS macro.
52099         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52100         * doc/gnulib.texi: Include it.
52101
52102 2009-02-08  Bruno Haible  <bruno@clisp.org>
52103
52104         Fix wrong order of sections, compared to TOC.
52105         * doc/gnulib.texi: Include relocatable-maint.texi after the
52106         "Regular expressions" node, not before.
52107
52108 2009-02-08  Bruno Haible  <bruno@clisp.org>
52109
52110         Tests for module 'unicase/totitle'.
52111         * modules/unicase/totitle-tests: New file.
52112
52113         Tests for module 'unicase/tolower'.
52114         * modules/unicase/tolower-tests: New file.
52115
52116         Tests for module 'unicase/toupper'.
52117         * modules/unicase/toupper-tests: New file.
52118         * tests/unicase/test-mapping-part1.h: New file.
52119         * tests/unicase/test-mapping-part2.h: New file.
52120
52121         New module 'unicase/totitle'.
52122         * modules/unicase/totitle: New file.
52123         * lib/unicase/totitle.c: New file.
52124
52125         New module 'unicase/tolower'.
52126         * modules/unicase/tolower: New file.
52127         * lib/unicase/tolower.c: New file.
52128
52129         New module 'unicase/toupper'.
52130         * modules/unicase/toupper: New file.
52131         * lib/unicase/toupper.c: New file.
52132         * lib/unicase/simple-mapping.h: New file.
52133
52134         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52135         (mapping_table): New structure.
52136         (output_simple_mapping): New function.
52137         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52138         * modules/gen-uni-tables (Description): Update.
52139         * lib/unicase/toupper.h: New file, automatically generated by
52140         gen-uni-tables.
52141         * lib/unicase/tolower.h: New file, automatically generated by
52142         gen-uni-tables.
52143         * lib/unicase/totitle.h: New file, automatically generated by
52144         gen-uni-tables.
52145         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52146         gen-uni-tables.
52147         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52148         gen-uni-tables.
52149         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52150         gen-uni-tables.
52151
52152         New module 'unicase/base'.
52153         * modules/unicase/base: New file.
52154         * lib/unicase.h: New file.
52155
52156 2009-02-08  Bruno Haible  <bruno@clisp.org>
52157
52158         New module 'uniwbrk/ulc-wordbreaks'.
52159         * modules/uniwbrk/ulc-wordbreaks: New file.
52160         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52161
52162         New module 'uniwbrk/u32-wordbreaks'.
52163         * modules/uniwbrk/u32-wordbreaks: New file.
52164         * lib/uniwbrk/u32-wordbreaks.c: New file.
52165
52166         New module 'uniwbrk/u16-wordbreaks'.
52167         * modules/uniwbrk/u16-wordbreaks: New file.
52168         * lib/uniwbrk/u16-wordbreaks.c: New file.
52169
52170         New module 'uniwbrk/u8-wordbreaks'.
52171         * modules/uniwbrk/u8-wordbreaks: New file.
52172         * lib/uniwbrk/u8-wordbreaks.c: New file.
52173         * lib/uniwbrk/u-wordbreaks.h: New file.
52174
52175         New module 'uniwbrk/table'.
52176         * modules/uniwbrk/table: New file.
52177         * lib/uniwbrk/wbrktable.h: New file.
52178         * lib/uniwbrk/wbrktable.c: New file.
52179
52180         New module 'uniwbrk/wordbreak-property'.
52181         * modules/uniwbrk/wordbreak-property: New file.
52182         * lib/uniwbrk/wordbreak-property.c: New file.
52183
52184         * lib/gen-uni-tables.c (WBP_*): New enum items.
52185         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52186         (unicode_org_wbp): New variable.
52187         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52188         New functions.
52189         (wbp_table): New structure.
52190         (output_wbp, output_wbrk_tables): New functions.
52191         (main): Accept additional argument. Invoke fill_org_wbp,
52192         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52193         output_wbrk_tables.
52194         * modules/gen-uni-tables (Description): Update.
52195         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52196         gen-uni-tables.
52197
52198         New module 'uniwbrk/base'.
52199         * modules/uniwbrk/base: New file.
52200         * lib/uniwbrk.h: New file.
52201
52202 2009-02-08  Bruno Haible  <bruno@clisp.org>
52203
52204         Update to Unicode 5.1.0.
52205         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52206         U+2185..U+2188.
52207         (is_property_default_ignorable_code_point): Don't include characters
52208         of category Cc or Cs and not-a-characters.
52209         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52210         U+0D79, U+109E, U+109F, U+A60C.
52211         * lib/unictype/bidi_of.h: Regenerated.
52212         * lib/unictype/blocks.h: Regenerated.
52213         * lib/unictype/categ_C.h: Regenerated.
52214         * lib/unictype/categ_Cf.h: Regenerated.
52215         * lib/unictype/categ_Cn.h: Regenerated.
52216         * lib/unictype/categ_L.h: Regenerated.
52217         * lib/unictype/categ_Ll.h: Regenerated.
52218         * lib/unictype/categ_Lm.h: Regenerated.
52219         * lib/unictype/categ_Lo.h: Regenerated.
52220         * lib/unictype/categ_Lu.h: Regenerated.
52221         * lib/unictype/categ_M.h: Regenerated.
52222         * lib/unictype/categ_Mc.h: Regenerated.
52223         * lib/unictype/categ_Me.h: Regenerated.
52224         * lib/unictype/categ_Mn.h: Regenerated.
52225         * lib/unictype/categ_N.h: Regenerated.
52226         * lib/unictype/categ_Nd.h: Regenerated.
52227         * lib/unictype/categ_Nl.h: Regenerated.
52228         * lib/unictype/categ_No.h: Regenerated.
52229         * lib/unictype/categ_P.h: Regenerated.
52230         * lib/unictype/categ_Pd.h: Regenerated.
52231         * lib/unictype/categ_Pe.h: Regenerated.
52232         * lib/unictype/categ_Pf.h: Regenerated.
52233         * lib/unictype/categ_Pi.h: Regenerated.
52234         * lib/unictype/categ_Po.h: Regenerated.
52235         * lib/unictype/categ_Ps.h: Regenerated.
52236         * lib/unictype/categ_S.h: Regenerated.
52237         * lib/unictype/categ_Sk.h: Regenerated.
52238         * lib/unictype/categ_Sm.h: Regenerated.
52239         * lib/unictype/categ_So.h: Regenerated.
52240         * lib/unictype/categ_of.h: Regenerated.
52241         * lib/unictype/combining.h: Regenerated.
52242         * lib/unictype/ctype_alnum.h: Regenerated.
52243         * lib/unictype/ctype_alpha.h: Regenerated.
52244         * lib/unictype/ctype_graph.h: Regenerated.
52245         * lib/unictype/ctype_lower.h: Regenerated.
52246         * lib/unictype/ctype_print.h: Regenerated.
52247         * lib/unictype/ctype_punct.h: Regenerated.
52248         * lib/unictype/ctype_upper.h: Regenerated.
52249         * lib/unictype/decdigit.h: Regenerated.
52250         * lib/unictype/digit.h: Regenerated.
52251         * lib/unictype/mirror.h: Regenerated.
52252         * lib/unictype/numeric.h: Regenerated.
52253         * lib/unictype/pr_alphabetic.h: Regenerated.
52254         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52255         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52256         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52257         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52258         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52259         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52260         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52261         * lib/unictype/pr_combining.h: Regenerated.
52262         * lib/unictype/pr_dash.h: Regenerated.
52263         * lib/unictype/pr_decimal_digit.h: Regenerated.
52264         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52265         * lib/unictype/pr_deprecated.h: Regenerated.
52266         * lib/unictype/pr_diacritic.h: Regenerated.
52267         * lib/unictype/pr_extender.h: Regenerated.
52268         * lib/unictype/pr_format_control.h: Regenerated.
52269         * lib/unictype/pr_grapheme_base.h: Regenerated.
52270         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52271         * lib/unictype/pr_grapheme_link.h: Regenerated.
52272         * lib/unictype/pr_id_continue.h: Regenerated.
52273         * lib/unictype/pr_id_start.h: Regenerated.
52274         * lib/unictype/pr_ideographic.h: Regenerated.
52275         * lib/unictype/pr_ignorable_control.h: Regenerated.
52276         * lib/unictype/pr_lowercase.h: Regenerated.
52277         * lib/unictype/pr_math.h: Regenerated.
52278         * lib/unictype/pr_numeric.h: Regenerated.
52279         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52280         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52281         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52282         * lib/unictype/pr_other_id_continue.h: Regenerated.
52283         * lib/unictype/pr_other_lowercase.h: Regenerated.
52284         * lib/unictype/pr_other_math.h: Regenerated.
52285         * lib/unictype/pr_punctuation.h: Regenerated.
52286         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52287         * lib/unictype/pr_soft_dotted.h: Regenerated.
52288         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52289         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52290         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52291         * lib/unictype/pr_uppercase.h: Regenerated.
52292         * lib/unictype/pr_xid_continue.h: Regenerated.
52293         * lib/unictype/pr_xid_start.h: Regenerated.
52294         * lib/unictype/pr_zero_width.h: Regenerated.
52295         * lib/unictype/scripts.h: Regenerated.
52296         * lib/unictype/scripts_byname.gperf: Regenerated.
52297         * lib/unictype/sy_java_ident.h: Regenerated.
52298         * lib/unilbrk/lbrkprop1.h: Regenerated.
52299         * lib/unilbrk/lbrkprop2.h: Regenerated.
52300         * tests/unictype/test-categ_C.c: Regenerated.
52301         * tests/unictype/test-categ_Cf.c: Regenerated.
52302         * tests/unictype/test-categ_Cn.c: Regenerated.
52303         * tests/unictype/test-categ_L.c: Regenerated.
52304         * tests/unictype/test-categ_Ll.c: Regenerated.
52305         * tests/unictype/test-categ_Lm.c: Regenerated.
52306         * tests/unictype/test-categ_Lo.c: Regenerated.
52307         * tests/unictype/test-categ_Lu.c: Regenerated.
52308         * tests/unictype/test-categ_M.c: Regenerated.
52309         * tests/unictype/test-categ_Mc.c: Regenerated.
52310         * tests/unictype/test-categ_Me.c: Regenerated.
52311         * tests/unictype/test-categ_Mn.c: Regenerated.
52312         * tests/unictype/test-categ_N.c: Regenerated.
52313         * tests/unictype/test-categ_Nd.c: Regenerated.
52314         * tests/unictype/test-categ_Nl.c: Regenerated.
52315         * tests/unictype/test-categ_No.c: Regenerated.
52316         * tests/unictype/test-categ_P.c: Regenerated.
52317         * tests/unictype/test-categ_Pd.c: Regenerated.
52318         * tests/unictype/test-categ_Pe.c: Regenerated.
52319         * tests/unictype/test-categ_Pf.c: Regenerated.
52320         * tests/unictype/test-categ_Pi.c: Regenerated.
52321         * tests/unictype/test-categ_Po.c: Regenerated.
52322         * tests/unictype/test-categ_Ps.c: Regenerated.
52323         * tests/unictype/test-categ_S.c: Regenerated.
52324         * tests/unictype/test-categ_Sk.c: Regenerated.
52325         * tests/unictype/test-categ_Sm.c: Regenerated.
52326         * tests/unictype/test-categ_So.c: Regenerated.
52327         * tests/unictype/test-ctype_alnum.c: Regenerated.
52328         * tests/unictype/test-ctype_alpha.c: Regenerated.
52329         * tests/unictype/test-ctype_graph.c: Regenerated.
52330         * tests/unictype/test-ctype_lower.c: Regenerated.
52331         * tests/unictype/test-ctype_print.c: Regenerated.
52332         * tests/unictype/test-ctype_punct.c: Regenerated.
52333         * tests/unictype/test-ctype_upper.c: Regenerated.
52334         * tests/unictype/test-decdigit.h: Regenerated.
52335         * tests/unictype/test-digit.h: Regenerated.
52336         * tests/unictype/test-numeric.h: Regenerated.
52337         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52338         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52339         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52340         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52341         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52342         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52343         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52344         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52345         * tests/unictype/test-pr_combining.c: Regenerated.
52346         * tests/unictype/test-pr_dash.c: Regenerated.
52347         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52348         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52349         * tests/unictype/test-pr_deprecated.c: Regenerated.
52350         * tests/unictype/test-pr_diacritic.c: Regenerated.
52351         * tests/unictype/test-pr_extender.c: Regenerated.
52352         * tests/unictype/test-pr_format_control.c: Regenerated.
52353         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52354         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52355         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52356         * tests/unictype/test-pr_id_continue.c: Regenerated.
52357         * tests/unictype/test-pr_id_start.c: Regenerated.
52358         * tests/unictype/test-pr_ideographic.c: Regenerated.
52359         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52360         * tests/unictype/test-pr_lowercase.c: Regenerated.
52361         * tests/unictype/test-pr_math.c: Regenerated.
52362         * tests/unictype/test-pr_numeric.c: Regenerated.
52363         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52364         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52365         Regenerated.
52366         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52367         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52368         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52369         * tests/unictype/test-pr_other_math.c: Regenerated.
52370         * tests/unictype/test-pr_punctuation.c: Regenerated.
52371         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52372         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52373         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52374         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52375         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52376         * tests/unictype/test-pr_uppercase.c: Regenerated.
52377         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52378         * tests/unictype/test-pr_xid_start.c: Regenerated.
52379         * tests/unictype/test-pr_zero_width.c: Regenerated.
52380
52381         Update to Unicode 5.1.0.
52382         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52383         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52384         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52385         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52386         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52387         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52388         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52389         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52390         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52391         (nonspacing_table_ind): Update.
52392         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52393
52394         Update to Unicode 5.1.0.
52395         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52396         code transform.
52397         * lib/uniname/uniname.c (unicode_character_name,
52398         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52399         * lib/uniname/uninames.h: Regenerated.
52400         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52401
52402 2009-02-07  Bruno Haible  <bruno@clisp.org>
52403
52404         Merge gen-ctype and gen-lbrk into a single program.
52405         * lib/gen-uni-tables.c: New file, incorporating
52406         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52407         Add directory prefixes to the names of the generated files.
52408         * lib/unictype/gen-ctype.c: Remove file.
52409         * lib/unilbrk/gen-lbrk.c: Remove file.
52410         * modules/gen-uni-tables: New file.
52411         * modules/unictype/gen-ctype: Remove file.
52412         * modules/unilbrk/gen-lbrk: Remove file.
52413
52414 2009-02-07  Bruno Haible  <bruno@clisp.org>
52415
52416         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52417
52418         New module 'unistr/u32-strcoll'.
52419         * modules/unistr/u32-strcoll: New file.
52420         * lib/unistr/u32-strcoll.c: New file.
52421
52422         New module 'unistr/u16-strcoll'.
52423         * modules/unistr/u16-strcoll: New file.
52424         * lib/unistr/u16-strcoll.c: New file.
52425
52426         New module 'unistr/u8-strcoll'.
52427         * modules/unistr/u8-strcoll: New file.
52428         * lib/unistr/u8-strcoll.c: New file.
52429         * lib/unistr/u-strcoll.h: New file.
52430
52431 2009-02-07  Bruno Haible  <bruno@clisp.org>
52432
52433         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52434         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52435         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52436         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52437         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52438         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52439
52440 2009-02-07  Bruno Haible  <bruno@clisp.org>
52441
52442         Make 64-bit clean.
52443         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52444         output_combclass, output_bidi_category, output_decimal_digit,
52445         output_digit, output_numeric, output_mirror, output_scripts,
52446         output_ident_category): Use proper width specifier in format strings.
52447
52448 2009-02-07  Bruno Haible  <bruno@clisp.org>
52449
52450         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52451         failure behaviour.
52452
52453 2009-02-07  Jim Meyering  <meyering@redhat.com>
52454
52455         regex: avoid compilation failure with upcoming gcc-4.4
52456         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52457         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52458         "... error: integer overflow in preprocessor expression".
52459
52460 2009-02-05  Ben Pfaff  <blp@gnu.org>
52461
52462         Fix link errors on Windows when close module is used.
52463         * modules/close: Add $(LIB_CLOSE) to Link section.
52464         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52465         $(LIB_CLOSE) on Windows.
52466
52467 2009-02-05  Jim Meyering  <meyering@redhat.com>
52468
52469         still avoid unused-parameter warnings, but do it cleanly
52470         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52471         (get_fs_usage): Cast to void instead.
52472         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52473         (dev_from_mount_options, read_file_system_list): Cast to void.
52474         Prompted by Bruno Haible.
52475
52476 2009-02-04  Jim Meyering  <meyering@redhat.com>
52477
52478         fsusage.c: correct copyright year
52479         * lib/fsusage.c: Reflect year in which the change is pushed into
52480
52481         avoid misc. warnings
52482         * lib/fsusage.c (UNUSED_PARAM): Define.
52483         (get_fs_usage): Mark parameter "disk" as unused.
52484         * lib/getugroups.c (getgrent): Use "void" in prototype.
52485         * lib/mountlist.c: Mark unused parameters.
52486         (read_file_system_list): Declare a local with "const".
52487         * lib/nanosleep.c (getnow): Declare static.
52488         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52489
52490         dirfd: set errno upon failure
52491         * lib/dirfd.c: Include <errno.h>.
52492         Set errno to ENOTSUP when returning -1.
52493         * modules/dirfd (Depends-on): Add errno.
52494         Suggested by John Kodis <kodis@comcast.net>.
52495
52496 2009-02-01  Bruno Haible  <bruno@clisp.org>
52497
52498         Don't assume sizeof (long) >= sizeof (void *).
52499         * lib/memcmp.c: Include stdint.h.
52500         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52501         srcp2 to 'const byte *'.
52502         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52503         types to uintptr_t.
52504         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52505         * modules/memcmp (Depends-on): Add stdint.
52506         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52507
52508 2009-01-30  Eric Blake  <ebb9@byu.net>
52509
52510         fix more require-before-expand issues
52511         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52512         expand, AC_PROG_AWK.
52513         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52514
52515 2009-01-28  Eric Blake  <ebb9@byu.net>
52516
52517         version-etc: use consistent URL formatting
52518         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52519         Improve formatting.  Use fputs for string without %.
52520
52521 2009-01-28  Jim Meyering  <meyering@redhat.com>
52522
52523         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52524         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52525         "underquoted definition of NAME" from autoconf-2.59.
52526
52527 2009-01-28  Bruno Haible  <bruno@clisp.org>
52528
52529         * doc/gnulib.texi: Add "Obsolete modules" to index.
52530
52531 2009-01-28  Jim Meyering  <meyering@redhat.com>
52532
52533         useless-if-before-free: recognize more variants
52534         * build-aux/useless-if-before-free: Also recognize e.g.,
52535         if (NULL != p) free (p);
52536
52537 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52538
52539         test-getaddrinfo: skip (don't fail) this test when there's no network
52540         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52541         on the presumption that it means you lack network access.
52542
52543 2009-01-26  Jim Meyering  <meyering@redhat.com>
52544
52545         fflush: avoid warnings on modern systems
52546         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52547         pos and result, into scopes where they're used.
52548
52549 2009-01-26  Eric Blake  <ebb9@byu.net>
52550
52551         Silence warning reintroduced by recent extensions patch.
52552         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52553         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52554         autoconf.
52555
52556         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52557         * m4/00gnulib.m4: New file.
52558         * gnulib-tool (func_get_filelist): Always use it.
52559         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52560         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52561
52562 2009-01-25  Bruno Haible  <bruno@clisp.org>
52563
52564         Make test-quotearg work on MacOS X and AIX.
52565         * tests/test-quotearg.sh: New file.
52566         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52567         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52568         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52569         include <libintl.h>.
52570         (fake_locale): Remove variable.
52571         (gettext, dgettext, dcgettext): Remove functions.
52572         (main): Instead of setting a fake locale, set a real locale. Call
52573         textdomain and bindtextdomain.
52574         * modules/quotearg-tests (Files): Add the new files.
52575         (Depends-on): Add gettext, setenv, unsetenv.
52576         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52577         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52578         Augment TESTS_ENVIRONMENT.
52579
52580 2009-01-25  Bruno Haible  <bruno@clisp.org>
52581
52582         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52583         fr_FR.ISO8859-1 locale on MacOS X.
52584         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52585         ja_JP.eucJP locale on MacOS X.
52586         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52587         zh_CN.GB18030 locale on MacOS X.
52588
52589 2009-01-25  Bruno Haible  <bruno@clisp.org>
52590
52591         Avoid link errors on MacOS X 10.3.
52592         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52593         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52594
52595 2009-01-25  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52598         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52599         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52600         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52601         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52602         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52603         posix_spawnattr_init, posix_spawnattr_setsigmask,
52604         posix_spawnattr_setflags, posix_spawnattr_destroy.
52605
52606         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52607         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52608         * modules/execute (Files): Remove m4/posix_spawn.m4.
52609         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52610         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52611         posix_spawnattr_init, posix_spawnattr_setsigmask,
52612         posix_spawnattr_setflags, posix_spawnattr_destroy.
52613
52614 2009-01-25  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/glthread/threadlib.c: Include <stdlib.h>.
52617
52618 2009-01-25  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/glthread/threadlib.c (dummy): New declaration.
52621
52622 2009-01-25  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52625         multibyte characters also for the GB18030 encoding. Don't crash when
52626         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52627
52628 2009-01-25  Bruno Haible  <bruno@clisp.org>
52629
52630         Avoid redefining 'struct random_data' on OSF/1 5.1.
52631         * lib/stdlib.in.h: Include <random.h> if it exists.
52632         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52633         HAVE_RANDOM_H. Include <random.h> when testing whether
52634         'struct random_data' exists.
52635         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52636
52637 2009-01-25  Bruno Haible  <bruno@clisp.org>
52638
52639         Don't install charset.alias on MacOS X >= 10.3.
52640         * lib/localcharset.c (DARWIN7): New macro.
52641         (get_charset_aliases): Hardcode the result for Darwin7.
52642         * modules/localcharset (install-exec-local): Don't install
52643         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52644
52645 2009-01-25  Bruno Haible  <bruno@clisp.org>
52646
52647         Don't install charset.alias on mingw and Cygwin.
52648         * modules/localcharset (install-exec-local): Don't install
52649         charset.alias on mingw and Cygwin, if the file does not yet exist.
52650         The result for these platforms is hardcoded in localcharset.c.
52651
52652 2009-01-25  Bruno Haible  <bruno@clisp.org>
52653
52654         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52656         before requiring AC_USE_SYSTEM_EXTENSIONS.
52657
52658 2009-01-25  Jim Meyering  <meyering@redhat.com>
52659
52660         c-strtod: avoid warnings
52661         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52662         "assignment discards qualifiers from pointer target type" warnings.
52663
52664 2009-01-24  Bruno Haible  <bruno@clisp.org>
52665
52666         Add support for non-UTF-8 locales on MacOS X.
52667         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52668         canonical encodings. For Darwin 7 and newer, don't map traditional
52669         encodings to UTF-8.
52670         Reported by Vincent Lefevre <vincent@vinc17.org>
52671         at <http://savannah.gnu.org/bugs/?25235>.
52672
52673 2009-01-24  Bruno Haible  <bruno@clisp.org>
52674
52675         * doc/gnulib.texi (Obsolete modules): New section.
52676         Reported by Mike Frysinger <vapier@gentoo.org>.
52677
52678 2009-01-24  Bruno Haible  <bruno@clisp.org>
52679
52680         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52681         (%.dvi): New rule.
52682
52683 2009-01-24  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52686         Reported by Eric Blake.
52687
52688 2009-01-24  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52691         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52692         Reported by Gary V. Vaughan <gary@gnu.org>.
52693
52694 2009-01-24  Bruno Haible  <bruno@clisp.org>
52695
52696         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52697
52698 2009-01-23  Bruno Haible  <bruno@clisp.org>
52699
52700         Make c-strtod, c-strtold usable in libraries.
52701         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52702         (C_STRTOD): Call strdup instead of xstrdup.
52703         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52704         * modules/c-strtold (Depends-on): Likewise.
52705         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52706         * NEWS: Mention the change.
52707         Reported by Michael Gold <mgold@ncf.ca>.
52708
52709 2009-01-23  Jim Meyering  <meyering@redhat.com>
52710
52711         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52712         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52713         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52714
52715 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52716
52717         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52718         GNU CoreUtils.
52719         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52720         * modules/version-etc (Description): Update.
52721
52722 2009-01-22  Bruno Haible  <bruno@clisp.org>
52723
52724         Cache the C locale object.
52725         * lib/c-strtod.c (c_locale_cache): New variable.
52726         (c_locale): New function.
52727         (C_STRTOD): Use it, and don't call freelocale.
52728         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52729         Suggested by Paolo Bonzini.
52730
52731 2009-01-21  Bruno Haible  <bruno@clisp.org>
52732
52733         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52734         conditions other than overflow.
52735
52736 2009-01-21  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/c-strtod.c: Include errno.h.
52739         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52740         value from STRTOD_L and STRTOD.
52741
52742 2009-01-21  Bruno Haible  <bruno@clisp.org>
52743         and Jim Meyering  <meyering@redhat.com>
52744
52745         nanosleep: skip configure test (fail it) for apple universal builds
52746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52747         universal builds, assume that nanosleep does not work.
52748         * modules/nanosleep (Depends-on): Add multiarch.
52749
52750         mktime: skip configure test (fail it) for apple universal builds
52751         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52752         universal builds, assume that mktime does not work.
52753         * modules/mktime (Depends-on): Add multiarch.
52754
52755 2009-01-21  Eric Blake  <ebb9@byu.net>
52756
52757         multiarch: avoid expand-before-require warning
52758         * modules/multiarch (configure.ac): Require, rather than expand,
52759         gl_MULTIARCH.
52760         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52761         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52762         enforce that all clients require it.  Partial reversion of
52763         2008-12-29 patch.
52764
52765         error: avoid expand-before-require warning
52766         * modules/errno (configure.ac): Require, rather than expand,
52767         gl_HEADER_ERRNO_H.
52768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52769         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52770         enforce that all clients require it.
52771
52772         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52773         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52774         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52775         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52776
52777 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52778
52779         Revert:
52780         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52781
52782         regex: do not depend on obsolete modules.
52783         * modules/regex: Remove memcmp and memmove.
52784
52785 2009-01-20  Bruno Haible  <bruno@clisp.org>
52786
52787         Make the 'link' module link on Windows NT 4.
52788         * lib/link.c (_WIN32_WINNT): Don't define.
52789         (CreateHardLinkFuncType): New type.
52790         (CreateHardLinkFunc, initialized): New variables.
52791         (initialize): New function.
52792         (link): Invoke CreateHardLink indirectly through the function pointer.
52793
52794 2009-01-20  Bruno Haible  <bruno@clisp.org>
52795
52796         Fix compilation failure on mingw.
52797         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52798
52799 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52800
52801         * doc/c-strtod.texi: Mention a couple of restrictions.
52802
52803 2009-01-20  Jim Meyering  <meyering@redhat.com>
52804
52805         gettimeofday: move more declarations out of functions
52806         * lib/gettimeofday.c: Move extern declarations of tzset and
52807         gmtime out of containing functions.  Prompted by Bruno Haible.
52808
52809 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52810
52811         regex: do not depend on obsolete modules.
52812         * modules/regex: Remove memcmp and memmove.
52813
52814 2009-01-19  Bruno Haible  <bruno@clisp.org>
52815
52816         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52817         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52818         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52819         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52820         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52821
52822 2009-01-19  Bruno Haible  <bruno@clisp.org>
52823
52824         * tests/test-link.c: Include <errno.h>.
52825         (main): Exit with code 77 when a hard link cannot be created due to
52826         the file system.
52827         * tests/test-link.sh: Skip test when a hard link cannot be created due
52828         to the file system.
52829         Suggested by Eric Blake.
52830
52831 2009-01-19  Martin Lambers  <marlam@marlam.de>
52832
52833         * modules/link-tests: New file.
52834         * tests/test-link.sh: New file.
52835         * tests/test-link.c: New file.
52836
52837 2009-01-19  Eric Blake  <ebb9@byu.net>
52838
52839         doc: mention another function added in cygwin 1.7.0
52840         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52841         Another new function in cygwin 1.7.
52842
52843 2009-01-19  Bruno Haible  <bruno@clisp.org>
52844
52845         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52846         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52847         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52848         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52850         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52851         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52852         * m4/md4.m4 (gl_MD4): Likewise.
52853         * m4/md5.m4 (gl_MD5): Likewise.
52854         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52855         * m4/sha1.m4 (gl_SHA1): Likewise.
52856         * m4/sha256.m4 (gl_SHA256): Likewise.
52857         * m4/sha512.m4 (gl_SHA512): Likewise.
52858
52859 2009-01-19  Bruno Haible  <bruno@clisp.org>
52860
52861         * modules/uniname/uniname-tests (Depends-on): Add progname.
52862         * tests/uniname/test-uninames.c: Include progname.h.
52863         (main): Call set_program_name.
52864
52865         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52866         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52867         (main): Call set_program_name.
52868
52869         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52870         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52871         (main): Call set_program_name.
52872
52873         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52874         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52875         (main): Call set_program_name.
52876
52877         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52878         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52879         (main): Call set_program_name.
52880
52881         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52882         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52883         (main): Call set_program_name.
52884
52885         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52886         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52887         (main): Call set_program_name.
52888
52889         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52890         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52891         (main): Call set_program_name.
52892
52893         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52894         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52895         (main): Call set_program_name.
52896
52897 2009-01-19  Eric Blake  <ebb9@byu.net>
52898
52899         test-unistd: test previous patch
52900         * tests/test-unistd.c: Test *_FILENO macros.
52901
52902         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52903         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52904         Guarantee a definition.
52905         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52906         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52907         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52908         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52909         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52910         Likewise.
52911         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52912         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52913         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52914         Likewise.
52915         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52916         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52917         (STDERR_FILENO): Likewise.
52918         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52919         (STDERR_FILENO): Likewise.
52920         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52921         (STDERR_FILENO): Likewise.
52922         Reported by Elbert Pol.
52923
52924 2009-01-19  Eric Blake  <ebb9@byu.net>
52925
52926         doc: mention more functions added in cygwin 1.7.0
52927         * doc/posix-functions/abort.texi (abort): Update wording related
52928         to cygwin.
52929         * doc/posix-functions/daylight.texi (daylight): Likewise.
52930         * doc/posix-functions/optarg.texi (optarg): Likewise.
52931         * doc/posix-functions/optarg.texi (opterr): Likewise.
52932         * doc/posix-functions/optarg.texi (optind): Likewise.
52933         * doc/posix-functions/optarg.texi (optopt): Likewise.
52934         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52935         worked in 1.5.x, and was withdrawn in 1.7.
52936         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52937         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52938         cygwin versions.
52939         * doc/posix-functions/perror.texi (perror): Likewise.
52940         * doc/posix-functions/printf.texi (printf): Likewise.
52941         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52942         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52943         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52944         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52945         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52946         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52947         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52948         Likewise.
52949         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52950         Likewise.
52951         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52952         this function.
52953         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52954         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52955         Likewise.
52956         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52957         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52958         * doc/posix-functions/confstr.texi (confstr): Likewise.
52959         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52960         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52961         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52962         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52963         * doc/posix-functions/fputws.texi (fputws): Likewise.
52964         * doc/posix-functions/fwide.texi (fwide): Likewise.
52965         * doc/posix-functions/getwc.texi (getwc): Likewise.
52966         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52967         * doc/posix-functions/putwc.texi (putwc): Likewise.
52968         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52969         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52970         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52971         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52972         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52973         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52974         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52975         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52976         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52977         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52978         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52979
52980 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52981
52982         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52983         * lib/ioctl.c: Include <sys/ioctl.h>.
52984
52985 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52986
52987         * modules/getdate-tests (Depends-on): Add progname.
52988         * tests/test-getdate.c: Use progname module, to avoid link errors
52989         on non-glibc systems.
52990
52991 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52992
52993         * modules/filenamecat-tests (Depends-on): Add progname.
52994         * modules/fstrcmp-tests (Depends-on): Likewise.
52995
52996         * tests/test-filenamecat.c: Use progname module, to avoid link
52997         errors on non-glibc systems.
52998         * tests/test-fstrcmp.c: Likewise.
52999
53000 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53001
53002         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53003         * lib/gettimeofday.c: Move extern declaration out of function.
53004
53005 2009-01-18  Bruno Haible  <bruno@clisp.org>
53006
53007         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53008         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53009         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53010
53011 2009-01-18  Bruno Haible  <bruno@clisp.org>
53012
53013         * lib/strftime.c (MEMPCPY): Remove unused macro.
53014         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53015
53016 2009-01-18  Martin Lambers  <marlam@marlam.de>
53017
53018         New module 'link'.
53019         * lib/unistd.in.h (link): New declaration.
53020         * lib/link.c: New file.
53021         * m4/link.m4: New file.
53022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53023         HAVE_LINK.
53024         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53025         * modules/link: New file.
53026         * doc/posix-functions/link.texi: Mention the new module.
53027
53028 2009-01-18  Bruno Haible  <bruno@clisp.org>
53029
53030         * tests/test-avltree_list.c (main): Call set_program_name.
53031         * tests/test-avltree_oset.c (main): Likewise.
53032         * tests/test-obstack-printf.c: Include progname.h.
53033         (main): Call set_program_name.
53034         * tests/test-quotearg.c: Include progname.h.
53035         (main): Call set_program_name.
53036         * tests/test-xmemdup0.c: Include progname.h.
53037         (main): Call set_program_name.
53038
53039 2009-01-18  Bruno Haible  <bruno@clisp.org>
53040
53041         New module 'alphasort'.
53042         * lib/dirent.in.h (alphasort): New declaration.
53043         * lib/alphasort.c: New file, from glibc with modifications.
53044         * m4/alphasort.m4: New file.
53045         * modules/alphasort: New file.
53046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53047         HAVE_ALPHASORT.
53048         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53049         HAVE_ALPHASORT.
53050         * doc/posix-functions/alphasort.texi: Mention the new module and the
53051         portability problems.
53052
53053 2009-01-18  Bruno Haible  <bruno@clisp.org>
53054
53055         New module 'scandir'.
53056         * lib/dirent.in.h (scandir): New declaration.
53057         * lib/scandir.c: New file, from glibc with modifications.
53058         * m4/scandir.m4: New file.
53059         * modules/scandir: New file.
53060         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53061         HAVE_SCANDIR.
53062         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53063         HAVE_SCANDIR.
53064         * doc/posix-functions/scandir.texi: Mention the new module and the
53065         portability problems.
53066
53067 2009-01-17  Bruno Haible  <bruno@clisp.org>
53068
53069         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53070         Update documentation.
53071         (func_remove_suffix): Escape all dots in the suffix. Update
53072         documentation.
53073         (func_filter_filelist): Update documentation.
53074         Reported by Ralf Wildenhues.
53075
53076 2009-01-17  Bruno Haible  <bruno@clisp.org>
53077
53078         * modules/dprintf-posix-tests: New file.
53079         * tests/test-dprintf-posix.sh: New file.
53080         * tests/test-dprintf-posix.c: New file.
53081
53082         New modules 'dprintf', 'dprintf-posix'.
53083         * lib/stdio.in.h (dprintf): New declaration.
53084         * lib/dprintf.c: New file.
53085         * m4/dprintf.m4: New file.
53086         * m4/dprintf-posix.m4: New file.
53087         * modules/dprintf: New file.
53088         * modules/dprintf-posix: New file.
53089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53090         HAVE_DPRINTF, REPLACE_DPRINTF.
53091         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53092         HAVE_DPRINTF, REPLACE_DPRINTF.
53093         * doc/posix-functions/dprintf.texi: Mention the new modules.
53094
53095 2009-01-17  Bruno Haible  <bruno@clisp.org>
53096
53097         * modules/vdprintf-posix-tests: New file.
53098         * tests/test-vdprintf-posix.sh: New file.
53099         * tests/test-vdprintf-posix.c: New file.
53100
53101         New modules 'vdprintf', 'vdprintf-posix'.
53102         * lib/stdio.in.h (vdprintf): New declaration.
53103         * lib/vdprintf.c: New file.
53104         * m4/vdprintf.m4: New file.
53105         * m4/vdprintf-posix.m4: New file.
53106         * modules/vdprintf: New file.
53107         * modules/vdprintf-posix: New file.
53108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53109         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53110         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53111         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53112         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53113
53114 2009-01-17  Bruno Haible  <bruno@clisp.org>
53115
53116         Fix replacement of fopen on mingw.
53117         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53118         mingw.
53119
53120 2009-01-17  Bruno Haible  <bruno@clisp.org>
53121
53122         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53123         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53124
53125 2009-01-17  Bruno Haible  <bruno@clisp.org>
53126
53127         Avoid test-fflush2.sh failure on mingw.
53128         * tests/test-fflush2.c: Include binary-io.h.
53129         (main): Put standard input into binary mode.
53130         * modules/fflush-tests (Depends-on): Add binary-io.
53131
53132 2009-01-17  Bruno Haible  <bruno@clisp.org>
53133
53134         * lib/wchar.in.h: In another particular situation, include only the
53135         system's <wchar.h> file.
53136         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53137         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53138         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53139
53140 2009-01-17  Bruno Haible  <bruno@clisp.org>
53141
53142         Support for stripping executables in --enable-relocatable.
53143         * build-aux/install-reloc: Expect one more argument, or an environment
53144         variable RELOC_STRIP_PROG. If set, strip the destination program and
53145         its wrapper.
53146         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53147         RELOC_STRIP_PROG.
53148         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53149         to set RELOCATABLE_STRIP.
53150         * NEWS: Mention the new Makefile requirement.
53151
53152 2009-01-17  Bruno Haible  <bruno@clisp.org>
53153
53154         * build-aux/install-reloc: Remove debugging information left over by
53155         C compiler on MacOS X.
53156
53157 2009-01-17  Bruno Haible  <bruno@clisp.org>
53158
53159         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53160         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53161         _NSGetExecutablePath.
53162
53163 2009-01-16  Jim Meyering  <meyering@redhat.com>
53164
53165         strerror: avoid warnings about discarding "const"
53166         * lib/strerror.c (rpl_strerror): Instead of returning a const
53167         string from each and every "case", use a variable, and add a single
53168         cast after the switch.
53169
53170 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53171
53172         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53173
53174 2009-01-16  Bruno Haible  <bruno@clisp.org>
53175
53176         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53177         array initializer syntax that also works in C++ mode.
53178         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53179
53180 2009-01-16  Jim Meyering  <meyering@redhat.com>
53181
53182         poll: suppress a warning
53183         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53184         to ignore "...unsigned expression < 0 is always false" warnings.
53185
53186 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53187
53188         poll: remove declarations of unused variables
53189         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53190         sockbuf and optlen.
53191
53192 2009-01-15  Bruno Haible  <bruno@clisp.org>
53193
53194         Make fflush-after-ungetc POSIX compliant on BSD systems.
53195         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53196         (clear_ungetc_buffer): Implement also for other systems.
53197         (rpl_fflush): On glibc systems, invoke
53198         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53199         clear_ungetc_buffer after fetching the stream's position, not before.
53200
53201 2009-01-15  Bruno Haible  <bruno@clisp.org>
53202
53203         Make fflush-after-ungetc POSIX compliant on glibc systems.
53204         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53205         after ungetc.
53206         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53207         (rpl_fflush): On glibc systems, simply call the system's fflush
53208         function after clearing the ungetc buffer.
53209         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53210         Instead, lseek only to the end of file, then use the system's fseeko
53211         for the rest. On glibc systems, reset the EOF indicator bit.
53212
53213 2009-01-15  Jim Meyering  <meyering@redhat.com>
53214
53215         openmp.m4: revert quote-adding change, for portability to older autoconf
53216         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53217         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53218         Simon Josefsson noticed the problem when using autoconf-2.61.
53219
53220 2009-01-15  Bruno Haible  <bruno@clisp.org>
53221
53222         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53223         * tests/test-fflush2.c (ASSERT): Always fail.
53224         (main): Add two tests for fflush() after ungetc(), taking into account
53225         the Austin Group's clarification.
53226         Suggested by Eric Blake.
53227
53228 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53229
53230         mktime.m4: remove K&R-style function prototypes
53231         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53232         for the Sun C++ compiler.
53233
53234 2009-01-14  Bruno Haible  <bruno@clisp.org>
53235
53236         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53237         while including <wchar.h>.
53238         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53239         the system's <wchar.h> file.
53240         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53241
53242 2009-01-14  Bruno Haible  <bruno@clisp.org>
53243
53244         * m4/csharp.m4: Don't mention gettext on the serial number line.
53245         * m4/csharpexec.m4: Likewise.
53246         * m4/eaccess.m4: Likewise.
53247         * m4/javaexec.m4: Likewise.
53248         * m4/sig_atomic_t.m4: Likewise.
53249         * m4/tmpdir.m4: Likewise.
53250         * m4/intldir.m4: Bump gettext version.
53251         * m4/lib-ld.m4: Likewise.
53252
53253 2009-01-14  Bruno Haible  <bruno@clisp.org>
53254
53255         * lib/progname.c (set_program_name): Add more comments.
53256         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53257
53258 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53259
53260         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53261         were sys/stat.h does not define it.
53262
53263 2009-01-14  Jim Meyering  <meyering@redhat.com>
53264
53265         many *.m4 files: improve m4 quoting
53266         99% of this change was performed by running the following commands:
53267         git ls-files | grep '\.m4$' | xargs perl -pi \
53268           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53269           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53270           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53271           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53272         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53273         The remainder were to add Copyright dates, increment serial numbers,
53274         undo some changes in comments, exclude m4/intl.m4, and add quotes
53275         around the "1" in ",1" where the unusual spacing prohibited the
53276         above regexps from doing the job.  For more details, see
53277         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53278         * m4/acl.m4: Modified.
53279         * m4/afs.m4: Likewise.
53280         * m4/alloca.m4: Likewise.
53281         * m4/argp.m4: Likewise.
53282         * m4/argz.m4: Likewise.
53283         * m4/atexit.m4: Likewise.
53284         * m4/bison-i18n.m4: Likewise.
53285         * m4/bison.m4: Likewise.
53286         * m4/byteswap.m4: Likewise.
53287         * m4/c-stack.m4: Likewise.
53288         * m4/c-strtod.m4: Likewise.
53289         * m4/calloc.m4: Likewise.
53290         * m4/canonicalize-lgpl.m4: Likewise.
53291         * m4/chown.m4: Likewise.
53292         * m4/clock_time.m4: Likewise.
53293         * m4/codeset.m4: Likewise.
53294         * m4/copy-file.m4: Likewise.
53295         * m4/csharp.m4: Likewise.
53296         * m4/csharpcomp.m4: Likewise.
53297         * m4/csharpexec.m4: Likewise.
53298         * m4/d-ino.m4: Likewise.
53299         * m4/d-type.m4: Likewise.
53300         * m4/dirfd.m4: Likewise.
53301         * m4/double-slash-root.m4: Likewise.
53302         * m4/eaccess.m4: Likewise.
53303         * m4/eealloc.m4: Likewise.
53304         * m4/environ.m4: Likewise.
53305         * m4/errno_h.m4: Likewise.
53306         * m4/euidaccess.m4: Likewise.
53307         * m4/execute.m4: Likewise.
53308         * m4/fatal-signal.m4: Likewise.
53309         * m4/fchdir.m4: Likewise.
53310         * m4/fcntl_h.m4: Likewise.
53311         * m4/fileblocks.m4: Likewise.
53312         * m4/filenamecat.m4: Likewise.
53313         * m4/findprog.m4: Likewise.
53314         * m4/flexmember.m4: Likewise.
53315         * m4/fnmatch.m4: Likewise.
53316         * m4/fopen.m4: Likewise.
53317         * m4/fpending.m4: Likewise.
53318         * m4/fprintf-posix.m4: Likewise.
53319         * m4/free.m4: Likewise.
53320         * m4/frexp.m4: Likewise.
53321         * m4/frexpl.m4: Likewise.
53322         * m4/fsusage.m4: Likewise.
53323         * m4/ftruncate.m4: Likewise.
53324         * m4/gc-camellia.m4: Likewise.
53325         * m4/gc-random.m4: Likewise.
53326         * m4/gc.m4: Likewise.
53327         * m4/getaddrinfo.m4: Likewise.
53328         * m4/getcwd-abort-bug.m4: Likewise.
53329         * m4/getcwd-path-max.m4: Likewise.
53330         * m4/getdate.m4: Likewise.
53331         * m4/getdomainname.m4: Likewise.
53332         * m4/getgroups.m4: Likewise.
53333         * m4/gethostname.m4: Likewise.
53334         * m4/gethrxtime.m4: Likewise.
53335         * m4/getline.m4: Likewise.
53336         * m4/getloadavg.m4: Likewise.
53337         * m4/getndelim2.m4: Likewise.
53338         * m4/getpass.m4: Likewise.
53339         * m4/gettext.m4: Likewise.
53340         * m4/gettime.m4: Likewise.
53341         * m4/gettimeofday.m4: Likewise.
53342         * m4/gnulib-common.m4: Likewise.
53343         * m4/group-member.m4: Likewise.
53344         * m4/host-os.m4: Likewise.
53345         * m4/iconv.m4: Likewise.
53346         * m4/iconv_open.m4: Likewise.
53347         * m4/inet_ntop.m4: Likewise.
53348         * m4/inet_pton.m4: Likewise.
53349         * m4/inline.m4: Likewise.
53350         * m4/intldir.m4: Likewise.
53351         * m4/intlmacosx.m4: Likewise.
53352         * m4/intmax.m4: Likewise.
53353         * m4/intmax_t.m4: Likewise.
53354         * m4/inttypes.m4: Likewise.
53355         * m4/inttypes_h.m4: Likewise.
53356         * m4/inttypes-pri.m4: Likewise.
53357         * m4/isapipe.m4: Likewise.
53358         * m4/isnand.m4: Likewise.
53359         * m4/isnanf.m4: Likewise.
53360         * m4/isnanl.m4: Likewise.
53361         * m4/javacomp.m4: Likewise.
53362         * m4/javaexec.m4: Likewise.
53363         * m4/jm-winsz1.m4: Likewise.
53364         * m4/jm-winsz2.m4: Likewise.
53365         * m4/lchown.m4: Likewise.
53366         * m4/lcmessage.m4: Likewise.
53367         * m4/ldexpl.m4: Likewise.
53368         * m4/lib-ld.m4: Likewise.
53369         * m4/lib-link.m4: Likewise.
53370         * m4/libsigsegv.m4: Likewise.
53371         * m4/link-follow.m4: Likewise.
53372         * m4/localcharset.m4: Likewise.
53373         * m4/locale-fr.m4: Likewise.
53374         * m4/locale-ja.m4: Likewise.
53375         * m4/locale-tr.m4: Likewise.
53376         * m4/locale-zh.m4: Likewise.
53377         * m4/lock.m4: Likewise.
53378         * m4/longlong.m4: Likewise.
53379         * m4/ls-mntd-fs.m4: Likewise.
53380         * m4/lstat.m4: Likewise.
53381         * m4/malloc.m4: Likewise.
53382         * m4/mathl.m4: Likewise.
53383         * m4/mbrtowc.m4: Likewise.
53384         * m4/mbstate_t.m4: Likewise.
53385         * m4/mbswidth.m4: Likewise.
53386         * m4/memchr.m4: Likewise.
53387         * m4/memcmp.m4: Likewise.
53388         * m4/memcpy.m4: Likewise.
53389         * m4/memmem.m4: Likewise.
53390         * m4/memmove.m4: Likewise.
53391         * m4/mempcpy.m4: Likewise.
53392         * m4/memrchr.m4: Likewise.
53393         * m4/memset.m4: Likewise.
53394         * m4/minmax.m4: Likewise.
53395         * m4/mkdir-slash.m4: Likewise.
53396         * m4/mkdtemp.m4: Likewise.
53397         * m4/mktime.m4: Likewise.
53398         * m4/mmap-anon.m4: Likewise.
53399         * m4/mountlist.m4: Likewise.
53400         * m4/nanosleep.m4: Likewise.
53401         * m4/nls.m4: Likewise.
53402         * m4/nocrash.m4: Likewise.
53403         * m4/open.m4: Likewise.
53404         * m4/openat.m4: Likewise.
53405         * m4/openmp.m4: Likewise.
53406         * m4/pathmax.m4: Likewise.
53407         * m4/perl.m4: Likewise.
53408         * m4/physmem.m4: Likewise.
53409         * m4/pipe.m4: Likewise.
53410         * m4/po.m4: Likewise.
53411         * m4/poll.m4: Likewise.
53412         * m4/posixtm.m4: Likewise.
53413         * m4/posixver.m4: Likewise.
53414         * m4/printf-frexp.m4: Likewise.
53415         * m4/printf-frexpl.m4: Likewise.
53416         * m4/printf-posix.m4: Likewise.
53417         * m4/printf-posix-rpl.m4: Likewise.
53418         * m4/printf.m4: Likewise.
53419         * m4/progtest.m4: Likewise.
53420         * m4/putenv.m4: Likewise.
53421         * m4/readline.m4: Likewise.
53422         * m4/readlink.m4: Likewise.
53423         * m4/readutmp.m4: Likewise.
53424         * m4/realloc.m4: Likewise.
53425         * m4/regex.m4: Likewise.
53426         * m4/relocatable.m4: Likewise.
53427         * m4/relocatable-lib.m4: Likewise.
53428         * m4/rename-dest-slash.m4: Likewise.
53429         * m4/rename.m4: Likewise.
53430         * m4/rmdir-errno.m4: Likewise.
53431         * m4/rmdir.m4: Likewise.
53432         * m4/roundf.m4: Likewise.
53433         * m4/roundl.m4: Likewise.
53434         * m4/rpmatch.m4: Likewise.
53435         * m4/save-cwd.m4: Likewise.
53436         * m4/selinux-selinux-h.m4: Likewise.
53437         * m4/setenv.m4: Likewise.
53438         * m4/settime.m4: Likewise.
53439         * m4/sig2str.m4: Likewise.
53440         * m4/sig_atomic_t.m4: Likewise.
53441         * m4/signalblocking.m4: Likewise.
53442         * m4/signbit.m4: Likewise.
53443         * m4/sigpipe.m4: Likewise.
53444         * m4/sockets.m4: Likewise.
53445         * m4/sockpfaf.m4: Likewise.
53446         * m4/st_dm_mode.m4: Likewise.
53447         * m4/stat-time.m4: Likewise.
53448         * m4/stdbool.m4: Likewise.
53449         * m4/stdint.m4: Likewise.
53450         * m4/stdint_h.m4: Likewise.
53451         * m4/stpcpy.m4: Likewise.
53452         * m4/stpncpy.m4: Likewise.
53453         * m4/strcase.m4: Likewise.
53454         * m4/strchrnul.m4: Likewise.
53455         * m4/strcspn.m4: Likewise.
53456         * m4/strdup.m4: Likewise.
53457         * m4/strftime.m4: Likewise.
53458         * m4/strndup.m4: Likewise.
53459         * m4/strnlen.m4: Likewise.
53460         * m4/strpbrk.m4: Likewise.
53461         * m4/strptime.m4: Likewise.
53462         * m4/strsep.m4: Likewise.
53463         * m4/strtod.m4: Likewise.
53464         * m4/strtoimax.m4: Likewise.
53465         * m4/strtok_r.m4: Likewise.
53466         * m4/strtol.m4: Likewise.
53467         * m4/strtoll.m4: Likewise.
53468         * m4/strtoul.m4: Likewise.
53469         * m4/strtoull.m4: Likewise.
53470         * m4/strtoumax.m4: Likewise.
53471         * m4/strverscmp.m4: Likewise.
53472         * m4/threadlib.m4: Likewise.
53473         * m4/timegm.m4: Likewise.
53474         * m4/tm_gmtoff.m4: Likewise.
53475         * m4/tmpdir.m4: Likewise.
53476         * m4/tmpfile.m4: Likewise.
53477         * m4/tzset.m4: Likewise.
53478         * m4/uintmax_t.m4: Likewise.
53479         * m4/unlinkdir.m4: Likewise.
53480         * m4/unlocked-io.m4: Likewise.
53481         * m4/uptime.m4: Likewise.
53482         * m4/userspec.m4: Likewise.
53483         * m4/utimbuf.m4: Likewise.
53484         * m4/utime.m4: Likewise.
53485         * m4/utimes-null.m4: Likewise.
53486         * m4/utimes.m4: Likewise.
53487         * m4/vararrays.m4: Likewise.
53488         * m4/vasnprintf.m4: Likewise.
53489         * m4/vfprintf-posix.m4: Likewise.
53490         * m4/vprintf-posix.m4: Likewise.
53491         * m4/wait-process.m4: Likewise.
53492         * m4/wchar_t.m4: Likewise.
53493         * m4/wint_t.m4: Likewise.
53494         * m4/write-any-file.m4: Likewise.
53495         * m4/yield.m4: Likewise.
53496
53497 2009-01-13  Bruno Haible  <bruno@clisp.org>
53498
53499         Avoid test-copy-file.sh failures when ACL support insufficient.
53500         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53501         TESTS_ENVIRONMENT.
53502         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53503         Reported by Jim Meyering.
53504
53505 2009-01-13  Bruno Haible  <bruno@clisp.org>
53506
53507         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53508         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53509         * modules/unistdio/u8-printf-parse (Files): Likewise.
53510         * modules/unistdio/u32-printf-parse (Files): Likewise.
53511         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53512
53513 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53514
53515         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53516         and m4/inttypes_h.m4 too.
53517
53518 2009-01-12  Eric Blake  <ebb9@byu.net>
53519
53520         tests: IRIX 6.2 cc can't compile -0.0 into .data
53521         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53522         rather than at compile-time.
53523         * tests/test-floorl.c (minus_zero): Likewise.
53524         * tests/test-frexpl.c (minus_zero): Likewise.
53525         * tests/test-isnan.c (minus_zerol): Likewise.
53526         * tests/test-isnanl.h (minus_zero): Likewise.
53527         * tests/test-ldexpl.c (minus_zero): Likewise.
53528         * tests/test-roundl.c (minus_zero): Likewise.
53529         * tests/test-signbit.c (minus_zerol): Likewise.
53530         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53531         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53532         * tests/test-truncl.c (minus_zero): Likewise.
53533         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53534         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53535         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53536
53537 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53538
53539         regex: fix glibc bug 9697
53540         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53541         handling.
53542
53543 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53544
53545         regex: fix glibc bug 697
53546         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53547         being NULL also if there are no backreferences.
53548
53549 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53550
53551         regex: merge glibc changes
53552         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53553         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53554         re_string_skip_chars, re_string_reconstruct): Likewise.
53555         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53556
53557 2009-01-07  Jim Meyering  <meyering@redhat.com>
53558
53559         poll: filter through cppi
53560         * lib/poll.c: Indent cpp directives to reflect nesting.
53561
53562 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53563
53564         poll: don't return uninitialized
53565         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53566
53567 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53568
53569         avoid compile failure on AIX 6.1
53570         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53571         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53572
53573 2009-01-04  Jim Meyering  <meyering@redhat.com>
53574
53575         remove duplicate inclusion of <stdio.h>
53576         * tests/test-fprintf-posix.c: Likewise.
53577         * tests/test-printf-posix.c: Likewise.
53578         * tests/test-snprintf-posix.c: Likewise.
53579         * tests/test-sprintf-posix.c: Likewise.
53580         * tests/test-vasprintf-posix.c: Likewise.
53581         * tests/test-vfprintf-posix.c: Likewise.
53582         * tests/test-vprintf-posix.c: Likewise.
53583         * tests/test-vsnprintf-posix.c: Likewise.
53584         * tests/test-vsprintf-posix.c: Likewise.
53585
53586 2009-01-03  Jim Meyering  <meyering@redhat.com>
53587
53588         gnulib-tool: fix sed-based filtering
53589         * gnulib-tool (func_filter_filelist): Remove extra backslash
53590         in sed_fff_filter definition.
53591
53592 2009-01-02  Jim Meyering  <meyering@redhat.com>
53593
53594         strftime: avoid compilation failure on Solaris 2.6
53595         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53596         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53597         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53598         be available.  Reported by Tom G. Christensen.  Details in
53599         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53600
53601 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53602             Bruno Haible  <bruno@clisp.org>
53603
53604         Speed up gnulib-tool by doing more string processing through shell
53605         built-ins.
53606         * gnulib-tool (fast_func_append): New variable.
53607         (func_remove_prefix, func_remove_suffix): New functions.
53608         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53609         (func_filter_filelist): New function.
53610         (func_get_dependencies): Use func_remove_suffix instead of sed.
53611         (func_get_automake_snippet): Use func_filter_filelist instead of a
53612         subshell and sed invocation.
53613
53614 2009-01-01  Bruno Haible  <bruno@clisp.org>
53615
53616         Fix a security bug.
53617         * gnulib-tool (func_import, import, update): Don't allow the characters
53618         '"', '$', '`', '\' in macro arguments that become part of commands that
53619         are evaluated.
53620
53621 2009-01-01  Bruno Haible  <bruno@clisp.org>
53622
53623         * gnulib-tool (func_reset_sigpipe): Add more comments.
53624
53625 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53626
53627         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53628         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53629         already know the answer.
53630
53631 2009-01-01  Jim Meyering  <meyering@redhat.com>
53632
53633         * lib/version-etc.c (version_etc_va): Update copyright year.
53634
53635 2008-12-30  Bruno Haible  <bruno@clisp.org>
53636
53637         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53638         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53639         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53640
53641 2008-12-29  Eric Blake  <ebb9@byu.net>
53642
53643         multiarch: avoid autoconf AC_REQUIRE bug
53644         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53645         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53646         2.63 and older.
53647         Reported by Bruno Haible, and analyzed in
53648         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53649
53650 2008-12-29  Bruno Haible  <bruno@clisp.org>
53651
53652         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53653         files in subdirectories correctly.
53654         Reported by Ralf Wildenhues.
53655
53656 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53657
53658         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53659         rather than 'join FILE -', for Solaris join.
53660
53661 2008-12-29  Bruno Haible  <bruno@clisp.org>
53662
53663         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53664         quoting.
53665         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53666         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53667         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53668         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53669         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53670         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53671         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53672         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53673         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53674         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53675         * m4/nls.m4 (AM_NLS): Likewise.
53676         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53677         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53678         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53679         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53680         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53681         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53682         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53683         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53684         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53685         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53686         * m4/xsize.m4 (gl_XSIZE): Likewise.
53687         Suggested by Jim Meyering.
53688
53689 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53690
53691         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53692         * lib/parse-duration.c: use a switch instead of cascading if's.
53693
53694 2008-12-29  Eric Blake  <ebb9@byu.net>
53695
53696         wchar.h: supply WEOF on Irix 5.3
53697         * lib/wchar.in.h (wint_t): Also supply WEOF.
53698         * lib/wctype.in.h (wint_t): Likewise.
53699         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53700         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53701         Reported by Tom G. Christensen.
53702
53703 2008-12-26  Bruno Haible  <bruno@clisp.org>
53704
53705         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53706         i486, i586, i686.
53707
53708 2008-12-26  Bruno Haible  <bruno@clisp.org>
53709
53710         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53711
53712 2008-12-26  Bruno Haible  <bruno@clisp.org>
53713
53714         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53715         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53716         not __STDC_CONSTANT_MACROS.
53717         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53718
53719 2008-12-25  Bruno Haible  <bruno@clisp.org>
53720
53721         Add support for universal builds to vasnprintf.
53722         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53723         universal builds, guess no.
53724         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53725         * modules/vasprintf-posix (Depends-on): Likewise.
53726         * modules/fprintf-posix (Depends-on): Likewise.
53727         * modules/vfprintf-posix (Depends-on): Likewise.
53728         * modules/snprintf-posix (Depends-on): Likewise.
53729         * modules/vsnprintf-posix (Depends-on): Likewise.
53730         * modules/sprintf-posix (Depends-on): Likewise.
53731         * modules/vsprintf-posix (Depends-on): Likewise.
53732         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53733         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53734         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53735         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53736         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53737         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53738         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53739
53740         Add support for universal builds to <inttypes.h>.
53741         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53742         _SCNu64_PREFIX): In Apple
53743         universal builds, define directly, using _LP64.
53744         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53745         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53746         * modules/inttypes (Depends-on): Add multiarch.
53747         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53748
53749         Add support for universal builds to <stdint.h>.
53750         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53751         universal builds, define directly, using _LP64.
53752         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53753         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53754         and size_t.
53755         * modules/stdint (Depends-on): Add multiarch.
53756         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53757
53758         New module 'multiarch'.
53759         * modules/multiarch: New file.
53760         * m4/multiarch.m4: New file.
53761
53762 2008-12-25  Bruno Haible  <bruno@clisp.org>
53763
53764         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53765
53766 2008-12-25  Bruno Haible  <bruno@clisp.org>
53767
53768         * modules/btowc (License): Relicense under LGPLv2+.
53769         * modules/mbsinit (License): Likewise.
53770         * modules/mbrtowc (License): Likewise.
53771         * modules/wcrtomb (License): Likewise.
53772         * modules/streq (License): Likewise.
53773         Reported by David Lutterkort <lutter@redhat.com>.
53774
53775 2008-12-23  Bruno Haible  <bruno@clisp.org>
53776
53777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53778
53779 2008-12-23  Bruno Haible  <bruno@clisp.org>
53780
53781         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53783         GETADDRINFO_LIB, not in LIBS.
53784         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53785         * modules/canon-host (Link): Likewise.
53786         * NEWS: Mention the change.
53787         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53788         GETADDRINFO_LIB.
53789
53790 2008-12-22  Bruno Haible  <bruno@clisp.org>
53791
53792         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53793         * doc/posix-functions/iswalpha_l.texi: Likewise.
53794         * doc/posix-functions/iswblank_l.texi: Likewise.
53795         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53796         * doc/posix-functions/iswctype_l.texi: Likewise.
53797         * doc/posix-functions/iswdigit_l.texi: Likewise.
53798         * doc/posix-functions/iswgraph_l.texi: Likewise.
53799         * doc/posix-functions/iswlower_l.texi: Likewise.
53800         * doc/posix-functions/iswprint_l.texi: Likewise.
53801         * doc/posix-functions/iswpunct_l.texi: Likewise.
53802         * doc/posix-functions/iswspace_l.texi: Likewise.
53803         * doc/posix-functions/iswupper_l.texi: Likewise.
53804         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53805         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53806         * doc/posix-functions/open_wmemstream.texi: Likewise.
53807         * doc/posix-functions/swscanf.texi: Likewise.
53808         * doc/posix-functions/towctrans_l.texi: Likewise.
53809         * doc/posix-functions/towlower.texi: Likewise.
53810         * doc/posix-functions/towlower_l.texi: Likewise.
53811         * doc/posix-functions/towupper.texi: Likewise.
53812         * doc/posix-functions/towupper_l.texi: Likewise.
53813         * doc/posix-functions/vfwprintf.texi: Likewise.
53814         * doc/posix-functions/vfwscanf.texi: Likewise.
53815         * doc/posix-functions/vswscanf.texi: Likewise.
53816         * doc/posix-functions/vwprintf.texi: Likewise.
53817         * doc/posix-functions/vwscanf.texi: Likewise.
53818         * doc/posix-functions/wcpcpy.texi: Likewise.
53819         * doc/posix-functions/wcpncpy.texi: Likewise.
53820         * doc/posix-functions/wcscasecmp.texi: Likewise.
53821         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53822         * doc/posix-functions/wcscoll_l.texi: Likewise.
53823         * doc/posix-functions/wcsdup.texi: Likewise.
53824         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53825         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53826         * doc/posix-functions/wcsnlen.texi: Likewise.
53827         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53828         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53829         * doc/posix-functions/wctrans_l.texi: Likewise.
53830         * doc/posix-functions/wctype_l.texi: Likewise.
53831         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53832         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53833         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53834         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53835         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53836         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53837         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53838         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53839         * doc/glibc-functions/wcschrnul.texi: Likewise.
53840         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53841         * doc/glibc-functions/wcstod_l.texi: Likewise.
53842         * doc/glibc-functions/wcstof_l.texi: Likewise.
53843         * doc/glibc-functions/wcstol_l.texi: Likewise.
53844         * doc/glibc-functions/wcstold_l.texi: Likewise.
53845         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53846         * doc/glibc-functions/wcstoq.texi: Likewise.
53847         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53848         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53849         * doc/glibc-functions/wcstouq.texi: Likewise.
53850         * doc/glibc-functions/wmempcpy.texi: Likewise.
53851
53852 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53853             Eric Blake  <ebb9@byu.net>
53854             Paolo Bonzini  <bonzini@gnu.org>
53855             Bruno Haible  <bruno@clisp.org>
53856
53857         Make c-stack work on Haiku.
53858         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53859         (c_stack_action): Use SA_ONSTACK flag.
53860
53861 2008-12-22  Bruno Haible  <bruno@clisp.org>
53862
53863         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53864
53865 2008-12-22  Bruno Haible  <bruno@clisp.org>
53866
53867         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53868         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53869         being overridden.
53870         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53871         New macros.
53872         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53874         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53875         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53876
53877 2008-12-22  Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53880         from test code.
53881
53882 2008-12-22  Eric Blake  <ebb9@byu.net>
53883
53884         Avoid gcc warnings on cygwin.
53885         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53886         Avoid unused variable.
53887         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53888         Likewise.
53889
53890 2008-12-22  Bruno Haible  <bruno@clisp.org>
53891
53892         Remove HAVE_MBRTOWC conditionals.
53893         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53894         (mbscasecmp): Assume mbrtowc function.
53895         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53896         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53897         * lib/mbschr.c: Include mbuiter.h unconditionally.
53898         (mbschr): Assume mbrtowc function.
53899         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53900         (mbscspn): Assume mbrtowc function.
53901         * lib/mbslen.c: Include mbuiter.h unconditionally.
53902         (mbslen): Assume mbrtowc function.
53903         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53904         (mbsncasecmp): Assume mbrtowc function.
53905         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53906         (mbsnlen): Assume mbrtowc function.
53907         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53908         (mbspbrk): Assume mbrtowc function.
53909         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53910         (mbspcasecmp): Assume mbrtowc function.
53911         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53912         (mbsrchr): Assume mbrtowc function.
53913         * lib/mbssep.c: Include mbuiter.h unconditionally.
53914         (mbssep): Assume mbrtowc function.
53915         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53916         (mbsspn): Assume mbrtowc function.
53917         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53918         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53919         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53920         (mbstok_r): Assume mbrtowc function.
53921         * lib/propername.c: Include mbuiter.h unconditionally.
53922         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53923         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53924         (trim2): Assume mbrtowc function.
53925         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53926         (mbsnwidth): Assume mbrtowc function.
53927         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53928         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53929         fallback definitions.
53930         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53931
53932 2008-12-22  Bruno Haible  <bruno@clisp.org>
53933
53934         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53935
53936 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53937
53938         * modules/regex: Request emulations for the mb*/wc* functions we need.
53939         * m4/regex.m4: Don't look for those functions here.
53940         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53941
53942 2008-12-22  Bruno Haible  <bruno@clisp.org>
53943
53944         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53945
53946 2008-12-21  Bruno Haible  <bruno@clisp.org>
53947
53948         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53949         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53950         (Include): Remove conditionalization.
53951         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53952         (Include): Remove conditionalization.
53953         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53954         (Include): Remove conditionalization.
53955         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53956         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53957         * NEWS: Mention the change.
53958         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53959         via Sergey Poznyakoff <gray@gnu.org.ua>.
53960
53961 2008-12-21  Bruno Haible  <bruno@clisp.org>
53962
53963         * MODULES.html.sh (Extended multibyte and wide character utilities
53964         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53965         wcrtomb, wcsrtombs.
53966         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53967         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53968         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53969         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53970
53971 2008-12-21  Bruno Haible  <bruno@clisp.org>
53972
53973         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53974
53975 2008-12-21  Bruno Haible  <bruno@clisp.org>
53976
53977         * modules/wcsnrtombs-tests: New file.
53978         * tests/test-wcsnrtombs1.sh: New file.
53979         * tests/test-wcsnrtombs2.sh: New file.
53980         * tests/test-wcsnrtombs3.sh: New file.
53981         * tests/test-wcsnrtombs4.sh: New file.
53982         * tests/test-wcsnrtombs.c: New file.
53983
53984         New module 'wcsnrtombs'.
53985         * lib/wchar.in.h (wcsnrtombs): New declaration.
53986         * lib/wcsnrtombs.c: New file.
53987         * lib/wcsrtombs-state.c: New file.
53988         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53989         (internal_state): Remove variable.
53990         * m4/wcsnrtombs.m4: New file.
53991         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53992         compilation units.
53993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53994         HAVE_WCSNRTOMBS.
53995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53996         HAVE_WCSNRTOMBS.
53997         * modules/wcsnrtombs: New file.
53998         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53999         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54000
54001 2008-12-21  Bruno Haible  <bruno@clisp.org>
54002
54003         * modules/wcsrtombs-tests: New file.
54004         * tests/test-wcsrtombs1.sh: New file.
54005         * tests/test-wcsrtombs2.sh: New file.
54006         * tests/test-wcsrtombs3.sh: New file.
54007         * tests/test-wcsrtombs4.sh: New file.
54008         * tests/test-wcsrtombs.c: New file.
54009
54010         New module 'wcsrtombs'.
54011         * lib/wchar.in.h (wcsrtombs): New declaration.
54012         * lib/wcsrtombs.c: New file.
54013         * m4/wcsrtombs.m4: New file.
54014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54015         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54017         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54018         * modules/wcsrtombs: New file.
54019         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54020         bugs.
54021
54022 2008-12-21  Bruno Haible  <bruno@clisp.org>
54023
54024         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54025         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54027         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54028         if not correct.
54029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54030         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54031         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54032         m4/locale-zh.m4, m4/codeset.m4.
54033         * doc/posix-functions/wcrtomb.texi: Document the bug.
54034
54035 2008-12-21  Bruno Haible  <bruno@clisp.org>
54036
54037         Work around a btowc() bug on IRIX 6.5.
54038         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54039         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54040         REPLACE_WTOBC if not.
54041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54042         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54043         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54044
54045 2008-12-21  Bruno Haible  <bruno@clisp.org>
54046
54047         * modules/wcrtomb-tests: New file.
54048         * tests/test-wcrtomb.sh: New file.
54049         * tests/test-wcrtomb.c: New file.
54050
54051         New module 'wcrtomb'.
54052         * lib/wchar.in.h (wcrtomb): New declaration.
54053         * lib/wcrtomb.c: New file.
54054         * m4/wcrtomb.m4: New file.
54055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54056         HAVE_WCRTOMB.
54057         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54058         HAVE_WCRTOMB.
54059         * modules/wcrtomb: New file.
54060         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54061
54062 2008-12-21  Bruno Haible  <bruno@clisp.org>
54063
54064         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54065         * modules/mbsrtowcs (Files): Likewise.
54066         * modules/wctob (Files): Likewise.
54067         * modules/c-strcase-tests (Files): Likewise.
54068         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54069         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54070         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54071         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54072         * modules/vasnprintf-posix-tests (Files): Likewise.
54073
54074 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54075
54076         gitlog-to-changelog: pass all command-line arguments to git-log
54077         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54078         it is sometimes convenient to filter the commits in various ways.
54079         gitlog-to-changelog only allows --since to specify a start date,
54080         but git-log itself supports many other filtering mechanisms.
54081         At the moment, I want to filter by branch name.  Rather than
54082         adding a --branch option to gitlog-to-changelog, it seems more
54083         flexible to simply pass all options directly to git-log and let
54084         git do the work.  Notice that this effectively makes --since a
54085         redundant option for gitlog-to-changelog, but removing it would
54086         require current usage to change since calls would then require
54087         an additional '--'.
54088
54089 2008-12-21  Bruno Haible  <bruno@clisp.org>
54090
54091         * modules/mbsnrtowcs-tests: New file.
54092         * tests/test-mbsnrtowcs1.sh: New file.
54093         * tests/test-mbsnrtowcs2.sh: New file.
54094         * tests/test-mbsnrtowcs3.sh: New file.
54095         * tests/test-mbsnrtowcs4.sh: New file.
54096         * tests/test-mbsnrtowcs.c: New file.
54097
54098         New module 'mbsnrtowcs'.
54099         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54100         * lib/mbsnrtowcs.c: New file.
54101         * lib/mbsrtowcs-state.c: New file.
54102         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54103         (internal_state): Remove variable.
54104         * m4/mbsnrtowcs.m4: New file.
54105         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54106         compilation units.
54107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54108         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54109         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54110         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54111         * modules/mbsnrtowcs: New file.
54112         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54113         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54114         portability problem.
54115
54116 2008-12-21  Bruno Haible  <bruno@clisp.org>
54117
54118         Work around mbsrtowcs bug.
54119         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54120         (gl_FUNC_MBSRTOWCS): Invoke it.
54121         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54122         m4/locale-zh.m4.
54123         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54124
54125 2008-12-21  Bruno Haible  <bruno@clisp.org>
54126
54127         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54128
54129 2008-12-21  Bruno Haible  <bruno@clisp.org>
54130
54131         Update doc for AIX.
54132         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54133         16-bit wchar_t type.
54134         * doc/posix-functions/btowc.texi: Likewise.
54135         * doc/posix-functions/fgetwc.texi: Likewise.
54136         * doc/posix-functions/fgetws.texi: Likewise.
54137         * doc/posix-functions/fputwc.texi: Likewise.
54138         * doc/posix-functions/fputws.texi: Likewise.
54139         * doc/posix-functions/fwide.texi: Likewise.
54140         * doc/posix-functions/fwprintf.texi: Likewise.
54141         * doc/posix-functions/fwscanf.texi: Likewise.
54142         * doc/posix-functions/getwchar.texi: Likewise.
54143         * doc/posix-functions/getwc.texi: Likewise.
54144         * doc/posix-functions/iswalnum.texi: Likewise.
54145         * doc/posix-functions/iswalpha.texi: Likewise.
54146         * doc/posix-functions/iswblank.texi: Likewise.
54147         * doc/posix-functions/iswcntrl.texi: Likewise.
54148         * doc/posix-functions/iswctype.texi: Likewise.
54149         * doc/posix-functions/iswdigit.texi: Likewise.
54150         * doc/posix-functions/iswgraph.texi: Likewise.
54151         * doc/posix-functions/iswlower.texi: Likewise.
54152         * doc/posix-functions/iswprint.texi: Likewise.
54153         * doc/posix-functions/iswpunct.texi: Likewise.
54154         * doc/posix-functions/iswspace.texi: Likewise.
54155         * doc/posix-functions/iswupper.texi: Likewise.
54156         * doc/posix-functions/iswxdigit.texi: Likewise.
54157         * doc/posix-functions/mbrtowc.texi: Likewise.
54158         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54159         * doc/posix-functions/mbstowcs.texi: Likewise.
54160         * doc/posix-functions/mbtowc.texi: Likewise.
54161         * doc/posix-functions/putwchar.texi: Likewise.
54162         * doc/posix-functions/putwc.texi: Likewise.
54163         * doc/posix-functions/swprintf.texi: Likewise.
54164         * doc/posix-functions/tolower.texi: Likewise.
54165         * doc/posix-functions/toupper.texi: Likewise.
54166         * doc/posix-functions/towctrans.texi: Likewise.
54167         * doc/posix-functions/ungetwc.texi: Likewise.
54168         * doc/posix-functions/vswprintf.texi: Likewise.
54169         * doc/posix-functions/wcrtomb.texi: Likewise.
54170         * doc/posix-functions/wcscat.texi: Likewise.
54171         * doc/posix-functions/wcschr.texi: Likewise.
54172         * doc/posix-functions/wcscmp.texi: Likewise.
54173         * doc/posix-functions/wcscoll.texi: Likewise.
54174         * doc/posix-functions/wcscpy.texi: Likewise.
54175         * doc/posix-functions/wcscspn.texi: Likewise.
54176         * doc/posix-functions/wcsftime.texi: Likewise.
54177         * doc/posix-functions/wcslen.texi: Likewise.
54178         * doc/posix-functions/wcsncat.texi: Likewise.
54179         * doc/posix-functions/wcsncmp.texi: Likewise.
54180         * doc/posix-functions/wcsncpy.texi: Likewise.
54181         * doc/posix-functions/wcspbrk.texi: Likewise.
54182         * doc/posix-functions/wcsrchr.texi: Likewise.
54183         * doc/posix-functions/wcsrtombs.texi: Likewise.
54184         * doc/posix-functions/wcsspn.texi: Likewise.
54185         * doc/posix-functions/wcsstr.texi: Likewise.
54186         * doc/posix-functions/wcstod.texi: Likewise.
54187         * doc/posix-functions/wcstof.texi: Likewise.
54188         * doc/posix-functions/wcstoimax.texi: Likewise.
54189         * doc/posix-functions/wcstok.texi: Likewise.
54190         * doc/posix-functions/wcstold.texi: Likewise.
54191         * doc/posix-functions/wcstoll.texi: Likewise.
54192         * doc/posix-functions/wcstol.texi: Likewise.
54193         * doc/posix-functions/wcstombs.texi: Likewise.
54194         * doc/posix-functions/wcstoull.texi: Likewise.
54195         * doc/posix-functions/wcstoul.texi: Likewise.
54196         * doc/posix-functions/wcstoumax.texi: Likewise.
54197         * doc/posix-functions/wcswidth.texi: Likewise.
54198         * doc/posix-functions/wcsxfrm.texi: Likewise.
54199         * doc/posix-functions/wctob.texi: Likewise.
54200         * doc/posix-functions/wctomb.texi: Likewise.
54201         * doc/posix-functions/wctrans.texi: Likewise.
54202         * doc/posix-functions/wctype.texi: Likewise.
54203         * doc/posix-functions/wcwidth.texi: Likewise.
54204         * doc/posix-functions/wmemchr.texi: Likewise.
54205         * doc/posix-functions/wmemcmp.texi: Likewise.
54206         * doc/posix-functions/wmemcpy.texi: Likewise.
54207         * doc/posix-functions/wmemmove.texi: Likewise.
54208         * doc/posix-functions/wmemset.texi: Likewise.
54209         * doc/posix-functions/wprintf.texi: Likewise.
54210         * doc/posix-functions/wscanf.texi: Likewise.
54211
54212 2008-12-21  Bruno Haible  <bruno@clisp.org>
54213
54214         Update doc for HP-UX 11.11.
54215         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54216         in HP-UX version 11.00, not in all versions of HP-UX 11.
54217         * doc/posix-functions/fwide.texi: Likewise.
54218         * doc/posix-functions/fwprintf.texi: Likewise.
54219         * doc/posix-functions/fwscanf.texi: Likewise.
54220         * doc/posix-functions/inet_ntop.texi: Likewise.
54221         * doc/posix-functions/inet_pton.texi: Likewise.
54222         * doc/posix-functions/mbrlen.texi: Likewise.
54223         * doc/posix-functions/mbrtowc.texi: Likewise.
54224         * doc/posix-functions/mbsinit.texi: Likewise.
54225         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54226         * doc/posix-functions/swprintf.texi: Likewise.
54227         * doc/posix-functions/swscanf.texi: Likewise.
54228         * doc/posix-functions/towctrans.texi: Likewise.
54229         * doc/posix-functions/vfwprintf.texi: Likewise.
54230         * doc/posix-functions/vswprintf.texi: Likewise.
54231         * doc/posix-functions/vwprintf.texi: Likewise.
54232         * doc/posix-functions/wcrtomb.texi: Likewise.
54233         * doc/posix-functions/wcsrtombs.texi: Likewise.
54234         * doc/posix-functions/wcsstr.texi: Likewise.
54235         * doc/posix-functions/wctob.texi: Likewise.
54236         * doc/posix-functions/wctrans.texi: Likewise.
54237         * doc/posix-functions/wmemchr.texi: Likewise.
54238         * doc/posix-functions/wmemcmp.texi: Likewise.
54239         * doc/posix-functions/wmemcpy.texi: Likewise.
54240         * doc/posix-functions/wmemmove.texi: Likewise.
54241         * doc/posix-functions/wmemset.texi: Likewise.
54242         * doc/posix-functions/wprintf.texi: Likewise.
54243         * doc/posix-functions/wscanf.texi: Likewise.
54244
54245 2008-12-21  Bruno Haible  <bruno@clisp.org>
54246
54247         Work around a portability problem.
54248         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54249         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54250
54251 2008-12-20  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54254         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54255         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54257         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54258
54259         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54260         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54261         set.
54262         (GNULIB_defined_mbstate_t): New macro.
54263         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54264         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54265         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54266         reuses the system's mbrtowc function but works around the bugs.
54267         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54268         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54269         macros.
54270         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54271         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54272         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54273         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54274         REPLACE_MBSINIT if mbsinit needs to be overridden.
54275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54276         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54277         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54278         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54279         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54280         m4/locale-zh.m4.
54281         (Depends): Add mbsinit.
54282         * modules/mbsinit (Depends): Add mbrtowc.
54283         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54284
54285 2008-12-20  Bruno Haible  <bruno@clisp.org>
54286
54287         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54288         so that there are no conversion errors on AIX.
54289         * tests/test-mbsrtowcs.c (main): LIkewise.
54290
54291 2008-12-20  Bruno Haible  <bruno@clisp.org>
54292
54293         Work around wctob bug on Solaris <= 9.
54294         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54295         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54296         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54297         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54298         * modules/wctob (Files): Add m4/locale-fr.m4.
54299         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54300
54301 2008-12-20  Bruno Haible  <bruno@clisp.org>
54302
54303         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54304         /dev/null.
54305         * tests/test-select-in.sh: Likewise.
54306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54307
54308 2008-12-20  Bruno Haible  <bruno@clisp.org>
54309
54310         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54311         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54312         Cygwin 1.5.x.
54313
54314 2008-12-20  Bruno Haible  <bruno@clisp.org>
54315
54316         Ensure mbstate_t is defined on HP-UX 11.11.
54317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54318         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54319         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54320         AC_USE_SYSTEM_EXTENSIONS.
54321         * modules/fnmatch (Depends-on): Add extensions.
54322         * modules/mbrlen (Depends-on): Likewise.
54323         * modules/mbrtowc (Depends-on): Likewise.
54324         * modules/mbsinit (Depends-on): Likewise.
54325         * modules/mbsrtowcs (Depends-on): Likewise.
54326         * modules/mbswidth (Depends-on): Likewise.
54327         * modules/quotearg (Depends-on): Likewise.
54328         * modules/strftime (Depends-on): Likewise.
54329
54330 2008-12-20  Bruno Haible  <bruno@clisp.org>
54331
54332         Ensure wctob is declared on IRIX 6.5.
54333         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54334         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54335         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54337         of HAVE_WCTOB.
54338         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54339         HAVE_WCTOB.
54340         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54341
54342 2008-12-19  Bruno Haible  <bruno@clisp.org>
54343
54344         * modules/mbsrtowcs-tests: New file.
54345         * tests/test-mbsrtowcs1.sh: New file.
54346         * tests/test-mbsrtowcs2.sh: New file.
54347         * tests/test-mbsrtowcs3.sh: New file.
54348         * tests/test-mbsrtowcs4.sh: New file.
54349         * tests/test-mbsrtowcs.c: New file.
54350
54351         New module 'mbsrtowcs'.
54352         * lib/wchar.in.h (mbsrtowcs): New declaration.
54353         * lib/mbsrtowcs.c: New file.
54354         * m4/mbsrtowcs.m4: New file.
54355         * modules/mbsrtowcs: New file.
54356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54357         HAVE_MBSRTOWCS.
54358         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54359         HAVE_MBSRTOWCS.
54360         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54361
54362 2008-12-19  Bruno Haible  <bruno@clisp.org>
54363
54364         New module 'mbrlen'.
54365         * lib/wchar.in.h (mbrlen): New declaration.
54366         * lib/mbrlen.c: New file.
54367         * m4/mbrlen.m4: New file.
54368         * modules/mbrlen: New file.
54369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54370         HAVE_MBRLEN.
54371         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54372         HAVE_MBRLEN.
54373         * doc/posix-functions/mbrlen.texi: Document the new module.
54374
54375 2008-12-19  Bruno Haible  <bruno@clisp.org>
54376
54377         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54378         * modules/mbrtowc (Depends-on): Add verify.
54379         Suggested by Paul Eggert.
54380
54381 2008-12-18  Bruno Haible  <bruno@clisp.org>
54382
54383         * modules/mbsinit-tests: New file.
54384         * tests/test-mbsinit.sh: New file.
54385         * tests/test-mbsinit.c: New file.
54386
54387 2008-12-18  Bruno Haible  <bruno@clisp.org>
54388
54389         * modules/mbrtowc-tests: New file.
54390         * tests/test-mbrtowc1.sh: New file.
54391         * tests/test-mbrtowc2.sh: New file.
54392         * tests/test-mbrtowc3.sh: New file.
54393         * tests/test-mbrtowc4.sh: New file.
54394         * tests/test-mbrtowc.c: New file.
54395
54396         New module 'mbrtowc'.
54397         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54398         mbsinit and mbrtowc.
54399         (mbrtowc): New declaration.
54400         * lib/mbrtowc.c: New file.
54401         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54402         * modules/mbrtowc: New file.
54403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54404         HAVE_MBRTOWC.
54405         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54406         HAVE_MBRTOWC.
54407         * doc/posix-functions/mbrtowc.texi: Document the new module.
54408
54409 2008-12-18  Bruno Haible  <bruno@clisp.org>
54410
54411         New module 'wctob'.
54412         * lib/wchar.in.h (wctob): New declaration.
54413         * lib/wctob.c: New file.
54414         * m4/wctob.m4: New file.
54415         * modules/wctob: New file.
54416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54417         HAVE_WCTOB.
54418         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54419         * doc/posix-functions/wctob.texi: Document the new module.
54420
54421 2008-12-18  Bruno Haible  <bruno@clisp.org>
54422
54423         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54424         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54425
54426 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54427
54428         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54429         G. Christensen" <tgc@jupiterrise.com>.
54430
54431         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54432         G. Christensen" <tgc@jupiterrise.com>.
54433
54434         * lib/flock.c: Need to include string.h.  Reported by "Tom
54435         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54436         <ebb9@byu.net>.
54437
54438 2008-12-18  Bruno Haible  <bruno@clisp.org>
54439
54440         * m4/locale-ja.m4: New file, from GNU gettext.
54441
54442 2008-12-17  Bruno Haible  <bruno@clisp.org>
54443
54444         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54445         Suggested by Eric Blake.
54446
54447 2008-12-17  Bruno Haible  <bruno@clisp.org>
54448
54449         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54450
54451 2008-12-17  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54454         * modules/mbsinit (Depends-on): Add verify.
54455         Suggested by Paul Eggert.
54456
54457 2008-12-17  Bruno Haible  <bruno@clisp.org>
54458
54459         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54460         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54461         gl_FUNC_MBRTOWC.
54462         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54463         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54464         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54465         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54466         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54467         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54468         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54469         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54470         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54471         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54472         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54473         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54474         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54475         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54476         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54477         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54478         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54479         * modules/trim (configure.ac): Likewise.
54480
54481 2008-12-17  Bruno Haible  <bruno@clisp.org>
54482
54483         * modules/btowc-tests: New file.
54484         * tests/test-btowc1.sh: New file.
54485         * tests/test-btowc2.sh: New file.
54486         * tests/test-btowc.c: New file.
54487
54488         New module 'btowc'.
54489         * lib/wchar.in.h (btowc): New declaration.
54490         * lib/btowc.c: New file.
54491         * m4/btowc.m4: New file.
54492         * modules/btowc: New file.
54493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54494         HAVE_BTOWC.
54495         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54496         * doc/posix-functions/btowc.texi: Document the new module.
54497
54498 2008-12-17  Bruno Haible  <bruno@clisp.org>
54499
54500         New module 'mbsinit'.
54501         * lib/wchar.in.h (mbsinit): New declaration.
54502         * lib/mbsinit.c: New file.
54503         * m4/mbsinit.m4: New file.
54504         * modules/mbsinit: New file.
54505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54506         HAVE_MBSINIT.
54507         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54508         HAVE_MBSINIT.
54509         * doc/posix-functions/mbsinit.texi: Document the new module.
54510
54511 2008-12-16  Bruno Haible  <bruno@clisp.org>
54512
54513         * lib/unistd.in.h: Add comment.
54514         * tests/test-environ.c: Don't include <stdlib.h>.
54515
54516 2008-12-16  Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/parse-duration.h (parse_duration): Document return value
54519         convention.
54520         * lib/parse-duration.c: Include specification header first. Add
54521         comments.
54522         (_): Remove macro.
54523         (parse_year_month_day, parse_hour_minute_second): Move side effects
54524         outside of strchr call.
54525         (parse_non_iso8601): Move side effects outside of isspace call.
54526         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54527         call.
54528
54529 2008-12-16  Bruno Haible  <bruno@clisp.org>
54530
54531         * tests/test-parse-duration.sh: Produce no output when the test
54532         succeeds.
54533
54534 2008-12-16  Bruno Haible  <bruno@clisp.org>
54535
54536         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54537         expressions.
54538
54539 2008-12-15  Bruno Haible  <bruno@clisp.org>
54540
54541         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54542         * doc/glibc-functions/flistxattr.texi: Likewise.
54543         * doc/glibc-functions/fopencookie.texi: Likewise.
54544         * doc/glibc-functions/fremovexattr.texi: Likewise.
54545         * doc/glibc-functions/fsetxattr.texi: Likewise.
54546         * doc/glibc-functions/getxattr.texi: Likewise.
54547         * doc/glibc-functions/lgetxattr.texi: Likewise.
54548         * doc/glibc-functions/listxattr.texi: Likewise.
54549         * doc/glibc-functions/llistxattr.texi: Likewise.
54550         * doc/glibc-functions/lremovexattr.texi: Likewise.
54551         * doc/glibc-functions/lsetxattr.texi: Likewise.
54552         * doc/glibc-functions/removexattr.texi: Likewise.
54553         * doc/glibc-functions/setxattr.texi: Likewise.
54554         * doc/posix-functions/open_memstream.texi: Likewise.
54555
54556 2008-12-15  Eric Blake  <ebb9@byu.net>
54557
54558         Update doc for cygwin 1.7.
54559         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54560         functions.
54561         * doc/posix-functions/fchmodat.texi: Likewise.
54562         * doc/posix-functions/fchownat.texi: Likewise.
54563         * doc/posix-functions/fdopendir.texi: Likewise.
54564         * doc/posix-functions/fmemopen.texi: Likewise.
54565         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54566         * doc/posix-functions/fstatat.texi: Likewise.
54567         * doc/posix-functions/futimens.texi: Likewise.
54568         * doc/posix-functions/gai_strerror.texi: Likewise.
54569         * doc/posix-functions/getaddrinfo.texi: Likewise.
54570         * doc/posix-functions/getnameinfo.texi: Likewise.
54571         * doc/posix-functions/if_freenameindex.texi: Likewise.
54572         * doc/posix-functions/if_indextoname.texi: Likewise.
54573         * doc/posix-functions/if_nameindex.texi: Likewise.
54574         * doc/posix-functions/if_nametoindex.texi: Likewise.
54575         * doc/posix-functions/insque.texi: Likewise.
54576         * doc/posix-functions/linkat.texi: Likewise.
54577         * doc/posix-functions/llrint.texi: Likewise.
54578         * doc/posix-functions/llrintf.texi: Likewise.
54579         * doc/posix-functions/llrintl.texi: Likewise.
54580         * doc/posix-functions/lockf.texi: Likewise.
54581         * doc/posix-functions/lrintl.texi: Likewise.
54582         * doc/posix-functions/mkdirat.texi: Likewise.
54583         * doc/posix-functions/mkfifoat.texi: Likewise.
54584         * doc/posix-functions/mknodat.texi: Likewise.
54585         * doc/posix-functions/mq_close.texi: Likewise.
54586         * doc/posix-functions/mq_getattr.texi: Likewise.
54587         * doc/posix-functions/mq_notify.texi: Likewise.
54588         * doc/posix-functions/mq_open.texi: Likewise.
54589         * doc/posix-functions/mq_receive.texi: Likewise.
54590         * doc/posix-functions/mq_send.texi: Likewise.
54591         * doc/posix-functions/mq_setattr.texi: Likewise.
54592         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54593         * doc/posix-functions/mq_timedsend.texi: Likewise.
54594         * doc/posix-functions/mq_unlink.texi: Likewise.
54595         * doc/posix-functions/open_memstream.texi: Likewise.
54596         * doc/posix-functions/openat.texi: Likewise.
54597         * doc/posix-functions/posix_fadvise.texi: Likewise.
54598         * doc/posix-functions/posix_fallocate.texi: Likewise.
54599         * doc/posix-functions/posix_madvise.texi: Likewise.
54600         * doc/posix-functions/posix_memalign.texi: Likewise.
54601         * doc/posix-functions/posix_openpt.texi: Likewise.
54602         * doc/posix-functions/readlinkat.texi: Likewise.
54603         * doc/posix-functions/remque.texi: Likewise.
54604         * doc/posix-functions/renameat.texi: Likewise.
54605         * doc/posix-functions/rintl.texi: Likewise.
54606         * doc/posix-functions/sem_unlink.texi: Likewise.
54607         * doc/posix-functions/shm_open.texi: Likewise.
54608         * doc/posix-functions/shm_unlink.texi: Likewise.
54609         * doc/posix-functions/signgam.texi: Likewise.
54610         * doc/posix-functions/sigset.texi: Likewise.
54611         * doc/posix-functions/stpcpy.texi: Likewise.
54612         * doc/posix-functions/stpncpy.texi: Likewise.
54613         * doc/posix-functions/strerror.texi: Likewise.
54614         * doc/posix-functions/strtod.texi: Likewise.
54615         * doc/posix-functions/symlinkat.texi: Likewise.
54616         * doc/posix-functions/unlinkat.texi: Likewise.
54617         * doc/posix-functions/utimensat.texi: Likewise.
54618         * doc/glibc-functions/bindresvport.texi: Likewise.
54619         * doc/glibc-functions/dn_expand.texi: Likewise.
54620         * doc/glibc-functions/exp10.texi: Likewise.
54621         * doc/glibc-functions/exp10f.texi: Likewise.
54622         * doc/glibc-functions/fgetxattr.texi: Likewise.
54623         * doc/glibc-functions/flistxattr.texi: Likewise.
54624         * doc/glibc-functions/fopencookie.texi: Likewise.
54625         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54626         * doc/glibc-functions/fremovexattr.texi: Likewise.
54627         * doc/glibc-functions/fsetxattr.texi: Likewise.
54628         * doc/glibc-functions/getifaddrs.texi: Likewise.
54629         * doc/glibc-functions/getxattr.texi: Likewise.
54630         * doc/glibc-functions/lgetxattr.texi: Likewise.
54631         * doc/glibc-functions/listxattr.texi: Likewise.
54632         * doc/glibc-functions/llistxattr.texi: Likewise.
54633         * doc/glibc-functions/lremovexattr.texi: Likewise.
54634         * doc/glibc-functions/lsetxattr.texi: Likewise.
54635         * doc/glibc-functions/pow10.texi: Likewise.
54636         * doc/glibc-functions/pow10f.texi: Likewise.
54637         * doc/glibc-functions/rcmd_af.texi: Likewise.
54638         * doc/glibc-functions/removexattr.texi: Likewise.
54639         * doc/glibc-functions/res_init.texi: Likewise.
54640         * doc/glibc-functions/res_mkquery.texi: Likewise.
54641         * doc/glibc-functions/res_query.texi: Likewise.
54642         * doc/glibc-functions/res_querydomain.texi: Likewise.
54643         * doc/glibc-functions/res_send.texi: Likewise.
54644         * doc/glibc-functions/rresvport_af.texi: Likewise.
54645         * doc/glibc-functions/setxattr.texi: Likewise.
54646         * doc/glibc-functions/strcasestr.texi: Likewise.
54647
54648 2008-12-15  Bruno Haible  <bruno@clisp.org>
54649
54650         Fix compilation error on OSF/1 4.0.
54651         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54652         <sys/time.h>, simply delegate to the system header.
54653         Reported by Daniel Richard G. <oss@teragram.com>.
54654
54655 2008-12-15  Bruno Haible  <bruno@clisp.org>
54656
54657         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54658         * doc/posix-functions/fchmodat.texi: Likewise.
54659         * doc/posix-functions/fchownat.texi: Likewise.
54660         * doc/posix-functions/fdopendir.texi: Likewise.
54661         * doc/posix-functions/fstatat.texi: Likewise.
54662         * doc/posix-functions/mkdirat.texi: Likewise.
54663         * doc/posix-functions/unlinkat.texi: Likewise.
54664
54665 2008-12-14  Bruno Haible  <bruno@clisp.org>
54666
54667         Update doc for POSIX:2008.
54668         * doc/posix-functions/faccessat.texi: New file.
54669         * doc/posix-functions/fchmodat.texi: New file.
54670         * doc/posix-functions/fchownat.texi: New file.
54671         * doc/posix-functions/fdopendir.texi: New file.
54672         * doc/posix-functions/fstatat.texi: New file.
54673         * doc/posix-functions/futimens.texi: New file.
54674         * doc/posix-functions/linkat.texi: New file.
54675         * doc/posix-functions/mkdirat.texi: New file.
54676         * doc/posix-functions/mkfifoat.texi: New file.
54677         * doc/posix-functions/mknodat.texi: New file.
54678         * doc/posix-functions/open_wmemstream.texi: New file.
54679         * doc/posix-functions/openat.texi: New file.
54680         * doc/posix-functions/psiginfo.texi: New file.
54681         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54682         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54683         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54684         * doc/posix-functions/readlinkat.texi: New file.
54685         * doc/posix-functions/renameat.texi: New file.
54686         * doc/posix-functions/strerror_l.texi: New file.
54687         * doc/posix-functions/symlinkat.texi: New file.
54688         * doc/posix-functions/unlinkat.texi: New file.
54689         * doc/posix-functions/utimensat.texi: New file.
54690         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54691
54692 2008-12-14  Bruno Haible  <bruno@clisp.org>
54693
54694         Update doc for POSIX:2008.
54695         * doc/posix-functions/alphasort.texi: Renamed from
54696         doc/glibc-functions/alphasort.texi.
54697         * doc/posix-functions/dirfd.texi: Renamed from
54698         doc/glibc-functions/dirfd.texi.
54699         * doc/posix-functions/dprintf.texi: Renamed from
54700         doc/glibc-functions/dprintf.texi.
54701         * doc/posix-functions/duplocale.texi: Renamed from
54702         doc/glibc-functions/duplocale.texi.
54703         * doc/posix-functions/fexecve.texi: Renamed from
54704         doc/glibc-functions/fexecve.texi.
54705         * doc/posix-functions/fmemopen.texi: Renamed from
54706         doc/glibc-functions/fmemopen.texi.
54707         * doc/posix-functions/freelocale.texi: Renamed from
54708         doc/glibc-functions/freelocale.texi.
54709         * doc/posix-functions/getdate_err.texi: Renamed from
54710         doc/glibc-functions/getdate_err.texi.
54711         * doc/posix-functions/isalnum_l.texi: Renamed from
54712         doc/glibc-functions/isalnum_l.texi.
54713         * doc/posix-functions/isalpha_l.texi: Renamed from
54714         doc/glibc-functions/isalpha_l.texi.
54715         * doc/posix-functions/isblank_l.texi: Renamed from
54716         doc/glibc-functions/isblank_l.texi.
54717         * doc/posix-functions/iscntrl_l.texi: Renamed from
54718         doc/glibc-functions/iscntrl_l.texi.
54719         * doc/posix-functions/isdigit_l.texi: Renamed from
54720         doc/glibc-functions/isdigit_l.texi.
54721         * doc/posix-functions/isgraph_l.texi: Renamed from
54722         doc/glibc-functions/isgraph_l.texi.
54723         * doc/posix-functions/islower_l.texi: Renamed from
54724         doc/glibc-functions/islower_l.texi.
54725         * doc/posix-functions/isprint_l.texi: Renamed from
54726         doc/glibc-functions/isprint_l.texi.
54727         * doc/posix-functions/ispunct_l.texi: Renamed from
54728         doc/glibc-functions/ispunct_l.texi.
54729         * doc/posix-functions/isspace_l.texi: Renamed from
54730         doc/glibc-functions/isspace_l.texi.
54731         * doc/posix-functions/isupper_l.texi: Renamed from
54732         doc/glibc-functions/isupper_l.texi.
54733         * doc/posix-functions/iswalnum_l.texi: Renamed from
54734         doc/glibc-functions/iswalnum_l.texi.
54735         * doc/posix-functions/iswalpha_l.texi: Renamed from
54736         doc/glibc-functions/iswalpha_l.texi.
54737         * doc/posix-functions/iswblank_l.texi: Renamed from
54738         doc/glibc-functions/iswblank_l.texi.
54739         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54740         doc/glibc-functions/iswcntrl_l.texi.
54741         * doc/posix-functions/iswctype_l.texi: Renamed from
54742         doc/glibc-functions/iswctype_l.texi.
54743         * doc/posix-functions/iswdigit_l.texi: Renamed from
54744         doc/glibc-functions/iswdigit_l.texi.
54745         * doc/posix-functions/iswgraph_l.texi: Renamed from
54746         doc/glibc-functions/iswgraph_l.texi.
54747         * doc/posix-functions/iswlower_l.texi: Renamed from
54748         doc/glibc-functions/iswlower_l.texi.
54749         * doc/posix-functions/iswprint_l.texi: Renamed from
54750         doc/glibc-functions/iswprint_l.texi.
54751         * doc/posix-functions/iswpunct_l.texi: Renamed from
54752         doc/glibc-functions/iswpunct_l.texi.
54753         * doc/posix-functions/iswspace_l.texi: Renamed from
54754         doc/glibc-functions/iswspace_l.texi.
54755         * doc/posix-functions/iswupper_l.texi: Renamed from
54756         doc/glibc-functions/iswupper_l.texi.
54757         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54758         doc/glibc-functions/iswxdigit_l.texi.
54759         * doc/posix-functions/isxdigit_l.texi: Renamed from
54760         doc/glibc-functions/isxdigit_l.texi.
54761         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54762         doc/glibc-functions/mbsnrtowcs.texi.
54763         * doc/posix-functions/mkdtemp.texi: Renamed from
54764         doc/glibc-functions/mkdtemp.texi.
54765         * doc/posix-functions/newlocale.texi: Renamed from
54766         doc/glibc-functions/newlocale.texi.
54767         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54768         doc/glibc-functions/nl_langinfo_l.texi.
54769         * doc/posix-functions/open_memstream.texi: Renamed from
54770         doc/glibc-functions/open_memstream.texi.
54771         * doc/posix-functions/opterr.texi: Renamed from
54772         doc/glibc-functions/opterr.texi.
54773         * doc/posix-functions/optind.texi: Renamed from
54774         doc/glibc-functions/optind.texi.
54775         * doc/posix-functions/optopt.texi: Renamed from
54776         doc/glibc-functions/optopt.texi.
54777         * doc/posix-functions/psignal.texi: Renamed from
54778         doc/glibc-functions/psignal.texi.
54779         * doc/posix-functions/scandir.texi: Renamed from
54780         doc/glibc-functions/scandir.texi.
54781         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54782         doc/glibc-functions/sched_get_priority_min.texi.
54783         * doc/posix-functions/signgam.texi: Renamed from
54784         doc/glibc-functions/signgam.texi.
54785         * doc/posix-functions/stpcpy.texi: Renamed from
54786         doc/glibc-functions/stpcpy.texi.
54787         * doc/posix-functions/stpncpy.texi: Renamed from
54788         doc/glibc-functions/stpncpy.texi.
54789         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54790         doc/glibc-functions/strcasecmp_l.texi.
54791         * doc/posix-functions/strcoll_l.texi: Renamed from
54792         doc/glibc-functions/strcoll_l.texi.
54793         * doc/posix-functions/strfmon_l.texi: Renamed from
54794         doc/glibc-functions/strfmon_l.texi.
54795         * doc/posix-functions/strftime_l.texi: Renamed from
54796         doc/glibc-functions/strftime_l.texi.
54797         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54798         doc/glibc-functions/strncasecmp_l.texi.
54799         * doc/posix-functions/strndup.texi: Renamed from
54800         doc/glibc-functions/strndup.texi.
54801         * doc/posix-functions/strnlen.texi: Renamed from
54802         doc/glibc-functions/strnlen.texi.
54803         * doc/posix-functions/strsignal.texi: Renamed from
54804         doc/glibc-functions/strsignal.texi.
54805         * doc/posix-functions/strxfrm_l.texi: Renamed from
54806         doc/glibc-functions/strxfrm_l.texi.
54807         * doc/posix-functions/timer_gettime.texi: Renamed from
54808         doc/glibc-functions/timer_gettime.texi.
54809         * doc/posix-functions/tolower_l.texi: Renamed from
54810         doc/glibc-functions/tolower_l.texi.
54811         * doc/posix-functions/toupper_l.texi: Renamed from
54812         doc/glibc-functions/toupper_l.texi.
54813         * doc/posix-functions/towctrans_l.texi: Renamed from
54814         doc/glibc-functions/towctrans_l.texi.
54815         * doc/posix-functions/towlower_l.texi: Renamed from
54816         doc/glibc-functions/towlower_l.texi.
54817         * doc/posix-functions/towupper_l.texi: Renamed from
54818         doc/glibc-functions/towupper_l.texi.
54819         * doc/posix-functions/uselocale.texi: Renamed from
54820         doc/glibc-functions/uselocale.texi.
54821         * doc/posix-functions/vdprintf.texi: Renamed from
54822         doc/glibc-functions/vdprintf.texi.
54823         * doc/posix-functions/wcpcpy.texi:
54824         Renamed from doc/glibc-functions/wcpcpy.texi.
54825         * doc/posix-functions/wcpncpy.texi: Renamed from
54826         doc/glibc-functions/wcpncpy.texi.
54827         * doc/posix-functions/wcscasecmp.texi: Renamed from
54828         doc/glibc-functions/wcscasecmp.texi.
54829         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54830         doc/glibc-functions/wcscasecmp_l.texi.
54831         * doc/posix-functions/wcscoll_l.texi: Renamed from
54832         doc/glibc-functions/wcscoll_l.texi.
54833         * doc/posix-functions/wcsdup.texi: Renamed from
54834         doc/glibc-functions/wcsdup.texi.
54835         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54836         doc/glibc-functions/wcsncasecmp.texi.
54837         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54838         doc/glibc-functions/wcsncasecmp_l.texi.
54839         * doc/posix-functions/wcsnlen.texi: Renamed from
54840         doc/glibc-functions/wcsnlen.texi.
54841         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54842         doc/glibc-functions/wcsnrtombs.texi.
54843         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54844         doc/glibc-functions/wcsxfrm_l.texi.
54845         * doc/posix-functions/wctrans_l.texi: Renamed from
54846         doc/glibc-functions/wctrans_l.texi.
54847         * doc/posix-functions/wctype_l.texi: Renamed from
54848         doc/glibc-functions/wctype_l.texi.
54849         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54850         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54851         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54852         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54853         these subsections.
54854         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54855         Remove sections.
54856
54857 2008-12-14  Bruno Haible  <bruno@clisp.org>
54858
54859         Update doc for POSIX:2008.
54860         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54861
54862 2008-12-14  Bruno Haible  <bruno@clisp.org>
54863
54864         Update doc for POSIX:2008.
54865         * doc/pastposix-functions/bcmp.texi: Renamed from
54866         doc/posix-functions/bcmp.texi.
54867         * doc/pastposix-functions/bcopy.texi: Renamed from
54868         doc/posix-functions/bcopy.texi.
54869         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54870         doc/posix-functions/bsd_signal.texi.
54871         * doc/pastposix-functions/bzero.texi: Renamed from
54872         doc/posix-functions/bzero.texi.
54873         * doc/pastposix-functions/ecvt.texi: Renamed from
54874         doc/posix-functions/ecvt.texi.
54875         * doc/pastposix-functions/fcvt.texi: Renamed from
54876         doc/posix-functions/fcvt.texi.
54877         * doc/pastposix-functions/ftime.texi: Renamed from
54878         doc/posix-functions/ftime.texi.
54879         * doc/pastposix-functions/gcvt.texi: Renamed from
54880         doc/posix-functions/gcvt.texi.
54881         * doc/pastposix-functions/getcontext.texi: Renamed from
54882         doc/posix-functions/getcontext.texi.
54883         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54884         doc/posix-functions/gethostbyaddr.texi.
54885         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54886         doc/posix-functions/gethostbyname.texi.
54887         * doc/pastposix-functions/getwd.texi: Renamed from
54888         doc/posix-functions/getwd.texi.
54889         * doc/pastposix-functions/h_errno.texi: Renamed from
54890         doc/posix-functions/h_errno.texi.
54891         * doc/pastposix-functions/index.texi: Renamed from
54892         doc/posix-functions/index.texi.
54893         * doc/pastposix-functions/makecontext.texi: Renamed from
54894         doc/posix-functions/makecontext.texi.
54895         * doc/pastposix-functions/mktemp.texi: Renamed from
54896         doc/posix-functions/mktemp.texi.
54897         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54898         doc/posix-functions/pthread_attr_getstackaddr.texi.
54899         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54900         doc/posix-functions/pthread_attr_setstackaddr.texi.
54901         * doc/pastposix-functions/rindex.texi: Renamed from
54902         doc/posix-functions/rindex.texi.
54903         * doc/pastposix-functions/scalb.texi: Renamed from
54904         doc/posix-functions/scalb.texi.
54905         * doc/pastposix-functions/setcontext.texi: Renamed from
54906         doc/posix-functions/setcontext.texi.
54907         * doc/pastposix-functions/swapcontext.texi: Renamed from
54908         doc/posix-functions/swapcontext.texi.
54909         * doc/pastposix-functions/ualarm.texi: Renamed from
54910         doc/posix-functions/ualarm.texi.
54911         * doc/pastposix-functions/usleep.texi: Renamed from
54912         doc/posix-functions/usleep.texi.
54913         * doc/pastposix-functions/vfork.texi: Renamed from
54914         doc/posix-functions/vfork.texi.
54915         * doc/pastposix-functions/wcswcs.texi: Renamed from
54916         doc/posix-functions/wcswcs.texi.
54917         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54918         (Function Substitutes): Update.
54919
54920 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54921
54922         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54923         m4/strerror.m4.
54924
54925 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54926             Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54929
54930 2008-12-13  Bruno Haible  <bruno@clisp.org>
54931
54932         * modules/strtoull (Depends-on): Remove unistd.
54933
54934 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54935
54936         * modules/strtoull (Depends-on): Add stdlib.
54937
54938 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54939
54940         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54941
54942 2008-12-10  Jim Meyering  <meyering@redhat.com>
54943
54944         gl_ASSERT: don't say assertions are disabled when they're not
54945         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54946         "checking whether to enable assertions... no", when they are in
54947         fact enabled.  This is solely a bug in the output of configure.
54948         In spite of saying "no", NDEBUG was not defined in that case.
54949         Also, as noted by Eric Blake, leave assertions enabled upon
54950         --enable-assert=INVALID.
54951
54952 2008-12-10  Bruno Haible  <bruno@clisp.org>
54953
54954         Change MODULES.html to refer to POSIX:2008 where possible.
54955         * MODULES.html.sh (POSIX2008_URL): New variable.
54956         (posix_headers): Remove sys/timeb, ucontext.
54957         (posix2001_headers): New variable.
54958         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54959         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54960         index, makecontext, mktemp, pthread_attr_getstackaddr,
54961         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54962         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54963         (posix2001_functions): New variable.
54964         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54965         otherwise.
54966
54967 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54968
54969         add missing include to parse-duration.c
54970         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54971         * modules/parse-duration (Depends-on): Add xalloc.
54972
54973         fix sed script reading maint.mk
54974         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54975         (syntax-check-rules): Use it.
54976
54977 2008-12-09  Bruno Haible  <bruno@clisp.org>
54978
54979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54980         MacOS X 10.4/PowerPC.
54981         Reported by Simon Josefsson.
54982
54983 2008-12-08  Jim Meyering  <meyering@redhat.com>
54984
54985         work around mingw's lack of some S_IF definitions
54986         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54987         Reported by Simon Josefsson.
54988
54989 2008-12-08  Bruno Haible  <bruno@clisp.org>
54990
54991         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54992         applied to variables. Needed on MacOS X 10.4/PowerPC.
54993         Reported by Simon Josefsson.
54994
54995 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54996         and Eric Blake  <ebb9@byu.net>
54997
54998         assert: honor --enable-assert
54999         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55000         order to honor --enable-assert, rather than treating it as a
55001         synonym for --disable-assert.
55002
55003 2008-12-08  Jim Meyering  <meyering@redhat.com>
55004
55005         * lib/posixtm.c: Remove now-useless declaration of mktime.
55006
55007         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55008
55009 2008-12-07  Bruno Haible  <bruno@clisp.org>
55010
55011         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55012         test_once): Mark functions as static.
55013         * tests/test-tls.c (test_tls): Likewise.
55014
55015 2008-12-07  Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55018         iconv_register_autodetect.
55019
55020 2008-12-07  Jim Meyering  <meyering@redhat.com>
55021
55022         posixtm.c: avoid a warning
55023         * lib/posixtm.c (posixtime): Don't initialize tm0.
55024         It's no longer needed to placate gcc4's -Wuninitialized,
55025         and the attempt to placate would elicit a new warning.
55026
55027         unicodeio.c: mark unused parameters
55028         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55029         (fallback_failure_callback): Likewise.
55030
55031 2008-12-07  Bruno Haible  <bruno@clisp.org>
55032
55033         * gnulib-tool (func_create_testdir): When building the tests
55034         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55035         Reported by Simon Josefsson.
55036
55037 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55038
55039         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55040
55041 2008-12-06  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55044         Suggested by Eric Blake.
55045
55046 2008-12-06  Bruno Haible  <bruno@clisp.org>
55047
55048         Fix a c-stack test failure on MacOS X.
55049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55050         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55051         handler for SIGBUS as well.
55052         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55053         install a signal handler for SIGBUS as well.
55054         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55055
55056 2008-12-06  Bruno Haible  <bruno@clisp.org>
55057
55058         Advocacy documentation.
55059         * doc/gnulib-intro.texi (Benefits): New section.
55060         * doc/gnulib.texi: Update.
55061
55062 2008-12-06  Bruno Haible  <bruno@clisp.org>
55063
55064         Document the 'manywarnings' module.
55065         * doc/manywarnings.texi: New file.
55066         * doc/gnulib.texi: Include it.
55067
55068 2008-12-05  Eric Blake  <ebb9@byu.net>
55069
55070         tests: silence some gcc warnings
55071         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55072         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55073         type mismatches.
55074
55075 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55076             Bruno Haible  <bruno@clisp.org>
55077
55078         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55079
55080 2008-11-29  Jim Meyering  <meyering@redhat.com>
55081
55082         unicodeio.c: mark unused parameters
55083         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55084         (fallback_failure_callback): Likewise.
55085
55086         fts: fix a thinko
55087         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55088         (set_stat_type): Return S_IF*-valued "type" directly.
55089         Prompted by James Youngman's spotting a related bug.
55090         Confirmed by further testing through find.
55091
55092         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55093         * lib/fts.c (D_TYPE): Define.
55094         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55095         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55096         (s_ifmt_shift_bits): New function.
55097         (set_stat_type): New function.
55098         (fts_build): When not calling fts_stat, call set_stat_type
55099         to propagate dirent.d_type info to fts_read caller.
55100         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55101         fts_statp->st_mode type information may be valid.
55102
55103 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55104
55105         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55106         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55107         <sds@gnu.org>.
55108
55109 2008-11-20  Bruno Haible  <bruno@clisp.org>
55110
55111         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55112         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55113         INCLUDE_NEXT.
55114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55115         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55116         * modules/math (Makefile.am): Substitute
55117         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55118         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55119
55120 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55121             Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/stdint.in.h: Define all type macros so that their expansion is
55124         a single typedef'ed token. Fixes a compilation failure in Boost which
55125         does "using ::int8_t;".
55126
55127 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55128
55129         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55130         gl_MANYWARN_ALL_GCC.
55131         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55132         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55133         * modules/manywarnings: New file.
55134         * MODULES.html.sh: Mention manywarnings module.
55135
55136 2008-11-18  Bruno Haible  <bruno@clisp.org>
55137
55138         * doc/gnulib-tool.texi (Unit tests): New section.
55139
55140 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55141
55142         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55143         paths like 'lib/po/foo.po'.
55144
55145 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55146
55147         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55148         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55149
55150 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55151
55152         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55153         parameter works.
55154
55155 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55156
55157         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55158
55159 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55160
55161         * modules/parse-duration-tests: New file.
55162         * tests/test-parse-duration.sh: New file.
55163         * tests/test-parse-duration.c: New file.
55164
55165         New module 'parse-duration'.
55166         * lib/parse-duration.h: New file.
55167         * lib/parse-duration.c: New file.
55168         * modules/parse-duration: New file.
55169
55170 2008-11-17  Bruno Haible  <bruno@clisp.org>
55171
55172         * tests/test-select-out.sh: Comment out the first pipe test.
55173         Reported by Simon Josefsson.
55174
55175 2008-11-17  Bruno Haible  <bruno@clisp.org>
55176
55177         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55178         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55179         gl_HOSTENT.
55180
55181 2008-11-17  Bruno Haible  <bruno@clisp.org>
55182
55183         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55184         -lnetwork and -lnet. Needed for Haiku and BeOS.
55185
55186 2008-11-16  Bruno Haible  <bruno@clisp.org>
55187
55188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55189
55190 2008-11-16  Bruno Haible  <bruno@clisp.org>
55191
55192         Avoid test failure on Haiku.
55193         * tests/test-fsync.c: Include <errno.h>.
55194         (main): Don't require that fsync (0) fails.
55195
55196 2008-11-15  Bruno Haible  <bruno@clisp.org>
55197
55198         New module 'hostent'.
55199         * modules/hostent: New file.
55200         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55201
55202 2008-11-15  Bruno Haible  <bruno@clisp.org>
55203
55204         New module 'servent'.
55205         * modules/servent: New file.
55206         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55207
55208 2008-11-15  Bruno Haible  <bruno@clisp.org>
55209
55210         Avoid generating same test program with two different rules.
55211         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55212         test-frexp to test-frexp-nolibm.
55213         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55214         test-frexpl to test-frexpl-nolibm.
55215
55216 2008-11-15  Bruno Haible  <bruno@clisp.org>
55217
55218         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55219         $(FREXPL_LIBM).
55220
55221 2008-11-15  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/netdb.in.h: Activate the definitions also when the system's
55224         <netdb.h> has 'struct addrinfo'.
55225         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55226         EAI_OVERFLOW or AI_NUMERICSERV.
55227         * doc/posix-headers/netdb.texi: Document the problem.
55228
55229 2008-11-15  Bruno Haible  <bruno@clisp.org>
55230
55231         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55232
55233         Make the 'sched' module work on platforms where <sched.h> exists but
55234         is incomplete (such as Haiku).
55235         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55236         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55237         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55238         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55239         HAVE_STRUCT_SCHED_PARAM.
55240         * modules/sched (Depends-on): Add include_next.
55241         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55242         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55243         * doc/posix-headers/sched.texi: Document the issue.
55244
55245 2008-11-13  Jim Meyering  <meyering@redhat.com>
55246
55247         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55248         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55249         test would fail due to the difference in the Report bugs to ...
55250         line.  The expected address is empty, "<>", while the actual
55251         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55252
55253 2008-11-12  Bruno Haible  <bruno@clisp.org>
55254
55255         lstat: don't compile lstat.c on systems lacking lstat
55256         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55257         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55258         Reported by Daniel P. Berrange via Jim Meyering.
55259
55260 2008-11-12  Jim Meyering  <meyering@redhat.com>
55261
55262         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55263
55264 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55265
55266         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55267         instead.
55268
55269 2008-11-12  Bruno Haible  <bruno@clisp.org>
55270
55271         * lib/unicodeio.c: Include unistr.h.
55272         (utf8_wctomb): Remove function.
55273         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55274
55275 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55276
55277         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55278         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55279         <bruno@clisp.org>.
55280         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55281
55282 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55283
55284         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55285         * doc/gnulib.texi: Add section for warnings.
55286
55287 2008-11-11  Bruno Haible  <bruno@clisp.org>
55288
55289         * lib/sockets.h: Add a comment.
55290
55291 2008-11-11  Karl Berry  <karl@gnu.org>
55292
55293         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55294
55295 2008-11-11  Eric Blake  <ebb9@byu.net>
55296
55297         fdl.texi: avoid git symlinks
55298         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55299
55300 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55301
55302         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55303
55304 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55305
55306         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55307         (gl_WARN_ADD): Substitute $2 if literal.
55308
55309 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55310
55311         * m4/warning.m4: Remove.
55312
55313 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55314
55315         * m4/warnings.m4: Almost complete rewrite. :-)
55316
55317 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55318
55319         * modules/warnings: New module.
55320         * m4/warnings.m4: New file.
55321         * MODULES.html.sh: Mention warnings module.
55322         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55323         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55324
55325 2008-11-10  Eric Blake  <ebb9@byu.net>
55326
55327         fdl.texi: make a symlink to the latest version
55328         * doc/standards.texi: Revert today's earlier change.
55329         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55330         * doc/fdl.texi: ...and replace this with a symlink to the newer
55331         fdl-1.3.texi.
55332
55333 2008-11-10  Bruno Haible  <bruno@clisp.org>
55334
55335         * tests/test-select-fd.c (main): Accept the result file name as fourth
55336         argument.
55337         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55338         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55339
55340 2008-11-10  Bruno Haible  <bruno@clisp.org>
55341
55342         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55343         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55344         as autoconf-substituted macros.
55345         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55347         gl_NETDB_H_DEFAULTS. Set these variables.
55348         * modules/netdb (Makefile.am): Substitute these variables.
55349
55350 2008-11-10  Eric Blake  <ebb9@byu.net>
55351
55352         standards.texi: include correct file for FDL 1.3
55353         * doc/standards.texi (GNU Free Documentation License): Change
55354         include file to pull in FDL 1.3, not 1.2.
55355
55356         fdl.texi: revert accidental change to license
55357         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55358
55359 2008-11-10  Bruno Haible  <bruno@clisp.org>
55360
55361         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55362         cross-compiling guesses also when the native compile gives no result.
55363
55364 2008-11-10  Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/spawni.c (__spawni): Force variable into the stack.
55367
55368 2008-11-10  Bruno Haible  <bruno@clisp.org>
55369
55370         Add support for Haiku.
55371         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55372         glibc and BeOS, but also on Haiku.
55373         * lib/fpurge.c (fpurge): Likewise.
55374         * lib/freadable.c (freadable): Likewise.
55375         * lib/freadahead.c (freadahead): Likewise.
55376         * lib/freading.c (freading): Likewise.
55377         * lib/freadptr.c (freadptr): Likewise.
55378         * lib/freadseek.c (freadptrinc): Likewise.
55379         * lib/fseeko.c (rpl_fseeko): Likewise.
55380         * lib/fseterr.c (fseterr): Likewise.
55381         * lib/fwritable.c (fwritable): Likewise.
55382         * lib/fwriting.c (fwriting): Likewise.
55383         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55384
55385 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55386
55387         * lib/config.charset: Treat Haiku like BeOS.
55388
55389 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55390
55391         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55392         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55393
55394 2008-11-08  Bruno Haible  <bruno@clisp.org>
55395
55396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55397         AC_CACHE_CHECK.
55398
55399 2008-11-08  Bruno Haible  <bruno@clisp.org>
55400
55401         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55402
55403 2008-11-08  Bruno Haible  <bruno@clisp.org>
55404
55405         * tests/test-select-fd.c: New file.
55406         * tests/test-select-in.sh: New file.
55407         * tests/test-select-out.sh: New file.
55408         * tests/test-select-stdin.c: New file.
55409         * modules/select-tests (Files): Add the new files.
55410         (Depends-on): Add gettimeofday.
55411         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55412         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55413         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55414
55415 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55416             Bruno Haible  <bruno@clisp.org>
55417
55418         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55419
55420 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55421
55422         * build-aux/pmccabe2html: Added support for C++ source files.
55423
55424 2008-11-05  Ben Pfaff  <blp@gnu.org>
55425
55426         Fix lib/close.c build on Windows.
55427         * modules/close (Files): Add lib/w32sock.h.
55428
55429 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55430
55431         Accept Bison's NEWS format.
55432         * build-aux/announce-gen (print_news_deltas): Tweak
55433         $re_prefix.
55434
55435 2008-11-04  Bruno Haible  <bruno@clisp.org>
55436
55437         * modules/random_r (Maintainer): Add glibc.
55438
55439 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55440
55441         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55442         by karl@freefriends.org (Karl Berry).
55443         * doc/alloca.texi: Likewise.
55444         * doc/c-ctype.texi: Likewise.
55445         * doc/c-strcase.texi: Likewise.
55446         * doc/c-strcaseeq.texi: Likewise.
55447         * doc/c-strcasestr.texi: Likewise.
55448         * doc/c-strstr.texi: Likewise.
55449         * doc/c-strtod.texi: Likewise.
55450         * doc/c-strtold.texi: Likewise.
55451         * doc/ctime.texi: Likewise.
55452         * doc/error.texi: Likewise.
55453         * doc/fdl.texi: Likewise.
55454         * doc/gcd.texi: Likewise.
55455         * doc/getdate.texi: Likewise.
55456         * doc/gnulib-intro.texi: Likewise.
55457         * doc/gnulib-tool.texi: Likewise.
55458         * doc/gnulib.texi: Likewise.
55459         * doc/inet_ntoa.texi: Likewise.
55460         * doc/maintain.texi: Likewise.
55461         * doc/make-stds.texi: Likewise.
55462         * doc/quote.texi: Likewise.
55463         * doc/regexprops-generic.texi: Likewise.
55464         * doc/standards.texi: Likewise.
55465         * doc/verify.texi: Likewise.
55466         * doc/visibility.texi: Likewise.
55467         * doc/gnulib.texi (GNU Free Documentation License): Include
55468         fdl-1.3.texi instead of fdl.texi.
55469
55470 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55471
55472         * doc/fdl-1.3.texi: New file, from
55473         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55474         * modules/fdl-1.3: Add.
55475         * MODULES.html.sh: Add fdl-1.3.
55476
55477 2008-11-03  Bruno Haible  <bruno@clisp.org>
55478
55479         Make determination of absolute name of header file work with AIX xlc.
55480         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55481         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55482         preprocessing.
55483         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55484         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55485
55486 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55487
55488         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55489         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55490         <ludo@gnu.org>.
55491
55492 2008-11-02  Bruno Haible  <bruno@clisp.org>
55493
55494         Mark 'strpbrk' obsolete.
55495         * modules/strpbrk (Status, Notice): New sections.
55496         * modules/strtok_r (Depends-on): Add strpbrk.
55497
55498 2008-11-02  Bruno Haible  <bruno@clisp.org>
55499
55500         Mark 'strdup' obsolete.
55501         * modules/strdup (Status, Notice): New sections.
55502         * modules/findprog (Depends-on): Add strdup.
55503         * modules/getaddrinfo (Depends-on): Likewise.
55504         * modules/localename (Depends-on): Likewise.
55505         * modules/relocatable-lib (Depends-on): Likewise.
55506         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55507         * modules/relocatable-prog (Depends-on): Likewise.
55508         * modules/trim (Depends-on): Likewise.
55509         * modules/unictype/gen-ctype (Depends-on): Likewise.
55510         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55511
55512 2008-11-02  Bruno Haible  <bruno@clisp.org>
55513
55514         Mark 'strcspn' obsolete.
55515         * modules/strcspn (Status, Notice): New sections.
55516
55517 2008-11-02  Bruno Haible  <bruno@clisp.org>
55518
55519         Mark 'rmdir' obsolete.
55520         * modules/rmdir (Status, Notice): New sections.
55521         * modules/clean-temp (Depends-on): Add rmdir.
55522         * modules/openat (Depends-on): Likewise.
55523
55524 2008-11-02  Bruno Haible  <bruno@clisp.org>
55525
55526         Mark 'raise' obsolete.
55527         * modules/raise (Status, Notice): New sections.
55528         (Include): Specify <signal.h>.
55529         * modules/stdio (Depends-on): Add raise.
55530         * modules/write (Depends-on): Likewise.
55531
55532 2008-11-02  Bruno Haible  <bruno@clisp.org>
55533
55534         Mark 'memset' obsolete.
55535         * modules/memset (Status, Notice): New sections.
55536
55537 2008-11-02  Bruno Haible  <bruno@clisp.org>
55538
55539         Mark 'memmove' obsolete.
55540         * modules/memmove (Status, Notice): New sections.
55541         * modules/argp (Depends-on): Add memmove.
55542         * modules/argz (Depends-on): Likewise.
55543         * modules/canonicalize (Depends-on): Likewise.
55544         * modules/canonicalize-lgpl (Depends-on): Likewise.
55545         * modules/fts (Depends-on): Likewise.
55546         * modules/getcwd (Depends-on): Likewise.
55547         * modules/human (Depends-on): Likewise.
55548         * modules/regex (Depends-on): Likewise.
55549         * modules/striconveh (Depends-on): Likewise.
55550         * modules/trim (Depends-on): Likewise.
55551         * modules/unistr/u8-move (Depends-on): Likewise.
55552         * modules/unistr/u16-move (Depends-on): Likewise.
55553         * modules/unistr/u32-move (Depends-on): Likewise.
55554
55555 2008-11-02  Bruno Haible  <bruno@clisp.org>
55556
55557         Mark 'memcpy' obsolete.
55558         * modules/memcpy (Status, Notice): New sections.
55559
55560 2008-11-02  Bruno Haible  <bruno@clisp.org>
55561
55562         Mark 'memcmp' obsolete.
55563         * modules/memcmp (Status, Notice): New sections.
55564         * modules/argmatch (Depends-on): Add memchr.
55565         * modules/backupfile (Depends-on): Likewise.
55566         * modules/c-strcasestr (Depends-on): Likewise.
55567         * modules/crypto/des (Depends-on): Likewise.
55568         * modules/csharpcomp (Depends-on): Likewise.
55569         * modules/fnmatch (Depends-on): Likewise.
55570         * modules/git-merge-changelog (Depends-on): Likewise.
55571         * modules/isnand (Depends-on): Likewise.
55572         * modules/isnand-nolibm (Depends-on): Likewise.
55573         * modules/isnanf (Depends-on): Likewise.
55574         * modules/isnanf-nolibm (Depends-on): Likewise.
55575         * modules/isnanl (Depends-on): Likewise.
55576         * modules/isnanl-nolibm (Depends-on): Likewise.
55577         * modules/mbchar (Depends-on): Likewise.
55578         * modules/memcoll (Depends-on): Likewise.
55579         * modules/quotearg (Depends-on): Likewise.
55580         * modules/regex (Depends-on): Likewise.
55581         * modules/relocatable-prog (Depends-on): Likewise.
55582         * modules/same (Depends-on): Likewise.
55583         * modules/signbit (Depends-on): Likewise.
55584         * modules/strcasestr-simple (Depends-on): Likewise.
55585         * modules/unictype/gen-ctype (Depends-on): Likewise.
55586         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55587         * modules/uniname/uniname (Depends-on): Likewise.
55588         * modules/unistr/u8-cmp (Depends-on): Likewise.
55589
55590 2008-11-02  Bruno Haible  <bruno@clisp.org>
55591
55592         Mark 'memchr' obsolete.
55593         * modules/memchr (Status, Notice): New sections.
55594         * modules/argp (Depends-on): Add memchr.
55595         * modules/base64 (Depends-on): Likewise.
55596         * modules/c-strcasestr (Depends-on): Likewise.
55597         * modules/chdir-long (Depends-on): Likewise.
55598         * modules/fnmatch (Depends-on): Likewise.
55599         * modules/getsubopt (Depends-on): Likewise.
55600         * modules/git-merge-changelog (Depends-on): Likewise.
55601         * modules/glob (Depends-on): Likewise.
55602         * modules/strcasestr-simple (Depends-on): Likewise.
55603         * modules/strnlen (Depends-on): Likewise.
55604
55605 2008-11-02  Bruno Haible  <bruno@clisp.org>
55606
55607         Mark 'atexit' obsolete.
55608         * modules/atexit (Status, Notice): New sections.
55609         * modules/chdir-long (Depends-on): Add atexit.
55610         * modules/wait-process (Depends-on): Likewise.
55611
55612 2008-11-02  Bruno Haible  <bruno@clisp.org>
55613
55614         * gnulib-tool: New option --with-obsolete.
55615         (func_usage): Document it.
55616         (func_modules_transitive_closure): Drop obsolete dependencies if
55617         incobsolete is not true.
55618         (func_import): Read and save the incobsolete variable to the cache.
55619
55620 2008-11-02  Bruno Haible  <bruno@clisp.org>
55621
55622         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55623         * gnulib-tool: New option --extract-status.
55624         (func_usage): Document it.
55625         (sed_extract_prog): Recognize it.
55626         (func_get_status): New function.
55627
55628 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55629
55630         * modules/sockets (License): Change from LGPL to LGPLv2+.
55631
55632 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55633
55634         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55635
55636 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55637
55638         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55639         Mention times and sys_times.
55640         * modules/sys_times, modules/sys_times-tests: New modules.
55641         * modules/times, modules/times-tests: Likewise
55642         * m4/sys_times_h.m4: New file.
55643         * lib/sys_times.in.h: Likewise
55644         * lib/times.c: Likewise.
55645         * tests/test-sys_times.c: Likewise.
55646         * tests/test-times.c: Likewise.
55647         * doc/posix-headers/sys_times.texi: Update.
55648         * doc/posix-functions/times.texi: Update.
55649
55650 2008-10-28  Jim Meyering  <meyering@redhat.com>
55651
55652         * modules/tempname (Depends-on): Add lstat.
55653
55654         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55655
55656 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55657
55658         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55659         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55660         using idiom used elsewhere in gnulib.
55661
55662 2008-10-27  Jim Meyering  <meyering@redhat.com>
55663
55664         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55665
55666 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55667
55668         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55669         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55670         programs.
55671         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55672
55673 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55674
55675         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55676
55677 2008-10-27  Bruno Haible  <bruno@clisp.org>
55678
55679         * tests/test-lstat.c: Include <stdio.h>.
55680
55681 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55682
55683         * modules/lstat-tests: New module.
55684         * tests/test-lstat.c: New file.
55685
55686 2008-10-26  Jim Meyering  <meyering@redhat.com>
55687
55688         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55689
55690 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55691             Bruno Haible  <bruno@clisp.org>
55692
55693         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55694         * modules/configmake (Include): Add a note that the include must come
55695         after all system headers.
55696         * lib/javaversion.c: Include configmake.h after all other includes.
55697
55698 2008-10-26  Bruno Haible  <bruno@clisp.org>
55699
55700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55701         HAVE_STRUCT_RANDOM_DATA to 1.
55702         (gl_STDLIB_H): Simplify.
55703
55704 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55705
55706         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55707         substitute HAVE_STRUCT_RANDOM_DATA.
55708         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55709         random_data.
55710         * modules/stdlib (Makefile.am): Substitute
55711         HAVE_STRUCT_RANDOM_DATA.
55712
55713 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55714
55715         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55716         * doc/gnulib-intro.texi (Copyright): Likewise.
55717
55718 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55719
55720         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55721         findings.
55722
55723 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55724             Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/unistd.in.h: Include <winsock2.h>.
55727         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55728         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55729         Provide dummy declarations.
55730         (gethostname): Override.
55731         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55732         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55733         gl_PREREQ_SYS_H_WINSOCK2.
55734         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55735         * doc/posix-functions/gethostname.texi: More details.
55736
55737 2008-10-25  Bruno Haible  <bruno@clisp.org>
55738
55739         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55740         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55741         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55742
55743         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55744         here ...
55745         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55746         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55747         gl_UNISTD_H_DEFAULTS.
55748
55749 2008-10-25  Eric Blake  <ebb9@byu.net>
55750
55751         signbit: avoid spurious compiler failure
55752         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55753         declarations inside function.
55754
55755 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55756             Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55759         * modules/random_r (Depends-on): Add stdint.
55760
55761 2008-10-24  Bruno Haible  <bruno@clisp.org>
55762
55763         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55764         Eggert.
55765         * modules/strerror (License): Likewise.
55766
55767 2008-10-24  Jim Meyering  <meyering@redhat.com>
55768
55769         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55770         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55771
55772 2008-10-24  Eric Blake  <ebb9@byu.net>
55773
55774         getgroups: fix compilation when getgroups is available
55775         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55776         but with <config.h> override of getgroups disabled.
55777
55778 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55779
55780         * doc/gnulib.texi (Header files): Add note about C++ problems.
55781         Explained by Bruno Haible <bruno@clisp.org>.
55782
55783 2008-10-23  Bruno Haible  <bruno@clisp.org>
55784
55785         Define a dummy SA_NODEFER macro on Interix.
55786         * lib/signal.in.h (SA_NODEFER): Define fallback.
55787         Reported by Aleksey Cheusov <cheusov@tut.by> via
55788         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55789
55790 2008-10-23  Bruno Haible  <bruno@clisp.org>
55791
55792         * modules/freadahead (License): Change to LGPLv2+.
55793         Suggested by Simon Josefsson.
55794
55795 2008-10-23  Jim Meyering  <meyering@redhat.com>
55796
55797         random_r: new module
55798         * modules/random_r: New file.
55799         * m4/random_r.m4: New file.
55800         * lib/random_r.c: New file, from glibc.
55801         * modules/random_r-tests: New file.
55802         * tests/test-random_r.c: New file.
55803         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55804          Declare.
55805         (RAND_MAX): Define.
55806         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55807         * modules/stdlib: Substitute them, too.
55808         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55809         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55810         * doc/glibc-functions/random_r.texi: Likewise.
55811         * doc/glibc-functions/setstate_r.texi: Likewise.
55812         * doc/glibc-functions/srandom_r.texi: Likewise.
55813         * config/srclist.txt: Mention it.
55814
55815 2008-10-23  David Lutterkort  <lutter@redhat.com>
55816
55817         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55818         link requirement
55819
55820 2008-10-23  Jim Meyering  <meyering@redhat.com>
55821
55822         selinux-h: mark parameters of stub functions as intentionally unused
55823         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55824         * lib/se-context.in.h: Likewise.
55825
55826 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55827
55828         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55829
55830 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55831
55832         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55833
55834 2008-10-22  Eric Blake  <ebb9@byu.net>
55835
55836         glthread/thread: avoid compiler warning
55837         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55838         Add unreachable abort to silence compiler.
55839
55840 2008-10-22  Eric Blake  <ebb9@byu.net>
55841
55842         netdb: also supply struct addrinfo for cygwin 1.5.x
55843         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55844         older cygwin.
55845         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55846         cygwin.
55847         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55848
55849 2008-10-22  Bruno Haible  <bruno@clisp.org>
55850
55851         * users.txt: Update entry about pspp.
55852
55853 2008-10-21  Bruno Haible  <bruno@clisp.org>
55854
55855         Simplification.
55856         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55857         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55858
55859         Simplification.
55860         * lib/ioctl.c (ioctl): Don't undefine.
55861         * lib/socket.c (socket): Don't undefine.
55862
55863         Remove unused module indicator macros.
55864         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55865         GNULIB_$1 as a C macro.
55866
55867         * doc/posix-functions/close.texi: Undo last change.
55868         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55869         Windows platforms.
55870
55871 2008-10-21  Bruno Haible  <bruno@clisp.org>
55872
55873         Add gethostname() declaration to <unistd.h>.
55874         * lib/unistd.in.h (gethostname): New declaration.
55875         * lib/gethostname.c: Include <unistd.h>.
55876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55877         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55879         and HAVE_GETHOSTNAME.
55880         * modules/gethostname (Depends-on): Add unistd.
55881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55882         (Include): Specify <unistd.h>.
55883         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55884         HAVE_GETHOSTNAME.
55885         * tests/test-gethostname.c: Include <unistd.h> first.
55886
55887 2008-10-21  Bruno Haible  <bruno@clisp.org>
55888
55889         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55890         * modules/select-tests (Depends-on): Likewise.
55891         Reported by Simon Josefsson.
55892
55893 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55894
55895         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55896         * lib/accept.c: New file, based on winsock.c.
55897         * lib/bind.c: New file, based on winsock.c.
55898         * lib/connect.c: New file, based on winsock.c.
55899         * lib/getpeername.c: New file, based on winsock.c.
55900         * lib/getsockname.c: New file, based on winsock.c.
55901         * lib/getsockopt.c: New file, based on winsock.c.
55902         * lib/ioctl.c: New file, based on winsock.c.
55903         * lib/listen.c: New file, based on winsock.c.
55904         * lib/recv.c: New file, based on winsock.c.
55905         * lib/recvfrom.c: New file, based on winsock.c.
55906         * lib/send.c: New file, based on winsock.c.
55907         * lib/sendto.c: New file, based on winsock.c.
55908         * lib/setsockopt.c: New file, based on winsock.c.
55909         * lib/shutdown.c: New file, based on winsock.c.
55910         * lib/socket.c: New file, based on winsock.c.
55911         * lib/w32sock.h: New file, based on winsock.c.
55912         * lib/winsock.c: Remove file.
55913         * modules/accept: Likewise.
55914         * modules/bind: Likewise.
55915         * modules/connect: Likewise.
55916         * modules/getpeername: Likewise.
55917         * modules/getsockname: Likewise.
55918         * modules/getsockopt: Likewise.
55919         * modules/ioctl: Likewise.
55920         * modules/listen: Likewise.
55921         * modules/recv: Likewise.
55922         * modules/recvfrom: Likewise.
55923         * modules/send: Likewise.
55924         * modules/sendto: Likewise.
55925         * modules/setsockopt: Likewise.
55926         * modules/shutdown: Likewise.
55927         * modules/socket: Use socket.c instead of winsock.c.
55928         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55929         * doc/posix-functions/accept.texi: Doc fix.
55930         * doc/posix-functions/bind.texi: Doc fix.
55931         * doc/posix-functions/close.texi: Doc fix.
55932         * doc/posix-functions/connect.texi: Doc fix.
55933         * doc/posix-functions/getpeername.texi: Doc fix.
55934         * doc/posix-functions/getsockname.texi: Doc fix.
55935         * doc/posix-functions/getsockopt.texi: Doc fix.
55936         * doc/posix-functions/ioctl.texi: Doc fix.
55937         * doc/posix-functions/listen.texi: Doc fix.
55938         * doc/posix-functions/recv.texi: Doc fix.
55939         * doc/posix-functions/recvfrom.texi: Doc fix.
55940         * doc/posix-functions/send.texi: Doc fix.
55941         * doc/posix-functions/sendto.texi: Doc fix.
55942         * doc/posix-functions/setsockopt.texi: Doc fix.
55943         * doc/posix-functions/shutdown.texi: Doc fix.
55944         * doc/posix-functions/socket.texi: Doc fix.
55945
55946 2008-10-20  Bruno Haible  <bruno@clisp.org>
55947
55948         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55949         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55950         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55951         as an alias for SIGABRT.
55952         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55953         (sigaction): Map it to SIGABRT.
55954         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55955
55956 2008-10-20  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/fts.c: Don't include lstat.h.
55959         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55960
55961         Move the lstat() declaration to <sys/stat.h>.
55962         * lib/lstat.h: Remove file.
55963         * lib/sys_stat.in.h: Add special invocation convention.
55964         (lstat): New declaration.
55965         * lib/lstat.c (orig_lstat): New function.
55966         (rpl_lstat): Use orig_lstat instead of lstat.
55967         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55968         AC_C_INLINE. Set REPLACE_LSTAT.
55969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55970         and REPLACE_LSTAT.
55971         * modules/lstat (Files): Remove lib/lstat.h.
55972         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55973         (Include): Specify <sys/stat.h> instead of lstat.h.
55974         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55975         REPLACE_LSTAT.
55976         * NEWS: Mention the change.
55977
55978 2008-10-20  Bruno Haible  <bruno@clisp.org>
55979
55980         * modules/posix_spawn-tests: New file.
55981         * tests/test-posix_spawn3.c: New file.
55982
55983 2008-10-20  Bruno Haible  <bruno@clisp.org>
55984
55985         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55986         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55987         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55988         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55989         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55990
55991 2008-10-20  Bruno Haible  <bruno@clisp.org>
55992
55993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55994         of posix_spawn on AIX 5.3.
55995
55996 2008-10-20  Bruno Haible  <bruno@clisp.org>
55997
55998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55999
56000 2008-10-20  Bruno Haible  <bruno@clisp.org>
56001
56002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56003         of AC_LANG_PROGRAM.
56004
56005 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56006
56007         * lib/netdb.in.h: Don't define GNU specific constants until they
56008         are supported or needed.  Reported by Bruno Haible
56009         <bruno@clisp.org>.
56010
56011 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56012
56013         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56014
56015 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56016
56017         * lib/getaddrinfo.h: Remove file.
56018         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56019         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56020         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56021         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56022         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56023         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56024         * tests/test-getaddrinfo.c: Likewise.
56025         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56026         * NEWS: Mention change.
56027
56028 2008-10-19  Bruno Haible  <bruno@clisp.org>
56029
56030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56031
56032 2008-10-19  Bruno Haible  <bruno@clisp.org>
56033
56034         * lib/wait-process.c: Include simply <sys/wait.h>.
56035         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56036         WIFSTOPPED): Remove fallback definitions.
56037         * modules/wait-process (Depends-on): Add sys_wait.
56038
56039         New module 'sys_wait'.
56040         * modules/sys_wait: New file.
56041         * lib/sys_wait.in.h: New file, partially copied from
56042         lib/wait-process.c.
56043         * m4/sys_wait_h.m4: New file.
56044         * doc/posix-headers/sys_wait.texi: Mention the new module.
56045
56046 2008-10-19  Bruno Haible  <bruno@clisp.org>
56047
56048         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56049
56050 2008-10-19  Bruno Haible  <bruno@clisp.org>
56051
56052         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56053         * lib/wait-process.c (WAIT_T): Remove type.
56054         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56055         (wait_subprocess): Update.
56056
56057 2008-10-19  Bruno Haible  <bruno@clisp.org>
56058
56059         New module 'atoll'.
56060         * modules/atoll: New file.
56061         * lib/stdlib.in.h (atoll): New declaration.
56062         * lib/atoll.c: New file, from glibc with modifications.
56063         * m4/atoll.m4: New file.
56064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56065         HAVE_ATOLL.
56066         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56067         * doc/posix-functions/atoll.texi: Mention the new module.
56068
56069 2008-10-19  Bruno Haible  <bruno@clisp.org>
56070
56071         Add strtoull() declaration to <stdlib.h>.
56072         * lib/stdlib.in.h (strtoull): New declaration.
56073         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56074         Set HAVE_STRTOULL.
56075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56076         HAVE_STRTOULL.
56077         * modules/strtoull (Depends-on): Add stdlib.
56078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56079         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56080         HAVE_STRTOULL.
56081
56082 2008-10-19  Bruno Haible  <bruno@clisp.org>
56083
56084         Add strtoll() declaration to <stdlib.h>.
56085         * lib/stdlib.in.h (strtoll): New declaration.
56086         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56087         Set HAVE_STRTOLL.
56088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56089         HAVE_STRTOLL.
56090         * modules/strtoll (Depends-on): Add stdlib.
56091         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56092         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56093
56094 2008-10-19  Bruno Haible  <bruno@clisp.org>
56095
56096         * modules/bcopy (Depends-on): Add strings.
56097         (Include): Specify <strings.h>.
56098
56099 2008-10-19  Bruno Haible  <bruno@clisp.org>
56100
56101         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56102
56103 2008-10-19  Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56106         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56107         mingw.
56108
56109 2008-10-19  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/atanl.c: Don't include isnanl.h.
56112         * lib/cosl.c: Likewise.
56113         * lib/ldexpl.c: Likewise.
56114         * lib/logl.c: Likewise.
56115         * lib/sinl.c: Likewise.
56116         * lib/sqrtl.c: Likewise.
56117         * lib/tanl.c: Likewise.
56118
56119         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56120         * lib/isnanf.h: Remove file.
56121         * lib/isnand.h: Remove file.
56122         * lib/isnanl.h: Remove file.
56123         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56124         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56125         macros.
56126         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56127         HAVE_ISNANF, don't define it as a C macro.
56128         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56129         HAVE_ISNAND, don't define it as a C macro.
56130         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56131         HAVE_ISNANL, don't define it as a C macro.
56132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56133         HAVE_ISNAN[FDL].
56134         * modules/isnanf (Files): Remove lib/isnanf.h.
56135         (Depends-on): Add math.
56136         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56137         (Include): Specify <math.h> instead of isnanf.h.
56138         * modules/isnand (Files): Remove lib/isnand.h.
56139         (Depends-on): Add math.
56140         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56141         (Include): Specify <math.h> instead of isnand.h.
56142         * modules/isnanl (Files): Remove lib/isnanl.h.
56143         (Depends-on): Add math.
56144         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56145         (Include): Specify <math.h> instead of isnanl.h.
56146         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56147         HAVE_ISNAN[FDL].
56148         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56149         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56150         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56151         * NEWS: Mention the change.
56152
56153 2008-10-18  Bruno Haible  <bruno@clisp.org>
56154
56155         Add getusershell(), setusershell(), endusershell() declarations to
56156         <unistd.h>.
56157         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56158         declarations.
56159         * lib/getusershell.c: Include unistd.h.
56160         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56161         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56162         HAVE_GETUSERSHELL.
56163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56164         and HAVE_GETUSERSHELL.
56165         * modules/getusershell (Depends-on): Add unistd, extensions.
56166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56167         (Include): Specify <unistd.h>.
56168         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56169         HAVE_GETUSERSHELL.
56170
56171 2008-10-18  Bruno Haible  <bruno@clisp.org>
56172
56173         Add a getloadavg() declaration to <stdlib.h>.
56174         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56175         getloadavg declaration.
56176         (getloadavg): New declaration.
56177         * lib/getloadavg.c: Include <stdlib.h> first.
56178         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56179         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56180         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56182         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56183         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56184         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56185         (Include): Specify <stdlib.h>.
56186         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56187         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56188
56189 2008-10-18  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/dirchownmod.c: Don't include lchmod.h.
56192
56193         Move the lchmod() declaration to <sys/stat.h>.
56194         * lib/lchmod.h: Remove file.
56195         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56196         (lchmod): New declaration, moved here from lib/lchown.h.
56197         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56198         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56200         and HAVE_LCHMOD.
56201         * modules/lchmod (Files): Remove lib/lchmod.h.
56202         (Depends-on): Add sys_stat, extensions.
56203         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56204         (Include): Specify <sys/stat.h> instead of lchmod.h.
56205         * modules/sys_stat (Depends-on): Add link-warning.
56206         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56207         definition of GL_LINK_WARNING.
56208         * NEWS: Mention the change.
56209
56210 2008-10-18  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/fchdir.c: Don't include dirfd.h.
56213         * lib/fts.c: Likewise.
56214         * lib/getcwd.c: Likewise.
56215         * lib/glob.c: Likewise.
56216
56217         Move the dirfd() declaration to <dirent.h>.
56218         * lib/dirfd.h: Remove file.
56219         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56220         (dirfd): New declaration.
56221         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56223         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56224         HAVE_DECL_DIRFD.
56225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56226         HAVE_DECL_DIRFD.
56227         * modules/dirfd (Files): Remove lib/dirfd.h.
56228         (Depends-on): Add dirent, extensions.
56229         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56230         (Include): Specify <dirent.h> instead of dirfd.h.
56231         * modules/dirent (Depends-on): Add link-warning.
56232         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56233         definition of GL_LINK_WARNING.
56234         * NEWS: Mention the change.
56235
56236 2008-10-18  Bruno Haible  <bruno@clisp.org>
56237
56238         Move the euidaccess() declaration to <unistd.h>.
56239         * lib/euidaccess.h: Remove file.
56240         * lib/unistd.in.h (euidaccess): New declaration.
56241         * lib/euidaccess.c: Don't include euidaccess.h.
56242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56243         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56245         and HAVE_EUIDACCESS.
56246         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56247         (Depends-on): Add unistd.
56248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56249         (Include): Specify <unistd.h> instead of euidaccess.h.
56250         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56251         HAVE_EUIDACCESS.
56252         * NEWS: Mention the change.
56253
56254 2008-10-18  Bruno Haible  <bruno@clisp.org>
56255
56256         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56257
56258         Move the getdomainname() declaration to <unistd.h>.
56259         * lib/getdomainname.h: Remove file.
56260         * lib/unistd.in.h (getdomainname): New declaration.
56261         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56262         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56263         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56264         HAVE_GETDOMAINNAME.
56265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56266         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56267         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56268         (Depends-on): Add unistd, extensions.
56269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56270         (Includes): Specify <unistd.h> instead of getdomainname.h.
56271         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56272         HAVE_GETDOMAINNAME.
56273         * NEWS: Mention the change.
56274
56275 2008-10-18  Bruno Haible  <bruno@clisp.org>
56276
56277         * modules/dirent: New file.
56278         * m4/dirent_h.m4: New file.
56279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56280         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56281         * modules/fchdir (Files): Remove lib/dirent.in.h.
56282         (Depends-on): Add dirent.
56283         (Makefile.am): Move rules to modules/dirent.
56284         * doc/posix-headers/dirent.texi: Mention the new module.
56285
56286 2008-10-18  Bruno Haible  <bruno@clisp.org>
56287
56288         Avoid -Wunused-parameter warnings in public gnulib header files.
56289         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56290         macro.
56291         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56292
56293 2008-10-18  Bruno Haible  <bruno@clisp.org>
56294
56295         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56296         * doc/glibc-functions/error.texi: Mention the module 'error'.
56297         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56298         * doc/glibc-functions/getdomainname.texi: Mention the module
56299         'getdomainname'.
56300         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56301         * doc/glibc-functions/getpagesize.texi: Mention the module
56302         'getpagesize'.
56303         * doc/glibc-functions/getusershell.texi: Mention the module
56304         'getusershell'.
56305         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56306         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56307         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56308         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56309         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56310         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56311         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56312         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56313         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56314         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56315         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56316         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56317         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56318         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56319
56320 2008-10-17  Bruno Haible  <bruno@clisp.org>
56321
56322         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56323         HP-UX and IRIX, use -0.0L.
56324         * tests/test-ceill.c (minus_zero): Likewise.
56325         * tests/test-floorl.c (minus_zero): Likewise.
56326         * tests/test-frexpl.c (minus_zero): Likewise.
56327         * tests/test-isnan.c (minus_zerol): Likewise.
56328         * tests/test-isnanl.h (minus_zero): Likewise.
56329         * tests/test-ldexpl.c (minus_zero): Likewise.
56330         * tests/test-roundl.c (minus_zero): Likewise.
56331         * tests/test-signbit.c (minus_zerol): Likewise.
56332         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56333         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56334         * tests/test-truncl.c (minus_zero): Likewise.
56335         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56336         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56337         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56338         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56339
56340 2008-10-17  Bruno Haible  <bruno@clisp.org>
56341
56342         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56343         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56344         that it gets activated only for gcc >= 3.0.
56345         * lib/dirent.in.h: Likewise.
56346         * lib/errno.in.h: Likewise.
56347         * lib/fcntl.in.h: Likewise.
56348         * lib/float.in.h: Likewise.
56349         * lib/iconv.in.h: Likewise.
56350         * lib/inttypes.in.h: Likewise.
56351         * lib/locale.in.h: Likewise.
56352         * lib/math.in.h: Likewise.
56353         * lib/netdb.in.h: Likewise.
56354         * lib/netinet_in.in.h: Likewise.
56355         * lib/search.in.h: Likewise.
56356         * lib/signal.in.h: Likewise.
56357         * lib/spawn.in.h: Likewise.
56358         * lib/stdarg.in.h: Likewise.
56359         * lib/stdint.in.h: Likewise.
56360         * lib/stdio.in.h: Likewise.
56361         * lib/stdlib.in.h: Likewise.
56362         * lib/string.in.h: Likewise.
56363         * lib/strings.in.h: Likewise.
56364         * lib/sys_file.in.h: Likewise.
56365         * lib/sys_ioctl.in.h: Likewise.
56366         * lib/sys_select.in.h: Likewise.
56367         * lib/sys_socket.in.h: Likewise.
56368         * lib/sys_stat.in.h: Likewise.
56369         * lib/sys_time.in.h: Likewise.
56370         * lib/sysexits.in.h: Likewise.
56371         * lib/time.in.h: Likewise.
56372         * lib/unistd.in.h: Likewise.
56373         * lib/wchar.in.h: Likewise.
56374         * lib/wctype.in.h: Likewise.
56375         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56376
56377 2008-10-17  Jim Meyering  <meyering@redhat.com>
56378
56379         ignore-value: don't depend on inline module
56380         * modules/ignore-value (Depends-on): Remove 'inline'.
56381         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56382         Suggestion from Bruno Haible.
56383
56384 2008-10-17  Bruno Haible  <bruno@clisp.org>
56385
56386         New implementation of condition variables for Win32.
56387         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56388         (gl_linked_waitqueue_t): New type.
56389         (gl_cond_t): Use it.
56390         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56391         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56392         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56393         (glthread_cond_init_func, glthread_cond_wait_func,
56394         glthread_cond_timedwait_func, glthread_cond_signal_func,
56395         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56396         Reimplemented on the basis of gl_linked_waitqueue_t.
56397         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56398         gl_waitqueue_t.
56399         (gl_rwlock_t): Update.
56400         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56401
56402 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56403
56404         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56405         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56406
56407 2008-10-17  Jim Meyering  <meyering@redhat.com>
56408
56409         ignore-value: new module
56410         * modules/ignore-value: New file.
56411         * lib/ignore-value.h: New file.
56412         * MODULES.html.sh (Compiler warning management): New section,
56413         just for this module.  More to come.
56414
56415 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56416
56417         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56418         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56419         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56420
56421 2008-10-16  Jim Meyering  <meyering@redhat.com>
56422
56423         openat-die.c: avoid 'no previous prototype' warning
56424         * lib/openat-die.c: Include "openat.h".
56425         Reported by Reuben Thomas <rrt@sc3d.org>.
56426
56427 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56428
56429         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56430         * lib/netdb.in.h: Fix typo.
56431         Reported by Bruno Haible  <bruno@clisp.org>
56432
56433         * lib/netdb.in.h: Include sys/socket.h for platforms without
56434         netdb.h, to get structures like hostent on MinGW.
56435         * modules/netdb (Depends-on): Add sys_socket.
56436
56437 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56438
56439         * modules/netdb, modules/netdb-tests: New file.
56440         * m4/netdb_h.m4: New file.
56441         * lib/netdb.in.h: Add, currently just an empty file pending
56442         definitions.
56443         * tests/test-netdb.c: New file.
56444         * doc/posix-headers/netdb.texi: Mention that we replace it if
56445         needed.
56446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56447         netdb.
56448
56449 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56450
56451         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56452         with code.
56453
56454 2008-10-13  Bruno Haible  <bruno@clisp.org>
56455
56456         * lib/glthread/cond.c (glthread_cond_wait_func,
56457         glthread_cond_timedwait_func): Add a comment.
56458
56459 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56460
56461         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56462         * tests/test-select.c: Likewise,
56463
56464 2008-10-13  Bruno Haible  <bruno@clisp.org>
56465
56466         * lib/glthread/cond.c (glthread_cond_wait_func,
56467         glthread_cond_timedwait_func): Fix variable name.
56468         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56469
56470 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56471
56472         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56474         struct sockaddr.sa_len.
56475         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56476
56477 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56478
56479         * build-aux/pmccabe2html: Add css and css_url parameters.
56480
56481 2008-10-12  Bruno Haible  <bruno@clisp.org>
56482
56483         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56484         calling aclx_get.
56485         Reported by Rainer Tammer <tammer@tammer.net>.
56486
56487 2008-10-12  Bruno Haible  <bruno@clisp.org>
56488
56489         Use msvcrt aware primitives for creation/termination of Win32 threads.
56490         * lib/glthread/thread.c: Include <process.h>.
56491         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56492         (wrapper_func): Update signature.
56493         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56494
56495 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56496             Bruno Haible  <bruno@clisp.org>
56497
56498         Provide a Win32 implementation of the 'cond' module.
56499         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56500         * lib/glthread/cond.c (glthread_cond_init_func,
56501         glthread_cond_wait_func, glthread_cond_timedwait_func,
56502         glthread_cond_signal_func, glthread_cond_broadcast_func,
56503         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56504         * modules/cond (Dependencies): Add gettimeofday.
56505
56506 2008-10-11  Bruno Haible  <bruno@clisp.org>
56507
56508         Make sleep work on older versions of mingw.
56509         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56510         only whether it exists.
56511         * doc/posix-functions/sleep.texi: Mention the problem with older
56512         versions of mingw.
56513
56514 2008-10-11  Bruno Haible  <bruno@clisp.org>
56515
56516         New module 'shutdown'.
56517         * modules/shutdown: New file.
56518         * lib/sys_socket.in.h (shutdown): New declaration.
56519         * lib/winsock.c (shutdown): New function.
56520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56521         GNULIB_SHUTDOWN.
56522         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56523         * doc/posix-functions/shutdown.texi: Document the new module.
56524
56525 2008-10-11  Jim Meyering  <meyering@redhat.com>
56526
56527         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56528
56529 2008-10-11  Bruno Haible  <bruno@clisp.org>
56530
56531         New module 'fclose'.
56532         * modules/fclose: New file.
56533         * lib/stdio.in.h (fclose): New declaration.
56534         * lib/fclose.c: New file.
56535         * m4/fclose.m4: New file.
56536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56537         REPLACE_FCLOSE.
56538         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56539         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56540         REPLACE_FCLOSE.
56541         * modules/close (Depends-on): fclose.
56542         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56543
56544 2008-10-11  Bruno Haible  <bruno@clisp.org>
56545
56546         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56547         set errno and don't call _close.
56548
56549 2008-10-10  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56552         ACL, not afterwards. Fixes test failure on Cygwin.
56553
56554 2008-10-09  Ben Pfaff  <blp@gnu.org>
56555
56556         * build-aux/announce-gen: Fix gnulib version related part of usage
56557         message.  Die with a useful error message if no tarballs are
56558         found.
56559
56560 2008-10-10  Jim Meyering  <meyering@redhat.com>
56561
56562         bootstrap: use git's --depth=N option only if it's supported
56563         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56564         recognize the --depth option.  Reported by Pádraig Brady.
56565
56566 2008-10-09  Bruno Haible  <bruno@clisp.org>
56567
56568         New module 'ioctl'.
56569         * modules/ioctl: New file.
56570         * lib/sys_socket.in.h (ioctl): Remove declaration.
56571         * lib/winsock.c: Include <sys/ioctl.h>.
56572         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56573         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56574         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56575         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56576         * doc/posix-functions/ioctl.texi: Mention the new module.
56577
56578 2008-10-09  Bruno Haible  <bruno@clisp.org>
56579
56580         New module 'sys_ioctl'.
56581         * lib/sys_ioctl.in.h: New file.
56582         * m4/sys_ioctl_h.m4: New file.
56583         * modules/sys_ioctl: New file.
56584         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56585
56586 2008-10-09  Bruno Haible  <bruno@clisp.org>
56587
56588         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56589         * lib/winsock.c: Include <stdarg.h>.
56590         (rpl_ioctl): Change to second argument 'int' and then varargs.
56591
56592 2008-10-09  Bruno Haible  <bruno@clisp.org>
56593
56594         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56595         when the sys_socket module is present and the system has <winsock2.h>.
56596
56597 2008-10-09  Bruno Haible  <bruno@clisp.org>
56598
56599         * doc/posix-functions/close.texi: Mention module 'close' instead of
56600         module 'sys_socket'.
56601
56602 2008-10-09  Bruno Haible  <bruno@clisp.org>
56603
56604         * doc/glibc-headers/sys_ioctl.texi: New file.
56605         * doc/gnulib.texi: Include it.
56606
56607 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56608             Bruno Haible  <bruno@clisp.org>
56609
56610         Combine the two replacements of 'close'.
56611         * lib/sys_socket.in.h (close): Define to a reminder to include
56612         <unistd.h>.
56613         (_gl_close_fd_maybe_socket): New declaration.
56614         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56615         * lib/winsock.c (close): Remove undefinition.
56616         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56617         needed for the gnulib module 'close'.
56618         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56619         define to an error symbol or to a warning, if suitable.
56620         * lib/close.c: Include <sys/socket.h>.
56621         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56622         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56623         UNISTD_H_HAVE_WINSOCK2_H.
56624         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56626         UNISTD_H_HAVE_WINSOCK2_H.
56627         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56628         (configure.ac): Set a module indicator.
56629         (Makefile.am): Substitute GNULIB_CLOSE.
56630         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56631         * modules/poll-tests (Depends-on): Add close.
56632         * modules/select-tests (Depends-on): Likewise.
56633
56634 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56635             Bruno Haible  <bruno@clisp.org>
56636
56637         New module 'close'.
56638         * modules/close: New file.
56639         * lib/unistd.in.h (close): Move declaration out of the
56640         FCHDIR_REPLACEMENT scope.
56641         (_gl_unregister_fd): New declaration.
56642         * lib/close.c: New file.
56643         * lib/fchdir.c (rpl_close): Remove function.
56644         * m4/close.m4: New file.
56645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56646         close.
56647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56648         REPLACE_CLOSE.
56649         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56650         REPLACE_CLOSE.
56651         * modules/fchdir (Depends-on): Add close.
56652
56653 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56654             Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/fcntl.in.h (open): Simplify conditionals.
56657         (_gl_register_fd): New declaration.
56658         * lib/fchdir.c (rpl_open): Remove function.
56659         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56660         also.
56661         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56663         open.
56664
56665 2008-10-09  Jim Meyering  <meyering@redhat.com>
56666
56667         GNUmakefile: use the more name-space-friendly "_version"
56668         * top/GNUmakefile (_dummy): Update.
56669         (_version): Rename from "version".
56670
56671 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56672             Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56675         rpl_close.
56676         (_gl_register_fd): New function, extracted from rpl_open.
56677         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56678         (rpl_open, rpl_opendir): Use _gl_register_fd.
56679
56680 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56681
56682         Fix organization of 'open' replacement.
56683         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56684         (gl_FUNC_OPEN): Use it.
56685         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56686
56687 2008-10-08  Bruno Haible  <bruno@clisp.org>
56688
56689         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56690
56691 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56692
56693         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56694         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56695         listen).
56696
56697 2008-10-08  Eric Blake  <ebb9@byu.net>
56698
56699         GNUmakefile: add 'make version' target
56700         * top/GNUmakefile (_curr-ver): Split version update rules...
56701         (version): ...into a target.
56702
56703 2008-10-07  Bruno Haible  <bruno@clisp.org>
56704
56705         Use a more portable replacement expression for -0.0L.
56706         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56707         instead of -0.0L. Fix m4 quotation.
56708
56709         * tests/test-signbit.c: Include <float.h>.
56710         (minus_zero): New variable.
56711         (test_signbitl): Use minus_zero instead of -zero.
56712         * modules/signbit-tests (Depends-on): Add float.
56713
56714         * tests/test-ceill.c: Include <float.h>.
56715         (zero): Remove variable.
56716         (minus_zero): New variable.
56717         (main): Use minus_zero instead of -zero.
56718         * modules/ceill-tests (Depends-on): Add float.
56719
56720         * tests/test-floorl.c: Include <float.h>.
56721         (zero): Remove variable.
56722         (minus_zero): New variable.
56723         (main): Use minus_zero instead of -zero.
56724         * modules/floorl-tests (Depends-on): Add float.
56725
56726         * tests/test-roundl.c: Include <float.h>.
56727         (zero): Remove variable.
56728         (minus_zero): New variable.
56729         (main): Use minus_zero instead of -zero.
56730         * modules/roundl-tests (Depends-on): Add float.
56731
56732         * tests/test-truncl.c: Include <float.h>.
56733         (zero): Remove variable.
56734         (minus_zero): New variable.
56735         (main): Use minus_zero instead of -zero.
56736         * modules/truncl-tests (Depends-on): Add float.
56737
56738         * tests/test-frexpl.c (zero): Remove variable.
56739         (minus_zero): New variable.
56740         (main): Use minus_zero instead of -zero.
56741         * modules/frexpl-tests (Depends-on): Add float.
56742
56743         * tests/test-isnan.c (zerol): Remove variable.
56744         (minus_zerol): New variable.
56745         (test_long_double): Use minus_zerol instead of -zerol.
56746         * modules/isnan-tests (Depends-on): Add float.
56747
56748         * tests/test-isnanl.h (zero): Remove variable.
56749         (minus_zero): New variable.
56750         (main): Use minus_zero instead of -zero.
56751         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56752         * modules/isnanl-tests (Depends-on): Add float.
56753
56754         * tests/test-ldexpl.c (zero): Remove variable.
56755         (minus_zero): New variable.
56756         (main): Use minus_zero instead of -zero.
56757         * modules/ldexpl-tests (Depends-on): Add float.
56758
56759         * tests/test-snprintf-posix.h (zerol): Remove variable.
56760         (minus_zerol): New variable.
56761         (test_function): Use minus_zerol instead of -zerol.
56762         * modules/snprintf-posix-tests (Depends-on): Add float.
56763         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56764
56765         * tests/test-sprintf-posix.h (zerol): Remove variable.
56766         (minus_zerol): New variable.
56767         (test_function): Use minus_zerol instead of -zerol.
56768         * modules/sprintf-posix-tests (Depends-on): Add float.
56769         * modules/vsprintf-posix-tests (Depends-on): Add float.
56770
56771         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56772         (minus_zerol): New variable.
56773         (test_function): Use minus_zerol instead of -zerol.
56774         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56775
56776         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56777         (minus_zerol): New variable.
56778         (test_function): Use minus_zerol instead of -zerol.
56779         * modules/vasprintf-posix-tests (Depends-on): Add float.
56780
56781 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56782
56783         * MODULES.html.sh (Support for building documentation): Mention
56784         pmccabe2html.  Sort entries.
56785
56786         Add pmccabe2html module, from gnupdf.
56787         * build-aux/pmccabe.css: New file.
56788         * build-aux/pmccabe2html: New file.
56789         * m4/pmccabe2html.m4: New file.
56790         * modules/pmccabe2html: New file.
56791
56792 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56793
56794         flock: new module
56795         * MODULES.html.sh: Add to list of modules.
56796         * lib/flock.c: flock implementation for Windows and Unix systems
56797         which have fcntl.
56798         * doc/glibc-functions/flock.texi: Update documentation.
56799         * lib/sys_file.in.h: <sys/file.h> header file.
56800         * m4/flock.m4: M4 macros.
56801         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56802         * modules/flock: flock module.
56803         * modules/flock-tests: flock tests module.
56804         * modules/sys_file: sys/file.h module.
56805         * tests/test-flock.c: test suite for flock.
56806
56807 2008-10-06  Jim Meyering  <meyering@redhat.com>
56808
56809         bootstrap: check for LT_INIT more portably still ;-)
56810         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56811         Spotted by Bruno Haible.
56812
56813 2008-10-06  Eric Blake  <ebb9@byu.net>
56814
56815         test-signbit: avoid tripping Irix cc bug on -0.0L
56816         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56817         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56818         entire testsuite consistent and avoids an Irix 6.2 bug.
56819
56820 2008-10-05  Bruno Haible  <bruno@clisp.org>
56821             Jim Meyering  <jim@meyering.net>
56822
56823         Add an option for ignoring EPIPE during close_stdout.
56824         * lib/closeout.h: Include <stdbool.h>.
56825         (close_stdout_set_ignore_EPIPE): New declaration.
56826         * lib/closeout.c: Include <stdbool.h>.
56827         (ignore_EPIPE): New variable.
56828         (close_stdout_set_ignore_EPIPE): New function.
56829         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56830         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56831         failure.
56832         * modules/closeout (Depends-on): Add stdbool.
56833
56834 2008-10-05  Bruno Haible  <bruno@clisp.org>
56835
56836         * modules/accept: New file.
56837         * modules/bind: New file.
56838         * modules/connect: New file.
56839         * modules/getpeername: New file.
56840         * modules/getsockname: New file.
56841         * modules/getsockopt: New file.
56842         * modules/listen: New file.
56843         * modules/recv: New file.
56844         * modules/recvfrom: New file.
56845         * modules/send: New file.
56846         * modules/sendto: New file.
56847         * modules/setsockopt: New file.
56848         * modules/socket: New file.
56849         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56850         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56851         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56852         the particular module is requested. Add a link warning when the
56853         particular module is not requested.
56854         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56855         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56856         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56857         the particular module is requested.
56858         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56859         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56860         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56861         * modules/sys_socket (Depends-on): Add link-warning.
56862         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56863         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56864         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56865         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56866         GL_LINK_WARNING.
56867         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56868         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56869         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56870         * doc/posix-functions/getpeername.texi: Mention the new module
56871         'getpeername'.
56872         * doc/posix-functions/getsockname.texi: Mention the new module
56873         'getsockname'.
56874         * doc/posix-functions/getsockopt.texi: Mention the new module
56875         'getsockopt'.
56876         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56877         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56878         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56879         * doc/posix-functions/send.texi: Mention the new module 'send'.
56880         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56881         * doc/posix-functions/setsockopt.texi: Mention the new module
56882         'setsockopt'.
56883         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56884         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56885         listen, connect, accept.
56886         * modules/select-tests (Depends-on): Likewise.
56887
56888 2008-10-05  Bruno Haible  <bruno@clisp.org>
56889
56890         * lib/winsock.c (strerror): Remove unused #undef.
56891         (rpl_close): Remove unused local variable.
56892
56893         * modules/sys_socket (Depends-on); Add errno.
56894
56895 2008-10-05  Bruno Haible  <bruno@clisp.org>
56896
56897         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56898         (select): Add a link warning when the 'select' module is not used.
56899         * modules/sys_select (Depends-on): Add link-warning.
56900         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56901         Suggested by Paolo Bonzini.
56902
56903 2008-10-05  Jim Meyering  <meyering@redhat.com>
56904
56905         bootstrap: check for LT_INIT more portably
56906         * build-aux/bootstrap: Avoid using grep -E, since it's not
56907         portable enough.  Suggestion from Bruno Haible.
56908
56909 2008-10-05  Bruno Haible  <bruno@clisp.org>
56910
56911         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56912         as being fixed by gnulib.
56913
56914 2008-10-05  Bruno Haible  <bruno@clisp.org>
56915
56916         * modules/select-tests: New file, mostly copied from
56917         modules/sys_select-tests.
56918         * tests/test-select.c: New file, mostly copied from
56919         tests/test-sys_select.c.
56920         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56921         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56922         (Makefile.am): Remove test_sys_select_LDADD.
56923
56924         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56925         to an undefined symbol, for an error message.
56926         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56927         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56928         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56929         winsock-select.c here.
56930         * modules/sys_select (Files): Remove lib/winsock-select.c.
56931         (Depends-on): Remove alloca.
56932         (Makefile.am): Substitute GNULIB_SELECT.
56933         * modules/select: New file.
56934         * doc/posix-functions/select.texi: Update.
56935
56936 2008-10-05  Bruno Haible  <bruno@clisp.org>
56937
56938         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56939         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56940         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56941         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56942         getdtablesize.
56943         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56944         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56945
56946 2008-10-05  Bruno Haible  <bruno@clisp.org>
56947
56948         * modules/getdtablesize-tests: New file.
56949         * tests/test-getdtablesize.c: New file.
56950
56951         New module 'getdtablesize'.
56952         * lib/unistd.in.h (getdtablesize): New declaration.
56953         * lib/getdtablesize.c: New file.
56954         * m4/getdtablesize.m4: New file.
56955         * modules/getdtablesize: New file.
56956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56957         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56958         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56959         HAVE_GETDTABLESIZE.
56960         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56961
56962 2008-10-05  Bruno Haible  <bruno@clisp.org>
56963
56964         * modules/sched (Makefile.am): Fix typo.
56965         Reported by Simon Josefsson.
56966
56967 2008-10-05  Jim Meyering  <meyering@redhat.com>
56968
56969         bootstrap: check for LT_INIT, too
56970         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56971         are deprecated.  Suggestion from Ralf Wildenhues.
56972
56973 2008-10-05  Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56976         overriding them by ours.
56977         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56978
56979 2008-10-05  Jim Meyering  <meyering@redhat.com>
56980
56981         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56982         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56983         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56984
56985 2008-10-04  Bruno Haible  <bruno@clisp.org>
56986
56987         * modules/dup2 (License): Change to LGPLv2+.
56988         * modules/sleep (License): Likewise.
56989         * modules/perror (License): Likewise.
56990         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56991         Blake.
56992         * modules/signal (License): Likewise.
56993         * modules/sigprocmask (License): Likewise.
56994         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56995         Meyering.
56996
56997 2008-10-04  Bruno Haible  <bruno@clisp.org>
56998
56999         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57000         Reported by Rainer Tammer <tammer@tammer.net>.
57001
57002 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57003             Bruno Haible  <bruno@clisp.org>
57004
57005         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57006         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57007         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57008
57009 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57010
57011         filevercmp: new module
57012         * lib/filevercmp.h: New function filevercmp comparing version strings.
57013         * lib/filevercmp.c: Implementation of filevercmp function.
57014         * modules/filevercmp: Module metadata.
57015         * tests/test-filevercmp.c: Unit test for new module.
57016         * modules/filevercmp-tests: Unit test metadata.
57017         * MODULES.html.sh: Add filevercmp module.
57018
57019 2008-10-03  Bruno Haible  <bruno@clisp.org>
57020
57021         * lib/c-ctype.h: Add comment.
57022         Reported by Jim Meyering.
57023
57024 2008-10-02  Bruno Haible  <bruno@clisp.org>
57025
57026         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57027
57028 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57029
57030         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57031         name of bootstrap.conf accordingly.
57032
57033 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57034
57035         * build-aux/bootstrap: Install git-merge-changelog configuration
57036         items into .gitconfig if needed.
57037
57038 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57039
57040         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57041         git repository, and initialize/update it accordingly.
57042
57043 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57044
57045         * modules/fsync-tests: New file.
57046         * tests/test-fsync.c: New file.
57047
57048         New module 'fsync'.
57049         * lib/fsync.c: New file.
57050         * m4/fsync.m4: New file.
57051         * modules/fsync: New file.
57052         * lib/unistd.in.h (fsync): New declaration.
57053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57054         GNULIB_FSYNC and HAVE_FSYNC.
57055         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57056         * MODULES.html.sh (posix_functions): Add fsync.
57057         * doc/posix-functions/fsync.texi: Mention the new module.
57058
57059 2008-10-02  Jim Meyering  <meyering@redhat.com>
57060
57061         fts.c: sync with similar code from coreutils' remove.c
57062         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57063         Guard also with "#if defined __linux__", since for now at least,
57064         this code is Linux-kernel-specific.
57065
57066 2008-10-02  Jim Meyering  <meyering@redhat.com>
57067
57068         fts: bug fixes
57069         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57070         Include <sys/vfs.h>, not <sys/statfs.h>.
57071
57072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57073         Include <sys/vfs.h>, not <sys/statfs.h>.
57074
57075 2008-10-01  Bruno Haible  <bruno@clisp.org>
57076
57077         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57079         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57080         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57081         * doc/posix-functions/posix_spawnp.texi: Likewise.
57082         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57083         whether posix_spawn actually works.
57084         * m4/pipe.m4 (gl_PIPE): Likewise.
57085         * modules/execute (Files): Add m4/posix_spawn.m4.
57086         * modules/pipe (Files): Add m4/posix_spawn.m4.
57087         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57088
57089 2008-10-01  Jim Meyering  <meyering@redhat.com>
57090
57091         remove trailing spaces
57092         * NEWS: Likewise.
57093         * lib/poll.c (poll): Likewise.
57094         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57095         * lib/winsock.c (rpl_close): Likewise.
57096         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57097         * modules/yield: Likewise.
57098         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57099         * tests/test-sys_select.c (connect_to_socket): Likewise.
57100
57101         fts.c: adjust a new interface to be more generally useful
57102         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57103         (fts_build): Adjust caller.
57104
57105 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57106
57107         * modules/cond-tests: New file.
57108         * tests/test-cond.c: New file.
57109
57110 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57111             Bruno Haible  <bruno@clisp.org>
57112
57113         * modules/cond (Dependencies): Add errno, time.
57114         * lib/glthread/cond.h: Include <time.h>.
57115         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57116         across platforms.
57117
57118 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57119             Bruno Haible  <bruno@clisp.org>
57120
57121         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57122
57123 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57124             Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/tls-tests (Depends-on): Add thread, yield.
57127         (configure.ac): Remove all checks.
57128         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57129         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57130         gl_thread_self): Remove definitions. Include glthread/thread.h and
57131         glthread/yield.h instead.
57132         (test_tls): Pass an additional NULL argument to gl_thread_join.
57133
57134 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57135             Bruno Haible  <bruno@clisp.org>
57136
57137         * modules/lock-tests (Depends-on): Add thread, yield.
57138         (configure.ac): Remove all checks.
57139         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57140         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57141         gl_thread_self): Remove definitions. Include glthread/thread.h and
57142         glthread/yield.h instead.
57143         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57144         additional NULL argument to gl_thread_join.
57145
57146 2008-09-30  Bruno Haible  <bruno@clisp.org>
57147
57148         Fix the Win32 implementation of the 'thread' module.
57149         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57150         pointer type.
57151         (gl_thread_self): Invoke gl_thread_self_func.
57152         (gl_thread_self_func): New declaration.
57153         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57154         (do_init_self_key, init_self_key): New functions.
57155         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57156         Remove some fields.
57157         (running_threads, running_lock): Remove variables.
57158         (get_current_thread_handle): New function.
57159         (gl_thread_self_func, wrapper_func, glthread_create_func,
57160         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57161         simplified.
57162
57163 2008-09-30  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57166         files.
57167
57168 2008-09-30  Jim Meyering  <meyering@redhat.com>
57169
57170         fts.m4: correct the test for statfs.f_type
57171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57172         when checking for statfs.f_type.
57173
57174 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57175
57176         tests: avoid some compiler warnings
57177         * tests/test-memchr.c (main): Pass NULL indirectly.
57178         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57179
57180 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57181
57182         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57183         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57184         exactly specified dayshifts.
57185         (dayshift): New rule.
57186         (rel): Add dayshift.
57187         (relative_time_table) [tomorrow, yesterday, today, now]:
57188         Use tDAY_SHIFT in place of tDAY_UNIT.
57189         * tests/test-getdate.c: Add tests for now-disallowed countable
57190         dayshifts, e.g., "4 yesterday ago".
57191
57192 2008-09-29  Bruno Haible  <bruno@clisp.org>
57193
57194         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57195         * tests/test-posix_spawn1.in.sh: Renamed from
57196         tests/test-posix_spawn.in.sh.
57197         * tests/test-posix_spawn2.c: New file.
57198         * tests/test-posix_spawn2.in.sh: New file.
57199         * modules/posix_spawnp-tests (Files): Update.
57200         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57201
57202 2008-09-29  Bruno Haible  <bruno@clisp.org>
57203
57204         Propagate effects of putenv/setenv/unsetenv to child processes.
57205         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57206         * lib/pipe.c (create_pipe): Likewise.
57207
57208 2008-09-29  Bruno Haible  <bruno@clisp.org>
57209
57210         Enable use of shell scripts as executables in mingw.
57211         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57212         run the program as a shell script.
57213         * lib/pipe.c (create_pipe): Likewise.
57214         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57215         resulting array.
57216
57217 2008-09-29  Eric Blake  <ebb9@byu.net>
57218
57219         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57220
57221 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57222
57223         * doc/posix-functions/accept.texi: Update mingw problems.
57224         * doc/posix-functions/bind.texi: Update mingw problems.
57225         * doc/posix-functions/close.texi: Update mingw problems.
57226         * doc/posix-functions/connect.texi: Update mingw problems.
57227         * doc/posix-functions/getpeername.texi: Update mingw problems.
57228         * doc/posix-functions/getsockname.texi: Update mingw problems.
57229         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57230         * doc/posix-functions/ioctl.texi: Update mingw problems.
57231         * doc/posix-functions/listen.texi: Update mingw problems.
57232         * doc/posix-functions/recv.texi: Update mingw problems.
57233         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57234         * doc/posix-functions/select.texi: Update mingw problems.
57235         * doc/posix-functions/send.texi: Update mingw problems.
57236         * doc/posix-functions/sendto.texi: Update mingw problems.
57237         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57238         * doc/posix-functions/socket.texi: Update mingw problems.
57239
57240 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57241             Bruno Haible  <bruno@clisp.org>
57242
57243         * lib/sys_select.in.h: Include sys/time.h.
57244         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57245         * modules/sys_select: Depend on sys_time.
57246         * tests/test-sys_select.c: Test that sys/select.h defines struct
57247         timeval fully.
57248
57249 2008-09-29  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57252         * lib/sys_select.in.h: Likewise.
57253
57254 2008-09-29  Bruno Haible  <bruno@clisp.org>
57255
57256         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57257
57258 2008-09-29  Bruno Haible  <bruno@clisp.org>
57259
57260         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57261         Set LIBSOCKET instead of augmenting LIBS.
57262         * modules/sockets (Link): New section.
57263         * modules/sockets-tests (test_sockets_LDADD): New variable.
57264         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57265         * modules/poll-tests (test_poll_LDADD): New variable.
57266         * NEWS: Document the change.
57267
57268 2008-09-29  Bruno Haible  <bruno@clisp.org>
57269
57270         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57271         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57272         ARPA_INET_H directly.
57273         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57274
57275 2008-09-28  Bruno Haible  <bruno@clisp.org>
57276
57277         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57278         from gl_HEADER_SYS_SOCKET.
57279         (gl_HEADER_SYS_SOCKET): Invoke it.
57280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57281
57282 2008-09-28  Bruno Haible  <bruno@clisp.org>
57283
57284         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57285         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57286         Needed on OSF/1 4.0.
57287
57288 2008-09-28  Bruno Haible  <bruno@clisp.org>
57289
57290         Override open more carefully.
57291         * lib/open.c (orig_open): New function.
57292         (rpl_open): Use orig_open instead of open.
57293         * lib/fcntl.in.h: Add special invocation convention.
57294         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57295         (gl_FUNC_OPEN): Invoke it.
57296
57297         Override freopen more carefully.
57298         * lib/freopen.c (orig_freopen): New function.
57299         (rpl_freopen): Use orig_freopen instead of freopen.
57300         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57301         (gl_FUNC_FREOPEN): Invoke it.
57302
57303         Override fopen more carefully.
57304         * lib/fopen.c (orig_fopen): New function.
57305         (rpl_fopen): Use orig_fopen instead of fopen.
57306         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57307         (gl_FUNC_FOPEN): Invoke it.
57308         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57309
57310 2008-09-28  Bruno Haible  <bruno@clisp.org>
57311
57312         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57313         SIGPIPE.
57314
57315 2008-09-28  Bruno Haible  <bruno@clisp.org>
57316
57317         * tests/test-sigaction.c (handler, main): Disable the check whether
57318         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57319         glibc systems with LinuxThreads.
57320
57321 2008-09-28  Bruno Haible  <bruno@clisp.org>
57322
57323         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57324
57325         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57326         with AIX xlc.
57327         * lib/fcntl.in.h (open): Likewise.
57328         Reported by Rainer Tammer <tammer@tammer.net>.
57329
57330 2008-09-28  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/posix_spawnp-tests: New file.
57333         * tests/test-posix_spawn.c: New file.
57334         * tests/test-posix_spawn.in.sh: New file.
57335
57336         New module 'posix_spawnp'.
57337         * modules/posix_spawnp: New file.
57338         * lib/spawnp.c: New file, from GNU libc with modifications.
57339         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57340
57341         New module 'posix_spawn'.
57342         * modules/posix_spawn: New file.
57343         * lib/spawn.c: New file, from GNU libc with modifications.
57344         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57345
57346         New module 'posix_spawnattr_destroy'.
57347         * modules/posix_spawnattr_destroy: New file.
57348         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57349         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57350         module.
57351
57352         New module 'posix_spawnattr_setsigmask'.
57353         * modules/posix_spawnattr_setsigmask: New file.
57354         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57355         modifications.
57356         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57357         new module.
57358
57359         New module 'posix_spawnattr_getsigmask'.
57360         * modules/posix_spawnattr_getsigmask: New file.
57361         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57362         modifications.
57363         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57364         new module.
57365
57366         New module 'posix_spawnattr_setsigdefault'.
57367         * modules/posix_spawnattr_setsigdefault: New file.
57368         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57369         modifications.
57370         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57371         new module.
57372
57373         New module 'posix_spawnattr_getsigdefault'.
57374         * modules/posix_spawnattr_getsigdefault: New file.
57375         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57376         modifications.
57377         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57378         new module.
57379
57380         New module 'posix_spawnattr_setschedpolicy'.
57381         * modules/posix_spawnattr_setschedpolicy: New file.
57382         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57383         modifications.
57384         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57385         new module.
57386
57387         New module 'posix_spawnattr_getschedpolicy'.
57388         * modules/posix_spawnattr_getschedpolicy: New file.
57389         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57390         modifications.
57391         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57392         new module.
57393
57394         New module 'posix_spawnattr_setschedparam'.
57395         * modules/posix_spawnattr_setschedparam: New file.
57396         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57397         modifications.
57398         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57399         new module.
57400
57401         New module 'posix_spawnattr_getschedparam'.
57402         * modules/posix_spawnattr_getschedparam: New file.
57403         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57404         modifications.
57405         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57406         new module.
57407
57408         New module 'posix_spawnattr_setpgroup'.
57409         * modules/posix_spawnattr_setpgroup: New file.
57410         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57411         modifications.
57412         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57413         module.
57414
57415         New module 'posix_spawnattr_getpgroup'.
57416         * modules/posix_spawnattr_getpgroup: New file.
57417         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57418         modifications.
57419         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57420         module.
57421
57422         New module 'posix_spawnattr_setflags'.
57423         * modules/posix_spawnattr_setflags: New file.
57424         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57425         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57426         module.
57427
57428         New module 'posix_spawnattr_getflags'.
57429         * modules/posix_spawnattr_getflags: New file.
57430         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57431         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57432         module.
57433
57434         New module 'posix_spawnattr_init'.
57435         * modules/posix_spawnattr_init: New file.
57436         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57437         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57438         module.
57439
57440         New module 'posix_spawn_file_actions_destroy'.
57441         * modules/posix_spawn_file_actions_destroy: New file.
57442         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57443         modifications.
57444         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57445         the new module.
57446
57447         New module 'posix_spawn_file_actions_addopen'.
57448         * modules/posix_spawn_file_actions_addopen: New file.
57449         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57450         modifications.
57451         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57452         the new module.
57453
57454         New module 'posix_spawn_file_actions_adddup2'.
57455         * modules/posix_spawn_file_actions_adddup2: New file.
57456         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57457         modifications.
57458         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57459         the new module.
57460
57461         New module 'posix_spawn_file_actions_addclose'.
57462         * modules/posix_spawn_file_actions_addclose: New file.
57463         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57464         modifications.
57465         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57466         the new module.
57467
57468         New module 'posix_spawn_file_actions_init'.
57469         * modules/posix_spawn_file_actions_init: New file.
57470         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57471         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57472         new module.
57473
57474         New module 'posix_spawn-internal'.
57475         * modules/posix_spawn-internal: New file.
57476         * lib/spawn_int.h: New file, from GNU libc with modifications.
57477         * lib/spawni.c: New file, from GNU libc with modifications.
57478         * m4/posix_spawn.m4: New file.
57479
57480         New module 'spawn'.
57481         * modules/spawn: New file.
57482         * lib/spawn.in.h: New file, from GNU libc with modifications.
57483         * m4/spawn_h.m4: New file.
57484         * doc/posix-headers/spawn.texi: Mention the new module.
57485
57486 2008-09-28  Bruno Haible  <bruno@clisp.org>
57487
57488         * modules/sched-tests: New file.
57489         * tests/test-sched.c: New file.
57490
57491         New module 'sched'.
57492         * modules/sched: New file.
57493         * lib/sched.in.h: New file.
57494         * m4/sched_h.m4: New file.
57495         * doc/posix-headers/sched.texi: Mention the new module.
57496
57497 2008-09-27  Eric Blake  <ebb9@byu.net>
57498
57499         Fix previous patch, and tweak references to $0.
57500         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57501         (func_version, func_gnulib_dir): Don't call this program
57502         gnulib-tool.
57503         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57504         with using $0 in function.
57505         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57506         (func_fatal_error): Reuse the name the user invoked us with.
57507
57508 2008-09-27  Bruno Haible  <bruno@clisp.org>
57509
57510         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57511         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57512         (gl_ICONV_H): Not here.
57513         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57514         instead of assigning ICONV_H directly.
57515
57516         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57518         WCHAR_H directly.
57519
57520 2008-09-27  Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57523         * modules/arpa_inet (Depends-on): Add link-warning.
57524         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57525         * modules/unistd (Makefile.am): Likewise.
57526
57527 2008-09-26  Bruno Haible  <bruno@clisp.org>
57528
57529         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57530         variables.
57531         (func_version): Essentially copied from gnulib-tool.
57532         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57533         func_readlink): Copied from gnulib-tool.
57534
57535 2008-09-26  Bruno Haible  <bruno@clisp.org>
57536
57537         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57538         invoking git-version-gen.
57539
57540 2008-09-26  Bruno Haible  <bruno@clisp.org>
57541
57542         * posix-modules: Update to directory names changed on 2008-01-19.
57543         Remove commas in output before splitting into words. No more need to
57544         avoid 'ftruncate' since 2007-02-19.
57545
57546 2008-09-26  Bruno Haible  <bruno@clisp.org>
57547
57548         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57549
57550 2008-09-26  Bruno Haible  <bruno@clisp.org>
57551
57552         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57553         * modules/fwriteerror (Depends-on): Add errno.
57554
57555 2008-09-26  Bruno Haible  <bruno@clisp.org>
57556
57557         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57558         * tests/test-vc-list-files-cvs.sh: Likewise.
57559
57560 2008-09-26  Bruno Haible  <bruno@clisp.org>
57561
57562         * doc/posix-headers/sys_resource.texi: Reorder items.
57563
57564 2008-09-26  Jim Meyering  <meyering@redhat.com>
57565
57566         fts: tweak inode comparison function
57567         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57568         inode numbers, as documented.
57569
57570         fts: sort dirent entries on inode number before traversing
57571         This avoids a quadratic, seek-related performance penalty when
57572         operating on a directory containing many entries (measurable at 10k;
57573         3.5 hours at 2 million entries with a cold cache) on certain types
57574         of file systems, including ext3 and ext4, but not tmpfs.
57575         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57576         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57577         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57578         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57579         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57580         (fts_build): Set the stat.st_ino member from D_INO.
57581         If it is likely to be useful, sort dirent entries on inode number.
57582
57583         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57584         and the struct statfs.f_type member.
57585         * modules/fts (Depends-on): Add d-ino.
57586
57587 2008-09-26  Bruno Haible  <bruno@clisp.org>
57588
57589         * modules/sigpipe-die (Depends-on): Add sigpipe.
57590
57591         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57592         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57593         and GNULIB_STDIO_H_SIGPIPE are set.
57594         * lib/stdio-write.c: New file.
57595         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57596         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57597         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57598         REPLACE_STDIO_WRITE_FUNCS.
57599         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57600         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57601         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57602         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57603         * modules/stdio (Files): Add lib/stdio-write.c.
57604         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57605         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57606         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57607         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57608         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57609         REPLACE_FPRINTF_POSIX.
57610         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57611         REPLACE_PRINTF_POSIX.
57612         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57613         REPLACE_VFPRINTF_POSIX.
57614         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57615         REPLACE_VPRINTF_POSIX.
57616         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57617         SIGPIPE issue.
57618         * doc/posix-functions/fputc.texi: Likewise.
57619         * doc/posix-functions/fputs.texi: Likewise.
57620         * doc/posix-functions/fwrite.texi: Likewise.
57621         * doc/posix-functions/printf.texi: Likewise.
57622         * doc/posix-functions/putc.texi: Likewise.
57623         * doc/posix-functions/putchar.texi: Likewise.
57624         * doc/posix-functions/puts.texi: Likewise.
57625         * doc/posix-functions/vfprintf.texi: Likewise.
57626         * doc/posix-functions/vprintf.texi: Likewise.
57627
57628         * modules/safe-write (Depends-on): Add write.
57629
57630         * modules/sigpipe-tests: New file.
57631         * tests/test-sigpipe.c: New file.
57632         * tests/test-sigpipe.sh: New file.
57633
57634         * modules/write: New file.
57635         * lib/unistd.in.h: Include <sys/types.h>.
57636         (write): New declaration.
57637         * lib/write.c: New file.
57638         * m4/write.m4: New file.
57639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57640         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57641         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57642         GNULIB_WRITE, REPLACE_WRITE.
57643         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57644         and the SIGPIPE issue.
57645
57646         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57647         (raise): New declaration.
57648         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57649         (ext_signal): New function.
57650         (rpl_raise): New function.
57651         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57652         GNULIB_SIGNAL_H_SIGPIPE.
57653         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57654         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57655
57656         * modules/sigpipe: New file.
57657         * m4/sigpipe.m4: New file.
57658
57659 2008-09-25  Derek Price  <derek@ximbiot.com>
57660             Bruno Haible  <bruno@clisp.org>
57661
57662         * gnulib-tool (func_import): Report all license incompatibilities, not
57663         just the first one.
57664
57665 2008-09-25  Bruno Haible  <bruno@clisp.org>
57666
57667         * gnulib-tool (func_import): When computing the edits, consider not
57668         only the Makefile.ams that exist but also those that will be generated.
57669
57670 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57671
57672         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57673         fixes gnulib-tool --test warning about duplicate dependency.
57674
57675 2008-09-25  Bruno Haible  <bruno@clisp.org>
57676
57677         * gnulib-tool: Don't ask the user to perform edits in the generated
57678         Makefile.ams.
57679         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57680         apply to the Makefile.am being generated.
57681         (func_emit_tests_Makefile_am): Execute edits that apply to the
57682         Makefile.am being generated.
57683         (func_import): Setup list of Makefile.am edits before emitting the
57684         Makefile.ams, not at the end.
57685         (func_create_testdir): Update.
57686         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57687
57688 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57689
57690         * gnulib-tool (func_import): Store the --tests-base option in the
57691         comment in gnulib-cache.m4.
57692
57693 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57694
57695         * NEWS: Document increased portability that sys_select now provides.
57696
57697         * lib/sys_select.in.h: Install select wrapper.
57698         * lib/sys_socket.in.h: Use more descriptive name when there is no
57699         select wrapper.
57700         * lib/winsock-select.c: New.
57701         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57702         Require gl_HEADER_SYS_SOCKET.
57703         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57704         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57705         * tests/test-sys_select.c: Add functional tests.
57706
57707 2008-09-24  Eric Blake  <ebb9@byu.net>
57708
57709         open, fopen: close fd leak in last patch
57710         * lib/open.c (rpl_open): Close fd before returning error.
57711         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57712         * doc/posix-functions/open.texi (open): Document that Irix also
57713         has the bug.
57714         * doc/posix-functions/fopen.texi (fopen): Likewise.
57715         Reported by Paolo Bonzini.
57716
57717 2008-09-24  Bruno Haible  <bruno@clisp.org>
57718
57719         Ensure that a filename ending in a slash cannot be used to access a
57720         non-directory.
57721         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57722         to check whether it's really a directory.
57723         * lib/fopen.c: Include fcntl.h, unistd.h.
57724         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57725         and fdopen().
57726         * modules/fopen (Depends-on): Add unistd.
57727         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57728         * tests/test-fopen.c (main): Likewise.
57729         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57730         * doc/posix-functions/fopen.texi: Likewise.
57731         Reported by Eric Blake.
57732
57733 2008-09-23  Eric Blake  <ebb9@byu.net>
57734
57735         c-stack: avoid compiler optimizations when provoking overflow
57736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57737         recursion harder to optimize, to ensure a stack overflow occurs.
57738         * tests/test-c-stack.c (recurse): Likewise.
57739         Borrowed from libsigsegv.
57740
57741         c-stack: work around Irix sigaltstack bug
57742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57743         whether sigaltstack uses wrong end of stack_t (copied in part from
57744         libsigsegv).
57745         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57746         Irix bug, without requiring an over-allocation.
57747         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57748         bug.
57749
57750         fopen: document mingw bug on directories
57751         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57752         not allowing a stream visiting a directory, even though reading
57753         from such a stream is not portable.
57754
57755 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57756
57757         * lib/poll.c: Rewrite.
57758         * modules/poll: Depend on alloca.
57759
57760 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57761
57762         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57763         instead define prototypes for a full set of wrappers.  Ensure
57764         that Cygwin does not use the compatibility code, which is only
57765         for MinGW.
57766         * lib/winsock.c: New.
57767         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57768         * modules/sys_socket: Add lib/winsock.c.
57769
57770         * modules/poll-tests: Add errno and perror.
57771         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57772
57773 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57774
57775         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57776
57777 2008-09-23  Bruno Haible  <bruno@clisp.org>
57778
57779         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57780         * doc/glibc-functions/*: Likewise.
57781
57782 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57783
57784         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57785         success.
57786
57787 2008-09-22  Eric Blake  <ebb9@byu.net>
57788             Bruno Haible  <bruno@clisp.org>
57789
57790         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57791         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57792         supply %A but mishandle pseudo-NaN.
57793         Reported by Simon Josefsson.
57794
57795 2008-09-21  Bruno Haible  <bruno@clisp.org>
57796
57797         * tests/test-lock.c (main): Tweak skip message.
57798         * tests/test-tls.c (main): Likewise.
57799
57800 2008-09-21  Bruno Haible  <bruno@clisp.org>
57801
57802         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57803         whether 'struct sigaction' has sa_sigaction here...
57804         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57805         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57806
57807 2008-09-21  Bruno Haible  <bruno@clisp.org>
57808
57809         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57810         section.
57811         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57812         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57813         the new section.
57814         (Support for obsolete systems lacking POSIX:2001): New section.
57815         (String handling <string.h>): Move strdup to the new section.
57816         Suggested by Simon Josefsson and Paolo Bonzini.
57817
57818 2008-09-21  Bruno Haible  <bruno@clisp.org>
57819
57820         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57821         exponents in %e and %g results on 'long double'. Needed for mingw's
57822         improved *printf functions.
57823         * tests/test-vasprintf-posix.c (test_function): Likewise.
57824         * tests/test-snprintf-posix.h (test_function): Likewise.
57825         * tests/test-sprintf-posix.h (test_function): Likewise.
57826         Reported by Eric Blake.
57827
57828 2008-09-21  Bruno Haible  <bruno@clisp.org>
57829
57830         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57831         * tests/test-sprintf-posix.h (test_function): Likewise.
57832
57833 2008-09-21  Bruno Haible  <bruno@clisp.org>
57834
57835         * modules/getpass (Depends-on): Add strdup-posix.
57836
57837         New module 'strdup-posix'.
57838         * modules/strdup-posix: New file.
57839         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57840         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57842         REPLACE_STRDUP.
57843         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57844         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57846         strdup-posix.
57847
57848         * modules/strdup (Depends-on): Remove malloc-posix.
57849
57850 2008-09-20  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57853         Wildenhues.
57854
57855 2008-09-20  Bruno Haible  <bruno@clisp.org>
57856
57857         Ensure that wint_t gets defined on IRIX 5.3.
57858         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57859         * lib/wctype.in.h (wint_t): Likewise.
57860         (__wctype_wint_t): Remove type.
57861         (isw*): Use wint_t instead of __wctype_wint_t.
57862         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57863         * modules/wchar (Files): Add m4/wint_t.m4.
57864         (Makefile.am): Substitute HAVE_WINT_T.
57865         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57866         * tests/test-wctype.c: Check that wint_t is defined.
57867         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57868         * doc/posix-headers/wctype.texi: Likewise.
57869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57870
57871 2008-09-18  Bruno Haible  <bruno@clisp.org>
57872
57873         * gnulib-tool (func_exit): Update comment.
57874
57875 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57876
57877         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57878         assumes strdup exists and does not depend on strdup to return
57879         ENOMEM on out of memory conditions.
57880
57881 2008-09-18  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57884         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57885         digits for the exponent.
57886
57887 2008-09-18  Jim Meyering  <meyering@redhat.com>
57888             Bruno Haible  <bruno@clisp.org>
57889
57890         * lib/vasnprintf.c (decimal_point_char): Define also if
57891         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57892
57893 2008-09-16  Bruno Haible  <bruno@clisp.org>
57894         and Eric Blake  <ebb9@byu.net>
57895
57896         vasnprintf: support Irix 5.3
57897         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57898         that mishandle long double infinity.
57899         Reported by Tom G. Christensen.
57900
57901 2008-09-16  Bruno Haible  <bruno@clisp.org>
57902
57903         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57904         Solaris 9.
57905         * doc/glibc-functions/alphasort.texi: Likewise.
57906         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57907
57908 2008-09-16  Jim Meyering  <meyering@redhat.com>
57909
57910         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57911         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57912         a umask modification leak out of a subshell.  Otherwise, the
57913         opensolaris /bin/sh would be accepted and thus cause unwarranted
57914         failures in the coreutils test suite.
57915
57916 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57917
57918         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57919         to succeed.
57920
57921 2008-09-16  Jim Meyering  <meyering@redhat.com>
57922
57923         avoid spurious test failure when library is built without ACL support
57924         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57925         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57926         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57927         * tests/test-copy-acl.sh: Likewise.
57928
57929 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57930
57931         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57932         based on character occurrence counts.
57933
57934 2008-09-15  Eric Blake  <ebb9@byu.net>
57935
57936         tests: avoid some compiler warnings
57937         * tests/test-memchr.c (main): Pass NULL indirectly.
57938         * tests/test-closein.c (main): Avoid unused variable.
57939
57940 2008-09-15  Bruno Haible  <bruno@clisp.org>
57941
57942         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57943         are missing on OpenBSD 4.0 individually.
57944         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57945
57946 2008-09-15  Bruno Haible  <bruno@clisp.org>
57947
57948         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57949         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57950         * doc/posix-functions/perror.texi: Likewise.
57951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57952         is missing.
57953         Reported by Eric Blake.
57954
57955         * lib/errno.in.h: Use replacement values >= 2000.
57956         Reported by Eric Blake.
57957
57958 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57959
57960         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57961         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57962         limit.
57963         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57964         compareseq was aborted.
57965
57966 2008-09-14  Bruno Haible  <bruno@clisp.org>
57967
57968         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57969         yvec_edit_count.
57970         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57971         (fstrcmp_bounded): Simplify result computation accordingly.
57972
57973 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57974
57975         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57976         (fstrcmp): Define in terms of fstrcmp_bounded.
57977         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57978         lower_bound argument.
57979         Return quickly if the result is certainly < lower_bound.
57980         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57981
57982 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57983
57984         * lib/diffseq.h (EARLY_ABORT): New macro.
57985         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57986         evaluates to true.
57987
57988 2008-09-14  Bruno Haible  <bruno@clisp.org>
57989
57990         * modules/perror-tests: New file.
57991         * tests/test-perror.sh: New file.
57992         * tests/test-perror.c: New file.
57993
57994         New module 'perror'.
57995         * lib/stdio.in.h (perror): New declaration.
57996         * lib/perror.c: New file.
57997         * m4/perror.m4: New file.
57998         * modules/perror: New file.
57999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58000         * doc/posix-functions/perror.texi: Mention the perror module.
58001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58002         REPLACE_PERROR.
58003         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58004         REPLACE_PERROR.
58005
58006 2008-09-14  Bruno Haible  <bruno@clisp.org>
58007
58008         * modules/stdio (Makefile.am): Reorder to match the order in
58009         lib/stdio.in.h.
58010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58011
58012 2008-09-13  Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58015
58016 2008-09-13  Bruno Haible  <bruno@clisp.org>
58017
58018         Extend strerror to cover the added errno values.
58019         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58020         (rpl_strerror): Provide error messages for the added errno values and
58021         for the WSA* values.
58022         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58023         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58024         strerror.
58025         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58026         * modules/strerror (Depends-on): Add errno.
58027         * doc/posix-functions/strerror.texi: Document the change.
58028         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58029         and EOVERFLOW.
58030
58031 2008-09-13  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/EOVERFLOW: Remove file.
58034         * m4/eoverflow.m4: Remove file.
58035         * modules/EOVERFLOW-tests: Remove file.
58036         * tests/test-EOVERFLOW.c: Remove file.
58037         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58038         * modules/ftell (Depends-on): Likewise.
58039         * modules/getdelim (Depends-on): Likewise.
58040         * modules/getugroups (Depends-on): Likewise.
58041         * modules/poll (Depends-on): Likewise.
58042         * modules/snprintf (Depends-on): Likewise.
58043         * modules/sprintf-posix (Depends-on): Likewise.
58044         * modules/vasnprintf (Depends-on): Likewise.
58045         * modules/vasprintf (Depends-on): Likewise.
58046         * modules/vfprintf-posix (Depends-on): Likewise.
58047         * modules/vsnprintf (Depends-on): Likewise.
58048         * modules/vsprintf-posix (Depends-on): Likewise.
58049         * modules/xvasprintf (Depends-on): Likewise.
58050         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58051         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58052         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58053         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58054         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58055         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58056         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58057         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58058         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58059         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58060         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58061         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58062         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58063         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58064         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58065         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58066         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58067         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58068         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58069         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58070         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58071         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58072         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58073         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58074         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58075         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58076         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58077         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58078         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58079         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58080         * MODULES.html.sh: Remove EOVERFLOW.
58081         * NEWS: Mention the change.
58082
58083 2008-09-13  Bruno Haible  <bruno@clisp.org>
58084
58085         * modules/errno-tests: New file.
58086         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58087
58088         * lib/errno.in.h: New file.
58089         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58090         * modules/errno: New file.
58091         * doc/posix-headers/errno.texi: Update documentation.
58092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58093
58094 2008-09-13  Bruno Haible  <bruno@clisp.org>
58095
58096         * tests/test-poll.c: Use #if for native Windows, rather than testing
58097         __MSVCRT__.
58098
58099 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58100             Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/glob.c: Don't include <pwd.h> on native Windows.
58103         (WINDOWS32): New macro.
58104         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58105
58106 2008-09-13  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58109         (ETIMEDOUT): Remove macro.
58110         (glthread_cond_timedwait_multithreaded): New declaration.
58111         (glthread_cond_timedwait): Use it.
58112         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58113         (glthread_cond_timedwait_multithreaded): New function.
58114
58115 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58116
58117         * modules/poll-tests: Do not check for io.h.
58118         * tests/test-poll.c: Check for __MSVCRT__ instead.
58119
58120 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58121
58122         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58123         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58124         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58125
58126 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58127
58128         * modules/poll-tests: New.
58129         * tests/test-poll.c: New.
58130
58131 2008-09-12  Eric Blake  <ebb9@byu.net>
58132
58133         frexp: test for NetBSD failure on -0.0
58134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58135         not all, bugs from NetBSD 3.0 have been fixed.
58136         * doc/posix-functions/frexp.texi (frexp): Document bug.
58137         Reported by Thomas Klausner.
58138
58139         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58140         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58141         literal -0.0.
58142         Reported by Jonathan C. Patschke <jp@centtech.com>.
58143
58144 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58145
58146         * lib/glthread/cond.h: Use dummy implementation also if
58147         USE_WIN32_THREADS.
58148
58149 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58150
58151         * modules/fnmatch-posix (License): Change to LGPLv2+.
58152         * modules/fnmatch-gnu (License): Likewise.
58153
58154 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58155
58156         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58157
58158 2008-09-11  Jim Meyering  <meyering@redhat.com>
58159
58160         * users.txt: Add gtk-vnc.
58161
58162 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58163
58164         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58165         rotate amounts.
58166
58167         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58168         required for 16-bit and 8-bit rotates.
58169         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58170         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58171         UINT8_MAX instead of hard-coded constants.
58172         Suggested by Paul Eggert.
58173
58174 2008-09-07  Bruno Haible  <bruno@clisp.org>
58175
58176         * tests/test-striconveh.c (main): Check behaviour when converting from
58177         UTF-7.
58178
58179         Make striconveh work better with stateful encodings.
58180         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58181         that iconv does not increment the inptr when returning -1/EINVAL.
58182
58183 2008-09-07  Bruno Haible  <bruno@clisp.org>
58184
58185         * build-aux/config.rpath: Update according to libtool-2.2.6.
58186         * build-aux/config.libpath: Likewise.
58187
58188 2008-09-06  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58191         * lib/freadptr.c (freadptr): Likewise.
58192         * lib/freadseek.c (freadptrinc): Likewise.
58193         Reported by Simon Josefsson.
58194
58195 2008-09-06  Bruno Haible  <bruno@clisp.org>
58196
58197         * modules/freadptr (License): Change to LGPLv2+.
58198         * modules/freadseek (License): Likewise.
58199         Suggested by Eric Blake.
58200
58201         * modules/memchr2 (License): Change to LGPLv2+.
58202         Approved by Eric Blake.
58203
58204 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58205             Bruno Haible  <bruno@clisp.org>
58206
58207         Make gnulib-tool work with native 'sed' on AIX.
58208         * gnulib-tool (sed_noop): New variable.
58209         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58210         func_add_or_update, func_create_testdir): Use it to initialize sed
58211         script variables.
58212         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58213
58214 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58215             Bruno Haible  <bruno@clisp.org>
58216
58217         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58218         also works after #include directives.
58219
58220 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58221
58222         getdate.y: reject an out-of-range timezone value
58223         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58224         the range [-24...+24].  When specified with only one or two digits,
58225         * tests/test-getdate.c: Tests for the fix.
58226         * doc/getdate.texi: Document this change.
58227
58228 2008-09-03  Bruno Haible  <bruno@clisp.org>
58229
58230         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58231
58232 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58233
58234         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58235         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58236         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58237         Blake <ebb9@byu.net>.
58238
58239         * tests/test-bitrotate.c: Add more test vectors.
58240
58241 2008-09-02  Eric Blake  <ebb9@byu.net>
58242
58243         vasnprintf-posix: handle large precision via %.*d
58244         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58245         when handling it ourselves.
58246         * tests/test-vasnprintf-posix.c (test_function): Add test.
58247         * tests/test-snprintf-posix.h (test_function): Likewise.
58248         * tests/test-sprintf-posix.h (test_function): Likewise.
58249         * tests/test-vasprintf-posix.c (test_function): Likewise.
58250         Reported by Alain Guibert.
58251
58252 2008-09-01  Eric Blake  <ebb9@byu.net>
58253
58254         c-stack: make configure-time check more robust
58255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58256         successful sigaction call.
58257         Reported by Tom G. Christensen.
58258
58259 2008-09-01  Bruno Haible  <bruno@clisp.org>
58260
58261         New module 'findprog-lgpl'.
58262         * modules/findprog-lgpl: New file.
58263         * lib/findprog-lgpl.c: New file.
58264         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58265         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58266         to decide whether to use strdup or xstrdup, concatenated_filename or
58267         xconcatenated_filename.
58268
58269 2008-09-01  Bruno Haible  <bruno@clisp.org>
58270
58271         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58272         'xconcat-filename' (GPL).
58273         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58274         (License): Change to LGPLv2+.
58275         * modules/xconcat-filename: New file.
58276         * lib/concat-filename.h (concatenated_filename): Change specification.
58277         (xconcatenated_filename): New declaration.
58278         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58279         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58280         memory situations.
58281         * lib/xconcat-filename.c: New file.
58282         * NEWS: Mention the change.
58283         * lib/findprog.c: Include concat-filename.h, not filename.h.
58284         (find_in_path): Use xconcatenated_filename instead of
58285         concatenated_filename.
58286         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58287         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58288         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58289         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58290         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58291         instead of concatenated_filename.
58292         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58293         (execute_java_class): Use xconcatenated_filename instead of
58294         concatenated_filename.
58295         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58296         * modules/javacomp (Depends-on): Likewise.
58297         * modules/javaexec (Depends-on): Likewise.
58298
58299 2008-09-01  Bruno Haible  <bruno@clisp.org>
58300
58301         Split module 'filename' into 'filename' and 'concat-filename'.
58302         * modules/filename: Keep only lib/filename.h.
58303         (License): Change to LGPLv2+.
58304         * modules/concat-filename: New file, extracted from modules/filename.
58305         * lib/filename.h (concatenated_filename): Remove declaration.
58306         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58307         * lib/concat-filename.c: Include concat-filename.h.
58308         * NEWS: Mention the change.
58309
58310 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58311
58312         * lib/bitrotate.h (rotl8, rotr8): Add.
58313
58314         * modules/bitrotate (configure.ac): Need
58315         AC_REQUIRE([AC_C_INLINE]).
58316         (Description): Mention stdint.h.  Reported by Bruno Haible
58317         <bruno@clisp.org>.
58318
58319         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58320         Paolo Bonzini <bonzini@gnu.org>.
58321
58322 2008-08-31  Bruno Haible  <bruno@clisp.org>
58323
58324         Assume Solaris specific bi-arch conventions on Solaris systems.
58325         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58326         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58328         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58329         like acl_libdirstem.
58330         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58331         acl_libdirstem.
58332         * NEWS: Mention the change.
58333         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58334
58335 2008-08-31  Jim Meyering  <meyering@redhat.com>
58336
58337         * lib/strftime.h: Add comments describing the two added arguments.
58338
58339         remove duplicate #include directives
58340         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58341         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58342
58343 2008-08-31  Bruno Haible  <bruno@clisp.org>
58344
58345         New module 'sigpipe-die'.
58346         * modules/sigpipe-die: New file.
58347         * lib/sigpipe-die.h: New file.
58348         * lib/sigpipe-die.c: New file.
58349         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58350
58351 2008-08-31  Bruno Haible  <bruno@clisp.org>
58352
58353         Don't override previously installed signal handlers.
58354         * lib/fatal-signal.c (saved_sigactions): New variable.
58355         (uninstall_handlers): Reset the signal to the saved handler, not
58356         to SIG_DFL (except when ignored).
58357         (install_handlers): Save the previous handlers.
58358
58359 2008-08-30  Bruno Haible  <bruno@clisp.org>
58360
58361         * gnulib-tool (func_reset_sigpipe): New function.
58362         (func_get_automake_snippet, func_modules_transitive_closure,
58363         func_import): Invoke it before a join command that reads from stdin,
58364         to avoid "echo: write error: Broken pipe" error messages on stderr.
58365         Reported by Sam Steingold <sds@gnu.org>.
58366
58367 2008-08-30  Bruno Haible  <bruno@clisp.org>
58368
58369         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58370         Code copied from m4/open.m4.
58371         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58372         access and the filename ends in a slash. Code copied from lib/open.c.
58373         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58374         * tests/test-fopen.c (main): Check against bug with trailing slash.
58375
58376 2008-08-29  Bruno Haible  <bruno@clisp.org>
58377
58378         Avoid some "gcc -pedantic" warnings.
58379         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58380         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58381         * lib/dirent.in.h: Likewise.
58382         * lib/fcntl.in.h: Likewise.
58383         * lib/float.in.h: Likewise.
58384         * lib/iconv.in.h: Likewise.
58385         * lib/inttypes.in.h: Likewise.
58386         * lib/locale.in.h: Likewise.
58387         * lib/math.in.h: Likewise.
58388         * lib/netinet_in.in.h: Likewise.
58389         * lib/search.in.h: Likewise.
58390         * lib/signal.in.h: Likewise.
58391         * lib/stdarg.in.h: Likewise.
58392         * lib/stdint.in.h: Likewise.
58393         * lib/stdio.in.h: Likewise.
58394         * lib/stdlib.in.h: Likewise.
58395         * lib/string.in.h: Likewise.
58396         * lib/strings.in.h: Likewise.
58397         * lib/sys_select.in.h: Likewise.
58398         * lib/sys_socket.in.h: Likewise.
58399         * lib/sys_stat.in.h: Likewise.
58400         * lib/sys_time.in.h: Likewise.
58401         * lib/sysexits.in.h: Likewise.
58402         * lib/time.in.h: Likewise.
58403         * lib/unistd.in.h: Likewise.
58404         * lib/wchar.in.h: Likewise.
58405         * lib/wctype.in.h: Likewise.
58406         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58407         * modules/fchdir (Makefile.am): Likewise.
58408         * modules/fcntl (Makefile.am): Likewise.
58409         * modules/float (Makefile.am): Likewise.
58410         * modules/iconv_open (Makefile.am): Likewise.
58411         * modules/inttypes (Makefile.am): Likewise.
58412         * modules/locale (Makefile.am): Likewise.
58413         * modules/math (Makefile.am): Likewise.
58414         * modules/netinet_in (Makefile.am): Likewise.
58415         * modules/search (Makefile.am): Likewise.
58416         * modules/signal (Makefile.am): Likewise.
58417         * modules/stdarg (Makefile.am): Likewise.
58418         * modules/stdint (Makefile.am): Likewise.
58419         * modules/stdio (Makefile.am): Likewise.
58420         * modules/stdlib (Makefile.am): Likewise.
58421         * modules/string (Makefile.am): Likewise.
58422         * modules/strings (Makefile.am): Likewise.
58423         * modules/sys_select (Makefile.am): Likewise.
58424         * modules/sys_socket (Makefile.am): Likewise.
58425         * modules/sys_stat (Makefile.am): Likewise.
58426         * modules/sys_time (Makefile.am): Likewise.
58427         * modules/sysexits (Makefile.am): Likewise.
58428         * modules/time (Makefile.am): Likewise.
58429         * modules/unistd (Makefile.am): Likewise.
58430         * modules/wchar (Makefile.am): Likewise.
58431         * modules/wctype (Makefile.am): Likewise.
58432         Reported by Reuben Thomas <rrt@sc3d.org>.
58433
58434 2008-08-29  Bruno Haible  <bruno@clisp.org>
58435
58436         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58437         any more.
58438
58439 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58440
58441         * MODULES.html.sh (Misc): Add bitrotate.
58442
58443         * modules/bitrotate: New file.
58444
58445         * lib/bitrotate.h: New file.
58446
58447         * modules/bitrotate-tests: New file.
58448
58449         * tests/test-bitrotate.c: New file.
58450
58451         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58452         on the bitrotate module.
58453
58454         * lib/arctwo.c: Use new bitrotate module.
58455
58456 2008-08-29  Jim Meyering  <meyering@redhat.com>
58457
58458         bootstrap: merge changes from coreutils
58459         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58460         of copied files.  Remove a kludge, now that this is fixed.
58461         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58462         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58463         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58464
58465 2008-08-29  Bruno Haible  <bruno@clisp.org>
58466
58467         * MODULES.html.sh: Remove --cvs-urls option.
58468
58469 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58470
58471         maint.mk: adjust to file name change
58472         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58473
58474 2008-08-28  Jim Meyering  <meyering@redhat.com>
58475
58476         * modules/getndelim2 (License): Relicense to LGPLv2+.
58477         Approved by Richard Stallman for the version of 1995, and by
58478         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58479
58480 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58481
58482         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58483         dummy if one is not available.  Do not touch them if
58484         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58485         (getc_maybe_unlocked): New.
58486         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58487
58488 2008-08-26  Eric Blake  <ebb9@byu.net>
58489
58490         doc/INSTALL: resync from autoconf
58491         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58492         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58493         moving...
58494         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58495         * INSTALL: Regenerate.
58496         * INSTALL.ISO: New file.
58497         * INSTALL.UTF-8: Likewise.
58498
58499 2008-08-26  Jim Meyering  <meyering@redhat.com>
58500
58501         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58502         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58503         these definitions conditional, so that they may be overridden, too.
58504
58505 2008-08-26  Bruno Haible  <bruno@clisp.org>
58506
58507         Generate INSTALL file variants with prettier quotes.
58508         * doc/Makefile (INSTALL_PRELUDE): New macro.
58509         (INSTALL): Use it.
58510         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58511
58512 2008-08-26  Bruno Haible  <bruno@clisp.org>
58513
58514         Run makeinfo in an English locale.
58515         * doc/Makefile (MAKEINFO): New variable.
58516
58517 2008-08-26  Bruno Haible  <bruno@clisp.org>
58518
58519         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58520         Suggested by Eric Blake.
58521
58522 2008-08-25  Bruno Haible  <bruno@clisp.org>
58523
58524         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58525
58526 2008-08-25  Eric Blake  <ebb9@byu.net>
58527
58528         c-stack: test that stack overflow can be caught
58529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58530         that platform allows handling stack overflow; at least OS/2 EMX
58531         has sigaltstack, but crashes before transferring control to
58532         handler on stack overflow.
58533         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58534         check for HAVE_STACK_OVERFLOW_HANDLING.
58535         Reported by Elbert Pol.
58536
58537 2008-08-25  Bruno Haible  <bruno@clisp.org>
58538
58539         * doc/posix-functions/strftime.texi: Fix description of strftime
58540         module.
58541
58542 2008-08-24  Bruno Haible  <bruno@clisp.org>
58543
58544         * tests/uniwidth/test-uc_width2.c: New file.
58545         * tests/uniwidth/test-uc_width2.sh: New file.
58546         * modules/uniwidth/width-tests (Files): Add the new files.
58547         (TESTS): Add uniwidth/test-uc_width2.sh.
58548         (TESTS_ENVIRONMENT): New variable.
58549         (check_PROGRAMS): Add test-uc_width2.
58550         (test_uc_width2_SOURCES): New variable.
58551
58552         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58553         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58554         not 0x00AB.
58555         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58556
58557 2008-08-22  Eric Blake  <ebb9@byu.net>
58558
58559         test-lock, test-tls: mention why a test is skipped
58560         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58561         skipped.
58562         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58563
58564         count-one-bits: relax license
58565         * modules/count-one-bits (License): Relicense to LGPLv2+.
58566         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58567
58568 2008-08-22  Andreas Schwab  <schwab@suse.de>
58569
58570         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58571         Remove spurious space in assignment.
58572
58573 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58574
58575         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58576         Paul Eggert <eggert@CS.UCLA.EDU>.
58577
58578 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58579
58580         * modules/gettext: Add m4/threadlib.m4.
58581
58582 2008-08-19  Eric Blake  <ebb9@byu.net>
58583
58584         test-c-stack: fix compilation failure on FreeBSD 5.0
58585         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58586         headers before <sys/resource.h>.
58587         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58588         the bug.
58589         Reported by Nelson H. F. Beebe.
58590
58591         strverscmp: migrate from "strverscmp.h" to <string.h>
58592         * modules/string (Makefile.am): Add new hooks.
58593         * modules/strverscmp (Files): Remove strverscmp.h.
58594         (Depends-on): Add string.
58595         (configure.ac): Add indicator.
58596         (Include): Mention new header.
58597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58598         defaults.
58599         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58600         results.
58601         * lib/strverscmp.h: Delete.
58602         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58603         * tests/test-strverscmp.c (includes): Adjust client.
58604         * lib/check-version.c (includes): Likewise.
58605         * NEWS: Document the change.
58606
58607         strverscmp: add unit test
58608         * modules/strverscmp-tests: New file.
58609         * tests/test-strverscmp.c: Likewise.
58610
58611 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58612
58613         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58614         regarding Windows crypto stuff, from Mono.
58615
58616 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58617
58618         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58619         if present, for intel RND.  Return error on failures.
58620
58621 2008-08-18  Ben Pfaff  <blp@gnu.org>
58622
58623         gitlog-to-changelog: give better diagnostic for failed pipe-open
58624         * build-aux/gitlog-to-changelog: Improve error message: suggest
58625         that the version of Git may be too old.
58626
58627 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58628
58629         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58630         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58631
58632 2008-08-18  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58635         pthread_in_use().
58636
58637 2008-08-18  Bruno Haible  <bruno@clisp.org>
58638
58639         * lib/glthread/threadlib.c: Include <pthread.h>.
58640
58641 2008-08-18  Bruno Haible  <bruno@clisp.org>
58642
58643         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58644         glthread_recursive_lock_* macros.
58645         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58646         Fix syntax error.
58647
58648 2008-08-18  Bruno Haible  <bruno@clisp.org>
58649
58650         * lib/glthread/thread.c: Avoid forcing a context switch right after
58651         thread creation.
58652
58653 2008-08-17  Bruno Haible  <bruno@clisp.org>
58654
58655         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58656         * lib/glthread/thread.h: Provide Win32 specific implementation.
58657         * modules/thread (Files): Add lib/glthread/thread.c.
58658         (Depends-on): Add lock.
58659         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58660
58661 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58662
58663         New module 'yield'.
58664         * modules/yield: New file.
58665         * lib/glthread/yield.h: New file.
58666         * m4/yield.m4: New file.
58667         * MODULES.html.sh (Multithreading): Add yield.
58668
58669 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58670
58671         New module 'thread'.
58672         * modules/thread: New file.
58673         * lib/glthread/thread.h: New file.
58674         * m4/thread.m4: New file.
58675         * MODULES.html.sh (Multithreading): Add thread.
58676
58677 2008-08-17  Bruno Haible  <bruno@clisp.org>
58678
58679         * lib/glthread/lock.h: Include <stdlib.h> always.
58680         * lib/glthread/tls.h: Likewise.
58681         * lib/glthread/cond.h: Likewise.
58682
58683 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58684
58685         New module 'cond'.
58686         * modules/cond: New file.
58687         * lib/glthread/cond.h: New file.
58688         * lib/glthread/cond.c: New file.
58689         * m4/cond.m4: New file.
58690         * MODULES.html.sh (Multithreading): Add cond.
58691
58692 2008-08-16  Eric Blake  <ebb9@byu.net>
58693
58694         c-stack: fix regression on Irix 5.3 from 2008-06-21
58695         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58696         sa_sigaction...
58697         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58698         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58699         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58700         * modules/signal (Makefile.am): Use the value.
58701         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58702         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58703         * doc/posix-headers/signal.texi (signal.h): Document this
58704         portability issue.
58705         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58706         Reported by Tom G. Christensen.
58707
58708 2008-08-17  Bruno Haible  <bruno@clisp.org>
58709
58710         New module 'threadlib'.
58711         * modules/threadlib: New file.
58712         * lib/glthread/threadlib.c: New file, extracted from
58713         lib/glthread/lock.c.
58714         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58715         functions.
58716         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58717         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58718         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58719         macros.
58720         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58721         (gl_DISABLE_THREADS): Remove macro.
58722         * modules/lock (Files): Remove build-aux/config.rpath.
58723         (Depends-on): Remove havelib. Add threadlib.
58724         (configure.ac-early): Remove section.
58725         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58726         * modules/tls (Depends-on): Remove lock. Add threadlib.
58727         (Link): New section, copied from threadlib.
58728         * MODULES.html.sh (Multithreading): Add threadlib.
58729
58730 2008-08-14  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58733         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58734         glthread_rwlock_unlock, glthread_rwlock_destroy,
58735         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58736         glthread_recursive_lock_destroy): Define as macros always.
58737         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58738         glthread_lock_lock.
58739         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58740         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58741         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58742         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58743         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58744         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58745         (glthread_recursive_lock_lock_func): Renamed from
58746         glthread_recursive_lock_lock.
58747         (glthread_recursive_lock_unlock_func): Renamed from
58748         glthread_recursive_lock_unlock.
58749         (glthread_recursive_lock_destroy_func): Renamed from
58750         glthread_recursive_lock_destroy.
58751
58752 2008-08-14  Bruno Haible  <bruno@clisp.org>
58753
58754         * lib/glthread/lock.h: Renamed from lib/lock.h.
58755         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58756         * lib/glthread/tls.h: Renamed from lib/tls.h.
58757         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58758         * lib/fstrcmp.c: Update includes.
58759         * lib/strsignal.c: Update includes.
58760         * modules/lock (Files, Makefile.am): Update.
58761         (Include): Change to "glthread/lock.h".
58762         * modules/tls (Files, Makefile.am): Update.
58763         (Include): Change to "glthread/tls.h".
58764         * tests/test-lock.c: Update includes.
58765         * tests/test-tls.c: Update includes.
58766         * NEWS: Mention the renamed header files.
58767
58768 2008-08-11  Jim Meyering  <meyering@redhat.com>
58769
58770         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58771
58772 2008-08-11  Eric Blake  <ebb9@byu.net>
58773
58774         test-c-stack: avoid C99-ism
58775         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58776         before statement.
58777         Reported by Alain Guibert.
58778
58779 2008-08-10  Jim Meyering  <meyering@redhat.com>
58780
58781         ensure that return value of uinttostr et al are not ignored
58782         * lib/inttostr.h (__GNUC_PREREQ): Define.
58783         (__attribute_warn_unused_result__): Define.
58784         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58785
58786 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58787
58788         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58789         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58790
58791 2008-08-07  Jim Meyering  <meyering@redhat.com>
58792
58793         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58794
58795         * modules/mkstemp (License): Relicense under LGPLv2+.
58796         * modules/tempname (License): Likewise.
58797
58798 2008-08-06  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/poll.c (poll): Further micro-optimization.
58801
58802 2008-08-06  Jim Meyering  <meyering@redhat.com>
58803
58804         inet_pton.c: use locale-independent tolower
58805         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58806         (inet_pton6): Use c_tolower rather than tolower.
58807         * modules/inet_pton (Depends-on): Add c-ctype.
58808
58809 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58810
58811         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58812         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58813
58814 2008-08-06  Jim Meyering  <meyering@redhat.com>
58815
58816         * modules/inet_pton (License): Relicense under LGPLv2+.
58817
58818 2008-08-03  Bruno Haible  <bruno@clisp.org>
58819
58820         Additional non-aborting API for lock and tls.
58821         * lib/lock.h: Include <errno.h>.
58822         (glthread_lock_init): New macro/function.
58823         (gl_lock_init): Define as wrapper around glthread_lock_init.
58824         (glthread_lock_lock): New macro/function.
58825         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58826         (glthread_lock_unlock): New macro/function.
58827         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58828         (glthread_lock_destroy): New macro/function.
58829         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58830         (glthread_rwlock_init): New macro/function.
58831         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58832         (glthread_rwlock_rdlock): New macro/function.
58833         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58834         (glthread_rwlock_wrlock): New macro/function.
58835         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58836         (glthread_rwlock_unlock): New macro/function.
58837         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58838         (glthread_rwlock_destroy): New macro/function.
58839         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58840         (glthread_recursive_lock_init): New macro/function.
58841         (gl_recursive_lock_init): Define as wrapper around
58842         glthread_recursive_lock_init.
58843         (glthread_recursive_lock_lock): New macro/function.
58844         (gl_recursive_lock_lock): Define as wrapper around
58845         glthread_recursive_lock_lock.
58846         (glthread_recursive_lock_unlock): New macro/function.
58847         (gl_recursive_lock_unlock): Define as wrapper around
58848         glthread_recursive_lock_unlock.
58849         (glthread_recursive_lock_destroy): New macro/function.
58850         (gl_recursive_lock_destroy): Define as wrapper around
58851         glthread_recursive_lock_destroy.
58852         (glthread_once): New macro/function.
58853         (gl_once): Define as wrapper around glthread_once.
58854         Update function declarations.
58855         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58856         glthread_rwlock_init. Return error code.
58857         (glthread_rwlock_rdlock_multithreaded): Renamed from
58858         glthread_rwlock_rdlock. Return error code.
58859         (glthread_rwlock_wrlock_multithreaded): Renamed from
58860         glthread_rwlock_wrlock. Return error code.
58861         (glthread_rwlock_unlock_multithreaded): Renamed from
58862         glthread_rwlock_unlock. Return error code.
58863         (glthread_rwlock_destroy_multithreaded): Renamed from
58864         glthread_rwlock_destroy. Return error code.
58865         (glthread_recursive_lock_init_multithreaded): Renamed from
58866         glthread_recursive_lock_init. Return error code.
58867         (glthread_recursive_lock_lock_multithreaded): Renamed from
58868         glthread_recursive_lock_lock. Return error code.
58869         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58870         glthread_recursive_lock_unlock. Return error code.
58871         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58872         glthread_recursive_lock_destroy. Return error code.
58873         (glthread_once_call): Make static.
58874         (glthread_once_multithreaded): Renamed from glthread_once.
58875         * lib/tls.h: Include <errno.h>.
58876         (glthread_tls_key_init): New macro/function.
58877         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58878         (glthread_tls_set): New macro/function.
58879         (gl_tls_set): Define as wrapper around glthread_tls_set.
58880         (glthread_tls_key_destroy): New macro/function.
58881         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58882         Update function declarations.
58883         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58884         glthread_tls_get.
58885         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58886
58887 2008-08-04  Eric Blake  <ebb9@byu.net>
58888
58889         gnumakefile: use space, not TAB, outside of targets
58890         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58891
58892 2008-08-02  Jim Meyering  <meyering@redhat.com>
58893
58894         getdate.y: avoid locale-dependent date parsing failure
58895         In Turkish locales, getdate would fail to recognize keywords
58896         containing a lowercase "i".  The solution is not to rely on
58897         locale-sensitive case-conversion.
58898         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58899         (lookup_word): Use c_toupper in place of toupper.
58900         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58901         Reported by Vefa Bicakci <bicave@superonline.com> in
58902         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58903         * modules/getdate (Depends-on): Add c-ctype.
58904
58905 2008-08-02  Bruno Haible  <bruno@clisp.org>
58906
58907         * gnulib-tool (func_import): When updating or creating a .gitignore
58908         file, prepend each added line with a slash, and ignore leading slashes
58909         from the existing lines.
58910         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58911
58912 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58913
58914         Portability fix for GNU make 3.79.1.
58915         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58916         versions do not understand.
58917
58918 2008-08-01  Bruno Haible  <bruno@clisp.org>
58919
58920         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58921         * tests/test-isnanf.h (zero): New variable.
58922         (main): Avoid literal -0.0f.
58923         * tests/test-isnand.h (zero): New variable.
58924         (main): Avoid literal -0.0.
58925         * tests/test-isnanl.h (zero): New variable.
58926         (main): Avoid literal -0.0L.
58927         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58928         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58929         -0.0, -0.0L.
58930         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58931         (test_signbitd): Avoid literal -0.0.
58932         (test_signbitl): Avoid literal -0.0L.
58933         * tests/test-ceilf1.c (zero): New variable.
58934         (main): Avoid literal -0.0f.
58935         * tests/test-ceill.c (zero): New variable.
58936         (main): Avoid literal -0.0L.
58937         * tests/test-floorf1.c (zero): New variable.
58938         (main): Avoid literal -0.0f.
58939         * tests/test-floorl.c (zero): New variable.
58940         (main): Avoid literal -0.0L.
58941         * tests/test-roundf1.c (zero): New variable.
58942         (main): Avoid literal -0.0f.
58943         * tests/test-round1.c (zero): New variable.
58944         (main): Avoid literal -0.0.
58945         * tests/test-roundl.c (zero): New variable.
58946         (main): Avoid literal -0.0L.
58947         * tests/test-truncf1.c (zero): New variable.
58948         (main): Avoid literal -0.0f.
58949         * tests/test-trunc1.c (zero): New variable.
58950         (main): Avoid literal -0.0.
58951         * tests/test-truncl.c (zero): New variable.
58952         (main): Avoid literal -0.0L.
58953         * tests/test-frexp.c (zero): New variable.
58954         (main): Avoid literal -0.0.
58955         * tests/test-frexpl.c (zero): New variable.
58956         (main): Avoid literal -0.0L.
58957         * tests/test-ldexpl.c (zero): New variable.
58958         (main): Avoid literal -0.0L.
58959         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58960         (zerod, zerol): New variables.
58961         (test_function): Avoid literals -0.0, -0.0L.
58962         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58963         (zerod, zerol): New variables.
58964         (test_function): Avoid literals -0.0, -0.0L.
58965         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58966         (zerod, zerol): New variables.
58967         (test_function): Avoid literals -0.0, -0.0L.
58968         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58969         (zerod, zerol): New variables.
58970         (test_function): Avoid literals -0.0, -0.0L.
58971         * tests/test-strtod.c (zero): New variable.
58972         (main): Avoid literal -0.0.
58973         Reported by Jonathan C. Patschke <jp@centtech.com>.
58974
58975 2008-07-31  Jim Meyering  <meyering@redhat.com>
58976
58977         sha256.h: correct definition of SHA224_DIGEST_SIZE
58978         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58979         Reported by Paulie Pena IV <paulie4@gmail.com>.
58980         Define as 224 / 8, rather than as a literal.
58981         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58982         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58983         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58984
58985 2008-07-31  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58988         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58989         Reported by Jonathan Patschke <jp@centtech.com>.
58990
58991 2008-07-31  Bruno Haible  <bruno@clisp.org>
58992
58993         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58994         Reported by Paolo Bonzini <bonzini@gnu.org>.
58995
58996 2008-07-30  Eric Blake  <ebb9@byu.net>
58997
58998         test-strtod: allow compilation without -lm
58999         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59000         Reported by Dennis Clarke <blastwave@gmail.com>.
59001
59002 2008-07-28  Jim Meyering  <meyering@redhat.com>
59003
59004         bootstrap: work also when there are no .po files in po/
59005         * build-aux/bootstrap (update_po_files): Complete the change
59006         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59007
59008 2008-07-27  Jim Meyering  <meyering@redhat.com>
59009
59010         * users.txt: Add zile.
59011
59012 2008-07-26  Ben Pfaff  <blp@gnu.org>
59013
59014         Add missing dependencies on new m4/exponent[fdl].m4 files.
59015         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59016         * modules/isnand-nolibm: Add m4/exponentd.m4.
59017         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59018         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59019         m4/isnan[fdl].m4, because the macros actually used moved.
59020         Reported by Jim Meyering.
59021
59022 2008-07-14  Ben Pfaff  <blp@gnu.org>
59023
59024         Add isinf module.
59025         * lib/isinf.c: New file.
59026         * lib/math.in.h: Define isinf macro if we have decided to replace
59027         it.
59028         * m4/isinf.m4: New file.
59029         * m4/math_h.m4: Initialize and substitute variables for isinf
59030         module.
59031         * modules/isinf: New file.
59032         * modules/isinf-tests: New file.
59033         * modules/math: Add substitutions for new module.
59034         * tests/test-isinf.c: New file.
59035         * doc/posix-functions/isinf.texi: Mention new module.
59036         * MODULES.html.sh: Mention new module.
59037
59038 2008-07-14  Ben Pfaff  <blp@gnu.org>
59039
59040         Factor out some macros for use by additional modules.
59041         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59042         exponentf.m4.
59043         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59044         exponentd.m4.
59045         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59046         file exponentl.m4.
59047         * m4/exponentf.m4: New file.
59048         * m4/exponentd.m4: New file.
59049         * m4/exponentl.m4: New file.
59050         * modules/isnanf: Use new file m4/exponentf.m4.
59051         * modules/isnand: Use new file m4/exponentd.m4.
59052         * modules/isnanl: Use new file m4/exponentl.m4.
59053
59054 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59055
59056         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59057         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59058         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59059         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59060
59061         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59062         readlink on platforms without PATH_MAX.
59063
59064 2008-07-21  Eric Blake  <ebb9@byu.net>
59065
59066         Warn, not fail, on stale version.
59067         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59068
59069         Don't allow installation with stale devel version number.
59070         * top/GNUmakefile (_is-install-target): New macro.
59071         (_curr-ver): Forbid installation with stale version number.
59072
59073 2008-07-20  Bruno Haible  <bruno@clisp.org>
59074
59075         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59076         TESTS_ENVIRONMENT.
59077         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59078
59079 2008-07-20  Bruno Haible  <bruno@clisp.org>
59080
59081         * lib/c-stack.h (c_stack_action): Add documentation.
59082         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59083
59084 2008-07-20  Bruno Haible  <bruno@clisp.org>
59085
59086         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59087         * modules/readlink (License): Likewise.
59088
59089 2008-07-17  Eric Blake  <ebb9@byu.net>
59090
59091         * modules/c-stack (Link): Fix typo.
59092
59093         Make c-stack use libsigsegv, when available.
59094         * modules/c-stack (Depends-on): Add libsigsegv.
59095         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59096         needed.
59097         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59098         (segv_handler, overflow_handler, c_stack_action)
59099         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59100         implementation when libsigsegv is available, but only when using
59101         the library is necessary.
59102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59103         comment, explaining why XSI check fails on Linux.
59104         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59105         * tests/test-c-stack2.sh: Tweak skip message.
59106         * NEWS: Document new link-time requirements.
59107
59108 2008-07-16  Eric Blake  <ebb9@byu.net>
59109
59110         c-stack: Expose false positives when not using libsigsegv.
59111         * modules/c-stack-tests (Files): Expand test.
59112         * tests/test-c-stack.c (main): Add means to conditionally trigger
59113         non-overflow SIGSEGV.
59114         * tests/test-c-stack2.sh: New file.
59115
59116 2008-07-14  Bruno Haible  <bruno@clisp.org>
59117
59118         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59119         Reported by Eric Blake.
59120
59121 2008-07-14  Sam Steingold  <sds@gnu.org>
59122             Bruno Haible  <bruno@clisp.org>
59123
59124         New module libsigsegv.
59125         * modules/libsigsegv: New file.
59126         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59127         modifications.
59128         * MODULES.html.sh (Signal handling): New section.
59129
59130 2008-07-14  Bruno Haible  <bruno@clisp.org>
59131
59132         * modules/unictype/ctype-* (Description): Add the word "function".
59133         Improves the resulting doc in MODULES.html.
59134
59135 2008-07-12  Ben Pfaff  <blp@gnu.org>
59136
59137         Add longlong module.
59138         * modules/longlong: New file.
59139
59140 2008-07-12  Bruno Haible  <bruno@clisp.org>
59141
59142         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59143         to empty.
59144
59145 2008-07-10  Ben Pfaff  <blp@gnu.org>
59146
59147         Add isnan module.
59148         * doc/posix-functions/isnan.texi: Mention new module.
59149         * lib/math.in.h: Define isnan macro if we have decided to replace
59150         it.
59151         * m4/isnan.m4: New file.
59152         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59153         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59154         also.
59155         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59156         redundancy.
59157         * m4/math_h.m4: Initialize and substitute variables for isnan
59158         module.
59159         * modules/isnan: New file.
59160         * modules/isnan-tests: New file.
59161         * modules/math: Add substitutions for new module.
59162         * tests/test-isnan.c: New file.
59163         * MODULES.html.sh: Mention new module.
59164
59165 2008-07-10  Ben Pfaff  <blp@gnu.org>
59166
59167         Add isnanf module.
59168         * lib/isnanf.m4: New file.
59169         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59170         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59171         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59172         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59173         * modules/isnanf: New file.
59174         * modules/isnanf-tests: New file.
59175         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59176         files.
59177         * tests/test-isnanf-nolibm.c: factored most of its contents into
59178         new file tests/test-isnanf.h.
59179         * tests/test-isnanf.h: New file.
59180         * tests/test-isnanf.c: New file.
59181         * MODULES.html.sh: Mention new module.
59182         * doc/glibc-functions/isnanf.texi: Mention new module.
59183
59184 2008-07-10  Ben Pfaff  <blp@gnu.org>
59185
59186         Add isnand module.
59187         * lib/isnand.h: New file.
59188         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59189         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59190         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59191         functionality also.
59192         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59193         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59194         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59195         * modules/isnand: New file.
59196         * modules/isnand-tests: New file.
59197         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59198         files.
59199         * tests/test-isnand-nolibm.c: factored most of its contents into
59200         new file tests/test-isnand.h.
59201         * tests/test-isnand.h: New file.
59202         * tests/test-isnand.c: New file.
59203         * MODULES.html.sh: Mention new module.
59204
59205 2008-07-10  Ben Pfaff  <blp@gnu.org>
59206
59207         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59208         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59209         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59210         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59211         * modules/isnanf-nolibm: Update references to renamed files.
59212         * modules/isnand-nolibm: Likewise.
59213         * modules/isnanf-nolibm-tests: Likewise.
59214         * modules/isnand-nolibm-tests: Likewise.
59215         * lib/frexp.c: Likewise.
59216         * lib/isfinite.c: Likewise.
59217         * lib/signbitd.c: Likewise.
59218         * lib/signbitf.c: Likewise.
59219         * lib/vasnprintf.c: Likewise.
59220         * tests/test-ceilf1.c: Likewise.
59221         * tests/test-ceilf2.c: Likewise.
59222         * tests/test-floorf1.c: Likewise.
59223         * tests/test-floorf2.c: Likewise.
59224         * tests/test-frexp.c: Likewise.
59225         * tests/test-round1.c: Likewise.
59226         * tests/test-round2.c: Likewise.
59227         * tests/test-roundf1.c: Likewise.
59228         * tests/test-strtod.c: Likewise.
59229         * tests/test-trunc1.c: Likewise.
59230         * tests/test-trunc2.c: Likewise.
59231         * tests/test-truncf1.c: Likewise.
59232         * tests/test-truncf2.c: Likewise.
59233         * NEWS: Mention the renamed header files.
59234
59235 2008-07-11  Jim Meyering  <meyering@redhat.com>
59236
59237         vc-list-files: make the last-resort awk code more portable
59238         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59239         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59240         does not support it.
59241
59242 2008-07-10  Eric Blake  <ebb9@byu.net>
59243
59244         Work with tar's bootstrap.
59245         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59246         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59247         an m4 comment.
59248
59249 2008-07-09  Jim Meyering  <meyering@redhat.com>
59250
59251         posix-shell.m4: fix typo that made this test malfunction
59252         * m4/posix-shell.m4: Remove capitalization in variable name.
59253
59254 2008-07-08  Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/onceonly.m4: Update comments.
59257         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59258
59259 2008-07-04  Jim Meyering  <meyering@redhat.com>
59260
59261         * users.txt: Add vc-dwim.
59262         (bison, coreutils): Use the gitweb URL.
59263
59264 2008-07-03  Jim Meyering  <meyering@redhat.com>
59265
59266         * users.txt: Add libffcall.  From Sam Steingold.
59267
59268 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59269
59270         getdate.y: do not ignore TZ with relative day, month or year offset
59271         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59272         relative-date-handling, since otherwise, the latter would clobber the
59273         sole output (an updated Start value) of the tz-handling block.
59274         * tests/test-getdate.c: Tests for the fix
59275
59276 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59277
59278         Recognize 'foo_LIBRARIES += libgnu.a'.
59279         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59280         makefile snippet has already specified an installation location,
59281         also using '+='.
59282
59283 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59284
59285         getdate.y: factor out common actions
59286         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59287         Use them in place of open-coded actions.
59288
59289 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59290
59291         Add self-test for getdate module.
59292         * modules/getdate-tests: New file.
59293         * tests/test-getdate.c: New file.
59294
59295 2008-06-29  Bruno Haible  <bruno@clisp.org>
59296
59297         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59298         .gitignore.
59299         Reported by Sylvain Beucler <beuc@beuc.net>.
59300
59301 2008-06-29  Bruno Haible  <bruno@clisp.org>
59302
59303         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59304         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59305
59306 2008-06-29  Bruno Haible  <bruno@clisp.org>
59307
59308         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59309         EXTRA_DIST.
59310         Reported by Sylvain Beucler <beuc@beuc.net>.
59311
59312 2008-06-26  Jim Meyering  <meyering@redhat.com>
59313
59314         make several modules depend on the "open" module
59315         This provides slightly increased consistency when opening-for-write
59316         the name of a non-directory spelled with a trailing slash.
59317         * modules/chdir-safer: Likewise.
59318         * modules/chown: Likewise.
59319         * modules/clean-temp: Likewise.
59320         * modules/copy-file: Likewise.
59321         * modules/fchdir: Likewise.
59322         * modules/fcntl-safer: Likewise.
59323         * modules/pipe: Likewise.
59324         * modules/utime: Likewise.
59325         Prompted by Eric Blake and Bruno Haible.
59326
59327 2008-06-24  Andreas Schwab  <schwab@suse.de>
59328
59329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59330         literals can be used as initializers for global variables.
59331
59332 2008-06-23  Eric Blake  <ebb9@byu.net>
59333
59334         Make gnulib-cache.m4 easier to diff.
59335         * gnulib-tool (func_import): Allow newlines when reading cached
59336         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59337
59338 2008-06-23  Bruno Haible  <bruno@clisp.org>
59339
59340         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59341         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59342         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59343         m4/signalblocking.m4.
59344         (gl_PREREQ_SIGACTION): Don't invoke it.
59345         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59346         gl_PREREQ_SIG_HANDLER_H.
59347         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59348         Don't check for sigaction here.
59349
59350 2008-06-23  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59353         (install_handlers): Don't set the SA_RESETHAND flag.
59354
59355 2008-06-23  Bruno Haible  <bruno@clisp.org>
59356
59357         * m4/sigaction.m4: Comment fixes.
59358         * lib/signal.in.h: Likewise.
59359
59360 2008-06-23  Eric Blake  <ebb9@byu.net>
59361
59362         Fix typo.
59363         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59364
59365         Avoid SA_ namespace.
59366         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59367         Reported by Ralf Wildenhues.
59368
59369         Avoid test failure due to SA_RESTORER.
59370         * tests/test-sigaction.c (SA_MASK): New macro.
59371         (main): Avoid failing due to extension flags being set.
59372         Reported by Jim Meyering.
59373
59374         Revert use of sig-handler.h in sigprocmask.c.
59375         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59376         it requires the existence of struct sigaction.
59377         * lib/sigprocmask.c (handler_t): Restore typedef.
59378         (rpl_signal, old_handlers): Use local type.
59379
59380 2008-06-22  Bruno Haible  <bruno@clisp.org>
59381
59382         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59383         conditionally.
59384         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59385
59386 2008-06-22  Bruno Haible  <bruno@clisp.org>
59387
59388         * doc/posix-functions/siginterrupt.texi: Move note.
59389
59390         * lib/signal.in.h (SA_RESTART): New macro.
59391         * lib/sigaction.c: Update comment.
59392
59393         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59394
59395         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59396         (gl_PREREQ_SIGPROCMASK): Invoke it.
59397         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59398
59399         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59400
59401         * lib/sigprocmask.c: Update a comment.
59402
59403 2008-06-21  Eric Blake  <ebb9@byu.net>
59404
59405         Use sigaction module rather than signal().
59406         * modules/c-stack (Depends-on): Add sigaction.
59407         * modules/fatal-signal (Depends-on): Likewise.
59408         * modules/nanosleep (Depends-on): Likewise.
59409         * modules/sigprocmask (Files): Add sig-handler.h.
59410         * modules/sigaction (Files): Likewise.
59411         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59412         Eggert.
59413         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59414         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59415         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59416         (init_fatal_signals): Likewise.
59417         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59418         (siginterrupt): Delete fallback.
59419         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59420         instead.
59421         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59422         siginterrupt.
59423
59424         New module sigaction, for mingw.
59425         * modules/sigaction: New module...
59426         * modules/sigaction-tests: ...and its test.
59427         * m4/sigaction.m4: New file.
59428         * lib/sigaction.c: Likewise.
59429         * tests/test-sigaction.c: Likewise.
59430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59431         * modules/signal (Makefile.am): Likewise.
59432         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59433         needed.
59434         * doc/posix-headers/signal.texi (signal.h): Mention provided
59435         types.
59436         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59437         that sigaction is preferable.
59438         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59439         module.
59440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59441         sigaction.
59442
59443         Improve robustness of sigprocmask by overriding signal.
59444         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59445         is in use.
59446         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59447         (SIGKILL, SIGSTOP): Provide fallbacks.
59448         (rpl_signal): Implement.
59449         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59450         signal can be called inside handlers.
59451
59452         Fix nanosleep module on mingw.
59453         * modules/nanosleep (Depends-on): Add sys_select.
59454         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59455
59456         Fix licensing of sigprocmask.
59457         * modules/raise (License): Relicense as LGPL.
59458
59459 2008-06-21  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59462         result if it contains question marks.
59463         Reported by Michael Geng <linux@michaelgeng.de>.
59464
59465 2008-06-19  Bruno Haible  <bruno@clisp.org>
59466
59467         Fix CVS-ism.
59468         * doc/gnulib.texi: Include updated-stamp.texi.
59469         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59470         (updated-stamp.texi): New rule.
59471         (gnulib.info): Depend on it.
59472         * doc/.gitignore: Add updated-stamp.texi.
59473         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59474
59475 2008-06-19  Bruno Haible  <bruno@clisp.org>
59476
59477         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59478         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59479
59480 2008-06-19  Eric Blake  <ebb9@byu.net>
59481
59482         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59483         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59484         Reported by Stepan Kasal.
59485
59486 2008-06-18  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59489         Reported by Eric Blake.
59490
59491 2008-06-18  Eric Blake  <ebb9@byu.net>
59492
59493         Work around cygwin 1.5.25 strsignal bug.
59494         * tests/test-strsignal.c: Allow for const char *.
59495         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59496
59497 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59498
59499         * users.txt: Update URL to article and add author/date
59500         information.
59501
59502 2008-06-17  Bruno Haible  <bruno@clisp.org>
59503
59504         New macro gl_DISABLE_THREADS.
59505         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59506         if the user did not pass --enable-threads or --disable-threads option.
59507         (gl_DISABLE_THREADS): New macro.
59508         Reported by Eric Blake <ebb9@byu.net>.
59509
59510 2008-06-17  Bruno Haible  <bruno@clisp.org>
59511
59512         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59513         when the macro ignores it.
59514         Based on a patch by Eric Blake <ebb9@byu.net>.
59515
59516 2008-06-17  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/tls (License): Change to LGPLv2+.
59519         Reported by Eric Blake.
59520
59521 2008-06-17  Eric Blake  <ebb9@byu.net>
59522
59523         Simplify c-stack prerequisites.
59524         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59526         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59527         check.
59528         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59529         <sys/resource.h>.
59530
59531         Move c-stack test into testsuite.
59532         * modules/c-stack-tests: New file.
59533         * lib/c-stack.c [DEBUG]: Move test program...
59534         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59535         fail test if sigaltstack is lacking.
59536         * tests/test-c-stack.sh: New driver file.
59537
59538 2008-06-16  Eric Blake  <ebb9@byu.net>
59539
59540         Use raise module consistently.
59541         * modules/fatal-signal (Depends-on): Add raise.
59542         * modules/sigprocmask (Depends-on): Likewise.
59543         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59544         * lib/sigprocmask.c (sigprocmask): Likewise.
59545         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59546         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59547
59548         Fix compliance bug in sigpending.
59549         * lib/sigprocmask.c (sigpending): Return pending array via
59550         parameter, not return value.
59551
59552 2008-06-14  Eric Blake  <ebb9@byu.net>
59553
59554         Improve obstack-printf test code.
59555         * tests/test-obstack-printf.c (test_function): Fix comment, and
59556         simplify usage of obstack_* in macros.  Add a test for coverage.
59557         Reported by Bruno Haible.
59558
59559 2008-06-14  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59562         array size as a constant, not as a const variable.
59563         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59564         AC_USE_SYSTEM_EXTENSIONS.
59565         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59566         Test whether the obstack_printf function actually exists.
59567         * modules/obstack-printf (Depends-on): Add extensions.
59568         (Include): Remove obstack.h.
59569         * modules/obstack-printf-posix (Depends-on): Add extensions.
59570         (Include): Remove obstack.h.
59571
59572 2008-06-13  Eric Blake  <ebb9@byu.net>
59573
59574         Add obstack-printf and obstack-printf-posix modules.
59575         * modules/obstack-printf: New file.
59576         * modules/obstack-printf-posix: Likewise.
59577         * MODULES.html.sh (Misc): Mention them.
59578         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59579         Likewise.
59580         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59581         Likewise.
59582         * modules/stdio (Makefile.am): Accomodate new modules.
59583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59584         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59585         Declare.
59586         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59587         functions.
59588         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59589         (gl_REPLACE_OBSTACK_PRINTF): New macros
59590         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59591         * tests/test-obstack-printf.c: New file.
59592         * modules/obstack-printf-tests: Likewise.
59593         * modules/obstack-printf-posix-tests: Likewise.
59594
59595 2008-06-11  Bruno Haible  <bruno@clisp.org>
59596
59597         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59598         * lib/open.c: Include errno.h.
59599         (open): Fail when attempting to write to a file that has a trailing
59600         slash.
59601         * tests/test-open.c (main): Test against trailing slash bug.
59602         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59603
59604 2008-06-10  Bruno Haible  <bruno@clisp.org>
59605
59606         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59607         for $? to work inside the trap command, with various /bin/sh-s.
59608         * tests/test-vc-list-files-cvs.sh: Likewise.
59609
59610 2008-06-10  Bruno Haible  <bruno@clisp.org>
59611
59612         * lib/acl-internal.h: Don't include gettext.h here.
59613         * lib/set-mode-acl.c: Include gettext.h here.
59614         * lib/copy-acl.c: Likewise.
59615
59616 2008-06-10  Bruno Haible  <bruno@clisp.org>
59617
59618         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59619         * lib/wait-process.c (wait_subprocess): Likewise.
59620         * lib/execute.h (execute): Add termsigp argument.
59621         * lib/execute.c (execute): Likewise.
59622         * lib/csharpcomp.c (compile_csharp_using_pnet,
59623         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59624         * lib/csharpexec.c (execute_csharp_using_pnet,
59625         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59626         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59627         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59628         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59629         is_jikes_present): Update.
59630         * lib/javaexec.c (execute_java_class): Update.
59631         * lib/javaversion.c (execute_and_read_line): Update.
59632         * NEWS: Document the changes.
59633         Reported by Eric Blake.
59634
59635 2008-06-10  Eric Blake  <ebb9@byu.net>
59636
59637         Add missing include.
59638         * tests/test-strstr.c (includes): Add <signal.h>.
59639         * tests/test-strcasestr.c (includes): Likewise.
59640         * tests/test-memmem.c (includes): Likewise.
59641
59642 2008-06-10  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/wait-process.c (wait_subprocess): Add an assertion.
59645
59646 2008-06-10  Bruno Haible  <bruno@clisp.org>
59647
59648         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59649
59650 2008-06-10  Bruno Haible  <bruno@clisp.org>
59651
59652         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59653         using alarm().
59654         * tests/test-strcasestr.c (main): Likewise.
59655         * tests/test-strstr.c (main): Likewise.
59656
59657 2008-06-09  Bruno Haible  <bruno@clisp.org>
59658
59659         Work around the Solaris 10 ACE ACLs ABI change.
59660         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59661         declare if ACL_NO_TRIVIAL is present.
59662         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59663         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59664         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59665         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59666         define if ACL_NO_TRIVIAL is present.
59667         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59668         and use the current ABI.
59669         (file_has_acl): Use same #if condition as elsewhere.
59670         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59671         in use, and use the current ABI.
59672         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59673         Reported by Jim Meyering.
59674
59675 2008-06-09  Eric Blake  <ebb9@byu.net>
59676
59677         Work around environments that (stupidly) ignore SIGALRM.
59678         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59679         before using alarm().
59680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59682         Reported by Ian Beckwith <ianb@erislabs.net>.
59683
59684         Produce autobuild blurb earlier in log.
59685         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59686
59687 2008-06-09  Jim Meyering  <meyering@redhat.com>
59688         and Ondřej Vašík  <ovasik@redhat.com>
59689
59690         utimens.c: correct kernel bug work-around
59691         Ondřej Vašík found that the invalid return value of 280 indicates
59692         failure, not success, and the kernel bug we're trying to work
59693         around affects not just the utimensat call, but also the fallback
59694         futimens call.
59695         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59696         not success.
59697         [HAVE_FUTIMENS]: Use the same work-around, here.
59698
59699 2008-06-09  Jim Meyering  <meyering@redhat.com>
59700
59701         add more guards around definition of ACE_-related code
59702         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59703         ALLOW and ACE_OWNER are also defined.
59704
59705 2008-06-08  Bruno Haible  <bruno@clisp.org>
59706
59707         * lib/acl-internal.h: Add me as co-author.
59708         * lib/file-has-acl.c: Likewise.
59709         * lib/set-mode-acl.c: Likewise.
59710         * lib/copy-acl.c: Likewise.
59711
59712 2008-06-08  Bruno Haible  <bruno@clisp.org>
59713
59714         Add support for AIX ACLs.
59715         * lib/acl-internal.h (acl_nontrivial): New declaration.
59716         * lib/file-has-acl.c (acl_nontrivial): New function.
59717         (file_has_acl): Add implementation using AIX 4 ACL API.
59718         * lib/set-mode-acl.c (qset_acl): Likewise.
59719         * lib/copy-acl.c (qcopy_acl): Likewise.
59720
59721 2008-06-08  Bruno Haible  <bruno@clisp.org>
59722
59723         Add support for HP-UX ACLs.
59724         * lib/acl-internal.h (acl_nontrivial): New declaration.
59725         * lib/file-has-acl.c (acl_nontrivial): New function.
59726         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59727         * lib/set-mode-acl.c (qset_acl): Likewise.
59728         * lib/copy-acl.c (qcopy_acl): Likewise.
59729
59730 2008-06-08  Bruno Haible  <bruno@clisp.org>
59731
59732         Add support for Cygwin ACLs.
59733         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59734         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59735         the chmod_or_fchmod call.
59736         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59737
59738 2008-06-08  Bruno Haible  <bruno@clisp.org>
59739
59740         Fix bug with setuid modes in Solaris 10+ code.
59741         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59742         succeeded, when the mode contains some special bits.
59743
59744 2008-06-08  Bruno Haible  <bruno@clisp.org>
59745
59746         Add support for Solaris 7..10 ACLs.
59747         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59748         declarations.
59749         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59750         functions.
59751         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59752         * lib/set-mode-acl.c (qset_acl): Likewise.
59753         * lib/copy-acl.c (qcopy_acl): Likewise.
59754
59755 2008-06-08  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59758         declaration.
59759         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59760         (acl_access_nontrivial): Remove MacOS X case.
59761         (file_has_acl): Use acl_extended_nontrivial.
59762         * lib/copy-acl.c (qcopy_acl): Likewise.
59763
59764 2008-06-08  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59767
59768 2008-06-08  Jim Meyering  <meyering@redhat.com>
59769
59770         * modules/acl (Maintainer): Add Bruno Haible.
59771
59772 2008-06-07  Bruno Haible  <bruno@clisp.org>
59773
59774         Improve support for Tru64 ACLs.
59775         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59776         ACL on OSF/1.
59777
59778 2008-06-07  Bruno Haible  <bruno@clisp.org>
59779
59780         Add support for MacOS X ACLs.
59781         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59782         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59783         * lib/set-mode-acl.c (qset_acl): Likewise.
59784         * lib/copy-acl.c (qcopy_acl): Likewise.
59785
59786 2008-06-07  Bruno Haible  <bruno@clisp.org>
59787
59788         Fix memory leak introduced on 2008-05-22.
59789         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59790         use.
59791
59792 2008-06-07  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59795         to construct an empty ACL.
59796
59797 2008-06-07  Bruno Haible  <bruno@clisp.org>
59798
59799         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59800         precisely.
59801         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59802
59803 2008-06-07  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59806         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59807
59808 2008-06-07  Bruno Haible  <bruno@clisp.org>
59809
59810         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59811         regardless of POSIX.
59812         * doc/posix-functions/_longjmp.texi: Likewise.
59813         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59814         SystemV platform in this case.
59815
59816 2008-06-06  Eric Blake  <ebb9@byu.net>
59817
59818         Document abort() bugs.
59819         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59820
59821         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59822         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59823         sigsetjmp.
59824         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59825         siglongjmp, but only as a macro.
59826         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59827         is obsolete.
59828         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59829
59830         Tweak documentation to cover cygwin argz bugs.
59831         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59832         argz bug fix; no code change needed since no cygwin releases
59833         occurred between the last fix and the bug being tested.
59834         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59835         module and recently fixed cygwin bugs.
59836         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59837         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59838         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59839         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59840         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59841         Likewise.
59842         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59843         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59844         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59845         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59846         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59847         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59848         Likewise.
59849
59850         Avoid gcc warning on cygwin.
59851         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59852         !ACL_NO_TRIVIAL]: Avoid unused variable.
59853
59854 2008-06-05  Eric Blake  <ebb9@byu.net>
59855
59856         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59857         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59858         git-version-gen fails to come up with a version.
59859         Reported by Simon Josefsson.
59860
59861 2008-06-05  Jim Meyering  <meyering@redhat.com>
59862             Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         utimens.c: work around a probable Linux kernel bug
59865         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59866         appears to be a kernel bug that causes utimensat to return 280
59867         instead of 0, indicating success.
59868
59869 2008-06-04  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59872         2008-06-01 commit.
59873
59874 2008-06-04  Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59877         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59878         (file_has_acl): Use it. Save errno afterwards.
59879         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59880
59881 2008-06-03  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59884         draft code. Simplify #ifs.
59885         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59886         Put Solaris code after POSIX-draft code. Fix comments regarding
59887         Solaris 10, HP-UX. Mention Cygwin.
59888         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59889
59890 2008-06-03  Eric Blake  <ebb9@byu.net>
59891
59892         Provide fallback for older kernels.
59893         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59894         Provide runtime fallback if kernel lacks support.
59895         Reported by Mike Frysinger.
59896
59897 2008-06-02  Bruno Haible  <bruno@clisp.org>
59898
59899         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59900         it exists.
59901
59902 2008-06-02  Bruno Haible  <bruno@clisp.org>
59903
59904         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59905         * lib/copy-acl.c (qcopy_acl): Update comment.
59906
59907 2008-06-02  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59910         like ACL APIs.
59911
59912 2008-06-02  Bruno Haible  <bruno@clisp.org>
59913
59914         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59915         * tests/test-set-mode-acl.sh: Likewise.
59916         * tests/test-copy-acl.sh: Likewise.
59917         * tests/test-copy-file.sh: Likewise.
59918
59919 2008-06-02  Bruno Haible  <bruno@clisp.org>
59920
59921         * tests/test-file-has-acl.sh: Remove unused code.
59922
59923 2008-06-01  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59926         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59927         messages.
59928         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59929
59930 2008-06-01  Bruno Haible  <bruno@clisp.org>
59931
59932         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59933         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59934         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59935         APIs.
59936         * modules/acl-tests (configure.ac): Remove tests now contained in
59937         m4/acl.m4.
59938
59939 2008-06-02  Jim Meyering  <meyering@redhat.com>
59940
59941         announce-gen: use a better key-server host name
59942         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59943         it may be more consistently reliable.  Suggested by Werner Koch
59944         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59945
59946 2008-06-01  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59949         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59950
59951 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59952
59953         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59954
59955 2008-06-01  Bruno Haible  <bruno@clisp.org>
59956
59957         New ACL tests.
59958         * tests/test-file-has-acl.sh: New file.
59959         * tests/test-file-has-acl.c: New file.
59960         * tests/test-set-mode-acl.sh: New file.
59961         * tests/test-set-mode-acl.c: New file.
59962         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59963         * tests/test-copy-acl.c: New file.
59964         * modules/acl-tests: New file, based on modules/copy-file-tests.
59965         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59966         (Depends-on): Add acl-tests.
59967         (configure.ac): Remove checks.
59968         (Makefile.am): Don't create test-sameacls program here any more.
59969
59970 2008-06-01  Bruno Haible  <bruno@clisp.org>
59971
59972         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59973         * tests/test-sameacls.c: Include progname.h.
59974         (main): Invoke set_program_name. Portability fixes for MacOS X,
59975         Solaris, HP-UX.
59976
59977 2008-06-01  Bruno Haible  <bruno@clisp.org>
59978
59979         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59980         function.
59981         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59982
59983 2008-06-01  Bruno Haible  <bruno@clisp.org>
59984
59985         * modules/rpmatch (Depends-on): Add strdup.
59986
59987 2008-06-01  Bruno Haible  <bruno@clisp.org>
59988
59989         * lib/pipe.c: Include unistd-safer.h.
59990         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59991         * modules/pipe (Depends-on): Add unistd-safer.
59992
59993 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59994
59995         * modules/autobuild (configure.ac): Call AB_INIT.
59996
59997 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59998
59999         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60000         Suggested by Bruno Haible <bruno@clisp.org>.
60001
60002 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60003
60004         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60005         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60006         <bruno@clisp.org>.
60007
60008 2008-05-29  Eric Blake  <ebb9@byu.net>
60009
60010         Prefer new POSIX 200x interfaces over futimesat.
60011         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60012         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60013         when available.
60014         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60015
60016 2008-05-28  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/stpcpy (License): Change to LGPLv2+.
60019         Requested by David Lutterkort <dlutter@redhat.com>.
60020
60021 2008-05-27  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60024         current mingw.
60025         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60026
60027 2008-05-27  Bruno Haible  <bruno@clisp.org>
60028
60029         * modules/iconv_open (Link): New section, from module 'iconv'.
60030         * modules/striconv (Link): Likewise.
60031         * modules/striconveh (Link): Likewise.
60032         * modules/xstriconv (Link): Likewise.
60033         * modules/unicodeio (Link): Likewise.
60034         * modules/propername (Link): Likewise.
60035         Reported by Jim Meyering.
60036
60037 2008-05-26  Jim Meyering  <meyering@redhat.com>
60038
60039         sha256: do not artificially restrict buffer length to be < 2^32
60040         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60041         uint32_t to size_t.
60042         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60043         to match.
60044
60045         avoid unaligned access errors, e.g., on sparc
60046         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60047         direct access through a possibly-unaligned uint64* pointer.
60048         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60049         direct access through a possibly-unaligned uint32* pointer.
60050         Prompted by this patch from Tom "spot" Callaway:
60051         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60052
60053         sha512.c: fix typo in comment
60054         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60055
60056 2008-05-25  Bruno Haible  <bruno@clisp.org>
60057
60058         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60059         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60060         (Makefile.am): Update lib_SOURCES.
60061
60062 2008-05-25  Bruno Haible  <bruno@clisp.org>
60063
60064         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60065
60066 2008-05-25  Jim Meyering  <meyering@redhat.com>
60067
60068         useless-if-before-free: freed expr may have white-space differences
60069         * build-aux/useless-if-before-free: Recognize cases in which the
60070         freed expression differs from the tested one in embedded white
60071         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60072         $1 was used, so we can't make any regexp shy.  Improved tests now
60073         detect this.
60074
60075         useless-if-before-free: accept white space in the expression.
60076         * build-aux/useless-if-before-free: For now, any white space
60077         in the expression must be identical in the free argument.
60078
60079         useless-if-before-free: efficiency tweak
60080         * build-aux/useless-if-before-free: Make the expression-matching
60081         regexp "shy".
60082         Make the *outer* regexp shy, not the expr-matching one.
60083
60084         update code-in-comment to accept cast of free arg
60085         * build-aux/useless-if-before-free: Update regexp.
60086
60087 2008-05-25  Bruno Haible  <bruno@clisp.org>
60088
60089         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60090         * modules/copy-file-tests (Files, Makefile.am): Update.
60091         * tests/test-copy-file.c (func_test_copy): Update.
60092
60093 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60094
60095         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60096
60097 2008-05-23  Bruno Haible  <bruno@clisp.org>
60098
60099         Improve support for ACLs on OSF/1.
60100         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60101         Remove fallback for unknown flavors of ACLs.
60102
60103 2008-05-22  Bruno Haible  <bruno@clisp.org>
60104
60105         Add support for ACLs on OSF/1.
60106         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60107         replacements.
60108         (acl_free_text): New macro fallback.
60109         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60110         acl_free.
60111         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60112         acl_free_text function. Require AC_C_INLINE.
60113
60114 2008-05-22  Bruno Haible  <bruno@clisp.org>
60115
60116         Make copy_acl work on MacOS X 10.5.
60117         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60118         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60119         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60120         If MODE_INSIDE_ACL, don't assume that every system has the same text
60121         representation for ACLs as FreeBSD.
60122         * lib/copy-acl.c (copy_acl): Add support for platforms with
60123         !MODE_INSIDE_ACL.
60124         * lib/file-has-acl.c (file_has_acl): Likewise.
60125         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60126         FreeBSD, MacOS X, or IRIX, respectively.
60127
60128 2008-05-22  Bruno Haible  <bruno@clisp.org>
60129
60130         * lib/acl.h: Don't include <sys/acl.h>.
60131         (GETACLCNT): Move fallback to lib/acl-internal.h.
60132         * lib/acl-internal.h: Include <sys/acl.h> here.
60133         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60134
60135 2008-05-22  Bruno Haible  <bruno@clisp.org>
60136
60137         Split off copy_acl function to separate file.
60138         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60139         * lib/acl.c (copy_acl): Moved function to separate file.
60140         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60141         * modules/acl (Files): Add lib/copy-acl.c.
60142         (Makefiles.am): Augment lib_SOURCES.
60143
60144 2008-05-22  Bruno Haible  <bruno@clisp.org>
60145
60146         * modules/copy-file-tests: New file.
60147         * tests/test-copy-file.sh: New file.
60148         * tests/test-copy-file.c: New file.
60149         * tests/test-copy-file-sameacls.c: New file.
60150
60151 2008-05-22  Eric Blake  <ebb9@byu.net>
60152
60153         Avoid gcc warning.
60154         * tests/test-memcmp.c (main): Pass NULL indirectly.
60155
60156 2008-05-21  Bruno Haible  <bruno@clisp.org>
60157
60158         Add reference doc about ACLs.
60159         * doc/acl-resources.txt: New file.
60160         * doc/acl-cygwin.txt: New file.
60161
60162 2008-05-21  Bruno Haible  <bruno@clisp.org>
60163
60164         Avoid one more warning from gcc.
60165         * lib/vasnprintf.c (IF_LINT): Update comments.
60166         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60167
60168 2008-05-21  Jim Meyering  <meyering@redhat.com>
60169
60170         avoid a warning from gcc
60171         * lib/vasnprintf.c (IF_LINT): Define.
60172         (scale10_round_decimal_long_double):
60173         Use it to avoid a "may be used uninitialized" warning.
60174         (scale10_round_decimal_double): Likewise.
60175
60176 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60177
60178         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60179         declared.
60180
60181 2008-05-20  Bruno Haible  <bruno@clisp.org>
60182
60183         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60184         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60185
60186 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60187
60188         * modules/memcmp-tests: New file.
60189         * tests/test-memcmp.c: New file.
60190
60191 2008-05-19  Bruno Haible  <bruno@clisp.org>
60192
60193         * modules/propername (Notice, configure.ac): Put quoted "..." into
60194         --keyword option.
60195         * lib/propername.h: Update comments accordingly.
60196         Reported by Eric Blake.
60197
60198 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60199
60200         * modules/getpass-gnu (Depends-on): Add fseeko.
60201
60202 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60203
60204         * modules/base64-tests: New file.
60205
60206 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60207
60208         * lib/base64.c (base64_decode_ctx): If a decode context structure
60209         was passed in use it to ignore newlines.  If a context structure
60210         was _not_ passed in, continue to treat newlines as garbage (this
60211         is the historical behavior).  Formerly base64_decode.
60212         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60213         takes a decode context structure.
60214         * lib/base64.h (base64_decode): Macro for four-argument calls.
60215         (base64_decode_alloc): Likewise.
60216         * lib/base64.c (base64_decode_ctx): If a decode context structure
60217         was passed in use it to ignore newlines.  If a context structure
60218         was _not_ passed in, continue to treat newlines as garbage (this
60219         is the historical behavior).  Formerly base64_decode.
60220         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60221         takes a decode context structure.
60222         * lib/base64.h (base64_decode): Macro for four-argument calls.
60223         (base64_decode_alloc): Likewise.
60224
60225 2008-05-19  Jim Meyering  <meyering@redhat.com>
60226
60227         avoid a warning from gcc
60228         * lib/trim.c (IF_LINT): Define.
60229         (trim2): Use it to avoid a "may be used uninitialized" warning.
60230
60231         Fix doc typo.
60232         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60233
60234 2008-05-19  Bruno Haible  <bruno@clisp.org>
60235
60236         * doc/glibc-functions/getpass.texi: Document limits of other
60237         implementations.
60238
60239 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60240             Bruno Haible <bruno@clisp.org>
60241
60242         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60243
60244 2008-05-18  Bruno Haible  <bruno@clisp.org>
60245
60246         * modules/propername: New file, from GNU gettext.
60247         * lib/propername.h: New file, from GNU gettext.
60248         * lib/propername.c: New file, from GNU gettext.
60249         * MODULES.html.sh (Internationalization functions): Add propername.
60250
60251 2008-05-16  Jim Meyering  <meyering@redhat.com>
60252             Bruno Haible  <bruno@clisp.org>
60253
60254         Avoid some warnings from "gcc -Wshadow".
60255         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60256
60257 2008-05-15  Eric Blake  <ebb9@byu.net>
60258
60259         Extend previous patch to cygwin 1.7.0.
60260         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60261         fast implementation in cygwin >= 1.7.0.
60262         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60264
60265 2008-05-15  Bruno Haible  <bruno@clisp.org>
60266
60267         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60268         implementation in glibc >= 2.9.
60269         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60271
60272 2008-05-15  Bruno Haible  <bruno@clisp.org>
60273
60274         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60275         (Unicode string functions): Add unilbrk/*.
60276         Reported by Karl Berry.
60277
60278 2008-05-15  Eric Blake  <ebb9@byu.net>
60279
60280         Fix violation of <stdbool.h> replacement in regex.
60281         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60282         * lib/regexec.c (re_search_internal): Likewise.
60283         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60284
60285 2008-05-15  Jim Meyering  <meyering@redhat.com>
60286
60287         avoid distracting test output when git or cvs is not found
60288         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60289         * tests/test-vc-list-files-git.sh: Likewise.
60290
60291 2008-05-15  Eric Blake  <ebb9@byu.net>
60292
60293         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60294         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60295         glibc version.
60296         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60297         * doc/posix-functions/strstr.texi (strstr): Likewise.
60298         * lib/str-two-way.h (MAX): Sychronize with glibc.
60299
60300 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60301
60302         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60303         opr.ctx_type.
60304         (calc_first): Initialize constraint field.
60305         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60306         Fix grammar.
60307         (duplicate_node): Merge constraint field for all node types.
60308         (calc_eclosure_iter): Look at constraint field for all node types.
60309         * lib/regex_internal.c (create_cd_newstate): Don't look at
60310         opr.ctx_type.
60311
60312 2008-05-14  Bruno Haible  <bruno@clisp.org>
60313
60314         Help GCC to do better code generation.
60315         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60316         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60317         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60318         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60319         Declare with attribute 'malloc' if supported.
60320
60321 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60322
60323         use "echo STR|wc -c" rather than unportable "expr length STR"
60324         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60325         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60326
60327 2008-05-14  Jim Meyering  <meyering@redhat.com>
60328
60329         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60330         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60331         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60332         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60333         via Collin Lasse.
60334
60335 2008-05-14  Eric Blake  <ebb9@byu.net>
60336
60337         Avoid quadratic growth in gl_LIBSOURCES.
60338         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60339         Suggested by Bruno Haible.
60340
60341         Test xmemdup0.
60342         * modules/xmemdup0-tests: New file.
60343         * tests/test-xmemdup0.c: Likewise.
60344
60345 2008-05-13  Eric Blake  <ebb9@byu.net>
60346
60347         Split xmemdup0 into its own module.
60348         * modules/xmemdup0: New file.
60349         * lib/xmemdup0.h: Likewise.
60350         * lib/xmemdup0.c: Likewise.
60351         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60352         * lib/xalloc.h (xmemdup0): Remove.
60353         * lib/xmalloc.c (xmemdup0): Likewise.
60354
60355 2008-05-13  Eric Blake  <ebb9@byu.net>
60356             Bruno Haible  <bruno@clisp.org>
60357
60358         Reduce number of forks required during autoconf.
60359         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60360         and gl_LIBSOURCES_DIR.
60361         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60362         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60363         m4_syscmd per file.
60364         <m4_foreach_w>: Move...
60365         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60366
60367 2008-05-13  Eric Blake  <ebb9@byu.net>
60368
60369         * gnulib-tool: Fix various comment typos.
60370
60371 2008-05-12  Bruno Haible  <bruno@clisp.org>
60372
60373         Tailor the linebreaking algorithm.
60374         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60375
60376 2008-05-12  Bruno Haible  <bruno@clisp.org>
60377
60378         Update to Unicode 5.0.0.
60379         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60380         LBP_JV, LBP_JT. Redistribute values.
60381         (unilbrk_table): Change size.
60382         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60383         Unicode TR#14 rev. 22.
60384         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60385         LBP_JV, LBP_JT. Redistribute values.
60386         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60387         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60388         Update.
60389         * lib/unilbrk/lbrkprop1.h: Regenerated.
60390         * lib/unilbrk/lbrkprop2.h: Regenerated.
60391         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60392         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60393         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60394         Likewise.
60395         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60396         Likewise.
60397         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60398         result.
60399         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60400         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60401         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60402         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60403         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60404         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60405
60406 2008-05-11  Bruno Haible  <bruno@clisp.org>
60407
60408         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60409
60410 2008-05-11  Bruno Haible  <bruno@clisp.org>
60411
60412         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60413         * modules/unilbrk/gen-lbrk: New file.
60414
60415 2008-05-11  Bruno Haible  <bruno@clisp.org>
60416
60417         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60418         * m4/sha512.m4 (gl_SHA512): Likewise.
60419
60420 2008-05-11  Jim Meyering  <meyering@redhat.com>
60421
60422         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60423         * modules/crypto/sha256: New file.
60424         * modules/crypto/sha512: Likewise.
60425         * lib/sha256.c: Likewise.
60426         * lib/sha256.h: Likewise.
60427         * lib/sha512.c: Likewise.
60428         * lib/sha512.h: Likewise.
60429         * lib/u64.h: Likewise.
60430         * m4/sha256.m4: Likewise.
60431         * m4/sha512.m4: Likewise.
60432         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60433
60434 2008-05-10  Bruno Haible  <bruno@clisp.org>
60435
60436         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60437         (Input/Output <stdio.h>): Add xprintf.
60438         (Signal handling <signal.h>): Add strsignal.
60439         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60440         (Core language properties): Add func.
60441         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60442         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60443         strings.
60444         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60445         (Input/output): New section.
60446         (File system functions): Add openat-die, stat-macros.
60447         (Networking functions): Add sockets.
60448         (Unicode string functions): Add unictype/*.
60449         (Support for building libraries and executables): Add gperf.
60450         (Support for building documentation): Add agpl-3.0.
60451         (Misc): Add nocrash.
60452
60453 2008-05-10  Bruno Haible  <bruno@clisp.org>
60454
60455         * modules/unictype/gen-ctype: New file.
60456
60457 2008-05-10  Jim Meyering  <meyering@redhat.com>
60458
60459         Make chdir-safer.c more efficient on a system with no symlinks.
60460         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60461         also if ELOOP is zero.  Suggested by Bruno Haible.
60462
60463         Make chdir-safer.c slightly safer.
60464         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60465         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60466
60467         Avoid compile failure on systems without ELOOP (like mingw).
60468         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60469         Reported by Bruno Haible.
60470
60471 2008-05-10  Bruno Haible  <bruno@clisp.org>
60472
60473         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60474         (is_utf8_encoding): Use a case-insensitive comparison.
60475         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60476         streq.
60477
60478 2008-05-10  Bruno Haible  <bruno@clisp.org>
60479
60480         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60481         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60482         * lib/unilbrk/ulc-common.h (iconv_string_length,
60483         iconv_string_keeping_offsets): Remove declarations.
60484         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60485         Don't include <iconv.h>, streq.h, xsize.h.
60486         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60487         conversion.
60488         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60489         <iconv.h>, streq.h, xsize.h.
60490         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60491         conversion.
60492         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60493         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60494         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60495         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60496
60497 2008-05-10  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60500         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60501
60502         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60503         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60504
60505         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60506         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60507
60508         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60509         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60510
60511         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60512         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60513
60514         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60515         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60516
60517         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60518         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60519
60520         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60521         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60522
60523 2008-05-10  Bruno Haible  <bruno@clisp.org>
60524
60525         Split up 'linebreak' module.
60526         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60527         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60528         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60529         modifications.
60530         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60531         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60532         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60533         lib/linebreak.c.
60534         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60535         lib/linebreak.c.
60536         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60537         lib/linebreak.c.
60538         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60539         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60540         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60541         lib/linebreak.c.
60542         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60543         lib/linebreak.c.
60544         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60545         lib/linebreak.c.
60546         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60547         lib/linebreak.c.
60548         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60549         lib/linebreak.c.
60550         * modules/unilbrk/base: New file.
60551         * modules/unilbrk/tables: New file.
60552         * modules/unilbrk/u8-possible-linebreaks: New file.
60553         * modules/unilbrk/u16-possible-linebreaks: New file.
60554         * modules/unilbrk/u32-possible-linebreaks: New file.
60555         * modules/unilbrk/ulc-common: New file.
60556         * modules/unilbrk/ulc-possible-linebreaks: New file.
60557         * modules/unilbrk/u8-width-linebreaks: New file.
60558         * modules/unilbrk/u16-width-linebreaks: New file.
60559         * modules/unilbrk/u32-width-linebreaks: New file.
60560         * modules/unilbrk/ulc-width-linebreaks: New file.
60561         * lib/linebreak.h: Remove file.
60562         * lib/linebreak.c: Remove file.
60563         * m4/linebreak.m4: Remove file.
60564         * modules/linebreak: Remove file.
60565         * NEWS: Mention the changes.
60566
60567 2008-05-09  Eric Blake  <ebb9@byu.net>
60568
60569         Add xmemdup0.
60570         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60571         implementation.
60572         * lib/xmalloc.c (xmemdup0): New C implementation.
60573
60574 2008-05-08  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60577
60578 2008-05-07  Eric Blake  <ebb9@byu.net>
60579
60580         Support cross-compilation of <wctype.h>.
60581         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60582         AC_CACHE_CHECK.
60583
60584 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60585
60586         * build-aux/vc-list-files: Add support for bzr.
60587
60588 2008-05-03  Jim Meyering  <meyering@redhat.com>
60589
60590         avoid failed assertion with tight malloc
60591         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60592
60593 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60594
60595         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60596         are needed from arpa/inet.h.
60597         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60598         Reported by Bruno Haible.
60599
60600 2008-05-02  Jim Meyering  <meyering@redhat.com>
60601
60602         avoid compilation error on FreeBSD 6
60603         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60604
60605 2008-05-01  Jim Meyering  <meyering@redhat.com>
60606
60607         useless-if-before-free: correct --help's exit status description
60608         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60609         for one or more matches, etc.  Reported by Bruno Haible.
60610
60611         vc-list-files: make the stand-alone gnulib test work
60612         * modules/vc-list-files-tests (configure.ac):
60613         Define and AC_SUBST abs_aux_dir.
60614         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60615         $(abs_top_srcdir) to each script and having each of them
60616         duplicate the work of setting PATH, set PATH here, using
60617         the new variable, abs_aux_dir instead.
60618         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60619         * tests/test-vc-list-files-git.sh: Likewise.
60620         Reported by Bruno Haible.
60621
60622 2008-05-01  Bruno Haible  <bruno@clisp.org>
60623
60624         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60625         reallocation. Rename 'done' to 'found_delimiter'.
60626
60627 2008-05-01  Jim Meyering  <meyering@redhat.com>
60628
60629         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60630         * build-aux/vc-list-files: Use `...`, not $(...).
60631
60632 2008-04-30  Jim Meyering  <meyering@redhat.com>
60633
60634         add tests for vc-list-files
60635         * modules/vc-list-files-tests: New module.
60636         * tests/test-vc-list-files-cvs.sh: New file.
60637         * tests/test-vc-list-files-git.sh: New file.
60638
60639         avoid a warning from gcc
60640         * lib/getndelim2.c (IF_LINT): Define.
60641         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60642
60643         vc-list-files: work properly with build-aux/cvsu, too
60644         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60645         to all cvs-based clauses.
60646
60647         vc-list-files: work properly in the CVS+awk case, too
60648         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60649
60650         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60651         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60652         take more than one file argument, so .  Add quotes, just in case $dir
60653         ever contains a shell meta-character.  Prompted by Soren Hansen in
60654         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60655
60656 2008-04-29  Eric Blake  <ebb9@byu.net>
60657
60658         Optimize getndelim2 to use block operations when possible.
60659         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60660         freadseek, and memchr2.
60661         * lib/getndelim2.c (getndelim2): Use them for block reads.
60662
60663 2008-04-29  Bruno Haible  <bruno@clisp.org>
60664
60665         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60666         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60667         * modules/inet_ntop (Depends-on): Add extensions.
60668         * modules/inet_pton (Depends-on): Likewise.
60669         Reported by Simon Josefsson.
60670
60671 2008-04-29  Jim Meyering  <meyering@redhat.com>
60672
60673         When the is more than one match in a block, match all of them.
60674         * build-aux/useless-if-before-free: Iterate through each block
60675         until there are no more matches.
60676
60677         Fix broken useless-if-before-free script.
60678         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60679         the expression to match cast of argument to free-like function.
60680
60681 2008-04-29  Eric Blake  <ebb9@byu.net>
60682
60683         Use new header.
60684         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60685
60686 2008-04-29  Jim Meyering  <meyering@redhat.com>
60687
60688         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60689         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60690         by gnulib to exist and to declare e.g., inet_ntop.
60691         Don't include "inet_ntop.h", now removed.
60692
60693         * m4/arpa_inet_h.m4: Remove trailing blanks.
60694
60695 2008-04-29  Eric Blake  <ebb9@byu.net>
60696
60697         Silence valgrind on safe reads beyond potential array bounds.
60698         * lib/rawmemchr.valgrind: New file.
60699         * lib/strchrnul.valgrind: Likewise.
60700         * modules/rawmemchr (Files): Distribute new file.
60701         * modules/strchrnul (Files): Likewise.
60702         Suggested by Bruno Haible.
60703
60704 2008-04-29  Bruno Haible  <bruno@clisp.org>
60705
60706         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60707         (inet_ntop, inet_pton): Change portability warning's wording.
60708         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60709         Invoke gl_CHECK_NEXT_HEADERS.
60710         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60711         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60712         set ARPA_INET_H.
60713         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60714         * modules/arpa_inet (Description): No longer only for systems that
60715         lack it.
60716         (Depends-on): Add include_next.
60717         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60718         HAVE_ARPA_INET_H.
60719
60720 2008-04-29  Jim Meyering  <meyering@redhat.com>
60721
60722         * modules/mkdir (License): Re-license as LGPLv2+.
60723
60724 2008-04-29  Bruno Haible  <bruno@clisp.org>
60725
60726         * modules/rawmemchr (Maintainer): Set to Eric.
60727         * modules/strchrnul (Maintainer): Likewise.
60728
60729 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60730
60731         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60732         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60733
60734         * modules/arpa_inet (arpa/inet.h): Use them.
60735
60736 2008-04-28  Eric Blake  <ebb9@byu.net>
60737
60738         Test getndelim2.
60739         * modules/getndelim2-tests: New file.
60740         * tests/test-getndelim2.c: Likewise.
60741         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60742         stream.
60743         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60744
60745         * MODULES.html.sh: Document new module.
60746
60747 2008-04-20  Bruno Haible  <bruno@clisp.org>
60748
60749         * lib/c-stack.c (die): Use raise.
60750         * modules/c-stack (Depends-on): Add raise.
60751
60752 2008-04-28  Bruno Haible  <bruno@clisp.org>
60753
60754         Expect rpmatch to be declared.
60755         * lib/yesno.c (rpmatch): Remove declaration.
60756
60757         Declare rpmatch.
60758         * lib/stdlib.in.h (rpmatch): New declaration.
60759         * lib/rpmatch.c: Include <stdlib.h> first.
60760         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60761         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60763         HAVE_RPMATCH.
60764         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60766         (Include): Set to <stdlib.h>.
60767         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60768         HAVE_RPMATCH.
60769         * NEWS: Document the change.
60770
60771 2008-04-28  Bruno Haible  <bruno@clisp.org>
60772
60773         Change rpmatch to use nl_langinfo when appropriate.
60774         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60775         (N_): New macro.
60776         (localized_pattern): New function/macro.
60777         (try): Remove match, nomatch arguments. Copy the pattern into safe
60778         memory before caching it.
60779         (rpmatch): Use localized_pattern. Add translator comments.
60780         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60781         Suggested by Eric Blake.
60782         * modules/rpmatch (Depends-on): Add stdbool.
60783
60784 2008-04-28  Eric Blake  <ebb9@byu.net>
60785
60786         Add rawmemchr module, matching glibc.
60787         * modules/string (Makefile.am): New indicator.
60788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60789         * lib/string.in.h (rawmemchr): Declare when appropriate.
60790         * modules/rawmemchr: New file.
60791         * m4/rawmemchr.m4: Likewise.
60792         * lib/rawmemchr.c: Likewise.
60793         * modules/rawmemchr-tests: Likewise.
60794         * tests/test-rawmemchr.c: Likewise.
60795         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60796         module.
60797         * modules/strchrnul (Depends-on): Add rawmemchr.
60798         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60799
60800         Whitespace cleanup.
60801         * tests/test-strchrnul.c: Reindent.
60802         * lib/strchrnul.c: Likewise.
60803
60804         Optimize and test strchrnul.
60805         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60806         * modules/strchrnul-tests: New file.
60807         * tests/test-strchrnul.c: Likewise.
60808
60809         Remove intprops dependency.
60810         * modules/memchr (Depends-on): Remove intprops.
60811         * modules/memrchr (Depends-on): Likewise.
60812         * modules/memchr2 (Depends-on): Likewise.
60813         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60814         * lib/memrchr.c (__memrchr): Likewise.
60815         * lib/memrchr2.c (memchr2): Likewise.
60816         Reported by Simon Josefsson.
60817
60818 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60819
60820         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60821         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60822
60823 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60824
60825         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60826
60827         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60828
60829         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60830
60831         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60832         declarations.
60833         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60834
60835         * m4/inet_pton.m4: Don't check for header files.
60836
60837         * m4/inet_ntop.m4: Don't check for header files.
60838
60839 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60840
60841         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60842         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60843         trigger for cygwin).
60844         Reported by Bruno Haible  <bruno@clisp.org>.
60845
60846 2008-04-28  Bruno Haible  <bruno@clisp.org>
60847
60848         * doc/posix-functions/strdup.texi: Mention mingw problem.
60849
60850 2008-04-27  Bruno Haible  <bruno@clisp.org>
60851
60852         * modules/stat-time-tests (Depends-on): Add sleep.
60853         * tests/test-stat-time.c (force_unlink): New function.
60854         (cleanup): Use it.
60855         (test_mtime): Remove the ctime related tests.
60856         (test_ctime): New function, containing the ctime related tests.
60857         (main): Call test_ctime, except on native Windows platforms.
60858
60859 2008-04-27  Bruno Haible  <bruno@clisp.org>
60860
60861         * lib/rpmatch.c (rpmatch): Add some comments.
60862         Reported by James Youngman <jay@gnu.org>.
60863
60864 2008-04-27  Bruno Haible  <bruno@clisp.org>
60865
60866         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60867         quiet NaNs.
60868
60869 2008-04-27  Bruno Haible  <bruno@clisp.org>
60870
60871         Make test-yesno.sh work on mingw.
60872         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60873         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60874         (main): Set stdin to binary mode.
60875         * modules/yesno-tests (Depends-on): Add binary-io.
60876
60877 2008-04-27  Bruno Haible  <bruno@clisp.org>
60878
60879         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60880         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60881         argument that lie outside the IEEE 854 domain.
60882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60883         (gl_ISFINITE): Use it.
60884         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60885
60886 2008-04-27  Bruno Haible  <bruno@clisp.org>
60887
60888         Allow local renaming in config.h.
60889         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60890
60891 2008-04-27  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/memchr.c (__memchr): Change type of 'i'.
60894         * lib/memchr2.c (memchr2): Likewise.
60895
60896 2008-04-26  Eric Blake  <ebb9@byu.net>
60897         and Bruno Haible  <bruno@clisp.org>
60898
60899         Optimize and test memrchr.
60900         * modules/memrchr (Depends-on): Add intprops.
60901         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60902         * modules/memrchr-tests: New file.
60903         * tests/test-memrchr.c: New file.
60904
60905 2008-04-26  Bruno Haible  <bruno@clisp.org>
60906
60907         Add tentative support for DragonFly BSD.
60908         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60909         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60910         fp.
60911         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60912         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60913         * lib/fpurge.c (fpurge): Likewise.
60914         * lib/freadable.c (freaadable): Likewise.
60915         * lib/freadahead.c (freadahead): Likewise.
60916         * lib/freading.c (freading): Likewise.
60917         * lib/freadptr.c (freadptr): Likewise.
60918         * lib/freadseek.c (freadptrinc): Likewise.
60919         * lib/fseeko.c (fseeko): Likewise.
60920         * lib/fseterr.c (fseterr): Likewise.
60921         * lib/fwritable.c (fwritable): Likewise.
60922         * lib/fwriting.c (fwriting): Likewise.
60923
60924 2008-04-26  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/stdio-impl.h: New file.
60927         * lib/fbufmode.c: Include stdio-impl.h.
60928         (fbufmode): Use fp_, remove redundant #defines.
60929         * lib/fflush.c: Include stdio-impl.h.
60930         (clear_ungetc_buffer): Remove redundant #defines.
60931         * lib/fpurge.c: Include stdio-impl.h.
60932         (fpurge): Remove redundant #defines.
60933         * lib/freadable.c: Include stdio-impl.h.
60934         (freadable): Remove redundant #defines.
60935         * lib/freadahead.c: Include stdio-impl.h.
60936         (freadahead): Remove redundant #defines.
60937         * lib/freading.c: Include stdio-impl.h.
60938         (freading): Remove redundant #defines.
60939         * lib/freadptr.c: Include stdio-impl.h.
60940         (freadptr): Remove redundant #defines.
60941         * lib/freadseek.c: Include stdio-impl.h.
60942         (freadptrinc): Remove redundant #defines.
60943         * lib/fseeko.c: Include stdio-impl.h.
60944         (rpl_fseeko): Remove redundant #defines.
60945         * lib/fseterr.c: Include stdio-impl.h.
60946         (fseterr): Remove redundant #defines.
60947         * lib/fwritable.c: Include stdio-impl.h.
60948         (fwritable: Remove redundant #defines.
60949         * lib/fwriting.c: Include stdio-impl.h.
60950         (fwriting): Remove redundant #defines.
60951         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60952         * modules/fflush (Files): Likewise.
60953         * modules/fpurge (Files): Likewise.
60954         * modules/freadable (Files): Likewise.
60955         * modules/freadahead (Files): Likewise.
60956         * modules/freading (Files): Likewise.
60957         * modules/freadptr (Files): Likewise.
60958         * modules/freadseek (Files): Likewise.
60959         * modules/fseeko (Files): Likewise.
60960         * modules/fseterr (Files): Likewise.
60961         * modules/fwritable (Files): Likewise.
60962         * modules/fwriting (Files): Likewise.
60963
60964 2008-04-26  Bruno Haible  <bruno@clisp.org>
60965
60966         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60967         restore_seek_optimization, update_fpos_cache): New functions, extracted
60968         from rpl_fflush.
60969         (rpl_fflush): Use them.
60970         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60971         (gl_REPLACE_FFLUSH): Use it.
60972
60973 2008-04-26  Bruno Haible  <bruno@clisp.org>
60974
60975         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60976         on Solaris.
60977         * tests/test-xstrtoimax.sh: Likewise.
60978         * tests/test-xstrtoumax.sh: Likewise.
60979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60980
60981 2008-04-26  Bruno Haible  <bruno@clisp.org>
60982
60983         * modules/memchr-tests: New file.
60984         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60985
60986 2008-04-26  Eric Blake  <ebb9@byu.net>
60987             Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/memchr.c: Include intprops.h.
60990         (__memchr): Optimize parallel detection of matching bytes. Rename local
60991         variables. Add explanatory comments.
60992
60993 2008-04-26  Bruno Haible  <bruno@clisp.org>
60994
60995         Fix module 'memchr', broken since 2000-10-28.
60996         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60997
60998 2008-04-26  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61001         comments.
61002
61003 2008-04-25  Eric Blake  <ebb9@byu.net>
61004
61005         Use native fstatat on cygwin 1.7.0.
61006         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61007         first.
61008
61009 2008-04-23  Eric Blake  <ebb9@byu.net>
61010
61011         Improve memchr2 performance.
61012         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61013         NUL bytes.
61014         * modules/memchr2 (Depends-on): Use intprops.h.
61015
61016 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61017
61018         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61019         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61020         <blp@cs.stanford.edu>.
61021
61022 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61023
61024         * lib/arpa_inet.in.h: New file.
61025
61026         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61027         (Makefile.am): Sed in substitute header file.
61028
61029         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61030         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61031
61032         * modules/inet_ntop (configure.ac): Use
61033         gl_ARPA_INET_MODULE_INDICATOR.
61034
61035         * modules/inet_pton (configure.ac): Use
61036         gl_ARPA_INET_MODULE_INDICATOR.
61037
61038 2008-04-22  Jim Meyering  <meyering@redhat.com>
61039
61040         * modules/verify (License): Re-license as LGPLv2+.
61041
61042 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61043
61044         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61045         parameter to void* as per POSIX standard (MinGW uses char*).
61046
61047 2008-04-21  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61050         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61051         Define to replacements if REPLACE_ISWCNTRL is 1.
61052         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61053         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61054         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61055         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61056         what it fixes.
61057         * doc/posix-functions/iswalpha.texi: Likewise.
61058         * doc/posix-functions/iswblank.texi: Likewise.
61059         * doc/posix-functions/iswcntrl.texi: Likewise.
61060         * doc/posix-functions/iswdigit.texi: Likewise.
61061         * doc/posix-functions/iswgraph.texi: Likewise.
61062         * doc/posix-functions/iswlower.texi: Likewise.
61063         * doc/posix-functions/iswprint.texi: Likewise.
61064         * doc/posix-functions/iswpunct.texi: Likewise.
61065         * doc/posix-functions/iswspace.texi: Likewise.
61066         * doc/posix-functions/iswupper.texi: Likewise.
61067         * doc/posix-functions/iswxdigit.texi: Likewise.
61068         Reported by Alain Guibert.
61069
61070 2008-04-21  Bruno Haible  <bruno@clisp.org>
61071
61072         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61073         Patch by Alain Guibert.
61074
61075 2008-04-21  Bruno Haible  <bruno@clisp.org>
61076
61077         Fix test failures on mingw.
61078         * tests/test-xstrtol.c (print_no_progname): New function.
61079         (main): Install it in error_print_progname hook.
61080         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61081         * tests/test-xstrtoimax.sh: Likewise.
61082         * tests/test-xstrtoumax.sh: Likewise.
61083
61084 2008-04-21  Bruno Haible  <bruno@clisp.org>
61085
61086         Fix test failure on mingw.
61087         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61088
61089 2008-04-21  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61092         Actually assign a value.
61093
61094 2008-04-20  Bruno Haible  <bruno@clisp.org>
61095
61096         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61097         take 2.
61098         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61099         'canonicalize-lgpl' module is also used.
61100         * lib/canonicalize-lgpl.c: Undo last change.
61101         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61102
61103 2008-04-20  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61106         config.h. Provide _mkdir based fallback for mingw.
61107         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61108         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61109         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61110         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61111         rather than defining mkdir in config.h.
61112         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61113         (gl_SYS_STAT_H_DEFAULTS): New macro.
61114         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61115         HAVE_IO_H any more.
61116         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61117         HAVE_DECL_MKDIR and HAVE_IO_H.
61118
61119 2008-04-20  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/isapipe.c: Port to native Windows platforms.
61122
61123 2008-04-20  Bruno Haible  <bruno@clisp.org>
61124
61125         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61126
61127 2008-04-21  Eric Blake  <ebb9@byu.net>
61128
61129         Work around preprocessors that don't handle UINTMAX_MAX.
61130         * lib/memchr2.c (memchr2): Avoid embedded #if.
61131         Reported by Alain Guibert, fix suggested by Bruno Haible.
61132
61133 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61134
61135         * doc/posix-functions/strftime.texi (strftime): Explain better
61136         Windows incompatibility.  Suggested by Micah Cowan
61137         <micah@cowan.name>.
61138
61139 2008-04-20  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61142         unistr/u8-mblen.
61143
61144 2008-04-20  Bruno Haible  <bruno@clisp.org>
61145
61146         Fix test failure on platforms with non-GNU iconv.
61147         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61148         (U_TO_U8): Use it, rather than u16_to_u8.
61149         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61150         units at the end of the input string.
61151         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61152
61153 2008-04-20  Bruno Haible  <bruno@clisp.org>
61154
61155         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61156         when the resulting length is 0.
61157         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61158
61159 2008-04-20  Bruno Haible  <bruno@clisp.org>
61160
61161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61162         works.
61163         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61164
61165 2008-04-20  Bruno Haible  <bruno@clisp.org>
61166
61167         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61168         * modules/tsearch-tests (configure.ac): Test for initstate function.
61169
61170 2008-04-20  Bruno Haible  <bruno@clisp.org>
61171
61172         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61173         for nlink_t if missing.
61174         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61175
61176 2008-04-19  Bruno Haible  <bruno@clisp.org>
61177
61178         Work around snprintf bug on Linux libc5.
61179         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61181         gl_SNPRINTF_SIZE1.
61182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61183         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61184         that test failed.
61185         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61186         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61187         * modules/snprintf (Files): Add m4/printf.m4.
61188         * modules/vsnprintf (Files): Likewise.
61189         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61190         * doc/posix-functions/vsnprintf.texi: Likewise.
61191
61192 2008-04-19  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61195         from 0.0058 to less than 10^-7.
61196
61197 2008-04-19  Bruno Haible  <bruno@clisp.org>
61198
61199         Fix rounding when a precision is given.
61200         * lib/vasnprintf.c (is_borderline): New function.
61201         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61202         9...9x.
61203         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61204         %e, %g.
61205         * tests/test-vasprintf-posix.c (test_function): Likewise.
61206         * tests/test-snprintf-posix.h (test_function): Likewise.
61207         * tests/test-sprintf-posix.h (test_function): Likewise.
61208         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61209         * tests/test-printf-posix.h (test_function): Likewise.
61210         * tests/test-printf-posix.output: Update.
61211         Reported by John Darrington <john@darrington.wattle.id.au> via
61212         Ben Pfaff <blp@cs.stanford.edu>.
61213
61214 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61215
61216         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61217         Suggested by Bruno Haible <bruno@clisp.org>.
61218
61219 2008-04-17  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61222         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61223         implementation.
61224         Patch by Bruce Merry <bmerry@gmail.com>.
61225
61226 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61227
61228         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61229         doesn't work under Windows.
61230
61231 2008-04-16  Bruno Haible  <bruno@clisp.org>
61232
61233         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61234         New macros.
61235         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61236         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61237         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61238         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61239         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61240         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61241         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61242         macros.
61243         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61244         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61245         Northern Sotho, Uighur.
61246
61247 2008-04-16  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61250         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61251         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61252         Reported by Daniel Bergström <daniel@octocode.com>.
61253
61254 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61255             Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61258         function.
61259         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61260         New functions, mostly extracted from gl_locale_name_default.
61261         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61262
61263 2008-04-16  Eric Blake  <ebb9@byu.net>
61264
61265         Adjust strtod detection to catch glibc 2.7 bug.
61266         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61267         Reported by John Gatewood Ham.
61268
61269 2008-04-16  Bruno Haible  <bruno@clisp.org>
61270
61271         Add tentative support for Linux libc5.
61272         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61273         * lib/fpurge.c (fpurge): Likewise.
61274         * lib/freadable.c (freadable): Likewise.
61275         * lib/freadahead.c (freadahead): Likewise.
61276         * lib/freading.c (freading): Likewise.
61277         * lib/freadptr.c (freadptr): Likewise.
61278         * lib/freadseek.c (freadptrinc): Likewise.
61279         * lib/fseeko.c (rpl_fseeko): Likewise.
61280         * lib/fseterr.c (fseterr): Likewise.
61281         * lib/fwritable.c (fwritable): Likewise.
61282         * lib/fwriting.c (fwriting): Likewise.
61283         Reported by Alain Guibert <alguibert+bts@free.fr>.
61284
61285 2008-04-15  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/mathl (configure.ac): Define module indicator.
61288
61289 2008-04-15  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/logl.c (logl): Remove unused variables.
61292
61293 2008-04-15  Bruno Haible  <bruno@clisp.org>
61294
61295         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61296         fails.
61297
61298 2008-04-15  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/trim.c (trim2): Fix argument of isspace() macro.
61301
61302 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61303
61304         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61305         to 0.
61306         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61307
61308 2008-04-14  Bruno Haible  <bruno@clisp.org>
61309
61310         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61311         AC_LANG_PROGRAM argument.
61312         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61313         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61315         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61316         * m4/math_h.m4 (gl_MATH_H): Likewise.
61317         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61319         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61320         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61321         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61322         * m4/regex.m4 (gl_REGEX): Likewise.
61323         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61324         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61327         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61328         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61331
61332 2008-04-14  Jim Meyering  <meyering@redhat.com>
61333
61334         test-strtod: fix typos: s/abs/fabs/
61335         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61336
61337 2008-04-13  Bruno Haible  <bruno@clisp.org>
61338
61339         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61340         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61341         module is also used and while not building the reloc-wrapper.
61342
61343 2008-04-13  Bruno Haible  <bruno@clisp.org>
61344
61345         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61346
61347 2008-04-13  Bruno Haible  <bruno@clisp.org>
61348
61349         Fix AIX compilation failure introduced on 2008-04-02.
61350         * tests/test-frexp.c (exp): Undefine before redefining.
61351         * tests/test-frexpl.c (exp): Likewise.
61352
61353 2008-04-13  Bruno Haible  <bruno@clisp.org>
61354
61355         Work around a HP-UX stdio bug.
61356         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61357         * tests/test-ftello.c (main): Likewise.
61358         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61359         * doc/posix-functions/ftello.texi: Likewise.
61360
61361 2008-04-13  Bruno Haible  <bruno@clisp.org>
61362
61363         Make test-signbit pass on HP-UX/hppa.
61364         * tests/test-signbit.c (minus_zerol): New variable.
61365         (test_signbitl): Use it.
61366
61367 2008-04-13  Bruno Haible  <bruno@clisp.org>
61368
61369         Make truncl work on OSF/1 4.0.
61370         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61371         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61372         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61374         HAVE_DECL_TRUNCL.
61375         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61376         HAVE_DECL_TRUNCL.
61377         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61378
61379 2008-04-13  Bruno Haible  <bruno@clisp.org>
61380
61381         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61382
61383 2008-04-13  Bruno Haible  <bruno@clisp.org>
61384
61385         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61386         expression, so as to avoid HP-UX 11 cc compiler bug.
61387
61388 2008-04-13  Bruno Haible  <bruno@clisp.org>
61389
61390         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61391
61392 2008-04-13  Bruno Haible  <bruno@clisp.org>
61393
61394         * lib/git-merge-changelog.c: Remove empty declaration outside of
61395         functions.
61396
61397 2008-04-13  Bruno Haible  <bruno@clisp.org>
61398
61399         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61400
61401 2008-04-13  Bruno Haible  <bruno@clisp.org>
61402
61403         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61404         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61406         also if it exists but lacks definitions of the SHUT_* macros.
61407         * modules/sys_socket (Description): Update.
61408         Reported by Elbert Pol <e.pol@chello.nl>.
61409
61410 2008-04-13  Bruno Haible  <bruno@clisp.org>
61411
61412         * lib/localcharset.c (OS2): Don't redefine if already defined.
61413         Reported by Elbert Pol <e.pol@chello.nl>.
61414
61415 2008-04-13  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/binary-io.h [__EMX__]: Include <io.h>.
61418         Reported by Elbert Pol <e.pol@chello.nl>.
61419
61420 2008-04-12  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/fpucw.h: Enable the definitions also for x86_64.
61423         Needed for NetBSD/x86_64.
61424         Reported by Thomas Klausner <tk@giga.or.at>.
61425
61426 2008-04-12  Bruno Haible  <bruno@clisp.org>
61427
61428         * tests/test-strtod.c: Include isnand.h.
61429         (main): Use isnand instead of isnan.
61430         Reported by Jim Meyering.
61431
61432 2008-04-12  Bruno Haible  <bruno@clisp.org>
61433
61434         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61435         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61436
61437 2008-04-12  Jim Meyering  <meyering@redhat.com>
61438
61439         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61440
61441 2008-04-12  Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61444         Reported by Elbert Pol <e.pol@chello.nl>.
61445
61446 2008-04-12  Eric Blake  <ebb9@byu.net>
61447
61448         Work around Solaris 10 math.h bug.
61449         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61450         (gl_MATH_H_DEFAULTS): Set up default.
61451         * modules/math (Makefile.am): Replace new indicators.
61452         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61453         * tests/test-math.c (main): Test this.
61454         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61455         * doc/posix-headers/math.texi (math.h): Mention bug.
61456         Reported by Nelson H. F. Beebe and Jim Meyering.
61457
61458 2008-04-11  Bruno Haible  <bruno@clisp.org>
61459
61460         Adapt to future versions of Apple GCC.
61461         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61462         Reported by Peter O'Gorman <peter@pogma.com>.
61463
61464 2008-04-11  Bruno Haible  <bruno@clisp.org>
61465
61466         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61467
61468 2008-04-11  Bruno Haible  <bruno@clisp.org>
61469
61470         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61471
61472         * modules/getaddrinfo-tests (Makefile.am): Define
61473         test_getaddrinfo_LDADD.
61474
61475 2008-04-11  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61478         (init): Fix syntax error.
61479         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61480         is declared.
61481
61482 2008-04-11  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61485         * modules/glob (Depends-on): Add stdbool.
61486
61487 2008-04-11  Bruno Haible  <bruno@clisp.org>
61488
61489         * lib/trim.c: Include <string.h>.
61490
61491 2008-04-11  Eric Blake  <ebb9@byu.net>
61492
61493         Avoid compile failure on OS/2.
61494         * lib/regex_internal.h (internal_function): Disable optimization
61495         on OS/2 (__EMX__), where it caused compiler error.
61496         Reported by Elbert Pol.
61497
61498 2008-04-11  Bruno Haible  <bruno@clisp.org>
61499
61500         Flush the standard error stream before aborting. Needed on mingw.
61501         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61502         * tests/test-array_list.c (ASSERT): Likewise.
61503         * tests/test-array_oset.c (ASSERT): Likewise.
61504         * tests/test-avltree_list.c (ASSERT): Likewise.
61505         * tests/test-avltree_oset.c (ASSERT): Likewise.
61506         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61507         * tests/test-binary-io.c (ASSERT): Likewise.
61508         * tests/test-byteswap.c (ASSERT): Likewise.
61509         * tests/test-c-ctype.c (ASSERT): Likewise.
61510         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61511         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61512         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61513         * tests/test-c-strstr.c (ASSERT): Likewise.
61514         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61515         * tests/test-canonicalize.c (ASSERT): Likewise.
61516         * tests/test-carray_list.c (ASSERT): Likewise.
61517         * tests/test-ceilf1.c (ASSERT): Likewise.
61518         * tests/test-ceilf2.c (ASSERT): Likewise.
61519         * tests/test-ceill.c (ASSERT): Likewise.
61520         * tests/test-count-one-bits.c (ASSERT): Likewise.
61521         * tests/test-fbufmode.c (ASSERT): Likewise.
61522         * tests/test-fflush2.c (ASSERT): Likewise.
61523         * tests/test-floorf1.c (ASSERT): Likewise.
61524         * tests/test-floorf2.c (ASSERT): Likewise.
61525         * tests/test-floorl.c (ASSERT): Likewise.
61526         * tests/test-fopen.c (ASSERT): Likewise.
61527         * tests/test-fpending.c (ASSERT): Likewise.
61528         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61529         * tests/test-fpurge.c (ASSERT): Likewise.
61530         * tests/test-freadable.c (ASSERT): Likewise.
61531         * tests/test-freadahead.c (ASSERT): Likewise.
61532         * tests/test-freading.c (ASSERT): Likewise.
61533         * tests/test-freadptr.c (ASSERT): Likewise.
61534         * tests/test-freadptr2.c (ASSERT): Likewise.
61535         * tests/test-freadseek.c (ASSERT): Likewise.
61536         * tests/test-freopen.c (ASSERT): Likewise.
61537         * tests/test-frexp.c (ASSERT): Likewise.
61538         * tests/test-frexpl.c (ASSERT): Likewise.
61539         * tests/test-fseek.c (ASSERT): Likewise.
61540         * tests/test-fseeko.c (ASSERT): Likewise.
61541         * tests/test-fstrcmp.c (ASSERT): Likewise.
61542         * tests/test-ftell.c (ASSERT): Likewise.
61543         * tests/test-ftello.c (ASSERT): Likewise.
61544         * tests/test-func.c (ASSERT): Likewise.
61545         * tests/test-fwritable.c (ASSERT): Likewise.
61546         * tests/test-fwriting.c (ASSERT): Likewise.
61547         * tests/test-getdelim.c (ASSERT): Likewise.
61548         * tests/test-getline.c (ASSERT): Likewise.
61549         * tests/test-i-ring.c (ASSERT): Likewise.
61550         * tests/test-iconv-utf.c (ASSERT): Likewise.
61551         * tests/test-iconv.c (ASSERT): Likewise.
61552         * tests/test-isfinite.c (ASSERT): Likewise.
61553         * tests/test-isnand.c (ASSERT): Likewise.
61554         * tests/test-isnanf.c (ASSERT): Likewise.
61555         * tests/test-isnanl.h (ASSERT): Likewise.
61556         * tests/test-ldexpl.c (ASSERT): Likewise.
61557         * tests/test-linked_list.c (ASSERT): Likewise.
61558         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61559         * tests/test-localename.c (ASSERT): Likewise.
61560         * tests/test-lseek.c (ASSERT): Likewise.
61561         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61562         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61563         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61564         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61565         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61566         * tests/test-mbschr.c (ASSERT): Likewise.
61567         * tests/test-mbscspn.c (ASSERT): Likewise.
61568         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61569         * tests/test-mbspbrk.c (ASSERT): Likewise.
61570         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61571         * tests/test-mbsrchr.c (ASSERT): Likewise.
61572         * tests/test-mbsspn.c (ASSERT): Likewise.
61573         * tests/test-mbsstr1.c (ASSERT): Likewise.
61574         * tests/test-mbsstr2.c (ASSERT): Likewise.
61575         * tests/test-mbsstr3.c (ASSERT): Likewise.
61576         * tests/test-memchr2.c (ASSERT): Likewise.
61577         * tests/test-memmem.c (ASSERT): Likewise.
61578         * tests/test-open.c (ASSERT): Likewise.
61579         * tests/test-printf-frexp.c (ASSERT): Likewise.
61580         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61581         * tests/test-printf-posix.c (ASSERT): Likewise.
61582         * tests/test-quotearg.c (ASSERT): Likewise.
61583         * tests/test-rbtree_list.c (ASSERT): Likewise.
61584         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61585         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61586         * tests/test-round1.c (ASSERT): Likewise.
61587         * tests/test-roundf1.c (ASSERT): Likewise.
61588         * tests/test-roundl.c (ASSERT): Likewise.
61589         * tests/test-signbit.c (ASSERT): Likewise.
61590         * tests/test-sleep.c (ASSERT): Likewise.
61591         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61592         * tests/test-snprintf.c (ASSERT): Likewise.
61593         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61594         * tests/test-stat-time.c (ASSERT): Likewise.
61595         * tests/test-strcasestr.c (ASSERT): Likewise.
61596         * tests/test-strerror.c (ASSERT): Likewise.
61597         * tests/test-striconv.c (ASSERT): Likewise.
61598         * tests/test-striconveh.c (ASSERT): Likewise.
61599         * tests/test-striconveha.c (ASSERT): Likewise.
61600         * tests/test-strsignal.c (ASSERT): Likewise.
61601         * tests/test-strstr.c (ASSERT): Likewise.
61602         * tests/test-strtod.c (ASSERT): Likewise.
61603         * tests/test-trunc1.c (ASSERT): Likewise.
61604         * tests/test-trunc2.c (ASSERT): Likewise.
61605         * tests/test-truncf1.c (ASSERT): Likewise.
61606         * tests/test-truncf2.c (ASSERT): Likewise.
61607         * tests/test-truncl.c (ASSERT): Likewise.
61608         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61609         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61610         * tests/test-vasnprintf.c (ASSERT): Likewise.
61611         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61612         * tests/test-vasprintf.c (ASSERT): Likewise.
61613         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61614         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61615         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61616         * tests/test-vsnprintf.c (ASSERT): Likewise.
61617         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61618         * tests/test-wcwidth.c (ASSERT): Likewise.
61619         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61620         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61621         * tests/test-xvasprintf.c (ASSERT): Likewise.
61622         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61623         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61624         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61625         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61626         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61627         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61628         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61629         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61630         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61631         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61632         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61633         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61634         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61635         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61636         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61637         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61638         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61639         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61640         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61641         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61642         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61643         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61644         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61645         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61646         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61647         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61648         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61649         * tests/unictype/test-combining.c (ASSERT): Likewise.
61650         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61651         * tests/unictype/test-digit.c (ASSERT): Likewise.
61652         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61653         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61654         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61655         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61656         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61657         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61658         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61659         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61660         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61661         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61662         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61663         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61664         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61665         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61666         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61667         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61668         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61669         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61670         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61671         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61672         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61673         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61674         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61675         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61676         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61677         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61678         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61679         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61680         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61681         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61682         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61683         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61684         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61685         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61686         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61687         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61688         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61689         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61690         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61691         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61692         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61693         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61694         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61695         Reported by Eric Blake.
61696
61697 2008-04-11  Bruno Haible  <bruno@clisp.org>
61698
61699         * lib/wchar.in.h: Tweak comment.
61700
61701 2008-04-11  Bruno Haible  <bruno@clisp.org>
61702
61703         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61704         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61705         gl_COMMON.
61706         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61707
61708 2008-04-11  Bruno Haible  <bruno@clisp.org>
61709
61710         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61711
61712 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61713
61714         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61715         of attempting to use non-existing /dev/*random.  Based on patch
61716         from Adam Strzelecki <ono@java.pl> in
61717         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61718
61719 2008-04-08  Bruno Haible  <bruno@clisp.org>
61720
61721         Add tentative support for emx+gcc.
61722         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61723         * lib/fpurge.c (fpurge): Likewise.
61724         * lib/freadable.c (freadable): Likewise.
61725         * lib/freadahead.c (freadahead): Likewise.
61726         * lib/freading.c (freading): Likewise.
61727         * lib/freadptr.c (freadptr): Likewise.
61728         * lib/freadseek.c (freadptrinc): Likewise.
61729         * lib/fseeko.c (rpl_fseeko): Likewise.
61730         * lib/fseterr.c (fseterr): Likewise.
61731         * lib/fwritable.c (fwritable): Likewise.
61732         * lib/fwriting.c (fwriting): Likewise.
61733         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61734
61735 2008-04-09  Eric Blake  <ebb9@byu.net>
61736
61737         Avoid some autoconf warnings.
61738         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61739         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61740         * m4/afs.m4 (gl_AFS): Likewise.
61741         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61742         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61744         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61745         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61746         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61747         (AC_CHECK_DECLS_ONCE): Likewise.
61748         Rename file...
61749         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61750         gnulib-tool requires autoconf 2.59 or better.
61751         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61752
61753 2008-04-08  Eric Blake  <ebb9@byu.net>
61754
61755         Use 'git describe --match' if present (added in git 1.5.5).
61756         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61757         if possible.
61758
61759 2008-04-08  Bruno Haible  <bruno@clisp.org>
61760
61761         Add tentative support for OpenServer.
61762         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61763         _ptr, _cnt.
61764         * lib/fpurge.c (fpurge): Likewise.
61765         * lib/freadable.c (freadable): Likewise.
61766         * lib/freadahead.c (freadahead): Likewise.
61767         * lib/freading.c (freading): Likewise.
61768         * lib/freadptr.c (freadptr): Likewise.
61769         * lib/freadseek.c (freadptrinc): Likewise.
61770         * lib/fseeko.c (rpl_fseeko): Likewise.
61771         * lib/fseterr.c (fseterr): Likewise.
61772         * lib/fwritable.c (fwritable): Likewise.
61773         * lib/fwriting.c (fwriting): Likewise.
61774         Reported by Roger Cornelius <rac@tenzing.org> and
61775         Brian K. White <brian@aljex.com>.
61776
61777 2008-04-06  Jim Meyering  <meyering@redhat.com>
61778
61779         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61780
61781 2008-04-06  Bruno Haible  <bruno@clisp.org>
61782
61783         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61784         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61785         * tests/test-printf-posix.sh: Likewise.
61786         * tests/test-vfprintf-posix.sh: Likewise.
61787         * tests/test-vprintf-posix.sh: Likewise.
61788         * tests/test-xprintf-posix.sh: Likewise.
61789
61790 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61791
61792         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61793         hide error from 'ls', needed on OS/2.
61794         Report by Elbert Pol <elbert.pol@gmail.com>.
61795
61796 2008-04-04  Eric Blake  <ebb9@byu.net>
61797
61798         Make test-fseeko.c failures meaningful.
61799         * tests/test-fseeko.c: Print line number on failure.
61800         * tests/test-fseek.c: Likewise.
61801         Reported by Nelson H. F. Beebe.
61802
61803         Improve strtod bug detection check.
61804         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61805         required for Solaris 10.
61806         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61807
61808 2008-04-04  Bruno Haible  <bruno@clisp.org>
61809
61810         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61811         by m4/setenv.m4.
61812
61813 2008-04-03  Eric Blake  <ebb9@byu.net>
61814
61815         Ensure sane .version contents.
61816         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61817         version string.
61818         * build-aux/git-version-gen: Improve documentation.
61819
61820         Make GNU make output nicer.
61821         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61822         MAKECMDGOALS to enforce message for all command line targets.  Set
61823         srcdir for use in maint.mk.
61824
61825         Another maintainer tweak.
61826         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61827         a target that regenerates version.
61828
61829 2008-04-03  Jim Meyering  <meyering@redhat.com>
61830
61831         vc-list-files: don't cause coreutils "make po-check" failure
61832         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61833
61834 2008-04-03  Eric Blake  <ebb9@byu.net>
61835
61836         Allow VPATH usage of vc-list-files.
61837         * build-aux/vc-list-files (scriptversion): Add timestamp.
61838         (options): Add --help, --version, -C.
61839         (CVS): Support installed cvsu.
61840
61841 2008-04-02  Bruno Haible  <bruno@clisp.org>
61842
61843         Avoid some "statement with no effect" warnings from gcc.
61844         * tests/test-wctype.c (main): Explicitly ignore unused values.
61845         Reported by Jim Meyering.
61846
61847 2008-04-02  Jim Meyering  <meyering@redhat.com>
61848
61849         Avoid some warnings from "gcc -Wshadow".
61850         * tests/test-frexp.c (exp): Define to a different identifier.
61851         * tests/test-frexpl.c (exp): Likewise.
61852
61853 2008-04-03  Jim Meyering  <meyering@redhat.com>
61854
61855         bootstrap: remove dangling *.[ch] symlinks from lib
61856         * build-aux/bootstrap [dangling symlink removal]: Move find's
61857         -depth option to precede all others, to avoid a warning.
61858         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61859
61860 2008-04-02  Bruno Haible  <bruno@clisp.org>
61861
61862         Avoid some warnings from "gcc -Wshadow".
61863         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61864         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61865         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61866         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61867         Reported by Jim Meyering.
61868
61869 2008-04-01  Bruno Haible  <bruno@clisp.org>
61870
61871         Fix test to work on IRIX 6.5 with cc.
61872         * tests/test-math.c (numeric_equal): New function.
61873         (main): Use it.
61874
61875 2008-04-01  Bruno Haible  <bruno@clisp.org>
61876
61877         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61878
61879 2008-04-01  Bruno Haible  <bruno@clisp.org>
61880
61881         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61882         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61883         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61884         (Depends-on): Remove math.
61885
61886         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61887         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61888         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61889         (Depends-on): Remove math.
61890
61891         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61892         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61893         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61894         (Depends-on): Remove math.
61895         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61896         (Depends-on): Remove math.
61897
61898         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61899         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61900         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61901         (Depends-on): Remove math.
61902         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61903         (Depends-on): Remove math.
61904
61905         * tests/test-round1.c: Include nan.h.
61906         (main): Use NaNd instead of NAN.
61907         * modules/round-tests (Files): Add tests/nan.h.
61908
61909         * tests/test-trunc1.c: Include nan.h.
61910         (main): Use NaNd instead of NAN.
61911         * modules/trunc-tests (Files): Add tests/nan.h.
61912
61913         * tests/test-roundf1.c: Include nan.h.
61914         (main): Use NaNf instead of NAN.
61915         * modules/roundf-tests (Files): Add tests/nan.h.
61916
61917         * tests/test-truncf1.c: Include nan.h.
61918         (main): Use NaNf instead of NAN.
61919         * modules/truncf-tests (Files): Add tests/nan.h.
61920
61921         * tests/test-ceilf1.c: Include nan.h.
61922         (main): Use NaNf instead of NAN.
61923         * modules/ceilf-tests (Files): Add tests/nan.h.
61924
61925         * tests/test-floorf1.c: Include nan.h.
61926         (main): Use NaNf instead of NAN.
61927         * modules/floorf-tests (Files): Add tests/nan.h.
61928
61929         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61930         (main): Use NaNf instead of NAN.
61931         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61932
61933         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61934         (main): Use NaNd instead of NAN.
61935         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61936
61937         * tests/test-frexp.c: Include nan.h.
61938         (main): Use NaNd instead of NAN.
61939         * modules/frexp-tests (Files): Add tests/nan.h.
61940
61941         * lib/isnan.c: Don't include <math.h>.
61942         (FUNC): Don't use NAN macro.
61943         * modules/isnand-nolibm (Depends-on): Remove math.
61944         * modules/isnanf-nolibm (Depends-on): Remove math.
61945         * modules/isnanl (Depends-on): Remove math.
61946         * modules/isnanl-nolibm (Depends-on): Remove math.
61947
61948         * tests/nan.h: New file.
61949
61950 2008-04-01  Eric Blake  <ebb9@byu.net>
61951
61952         Fix typos.
61953         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61954         values to be the right type.
61955
61956         For now, cater to gnulib strtod inaccuracies.
61957         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61958         fractional results.  While not as nice from a QoI perspective, it
61959         is a quicker patch than correctly implementing decimal to binary
61960         rounding.
61961
61962 2008-03-31  Eric Blake  <ebb9@byu.net>
61963
61964         Guarantee a definition of NAN.
61965         * lib/math.in.h (NAN): Define if missing.
61966         * tests/test-math.c (main): Test it.
61967         * doc/posix-headers/math.texi (math.h): Document this.
61968         * lib/isnan.c (rpl_isnand): Use it.
61969         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61970         * tests/test-floorf1.c (NaN): Likewise.
61971         * tests/test-frexp.c (NaN): Likewise.
61972         * tests/test-isnand.c (NaN): Likewise.
61973         * tests/test-isnanf.c (NaN): Likewise.
61974         * tests/test-round1.c (NaN): Likewise.
61975         * tests/test-roundf1.c (NaN): Likewise.
61976         * tests/test-snprintf-posix.h (NaN): Likewise.
61977         * tests/test-sprintf-posix.h (NaN): Likewise.
61978         * tests/test-trunc1.c (NaN): Likewise.
61979         * tests/test-truncf1.c (NaN): Likewise.
61980         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61981         * tests/test-vasprintf-posix.c (NaN): Likewise.
61982         * modules/isnand-nolibm (Depends-on): Add math.
61983         * modules/isnanf-nolibm (Depends-on): Likewise.
61984         * modules/isnanl (Depends-on): Likewise.
61985         * modules/isnanl-nolibm (Depends-on): Likewise.
61986         * modules/snprintf-posix-tests (Depends-on): Likewise.
61987         * modules/sprintf-posix-tests (Depends-on): Likewise.
61988         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61989         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61990         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61991         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61992
61993 2008-03-31  Bruno Haible  <bruno@clisp.org>
61994
61995         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61996         * doc/posix-functions/strtod.texi: Likewise.
61997
61998 2008-03-31  Bruno Haible  <bruno@clisp.org>
61999
62000         * tests/test-strtod.c (main): Don't use C99 syntax.
62001
62002 2008-03-31  Bruno Haible  <bruno@clisp.org>
62003
62004         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62005         Reported by Eric Blake.
62006
62007 2008-03-31  Jim Meyering  <meyering@redhat.com>
62008
62009         Don't compare actual signbit return values.
62010         * tests/test-strtod.c (main): Rather, compare only their
62011         zero/non-zero nature.
62012
62013 2008-03-31  Eric Blake  <ebb9@byu.net>
62014
62015         More strtod documentation.
62016         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62017         failures as distinct bugs.
62018
62019 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62020
62021         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62022         Problem reported by Erik Benada in
62023         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62024
62025 2008-03-30  Bruno Haible  <bruno@clisp.org>
62026
62027         * tests/test-strtod.c: Add comments about which assertion fails on which
62028         platform.
62029         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62030
62031 2008-03-30  Eric Blake  <ebb9@byu.net>
62032
62033         Test signbit behavior on zeros.
62034         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62035         (test_signbitd, test_signbitl): Likewise.
62036
62037         More strtod touchups.
62038         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62039         sign of negative underflow, for now.  Use .5, not .1.
62040         * doc/posix-functions/strtod.texi (strtod): Mention these
62041         limitations.
62042         Reported by Jim Meyering.
62043
62044 2008-03-30  Bruno Haible  <bruno@clisp.org>
62045
62046         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62047         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62048
62049 2008-03-30  Bruno Haible  <bruno@clisp.org>
62050
62051         Avoid failure when attempting to return empty iconv results on some
62052         platforms.
62053         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62054         allocation, don't report ENOMEM when the resulting string is empty.
62055
62056 2008-03-30  Bruno Haible  <bruno@clisp.org>
62057
62058         Fix buffer overrun.
62059         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62060         Don't consider the width for tmp_length. Check count against tmp_length
62061         before doing the padding. Ensure enough allocation during padding.
62062
62063 2008-03-30  Eric Blake  <ebb9@byu.net>
62064
62065         strtod touchups.
62066         * lib/strtod.c (strtod): Avoid compiler warnings.
62067         Reported by Jim Meyering.
62068
62069 2008-03-30  Bruno Haible  <bruno@clisp.org>
62070
62071         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62072         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62073         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62074         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62075         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62076         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62077         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62078         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62079
62080         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62081         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62082         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62083         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62084         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62085         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62086         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62087         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62088
62089         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62090         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62091         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62092         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62093         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62094         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62095         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62096         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62097
62098         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62099         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62100
62101         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62102         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62103
62104         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62105         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62106
62107         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62109         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62110
62111         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62113         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62114
62115         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62117         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62118
62119         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62121         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62122
62123         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62124         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62126         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62127         (Depends-on): Add EOVERFLOW.
62128         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62129         (Depends-on): Add EOVERFLOW.
62130         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62131         (Depends-on): Add EOVERFLOW.
62132         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62133         (Depends-on): Add EOVERFLOW.
62134         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62135         (Depends-on): Add EOVERFLOW.
62136         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62137         (Depends-on): Add EOVERFLOW.
62138         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62139         (Depends-on): Add EOVERFLOW.
62140         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62141         (Depends-on): Add EOVERFLOW.
62142
62143         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62145         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62146
62147         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62149         * modules/snprintf (Depends-on): Add EOVERFLOW.
62150
62151         * lib/poll.c (EOVERFLOW): Remove fallback.
62152         * modules/poll (Depends-on): Add EOVERFLOW.
62153
62154         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62155         * modules/getugroups (Depends-on): Add EOVERFLOW.
62156
62157         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62158         * modules/getdelim (Depends-on): Add EOVERFLOW.
62159
62160         * lib/ftell.c (EOVERFLOW): Remove fallback.
62161         * modules/ftell (Depends-on): Add EOVERFLOW.
62162
62163         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62165         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62166
62167         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62168
62169         * modules/EOVERFLOW-tests: New file.
62170         * tests/test-EOVERFLOW.c: New file.
62171
62172         * modules/EOVERFLOW: New file.
62173         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62174
62175 2008-03-30  Bruno Haible  <bruno@clisp.org>
62176
62177         Fix bug introduced on 2007-06-10.
62178         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62179         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62180
62181 2008-03-30  Bruno Haible  <bruno@clisp.org>
62182
62183         Improve freadseek's efficiency after ungetc.
62184         * lib/freadseek.c: Include freadahead.h.
62185         (freadptrinc): New function, extracted from freadseek.
62186         (freadseek): Use it in a loop. Use freadahead to determine the number
62187         of loop iterations.
62188         * modules/freadseek (Depends-on): Add freadahead.
62189         (configure.ac): Require AC_C_INLINE.
62190
62191 2008-03-30  Bruno Haible  <bruno@clisp.org>
62192
62193         * lib/freadseek.c (freadseek): Don't ignore the return value of
62194         freadptr.
62195
62196 2008-03-29  Eric Blake  <ebb9@byu.net>
62197
62198         Add hex float support.
62199         * modules/strtod (Depends-on): Add c-ctype.
62200         (Link): Mention POW_LIB.
62201         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62202         whitespace between 'e' and exponent.
62203         * tests/test-strtod.c (main): Enable hex float tests.
62204         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62205         now provides.
62206
62207         Document various strtod bugs, with some fixes.
62208         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62209         "-0x", "inf", "nan", and hex constants.
62210         * doc/posix-functions/atof.texi (atof): Likewise.
62211         * modules/stdlib (Makefile.am): Support strtod.
62212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62213         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62214         detect additional strtod bugs.
62215         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62216         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62217         bool where appropriate.  Parse 'inf' and 'nan'.
62218         * tests/test-strtod.c: New file.
62219         * modules/strtod (Depends-on): Add stdbool, stdlib.
62220         (configure.ac): Turn on module indicator.
62221         * modules/strtod-tests: New module.
62222
62223 2008-03-29  Eric Blake  <ebb9@byu.net>
62224
62225         Fix ftell on mingw.
62226         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62227         * modules/ftell-tests (Depends-on): Add binary-io.
62228         * modules/ftello-tests (Depends-on): Likewise.
62229         * tests/test-ftell.c (main): Enhance test to cover behavior after
62230         ungetc.  Enforce binary mode.
62231         * tests/test-ftello.c (main): Likewise.
62232
62233         Pass test-freadseek on cygwin.
62234         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62235         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62236         ungetc buffer.
62237
62238         * tests/test-fflush2.c (main): Fix typo.
62239
62240 2008-03-29  Bruno Haible  <bruno@clisp.org>
62241
62242         * tests/test-fflush2.c (main): Temporarily disable the contents of
62243         this test.
62244         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62245         Reported by Eric Blake.
62246
62247 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62248
62249         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62250         (GC_SHA224_DIGEST_SIZE): Add.
62251
62252         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62253         (gc_hash_digest_length): Likewise.
62254         (gc_hash_buffer): Likewise.
62255
62256 2008-03-25  Bruno Haible  <bruno@clisp.org>
62257
62258         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62259         detail which gettext release to use.
62260         Reported by Simon Josefsson.
62261
62262 2008-03-26  Jim Meyering  <meyering@redhat.com>
62263
62264         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62265         * modules/gnumakefile (clean-GNUmakefile): Also, use
62266         test ... && ... || : syntax rather than if-then ... fi.
62267
62268         gnumakefile: Don't double-quote-expand $(VPATH) value.
62269         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62270
62271 2008-03-24  Eric Blake  <ebb9@byu.net>
62272
62273         Alter GNUmakefile to install into top directory.
62274         * modules/maintainer-makefile: Split, and add dependency...
62275         * modules/gnumakefile: to this new module.
62276         * build-aux/GNUmakefile: Move...
62277         * top/GNUmakefile: ...here.
62278         * build-aux/maint.mk: Move...
62279         * top/maint.mk: ...here.
62280         * MODULES.html.sh (Support for maintaining...): Document new
62281         module.
62282
62283 2008-03-23  Bruno Haible  <bruno@clisp.org>
62284
62285         * gnulib-tool: New options --vc-files, --no-vc-files.
62286         (func_usage): Document them.
62287         (vc_files): New variable.
62288         (func_import): Consider vc_files.
62289         (func_create_testdir): Set vc_files to empty.
62290         Suggested by Jim Meyering and Karl Berry.
62291
62292 2008-03-23  Bruno Haible  <bruno@clisp.org>
62293
62294         Fix regex compilation error on HP-UX 11.
62295         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62296         * modules/regex (Files): Add m4/mbstate_t.m4.
62297         Reported by Ton Voon <ton.voon@altinity.com>.
62298
62299 2008-03-23  Bruno Haible  <bruno@clisp.org>
62300
62301         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62302
62303 2008-03-23  Eric Blake  <ebb9@byu.net>
62304             Bruno Haible  <bruno@clisp.org>
62305
62306         Install files from top/ in the destination directory.
62307         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62308         augmentation also for the files from top/.
62309         (func_import, func_create_testdir): Rewrite file names:
62310         top/filename -> filename.
62311
62312 2008-03-23  Bruno Haible  <bruno@clisp.org>
62313
62314         Tweak "gnulib --version" output.
62315         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62316
62317 2008-03-23  Bruno Haible  <bruno@clisp.org>
62318
62319         Tweak "gnulib --version" output.
62320         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62321         rather than contents of ChangeLog, when possible.
62322
62323 2008-03-21  Eric Blake  <ebb9@byu.net>
62324
62325         More --version tweaks.
62326         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62327         date of last ChangeLog entry.
62328
62329 2008-03-21  Jim Meyering  <meyering@redhat.com>
62330
62331         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62332
62333 2008-03-20  Eric Blake  <ebb9@byu.net>
62334
62335         VPATH fix.
62336         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62337
62338 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62339
62340         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62341         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62342
62343 2008-03-20  Eric Blake  <ebb9@byu.net>
62344
62345         Sync GNUmakefile with coreutils.
62346         * build-aux/GNUmakefile (have-Makefile): Rename...
62347         (_have-Makefile): ...to this, for namespace consideration.
62348         (GNUmakefile.cfg): Include, if present.
62349         (_autoreconf): Define a default.
62350         (_is-dist-target): New rule for rebuilds to pick up intra-release
62351         version.
62352         (maint-cfg.mk): Rename...
62353         (cfg.mk): ...to this.
62354
62355 2008-03-18  Jim Meyering  <meyering@redhat.com>
62356
62357         New script and module: mktempd
62358         * MODULES.html.sh (maint+release support): Add mktempd.
62359         * build-aux/mktempd: New file.
62360         * modules/mktempd: New file.
62361
62362 2008-03-15  Jim Meyering  <meyering@redhat.com>
62363
62364         Undo last change.
62365         * lib/sha1.c, lib/md5.c: 63 != ~63.
62366         Reported by Andreas Schwab.
62367
62368         sha1.c, md5.c: Hoist a redundant expression.
62369         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62370         "ctx->buflen" only once, before calling *_process_block.
62371         * lib/md5.c (md5_process_bytes): Likewise.
62372
62373 2008-03-14  Eric Blake  <ebb9@byu.net>
62374
62375         Bump copyright year in files generated by gnulib-tool.
62376         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62377         gnulib-tool, rather than hard-coding it.
62378
62379         Fix 'gnulib-tool --version' output to work with git.
62380         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62381         (startup): ...here.
62382         (func_version): Use it to invoke git-version-gen, rather than
62383         relying on CVS keyword expansion.  Modernize wording.
62384         (cvsdatestamp, last_checkin_date, version): Kill unused
62385         variables.
62386
62387 2008-03-12  Jim Meyering  <meyering@redhat.com>
62388
62389         Recognize optional cast of the argument to free.
62390         * build-aux/useless-if-before-free: Update regexps.
62391
62392         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62393
62394 2008-03-11  Bruno Haible  <bruno@clisp.org>
62395
62396         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62397         by a single package.
62398         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62399         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62400         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62401         Reported by Sam Steingold <sds@gnu.org>.
62402
62403 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62404
62405         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62406         repositories.
62407
62408 2008-03-11  Bruno Haible  <bruno@clisp.org>
62409
62410         Avoid conflicts between local macro definitions.
62411         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62412         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62413
62414 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62415             Bruno Haible  <bruno@clisp.org>
62416
62417         Make va_copy work with some version of xlc on AIX 5.1.
62418         * lib/stdarg.in.h: New file.
62419         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62420         On AIX, use a <stdarg.h> file substitute.
62421         * modules/stdarg (Files): Add lib/stdarg.in.h.
62422         (Depends-on): Add include_next.
62423         (Makefile.am): Build a stdarg.h substitute if requested.
62424         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62425
62426 2008-03-10  Bruno Haible  <bruno@clisp.org>
62427
62428         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62430         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62431
62432 2008-03-10  Bruno Haible  <bruno@clisp.org>
62433
62434         * modules/stdlib (Depends-on): Add include_next, remove
62435         absolute-header.
62436
62437 2008-03-09  Bruno Haible  <bruno@clisp.org>
62438
62439         * lib/freadahead.h (freadahead): Document more precisely.
62440         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62441         the sum of both buffer sizes.
62442         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62443         * NEWS: Document the change.
62444
62445 2008-03-09  Bruno Haible  <bruno@clisp.org>
62446
62447         Extend freadptr to return also the buffer size.
62448         * lib/freadptr.h (freadptr): Add sizep argument.
62449         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62450         (freadptr): Add sizep argument. Determine buffer size like freadahead
62451         does.
62452         * tests/test-freadptr.c: Don't include freadahead.h.
62453         (main): Adapt for new calling convention of freadptr.
62454         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62455         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62456         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62457         tests/test-freadptr2.sh.
62458         (Depends): Remove freadahead.
62459         (TESTS): Add test-freadptr2.sh.
62460         (check_PROGRAMS): Add test-freadptr2.
62461
62462 2008-03-09  Bruno Haible  <bruno@clisp.org>
62463
62464         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62465         Report and solution by Simon Josefsson.
62466
62467 2008-03-06  Bruno Haible  <bruno@clisp.org>
62468
62469         Make fflush after ungetc work on BSD platforms.
62470         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62471         * tests/test-fflush2.c: New file.
62472         * tests/test-fflush2.sh: New file.
62473         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62474         tests/test-fflush2.c.
62475         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62476         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62477
62478 2008-03-06  Eric Blake  <ebb9@byu.net>
62479
62480         Likewise for ftello.
62481         * modules/ftello (Dependencies): Add extensions.
62482         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62483
62484 2008-03-06  Bruno Haible  <bruno@clisp.org>
62485
62486         * modules/fseeko (Dependencies): Add extensions.
62487         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62488         Needed on glibc systems.
62489
62490 2008-03-06  Bruno Haible  <bruno@clisp.org>
62491
62492         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62493         email address.
62494         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62495
62496 2008-03-06  Bruno Haible  <bruno@clisp.org>
62497
62498         * users.txt: Add libgnupdf.
62499
62500 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62501
62502         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62503         (Header File Substitutes, Function Substitutes,
62504         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62505         (Build robot for gnulib): Fix typo.
62506
62507 2008-03-06  Bruno Haible  <bruno@clisp.org>
62508
62509         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62510         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62511
62512 2008-03-06  Bruno Haible  <bruno@clisp.org>
62513
62514         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62515         * doc/gnulib.texi: Include it.
62516
62517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62518
62519         * modules/func (License): Change license to unlimited; there was
62520         no LGPL parts in the module anyway.
62521
62522 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62523
62524         * modules/__func__: Renamed to modules/func.
62525         * modules/__func__-tests: Renamed to modules/func-tests.
62526         * tests/test-__func__.c: Renamed to tests/test-func.c.
62527         * m4/__func__.m4: Renamed to m4/func.m4.
62528         * doc/gnulib.texi (__func__): Section renamed to func.
62529         Suggested by Eric Blake <ebb9@byu.net>.
62530
62531 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62532
62533         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62534         about __func__.  Make example self-contained.  Suggested by Eric
62535         Blake <ebb9@byu.net>.
62536
62537         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62538         Suggested by Eric Blake <ebb9@byu.net>.
62539
62540 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62541
62542         * modules/__func__: New file.
62543         * modules/__func__-tests: New file.
62544         * tests/test-__func__.c: New file.
62545         * m4/__func__.m4: New file.
62546         * doc/gnulib.texi (__func__): Document __func__ module.
62547
62548 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62549
62550         * modules/byteswap (License): Re-license as LGPLv2+.
62551
62552 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62553
62554         * doc/Makefile: Add pdf target.
62555
62556 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62557
62558         * modules/inline (License): Use 'unlimited', since there are only
62559         *.m4 files in this module.
62560
62561 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62562             Bruno Haible  <bruno@clisp.org>
62563
62564         Add support for HP C 7.1 on OpenVMS 8.3.
62565         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62566
62567 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62568
62569         Update VMS specifics.
62570         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62571
62572 2008-03-02  Jim Meyering  <meyering@redhat.com>
62573
62574         Remove the last dependency on the "free" module.
62575         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62576         Reported by Bob Proulx.
62577
62578         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62579
62580         Remove useless "if" tests before free.  Deprecate "free" module.
62581         * doc/posix-functions/free.texi: Mention that this
62582         module is no longer useful.
62583         * modules/free (Notice): Say this module is obsolete.
62584         * modules/readutmp (Depends-on): Remove free.
62585         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62586         * lib/putenv.c (putenv): Likewise.
62587         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62588         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62589         * tests/test-c-strcasestr.c (main): Likewise.
62590         * tests/test-c-strstr.c (main): Likewise.
62591         * tests/test-mbscasestr1.c (main): Likewise.
62592         * tests/test-mbscasestr2.c (main): Likewise.
62593         * tests/test-mbsstr1.c (main): Likewise.
62594         * tests/test-mbsstr2.c (main): Likewise.
62595         * tests/test-memmem.c (main): Likewise.
62596         * tests/test-strcasestr.c (main): Likewise.
62597         * tests/test-striconv.c (main): Likewise.
62598         * tests/test-striconveh.c (main): Likewise.
62599         * tests/test-striconveha.c (main): Likewise.
62600         * tests/test-strstr.c (main): Likewise.
62601
62602         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62603
62604         bootstrap: sync from coreutils again
62605         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62606
62607 2008-03-01  Jim Meyering  <meyering@redhat.com>
62608
62609         bootstrap: sync from coreutils
62610         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62611         also when the target doesn't exist.
62612
62613 2008-03-01  Eric Blake  <ebb9@byu.net>
62614
62615         Fix bugs in last patch.
62616         * lib/memchr2.c (memchr2): Fix typo.
62617         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62618         extension.
62619         Reported by Bruce Korb.
62620
62621         New module 'memchr2'.
62622         * modules/memchr2: New file.
62623         * modules/memchr2-tests: Likewise.
62624         * lib/memchr2.h: Likewise.
62625         * lib/memchr2.c: Likewise, based on memchr.c.
62626         * tests/test-memchr2.c: New test.
62627         * MODULES.html.sh (String handling): Add memchr2.
62628
62629 2008-02-29  Bruno Haible  <bruno@clisp.org>
62630
62631         * modules/freadseek-tests: New file.
62632         * tests/test-freadseek.sh: New file.
62633         * tests/test-freadseek.c: New file.
62634
62635         New module 'freadseek'.
62636         * modules/freadseek: New file.
62637         * lib/freadseek.h: New file.
62638         * lib/freadseek.c: New file.
62639         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62640
62641 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62642
62643         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62644         wydawca.
62645
62646         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62647         program_invocation_name and program_invocation_short_name are
62648         present.
62649
62650 2008-02-28  Bruno Haible  <bruno@clisp.org>
62651
62652         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62653         * tests/test-freadptr.sh: Also test non-seekable stdin.
62654
62655 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62656
62657         * build-aux/bootstrap (source_base, m4_base)
62658         (doc_base, tests_base): New variables.
62659         (gnulib_tool_options): Do not hardcode base directories, use
62660         the above variables instead.
62661
62662 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62663
62664         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62665
62666 2008-02-28  Bruno Haible  <bruno@clisp.org>
62667
62668         * modules/freadptr-tests: New file.
62669         * tests/test-freadptr.sh: New file.
62670         * tests/test-freadptr.c: New file.
62671
62672         New module 'freadptr'.
62673         * modules/freadptr: New file.
62674         * lib/freadptr.h: New file.
62675         * lib/freadptr.c: New file.
62676         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62677
62678 2008-02-26  Karl Berry  <karl@freefriends.org>
62679
62680         Sync from Libtool:
62681         * libltdl/argz.c (argz_add, argz_count): New functions.
62682         * libltdl/argz.in.h: Declare them.
62683         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62684
62685 2008-02-22  Bruno Haible  <bruno@clisp.org>
62686
62687         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62688         is a pointer type.  Needed for HP-UX 10.
62689         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62690         * doc/posix-functions/gmtime_r.texi: Likewise.
62691         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62692
62693 2008-02-24  Bruno Haible  <bruno@clisp.org>
62694
62695         * modules/environ-tests: New file.
62696         * tests/test-environ.c: New file.
62697
62698         New module 'environ'.
62699         * modules/environ: New file.
62700         * lib/unistd.in.h (environ): New declaration.
62701         * m4/environ.m4: New file.
62702         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62703         after use.
62704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62705         HAVE_DECL_ENVIRON.
62706         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62707         HAVE_DECL_ENVIRON.
62708         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62709         wrong claim that 'environ' is missing on some systems.
62710         * modules/execute (Depends-on): Add environ.
62711         * lib/execute.c (environ): Remove fallback declaration.
62712         * modules/pipe (Depends-on): Add environ.
62713         * lib/pipe.c (environ): Remove fallback declaration.
62714         * modules/setenv (Depends-on): Add environ.
62715         * lib/setenv.c (environ): Remove fallback declaration.
62716         * modules/unsetenv (Depends-on): Add environ.
62717         * lib/unsetenv.c (environ): Remove fallback declaration.
62718         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62719         m4/environ.m4.
62720         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62721         (gl_PREREQ_UNSETENV): Likewise.
62722
62723 2008-02-24  Bruno Haible  <bruno@clisp.org>
62724
62725         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62726
62727 2008-02-20  Bob Proulx  <bob@proulx.com>
62728
62729         Enable use of older two part flavor 'git describe'.
62730         * build-aux/git-version-gen: If using the older two part flavor of
62731         git version then recreate the third part now present in the
62732         newer three part flavor of git describe.
62733
62734 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62735
62736         * lib/fts.c (fts_build): Typo correction to comment.
62737
62738 2008-02-17  Bruno Haible  <bruno@clisp.org>
62739
62740         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62741         generating no-op conflicts.
62742
62743 2008-02-17  Bruno Haible  <bruno@clisp.org>
62744
62745         Speed up by 10%.
62746         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62747         result_entries, rather than an index-based loop.
62748
62749 2008-02-17  Bruno Haible  <bruno@clisp.org>
62750
62751         Speed up by 25%.
62752         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62753         'hashcode_cached'.
62754         (entry_create): New function.
62755         (entry_hashcode): Use the cached hashcode if possible.
62756         (read_changelog_file, try_split_merged_entry): Use entry_create.
62757
62758 2008-02-17  Bruno Haible  <bruno@clisp.org>
62759
62760         Speed up from O(n^2) to O(n) for long ChangeLog files.
62761         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62762         (read_changelog_file): Change implementation of entries_reversed list
62763         to rbtreehash.
62764         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62765
62766 2008-02-17  Bruno Haible  <bruno@clisp.org>
62767
62768         New option --split-merged-entry.
62769         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62770         (find_paragraph_end, try_split_merged_entry): New functions.
62771         (long_options): Add option --split-merged-entry.
62772         (usage): Document option --split-merged-entry.
62773         (main): Implement option --split-merged-entry.
62774         Reported by Eric Blake.
62775
62776 2008-02-17  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/git-merge-changelog.c: Include c-strstr.h.
62779         (main): Support the "git pull --rebase" situation.
62780         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62781         Reported by Eric Blake.
62782
62783 2008-02-16  Eric Blake  <ebb9@byu.net>
62784
62785         Avoid doubling \ in common case of "c-maybe" quoting style.
62786         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62787         eliding outer quotes.
62788         * lib/quotearg.h: Document this.
62789         * tests/test-quotearg.c (result_strings, inputs, results_g)
62790         (flag_results, locale_results): Test it by adding a new string to
62791         each test group.
62792         (compare_strings): Test new string.
62793
62794 2008-02-13  Eric Blake  <ebb9@byu.net>
62795
62796         Avoid trigraph quoting in default output.
62797         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62798         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62799         unless explicitly requested.
62800         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62801
62802 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62803
62804         Don't rely on signed integer overflowing to negative value.
62805         * lib/getugroups.c (getugroups): Include <limits.h>.
62806         Instead, compare against INT_MAX, and increment only if the test passes.
62807
62808 2008-02-13  Jim Meyering  <meyering@redhat.com>
62809         and Eric Blake  <ebb9@byu.net>
62810
62811         Avoid shadowing warning and compile errors on Linux.
62812         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62813         forwarding macros on Linux.
62814         (dcgettext): Define a stub, for Linux.
62815         (results_g, main): Avoid warnings.
62816
62817 2008-02-12  Eric Blake  <ebb9@byu.net>
62818
62819         Silence warning in last patch.
62820         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62821
62822         Quotearg part 4: add tests, fix c-maybe colon quoting.
62823         * lib/quotearg.h: Improve documentation.
62824         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62825         escapes when adding outer quotes.  When quoting trigraphs, use
62826         valid C notation.  When quoting NUL, omit extra characters if next
62827         character is not digit.  Alter prototype.
62828         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62829         callers.
62830         * modules/quotearg-tests: New module.
62831         * tests/test-quotearg.c: New test.
62832
62833 2008-02-07  Eric Blake  <ebb9@byu.net>
62834
62835         Quotearg part 3: add flag to control outer quote elision.
62836         * lib/quotearg.h (c_maybe_quoting_style): New style.
62837         (enum quoting_flags): Better documentation of flags.
62838         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62839         c-maybe style.
62840         (quotearg_buffer_restyled): Handle new flag to elide outer
62841         quotes.
62842
62843         Quotearg part 2: add flag that can control NUL elision.
62844         * lib/quotearg.h (set_quoting_flags): New prototype.
62845         * lib/quotearg.c (struct quoting_options): Add flag field.
62846         (set_quoting_flags): New function.
62847         (quotearg_buffer_restyled): Add flags parameter.
62848         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62849         (quotearg_n_options): Set the flag, since length cannot be
62850         returned.
62851         (quoting_options_from_style): Default flags correctly.
62852
62853         Quotearg part 1: more wrappers, restore quotearg_char state.
62854         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62855         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62856         (quotearg_colon_mem): New wrappers.
62857         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62858         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62859         functions.
62860         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62861         (quotearg_colon_mem): New functions.
62862
62863 2008-02-11  Bruno Haible  <bruno@clisp.org>
62864
62865         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62866         library in the current directory: it does not work with parallel make.
62867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62868
62869 2008-02-11  Bruno Haible  <bruno@clisp.org>
62870
62871         * .gitattributes: New file.
62872
62873 2008-02-11  Jim Meyering  <meyering@redhat.com>
62874
62875         useless-if-before-free: Fix reversed exit values.
62876         * build-aux/useless-if-before-free: Use correct values
62877         for EXIT_MATCH and EXIT_NO_MATCH.
62878
62879         * build-aux/useless-if-before-free: Close stdout carefully.
62880
62881 2008-02-10  Bruno Haible  <bruno@clisp.org>
62882
62883         New module 'git-merge-changelog'.
62884         * modules/git-merge-changelog: New file.
62885         * lib/git-merge-changelog.c: New file.
62886
62887 2008-02-10  Jim Meyering  <meyering@redhat.com>
62888
62889         useless-if-before-free: New option: --list (-l).
62890
62891         useless-if-before-free: Don't exit immediately upon open failure.
62892         * build-aux/useless-if-before-free: Exit 2 for errors.
62893         Upon failure to open a file, don't exit immediately.
62894         Rather, just warn and continue with any remaining files.
62895
62896 2008-02-10  Bruno Haible  <bruno@clisp.org>
62897
62898         New abstract list operation 'node_set_value'.
62899         * lib/gl_list.h (gl_list_node_set_value): New function.
62900         (struct gl_list_implementation): New field node_set_value.
62901         * lib/gl_list.c (gl_list_node_set_value): New function.
62902         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62903         (gl_array_list_implementation): Update.
62904         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62905         (gl_carray_list_implementation): Update.
62906         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62907         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62908         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62909         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62910         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62911         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62912         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62913         Update.
62914         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62915         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62916         (gl_sublist_list_implementation): Update.
62917
62918 2008-02-10  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62921         Needed when ELEMENT is #defined to 'some_type *'.
62922
62923 2008-02-10  Jim Meyering  <meyering@redhat.com>
62924
62925         New script and module: useless-if-before-free
62926         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62927         * build-aux/useless-if-before-free: New file.
62928         * modules/useless-if-before-free: New file.
62929
62930         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62931
62932         xstrtol_error: Fix typo.
62933         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62934         s/exit_failure/exit_status/.
62935
62936 2008-02-09  Jim Meyering  <meyering@redhat.com>
62937
62938         New script and module: gitlog-to-changelog
62939         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62940         * modules/gitlog-to-changelog: New file.
62941         * build-aux/gitlog-to-changelog: New file.
62942
62943 2008-02-08  Jim Meyering  <meyering@redhat.com>
62944
62945         Avoid two "parameter unused" warnings.
62946         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62947         Mark "st" as used.
62948
62949         Use "git COMMAND", not "git-COMMAND".
62950         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62951         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62952         * build-aux/git-version-gen: Use "git status", not "git-status".
62953
62954 2008-02-07  Bruno Haible  <bruno@clisp.org>
62955
62956         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62957         Avoids a crash on Windows Vista.
62958         Reported by Adam Strzelecki <ono@java.pl> via
62959         Simon Josefsson <simon@josefsson.org>.
62960
62961 2008-02-06  Bruno Haible  <bruno@clisp.org>
62962
62963         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62964         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62965         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62967         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62969         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62970         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62978         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62979         left-adjust flag.
62980         * tests/test-snprintf-posix.h (test_function): Likewise.
62981         * tests/test-sprintf-posix.h (test_function): Likewise.
62982         * tests/test-vasprintf-posix.c (test_function): Likewise.
62983         * doc/posix-functions/fprintf.texi: Update.
62984         * doc/posix-functions/printf.texi: Update.
62985         * doc/posix-functions/snprintf.texi: Update.
62986         * doc/posix-functions/sprintf.texi: Update.
62987         * doc/posix-functions/vfprintf.texi: Update.
62988         * doc/posix-functions/vprintf.texi: Update.
62989         * doc/posix-functions/vsnprintf.texi: Update.
62990         * doc/posix-functions/vsprintf.texi: Update.
62991         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62992
62993 2008-02-06  Bruno Haible  <bruno@clisp.org>
62994
62995         Fix bug introduced on 2008-01-26.
62996         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62997
62998 2008-02-06  Bruno Haible  <bruno@clisp.org>
62999
63000         Fix bug introduced on 2007-06-10.
63001         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63002         !NEED_PRINTF_FLAG_ZERO.
63003
63004 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63005
63006         getloadavg: use libperfstat on AIX5
63007         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63008
63009 2008-02-03  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/diffseq.h: Add comments about required #includes.
63012         Reported by Michael Biggs <gnulib@doubleplum.net>.
63013
63014 2008-02-01  Bruno Haible  <bruno@clisp.org>
63015
63016         * users.txt: Add gnuit.
63017
63018 2008-01-31  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/md4.c (set_uint32): Mark as inline.
63021         * lib/md5.c (set_uint32): Likewise.
63022         * lib/sha1.c (set_uint32): Likewise.
63023         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63024         * m4/md5.m4 (gl_MD5): Likewise.
63025         * m4/sha1.m4 (gl_SHA1): Likewise.
63026
63027 2008-01-31  Jim Meyering  <meyering@redhat.com>
63028
63029         Use "sizeof VAR", rather than a literal "4".
63030         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63031         * lib/md4.c (md4_read_ctx): Likewise.
63032         * lib/sha1.c (sha1_read_ctx): Likewise.
63033
63034 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63035
63036         * tests/test-sha1.c: New file, based on test-md5.c.
63037
63038         * modules/crypto/sha1-tests: New file.
63039
63040 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63041
63042         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63043
63044 2008-01-31  Jim Meyering  <meyering@redhat.com>
63045
63046         Prefer "sizeof v" over the equivalent "4".
63047         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63048         * lib/md5.c (set_uint32): Likewise.
63049         * lib/sha1.c (set_uint32): Likewise.
63050
63051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63052
63053         * lib/sha1.c (set_uint32): Mark function as static.
63054
63055 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63056
63057         md2: clarify comments to say that alignment is not required.
63058         * lib/md2.h: Remove warning about alignment in comment.
63059         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63060         never been required.
63061
63062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63063
63064         md4: adapt alignment constraint fix from sha1.
63065         * lib/md4.c (set_uint32): New function, from sha1.c
63066         (md4_read_ctx): Use it.
63067         (md4_finish_ctx): Doc fix.
63068         * lib/md4.h: Doc fix.
63069
63070 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63071
63072         md5: adapt alignment constraint fix from sha1.
63073         * lib/md5.c (set_uint32): New function, from sha1.c
63074         (md5_read_ctx): Use it.
63075         (md5_finish_ctx): Doc fix.
63076         * lib/md5.h: Doc fix.
63077
63078 2008-01-30  Peter Palfrader  <weasel@debian.org>
63079
63080         sha1: remove the result buffer alignment constraint
63081         * lib/sha1.c (set_uint32): New function.
63082         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63083         constraint.
63084         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63085         * lib/sha1.h: Likewise.
63086
63087 2008-01-30  Andreas Schwab  <schwab@suse.de>
63088             Bruno Haible  <bruno@clisp.org>
63089
63090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63091         correct definition of LDBL_MIN_EXP.
63092
63093 2008-01-30  Karl Berry  <karl@gnu.org>
63094
63095         * config/srclist-update: try to preserve x bit on updates.
63096         * config/srclistvars.sh: update for karl.
63097
63098 2008-01-29  Jim Meyering  <meyering@redhat.com>
63099
63100         vasnprintf.c: Avoid warning about unused label
63101         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63102         "overflow" label definition and associated code with the
63103         same cpp condition that guards the sole use of that label.
63104
63105 2008-01-26  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63108         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63109         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63110         * lib/isnanl-nolibm.h (isnanl): Likewise.
63111         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63112
63113 2008-01-26  Bruno Haible  <bruno@clisp.org>
63114
63115         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63116         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63117
63118 2008-01-26  Bruno Haible  <bruno@clisp.org>
63119
63120         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63121         GCC >= 4.0 built-in.
63122         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63123
63124 2008-01-26  Bruno Haible  <bruno@clisp.org>
63125
63126         Rename isnan, applicable to 'double' only, to isnand.
63127         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63128         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63129         (configure.ac): Update.
63130         (Include): Replace "isnan.h" with "isnand.h".
63131         * m4/isnand.m4: Renamed from m4/isnan.m4.
63132         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63133         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63134         instead of isnan.c.
63135         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63136         instead of HAVE_ISNAN_IN_LIBC.
63137         (isnand): Renamed from isnan.
63138         * lib/isnand.c: New file.
63139         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63140         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63141         (Makefile.am): Update.
63142         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63143         Include isnand.h instead of isnan.h.
63144         (main): Test isnand instead of isnan.
63145         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63146         isnan-nolibm.
63147         * modules/frexp (Depends-on): Likewise.
63148         * modules/frexp-tests (Depends-on): Likewise.
63149         * modules/frexp-nolibm (Depends-on): Likewise.
63150         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63151         * modules/isfinite (Depends-on): Likewise.
63152         * modules/round-tests (Depends-on): Likewise.
63153         * modules/signbit (Depends-on): Likewise.
63154         * modules/signbit-tests (Depends-on): Likewise.
63155         * modules/snprintf-posix (Depends-on): Likewise.
63156         * modules/sprintf-posix (Depends-on): Likewise.
63157         * modules/trunc-tests (Depends-on): Likewise.
63158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63165         * modules/vasnprintf-posix (Depends-on): Likewise.
63166         * modules/vasprintf-posix (Depends-on): Likewise.
63167         * modules/vfprintf-posix (Depends-on): Likewise.
63168         * modules/vsnprintf-posix (Depends-on): Likewise.
63169         * modules/vsprintf-posix (Depends-on): Likewise.
63170         * lib/frexp.c: Include isnand.h instead of isnan.h.
63171         (ISNAN): Set to isnand instead of isnan.
63172         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63173         (gl_isfinited): Use isnand instead of isnan.
63174         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63175         (gl_signbitd): Use isnand instead of isnan.
63176         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63177         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63178         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63179         (main): Use isnand instead of isnan.
63180         * tests/test-round1.c: Include isnand.h.
63181         (main): Use isnand instead of isnan.
63182         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63183         (ISNAN): Set to isnand instead of isnan.
63184         * tests/test-trunc1.c: Include isnand.h.
63185         (main): Use isnand instead of isnan.
63186         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63187         (equal): Use isnand instead of isnan.
63188         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63189         isnand-nolibm.
63190         * NEWS: Mention the change.
63191
63192 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63193             Bruno Haible  <bruno@clisp.org>
63194
63195         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63196         the GCC builtins for signbits are present and set
63197         REPLACE_SIGNBIT_USING_GCC if so.
63198         * lib/math.in.h (signbit): Define using GCC builtins if
63199         REPLACE_SIGNBIT_USING_GCC is set.
63200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63201         REPLACE_SIGNBIT_USING_GCC.
63202         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63203
63204 2008-01-25  Jim Meyering  <meyering@redhat.com>
63205
63206         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63207         * lib/poll.c: Include <config.h>, not "config.h".
63208         * tests/test-getaddrinfo.c: Likewise.
63209
63210 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63211
63212         * modules/sockets-tests: New file.
63213
63214 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63215
63216         * modules/sockets: New module, can be used to call WSA_Startup and
63217         WSA_Cleanup when needed.
63218
63219         * lib/sockets.h, lib/sockets.c: New files.
63220
63221         * m4/sockets.m4: New file.
63222
63223         * tests/test-sockets.c: New file.
63224
63225 2008-01-19  Bruno Haible  <bruno@clisp.org>
63226
63227         * doc/posix-headers: Renamed from doc/headers.
63228         * doc/posix-functions: Renamed from doc/functions.
63229         * doc/gnulib.texi: Update.
63230
63231 2008-01-19  Bruno Haible  <bruno@clisp.org>
63232
63233         * doc/glibc-functions/strcasestr.texi: Include contents of
63234         doc/functions/strcasestr.texi, fixing the list of platforms.
63235         * doc/functions/strcasestr.texi: Remove file.
63236
63237 2008-01-19  Bruno Haible  <bruno@clisp.org>
63238
63239         * doc/glibc-functions/memmem.texi: Include contents of
63240         doc/functions/memmem.texi.
63241         * doc/functions/memmem.texi: Remove file.
63242
63243 2008-01-18  Bruno Haible  <bruno@clisp.org>
63244
63245         * doc/glibc-functions/*.texi: New files.
63246         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63247         to use the new files.
63248
63249 2008-01-17  Bruno Haible  <bruno@clisp.org>
63250
63251         * tests/test-gethostname.c (main): Fix printf statement.
63252
63253 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63254
63255         * modules/gethostname-tests: New file.
63256
63257         * tests/test-gethostname.c: New file.
63258
63259 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63260
63261         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63262         used by the UNAME case.  Reported by Bruno Haible
63263         <bruno@clisp.org>.
63264
63265 2008-01-17  Eric Blake  <ebb9@byu.net>
63266
63267         Convert c-strcasestr to be more efficient.
63268         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63269         (Depends-on): Add c-strcase, remove malloca, strnlen.
63270         * tests/test-c-strcasestr.c (main): Enhance test.
63271         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63272
63273 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63274
63275         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63276         Use it in creating po/Makevars.
63277
63278 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63279
63280         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63281         Applications that requires it should initialize libgcrypt
63282         manually.
63283
63284 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63285
63286         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63287
63288 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63289
63290         Fix problem with getdate on mingw32 reported by Simon Josefsson
63291         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63292         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63293         tzname", when deciding whether to declare tzname.
63294         * lib/strftime.c (tzname): Likewise.
63295
63296 2008-01-15  Bruno Haible  <bruno@clisp.org>
63297
63298         Work around a MacOS X 10.5 bug in frexpl().
63299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63300         * doc/functions/frexpl.texi: Document the bug.
63301         Reported by Elias Pipping <pipping@gentoo.org>.
63302
63303 2008-01-14  Eric Blake  <ebb9@byu.net>
63304
63305         Touch up previous patch.
63306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63307         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63308
63309         Convert strcasestr module to use Two-Way algorithm.
63310         * modules/strcasestr-simple: New module, based on the old
63311         strcasestr, but with Two-Way rather than KMP.
63312         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63313         * lib/string.in.h (rpl_strcasestr): Declare.
63314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63315         performance.
63316         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63317         * modules/string (Makefile.am): Support strcasestr.
63318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63319         * modules/strcasestr-tests (Depends-on): Check for alarm.
63320         * tests/test-strcasestr.c: Augment test.
63321         * lib/str-two-way.h: Clean up stray macro.
63322         * NEWS: Document new module.
63323         * MODULES.html.sh (string handling): Likewise.
63324         * doc/functions/strcasestr.texi: New file.
63325         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63326         here, since it is not a POSIX function.
63327
63328 2008-01-14  Colin Watson  <cjwatson@debian.org>
63329             Bruno Haible  <bruno@clisp.org>
63330
63331         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63332         works fine; if not, set REPLACE_STRSIGNAL.
63333         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63335         REPLACE_STRSIGNAL.
63336         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63337         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63338         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63339
63340 2008-01-14  Bruno Haible  <bruno@clisp.org>
63341
63342         * modules/strsignal (Include): Change to <string.h>.
63343
63344 2008-01-14  Colin Watson  <cjwatson@debian.org>
63345
63346         * modules/argp (Notice): Add a notice recommending to change
63347         XGETTEXT_OPTIONS.
63348         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63349
63350 2008-01-13  Colin Watson  <cjwatson@debian.org>
63351
63352         * modules/strsignal-tests: New file.
63353         * tests/test-strsignal.c: New file.
63354
63355         * lib/strsignal.c: New file, from glibc with modifications.
63356         * lib/siglist.h: New file, from glibc with modifications.
63357         * lib/string.in.h (strsignal): New declaration.
63358         * m4/strsignal.m4: New file.
63359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63360         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63361         * modules/strsignal: New file.
63362         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63363         HAVE_DECL_STRSIGNAL.
63364
63365 2008-01-13  Bruno Haible  <bruno@clisp.org>
63366
63367         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63368         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63369         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63370         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63371
63372 2008-01-13  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63375         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63376         * lib/argp.h (__attribute__): Likewise.
63377         * lib/c-stack.c (__attribute__): Likewise.
63378         * lib/error.h (__attribute__): Likewise.
63379         * lib/fts.c (__attribute__): Likewise.
63380         * lib/openat.h (__attribute__): Likewise.
63381         * lib/stdio.in.h (__attribute__): Likewise.
63382         * lib/string.in.h (__attribute__): Likewise.
63383         * lib/utimens.c (__attribute__): Likewise.
63384         * lib/vasnprintf.h (__attribute__): Likewise.
63385         * lib/xalloc.h (__attribute__): Likewise.
63386         * lib/xprintf.h (__attribute__): Likewise.
63387         * lib/xstrtol.h (__attribute__): Likewise.
63388         * lib/xvasprintf.h (__attribute__): Likewise.
63389
63390 2008-01-12  Bruno Haible  <bruno@clisp.org>
63391
63392         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63393         * doc/glibc-headers/a.out.texi: New file.
63394         * doc/glibc-headers/aliases.texi: New file.
63395         * doc/glibc-headers/alloca.texi: New file.
63396         * doc/glibc-headers/ar.texi: New file.
63397         * doc/glibc-headers/argp.texi: New file.
63398         * doc/glibc-headers/argz.texi: New file.
63399         * doc/glibc-headers/byteswap.texi: New file.
63400         * doc/glibc-headers/crypt.texi: New file.
63401         * doc/glibc-headers/endian.texi: New file.
63402         * doc/glibc-headers/envz.texi: New file.
63403         * doc/glibc-headers/err.texi: New file.
63404         * doc/glibc-headers/error.texi: New file.
63405         * doc/glibc-headers/execinfo.texi: New file.
63406         * doc/glibc-headers/fpu_control.texi: New file.
63407         * doc/glibc-headers/fstab.texi: New file.
63408         * doc/glibc-headers/fts.texi: New file.
63409         * doc/glibc-headers/getopt.texi: New file.
63410         * doc/glibc-headers/ieee754.texi: New file.
63411         * doc/glibc-headers/ifaddrs.texi: New file.
63412         * doc/glibc-headers/libintl.texi: New file.
63413         * doc/glibc-headers/mcheck.texi: New file.
63414         * doc/glibc-headers/mntent.texi: New file.
63415         * doc/glibc-headers/obstack.texi: New file.
63416         * doc/glibc-headers/paths.texi: New file.
63417         * doc/glibc-headers/printf.texi: New file.
63418         * doc/glibc-headers/pty.texi: New file.
63419         * doc/glibc-headers/resolv.texi: New file.
63420         * doc/glibc-headers/shadow.texi: New file.
63421         * doc/glibc-headers/sysexits.texi: New file.
63422         * doc/glibc-headers/ttyent.texi: New file.
63423
63424 2008-01-12  Jim Meyering  <meyering@redhat.com>
63425
63426         announce-gen: emit Gnulib's git-based version string.
63427         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63428         New option --gnulib-version=V, where V is expected to be
63429         the output of running git describe in the gnulib directory.
63430         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63431         not useful, and plan to stop publishing an xdelta file with each
63432         coreutils release.
63433
63434         * build-aux/announce-gen: Also check for lzma-compressed files.
63435
63436 2008-01-11  Bruno Haible  <bruno@clisp.org>
63437
63438         * tests/test-memmem.c (main): Increase maximum allowed time.
63439         * tests/test-strstr.c (main): Likewise.
63440
63441 2008-01-11  Bruno Haible  <bruno@clisp.org>
63442
63443         * doc/functions/memmem.texi: Add more precisions about platforms.
63444         * doc/functions/strstr.texi: Likewise.
63445
63446 2008-01-10  Eric Blake  <ebb9@byu.net>
63447
63448         * m4/strstr.m4: Delete cruft from copy-n-paste.
63449         Reported by Bruno Haible.
63450
63451 2008-01-10  Bruno Haible  <bruno@clisp.org>
63452
63453         Make c-strstr rely on strstr.
63454         * lib/c-strstr.c: Don't include str-kmp.h.
63455         (c_strstr): Define in terms of strstr.
63456         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63457         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63458
63459 2008-01-10  Bruno Haible  <bruno@clisp.org>
63460
63461         * doc/gnulib.texi (String Functions in C Locale): New section.
63462         * doc/c-ctype.texi: New file.
63463         * doc/c-strcase.texi: New file.
63464         * doc/c-strcaseeq.texi: New file.
63465         * doc/c-strcasestr.texi: New file.
63466         * doc/c-strstr.texi: New file.
63467         * doc/c-strtod.texi: New file.
63468         * doc/c-strtold.texi: New file.
63469
63470 2008-01-10  Eric Blake  <ebb9@byu.net>
63471
63472         * lib/relocatable.h: Fix a comment.
63473
63474 2008-01-10  Eric Blake  <ebb9@byu.net>
63475
63476         Share two-way algorithm.
63477         * lib/str-two-way.h: New file, merged from...
63478         * lib/memmem.c: ...here...
63479         * lib/strstr.c: ...and here.
63480         * modules/memmem (Files): Use it.
63481         * modules/strstr (Files): Likewise.
63482
63483         Avoid quadratic strstr implementations.
63484         * lib/strstr.c: New file.
63485         * m4/strstr.m4: Likewise.
63486         * modules/strstr: Likewise.
63487         * modules/strstr-tests: Likewise.
63488         * tests/test-strstr.c: Likewise.
63489         * lib/string.in.h (rpl_strstr): Declare.
63490         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63492         * modules/string (Makefile.am): Likewise.
63493         * MODULES.html.sh (string handling): Mention new module.
63494         * doc/functions/strstr.texi (strstr): Document the bug.
63495
63496 2008-01-10  Bruno Haible  <bruno@clisp.org>
63497
63498         * lib/relocatable.h (relocate): State whether result is freshly
63499         allocated or not.
63500         * lib/relocatable.c (relocate): Return a freshly allocated string
63501         instead of a pointer to a privately held string.
63502         Reported by Sylvain Beucler <beuc@gnu.org>.
63503
63504 2008-01-10  Colin Watson  <cjwatson@debian.org>
63505
63506         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63507         s/S_ISNLK/S_ISLNK/.
63508
63509 2008-01-09  Bruno Haible  <bruno@clisp.org>
63510
63511         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63512         and other files.
63513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63514         if it's only a guess.
63515         * modules/memmem: Simplify by depending on memmem-simple.
63516
63517 2008-01-09  Bruno Haible  <bruno@clisp.org>
63518
63519         Work around OpenBSD 4.0 tdelete() bug.
63520         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63521         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63522         macros and don't redefine the enum values.
63523         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63524         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63525         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63526
63527 2008-01-09  Bruno Haible  <bruno@clisp.org>
63528
63529         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63530         (main): Don't perform the tests if setlocale did not install a UTF-8
63531         locale. Needed on OpenBSD 4.0.
63532         * modules/wcwidth-tests (Depends-on): Add localcharset.
63533
63534 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63535
63536         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63537         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63538         * NEWS: announce this.
63539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63540
63541 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63542         and Eric Blake  <ebb9@byu.net>
63543
63544         Add memmem-simple module.
63545         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63546         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63547         * modules/memmem-simple: New file.
63548         * modules/memmem (Description): Tweak.
63549         * MODULES.html.sh (string handling): Mention new module.
63550         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63551         addressed by memmem-simple.
63552         * NEWS: Document the difference.
63553
63554 2008-01-09  Eric Blake  <ebb9@byu.net>
63555
63556         Give gcc some memmem optimization hints.
63557         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63558         (strcasestr): Declare as pure.
63559         * modules/memmem (Maintainer): Claim my implementation.
63560
63561 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63562
63563         Support AIX 6.1 and higher.
63564         * build-aux/config.libpath: Likewise.
63565         * build-aux/config.rpath: Likewise.
63566
63567 2008-01-08  Jim Meyering  <meyering@redhat.com>
63568             Bruno Haible  <bruno@clisp.org>
63569
63570         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63571         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63572         Reported by Peter Fales in
63573         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63574
63575 2008-01-08  Bruno Haible  <bruno@clisp.org>
63576
63577         * modules/unictype/category-of (Depends-on): Add
63578         unictype/category-none.
63579         * modules/unictype/category-and-tests (Depends-on): Add
63580         unictype/category-{L,N,Lu,Nd}.
63581         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63582         * modules/unictype/category-or-tests (Depends-on): Add
63583         unictype/category-{L,N}.
63584         * modules/unictype/category-name-tests (Depends-on): Add
63585         unictype/category-{Z,Nl}.
63586         Reported by Simon Josefsson.
63587
63588 2008-01-08  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63591         convention better.
63592         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63593         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63594         Reported by Peter Miller <millerp@canb.auug.org.au>.
63595
63596 2008-01-08  Eric Blake  <ebb9@byu.net>
63597
63598         Rewrite memmem to guarantee linear complexity without malloc.
63599         * lib/memmem.c (memmem): Use Two-Way rather than
63600         Knuth-Morris-Pratt, to allow O(1) space usage.
63601         (critical_factorization, two_way_short_needle)
63602         (two_way_long_needle): New functions.
63603         (knuth_morris_pratt): Delete.
63604         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63605         Add stdint.
63606         * tests/test-memmem.c (main): Add tests for periodic needle and
63607         sublinear performance.
63608         * doc/functions/memmem.texi (memmem): Document other deficiencies
63609         in cygwin and older glibc.
63610
63611 2008-01-08  Bruno Haible  <bruno@clisp.org>
63612
63613         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63614         augmentation.
63615
63616 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63617
63618         Add a configure time option: --disable-acl.
63619         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63620         AC_ARG_ENABLE(acl).
63621
63622 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63623
63624         * tests/test-localename.c: Don't include obsolete "setenv.h".
63625
63626         * modules/localename-tests (Depends-on): Need unsetenv.
63627
63628 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63629
63630         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63631
63632 2008-01-06  Colin Watson  <cjwatson@debian.org>
63633
63634         * users.txt: Add man-db.
63635
63636 2008-01-07  Bruno Haible  <bruno@clisp.org>
63637
63638         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63639         previous section name.
63640
63641 2008-01-07  Bruno Haible  <bruno@clisp.org>
63642
63643         * lib/progname.c (set_program_name): Don't strip off a leading
63644         "lt-" prefix outside a .libs directory.
63645         Suggested by Paul Eggert.
63646
63647 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63648             Bruno Haible  <bruno@clisp.org>
63649
63650         Improve memory cleanup in 'relocatable' module.
63651         * lib/relocatable.h (compute_curr_prefix): Change return type to
63652         'char *'.
63653         * lib/relocatable.c (compute_curr_prefix): Change return type to
63654         'char *'. Free curr_installdir after use.
63655         (relocate): Free curr_prefix_better after use.
63656         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63657
63658 2008-01-01  Bruno Haible  <bruno@clisp.org>
63659
63660         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63661         failure on older glibc systems.
63662         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63663
63664 2008-01-05  Eric Blake  <ebb9@byu.net>
63665
63666         Avoid quadratic system memmem.
63667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63668         Reported by Ralf Wildenhues.
63669
63670         Fix memmem test for mingw.
63671         * modules/memmem-tests (configure.ac): Check for alarm.
63672         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63673         it.
63674         * doc/functions/memmem.texi: New file.
63675         * doc/gnulib.texi (Function Substitutes): Add memmem.
63676         Reported by Bruno Haible.
63677
63678 2008-01-04  Bruno Haible  <bruno@clisp.org>
63679
63680         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63681         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63682         gl_HEADER_STRING_H_DEFAULTS.
63683
63684 2008-01-04  Eric Blake  <ebb9@byu.net>
63685
63686         Shorten duration of memmem test.
63687         * tests/test-memmem.c (main): Use alarm to declare failure if test
63688         is taking too long.
63689         Reported by Ralf Wildenhues.
63690
63691 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63692
63693         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63694         string, needed by strerror.
63695
63696 2008-01-03  Colin Watson  <cjwatson@debian.org>
63697             Bruno Haible  <bruno@clisp.org>
63698
63699         * doc/gnulib-tool.texi (Localization): New section.
63700
63701 2008-01-02  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63704         variables to 'unsigned char *' type.
63705         Reported by Paul Eggert.
63706
63707 2008-01-02  Jim Meyering  <jim@meyering.net>
63708
63709         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63710
63711 2007-12-31  Jim Meyering  <jim@meyering.net>
63712
63713         Avoid use of private FTS type name.
63714         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63715
63716 2007-12-30  Karl Berry  <karl@gnu.org>
63717
63718         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63719         work around defect in Texinfo and/or the standalone Info browser.
63720
63721 2007-12-30  Bruno Haible  <bruno@clisp.org>
63722
63723         Unify 5 copies of the KMP code.
63724         * lib/str-kmp.h: New file.
63725         * lib/c-strcasestr.c: Include str-kmp.h.
63726         (knuth_morris_pratt): Remove function.
63727         (c_strcasestr): Update.
63728         * lib/c-strstr.c: Include str-kmp.h.
63729         (knuth_morris_pratt): Remove function.
63730         (c_strcasestr): Update.
63731         * lib/mbscasestr.c: Include str-kmp.h.
63732         (knuth_morris_pratt_unibyte): Remove function.
63733         * lib/mbsstr.c: Include str-kmp.h.
63734         (knuth_morris_pratt_unibyte): Remove function.
63735         * lib/strcasestr.c: Include str-kmp.h.
63736         (knuth_morris_pratt): Remove function.
63737         (strcasestr): Update.
63738         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63739         * modules/c-strstr (Files): Likewise.
63740         * modules/mbscasestr (Files): Likewise.
63741         * modules/mbsstr (Files): Likewise.
63742         * modules/strcasestr (Files): Likewise.
63743         Suggested by Paul Eggert.
63744
63745 2007-12-30  Bruno Haible  <bruno@clisp.org>
63746
63747         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63748         defined.
63749
63750 2007-12-30  Bruno Haible  <bruno@clisp.org>
63751
63752         * lib/xmalloca.h: Include xalloc.h.
63753         (xnmalloca): New macro.
63754
63755 2007-12-30  Bruno Haible  <bruno@clisp.org>
63756
63757         * lib/malloca.h (nmalloca): New macro.
63758         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63759         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63760         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63761         knuth_morris_pratt_multibyte): Likewise.
63762         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63763         knuth_morris_pratt_multibyte): Likewise.
63764         * lib/memmem.c (knuth_morris_pratt): Likewise.
63765         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63766
63767 2007-12-25  Bruno Haible  <bruno@clisp.org>
63768
63769         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63770         * lib/glob.c: Don't include openat.h.
63771         (link_exists2_p): Add back the code that deals with the
63772         !GLOB_ALTDIRFUNC case.
63773         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63774         let it do the filename concatenation.
63775         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63776         * modules/glob (Depends-on): Remove openat.
63777
63778 2007-12-31  Bruno Haible  <bruno@clisp.org>
63779
63780         * modules/dirfd (License): Change to LGPLv2+.
63781         Approved by Jim Meyering.
63782
63783 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63786         when multiplying M by sizeof (size_t).
63787
63788 2007-12-10  Martin Lambers  <marlam@marlam.de>
63789
63790         Override getpagesize on mingw.
63791         * lib/getpagesize.c: New file.
63792         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63793         * modules/getpagesize (Files): Add lib/getpagesize.c.
63794         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63796         REPLACE_GETPAGESIZE.
63797         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63798
63799 2007-12-25  Bruno Haible  <bruno@clisp.org>
63800
63801         * modules/localcharset (Notice): New field.
63802         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63803         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63804
63805 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63806             Bruno Haible  <bruno@clisp.org>
63807
63808         Avoid using the syntax symbol() in formatted documentation.
63809         * MODULES.html.sh (func_module): When replacing symbol() with a
63810         hyperlink, remove the parentheses. Show an error if some remain.
63811         Recognize and render the '...' syntax.
63812         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63813         Rework. Add paragraph about GCC's inlining.
63814         * doc/alloca.texi: Likewise.
63815         * doc/error.texi: Remove parentheses from symbol reference.
63816         * doc/gnulib-intro.texi: Likewise.
63817         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63818         * modules/fnmatch (Description): Reword to say "the ... function".
63819         * modules/full-read (Description): Likewise.
63820         * modules/full-write (Description): Likewise.
63821         * modules/safe-read (Description): Likewise.
63822         * modules/safe-write (Description): Likewise.
63823         * modules/strchrnul (Description): Likewise.
63824         * modules/trim (Description): Likewise.
63825         * modules/error (Description): Remove parentheses from symbol
63826         references.
63827         * modules/verror (Description): Likewise.
63828         Reported by Karl Berry.
63829
63830 2007-12-25  Bruno Haible  <bruno@clisp.org>
63831
63832         Fixup after 2007-10-16 commit.
63833         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63834
63835 2007-12-24  Bruno Haible  <bruno@clisp.org>
63836
63837         Make --enable-relocatable work with DESTDIR.
63838         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63839         to compute installdir from destprog.
63840         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63841         also set the RELOC_DESTDIR variable.
63842         Reported by Левашев Иван <octagram@bluebottle.com>.
63843
63844 2007-12-24  Bruno Haible  <bruno@clisp.org>
63845
63846         Fix link error due to xalloc_die().
63847         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63848         of xreadlink.
63849         * lib/relocwrapper.c: Update comments.
63850         * build-aux/install-reloc: Remove xreadlink.c from file list.
63851         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63852         xreadlink.c.
63853         Reported by Левашев Иван <octagram@bluebottle.com>.
63854
63855 2007-12-24  Bruno Haible  <bruno@clisp.org>
63856
63857         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63858         * lib/setenv.h: Remove file.
63859         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63860         lib/setenv.h.
63861         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63862         (Depends-on): Add stdlib.
63863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63864         gl_FUNC_UNSETENV.
63865         (Include): Replace setenv.h with <stdlib.h>.
63866         * modules/unsetenv: New file.
63867         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63868         * lib/unsetenv.c: Include <stdlib.h> first.
63869         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63870         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63871         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63872         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63873         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63874         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63876         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63877         * doc/functions/unsetenv.texi: Update.
63878         * modules/xsetenv (Depends-on): Add unsetenv.
63879         * modules/getdate (Depends-on): Likewise.
63880         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63881         * lib/xsetenv.c: Don't include setenv.h.
63882         * lib/getdate.y: Likewise.
63883         * lib/relocwrapper.c: Likewise.
63884         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63885         (Depends-on): Add stdlib.
63886         * NEWS: Mention the changes.
63887         Reported by Левашев Иван <octagram@bluebottle.com>.
63888
63889 2007-12-23  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63892         indentation.
63893
63894 2007-12-23  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/c-strcasestr.c: Add more comments.
63897         * lib/c-strstr.c: Likewise.
63898         * lib/mbscasestr.c: Likewise.
63899         * lib/mbsstr.c: Likewise.
63900         * lib/strcasestr.c: Likewise.
63901         * lib/memmem.c: Likewise.
63902
63903 2007-12-23  Bruno Haible  <bruno@clisp.org>
63904
63905         * tests/test-memmem.c: Include <string.h> first.
63906
63907 2007-12-22  Bruno Haible  <bruno@clisp.org>
63908
63909         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63910         the contents of $testsbase.
63911         Reported by Ralf Wildenhues.
63912
63913 2007-12-22  Bruno Haible  <bruno@clisp.org>
63914
63915         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63916         two variables local_ldadd_before, local_ldadd_last.
63917
63918 2007-12-20  Eric Blake  <ebb9@byu.net>
63919
63920         Work around circular library issue when cross-compiling.
63921         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63922         that progname.o does not need to pull in rpl_memcmp.
63923
63924 2007-12-19  Eric Blake  <ebb9@byu.net>
63925
63926         Fix memmem to avoid O(n^2) worst-case complexity.
63927         * lib/memmem.c (knuth_morris_pratt): New function.
63928         (memmem): Use it if first few naive iterations fail.
63929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63930         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63931         * modules/memchr (License): Likewise.
63932         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63933         malloca.
63934         * tests/test-memmem.c: Rewrite, borrowing ideas from
63935         test-mbsstr1.c; the old version wouldn't even compile!
63936         * modules/memmem-tests: New file.
63937         * lib/string.in.h (rpl_memmem): Add declaration.
63938         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63940         REPLACE_MEMMEM.
63941
63942 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63943
63944         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63945         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63946         before any system include files, and undef after them all.  This
63947         should fix a problem on VMS reported by John E. Malmberg in
63948         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63949
63950 2007-12-17  Eric Blake  <ebb9@byu.net>
63951
63952         Revert addition of verify, for BSD/OS.
63953         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63954         can't handle large files, for the sake of obsolete platforms.
63955         * modules/fseeko (Depends-on): Remove verify.
63956         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63957         * doc/functions/ftello.texi (ftello): Likewise.
63958         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63959         Reported by Larry Jones.
63960
63961 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63962
63963         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63964         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63965
63966 2007-12-17  Jim Meyering  <meyering@redhat.com>
63967
63968         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63969         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63970         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63971         * modules/getcwd (Depends-on): Add openat.
63972         Reported by Petr Salinger.
63973
63974 2007-12-17  Bruno Haible  <bruno@clisp.org>
63975
63976         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63977         avoid a segmentation fault of the configure test on x86_64 systems.
63978
63979 2007-12-15  Jim Meyering  <meyering@redhat.com>
63980
63981         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63982
63983 2007-12-13  Eric Blake  <ebb9@byu.net>
63984
63985         Another fseek test.
63986         * tests/test-fseek.c (main): Also test ungetc handling.
63987         * tests/test-fseeko.c (main): Likewise.
63988         * modules/fseeko (Depends-on): Add verify.
63989         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63990         large.
63991         Reported by Larry Jones.
63992
63993         Fix fseeko on mingw.
63994         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63995         seek.
63996
63997         Beef up fseek tests.
63998         * tests/test-fseek.c (main): Also test eof handling.
63999         * tests/test-fseeko.c (main): Likewise.
64000         Reported by Larry Jones.
64001
64002 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64003
64004         Fix fseeko on BSD-based platforms.
64005         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64006         successful seek.
64007
64008 2007-12-12  Eric Blake  <ebb9@byu.net>
64009
64010         Allow circular dependency of separate libtests.a
64011         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64012         when use_libtests.
64013
64014 2007-12-11  Eric Blake  <ebb9@byu.net>
64015
64016         Fix bug with -0.0L in previous patch.
64017         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64018         * tests/test-isnan.c (main): Also test on zeroes.
64019         * tests/test-isnanf.c (main): Likewise.
64020         * tests/test-isnanl.h (main): Likewise.
64021
64022         Detect pseudo-denormals on x86 even when cross-compiling.
64023         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64024         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64025         invalid bit patterns that happen to satisfy ==.
64026
64027         Avoid link failures with separate libtests.a.
64028         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64029         last, to satisfy circular dependencies.
64030
64031 2007-12-11  Eric Blake  <ebb9@byu.net>
64032         and Bruno Haible  <bruno@clisp.org>
64033
64034         Fix OpenBSD 4.0 <float.h> handling of long double.
64035         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64036         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64037         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64038
64039 2007-12-11  Jim Meyering  <meyering@redhat.com>
64040
64041         * users.txt: Add libvirt.
64042
64043         Support versions of autoconf prior to 2.59c.
64044         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64045         if it is not already defined.
64046
64047 2007-12-09  Bruno Haible  <bruno@clisp.org>
64048
64049         Let 'gnulib-tool --import' collect sources needed for the tests in
64050         tests/ rather than in lib/.
64051         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64052         argument. If true, add rules to generate libtests.a, and put libtests.a
64053         into $(LDADD). Consider source files in subdirectories and set
64054         uses_subdirs.
64055         (func_emit_initmacro_start, func_emit_initmacro_end,
64056         func_emit_initmacro_done): Pass all arguments explicitly.
64057         (func_import): Determine two module lists main_modules,
64058         testsrelated_modules. Determine use_libtests. Determine two variables
64059         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64060         instead of just sed_transform_lib_file. Determine two variables
64061         main_files and testsrelated_files. Compute 'files' as the union of
64062         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64063         func_add_or_update. In the generated gnulib-comp.m4, collect the
64064         object files for tests/ in different variables than those for lib/.
64065         Substitute LIBTESTS_LIBDEPS.
64066         (func_create_testdir): Combine the uses_subdirs results from
64067         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64068
64069 2007-12-09  Bruno Haible  <bruno@clisp.org>
64070
64071         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64072         the build-aux directory.
64073
64074 2007-12-09  Bruno Haible  <bruno@clisp.org>
64075
64076         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64077         introduced on 2006-09-09.
64078
64079 2007-12-07  Jim Meyering  <meyering@redhat.com>
64080
64081         Let these macros work also with autoconf-2.59.
64082         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64083         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64085
64086 2007-12-06  Jim Meyering  <meyering@redhat.com>
64087
64088         Avoid a configure-time syntax error in gl_FUNC_ACL.
64089         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64090         function in each branch, before testing the cache variable.
64091
64092 2007-12-04  Eric Blake  <ebb9@byu.net>
64093
64094         Make scripts executable.
64095         * build-aux/config.guess: Add execute permissions.
64096         * build-aux/config.sub: Likewise.
64097         * build-aux/gendocs.sh: Likewise.
64098
64099         Fix frexp on mingw.
64100         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64101         cross-compiling.
64102         * doc/functions/frexp.texi (frexp): Document the bug.
64103
64104         Make cygwin fseeko check more reliable.
64105         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64106         version numbers, rather than unrelated feature check.
64107         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64108         * doc/functions/ftello.texi (ftello): Likewise.
64109         Reported by Bruno Haible.
64110
64111         * m4/strerror.m4: Bump version number.
64112
64113 2007-12-03  Bruno Haible  <bruno@clisp.org>
64114
64115         * doc/functions/mprotect.texi: Mention the mingw problem.
64116
64117 2007-12-03  Eric Blake  <ebb9@byu.net>
64118
64119         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64120         REPLACE_STRERROR is initialized before this macro.
64121
64122 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64125         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64126         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64127         put -lsec in even for programs other than 'ls'.  This fixes a problem
64128         for gettext reported by Bruno Haible in
64129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64130         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64131         Add support for Solaris 10.  This isn't efficient, but should get the
64132         job done for now.
64133
64134 2007-12-03  James Youngman  <jay@gnu.org>
64135
64136         * doc/regexprops-generic.texi: change "an close-group" to "a
64137         close-group" and "illegal" to "not allowed".
64138
64139 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64140
64141         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64142         pr_byname.h. Needed for the rare case when the maintainer has done
64143         "make maintainer-clean" in the source directory and then attempts a
64144         build outside the source directory.
64145         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64146         scripts_byname.h.
64147
64148 2007-12-02  Martin Lambers <marlam@marlam.de>
64149             Bruno Haible  <bruno@clisp.org>
64150
64151         * lib/getpagesize.h: Remove file.
64152         * lib/unistd.in.h: Include declaration of getpagesize here.
64153         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64154         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64155         HAVE_SYS_PARAM_H.
64156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64157         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64158         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64159         (Depends-on): Add unistd.
64160         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64161         (Include): Use <unistd.h> instead of getpagesize.h.
64162         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64163         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64164         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64165         gl_GETPAGESIZE invocation, already handled by module dependency.
64166         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64167
64168 2007-12-02  Bruno Haible  <bruno@clisp.org>
64169
64170         * modules/strings-tests: New file.
64171         * tests/test-strings.c: New file.
64172
64173         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64174         * lib/strings.in.h: New file.
64175         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64176         * m4/strings_h.m4: New file.
64177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64178         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64179         * modules/strings: New file.
64180         * modules/string (Makefile.am): Update.
64181         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64182         Reported by Karl Berry.
64183
64184 2007-12-01  Eric Blake  <ebb9@byu.net>
64185
64186         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64187         accommodate fix in cygwin 1.5.25.
64188
64189 2007-12-01  Jim Meyering  <meyering@redhat.com>
64190
64191         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64192         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64193         that would inhibit utf8-optimization of a regexp containing line-
64194         or buffer-anchors, e.g., `^', `$'.
64195
64196 2007-11-30  Bruno Haible  <bruno@clisp.org>
64197
64198         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64199         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64200         glthread_recursive_lock_init.
64201         * lib/lock.c (glthread_recursive_lock_init)
64202         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64204
64205 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         New function qset_acl, like set_acl but with syscall semantics.
64208         * lib/acl.h (qset_acl): New decl.
64209         * lib/acl.c (qset_acl): New function.
64210         (set_acl): Use new function.  Use more-consistent diagnostics.
64211
64212 2007-11-28  Jim Meyering  <meyering@redhat.com>
64213
64214         * modules/physmem (License): Change from GPL to LGPLv2+.
64215
64216 2007-11-26  Bruno Haible  <bruno@clisp.org>
64217
64218         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64219         'long double' type has excess precision.
64220         Reported by Jim Meyering in
64221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64222
64223 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64224
64225         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64226         Sync from <http://gnu.org/licenses>.
64227         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64228         with license text from same location.
64229         * doc/maintain.texi, doc/standards.texi:  Sync from
64230         <http://savannah.gnu.org/projects/gnustandards>.
64231
64232 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64233         and Jim Meyering  <meyering@redhat.com>
64234
64235         Adjust getdate' grammar to accept a slightly more regular language.
64236         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64237         Before, the former was rejected.
64238         * lib/getdate.y (digits_to_date_time): New function, factored
64239         out of ...
64240         (number): ...here.  Just call digits_to_date_time.
64241         (hybrid): New non-terminal to handle an <unsigned number,
64242         signed relative offset> sequence consistently.
64243
64244 2007-11-18  Jim Meyering  <meyering@redhat.com>
64245
64246         Pull my changes from coreutils:
64247         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64248         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64249         use of $gnulib_tool_option_extras, so that it's separated from the
64250         preceding argument.
64251
64252         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64253         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64254         parent destination directories before copying a file into place.
64255
64256 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64257
64258         bootstrap: work also with 4-argument variant of AC_INIT
64259         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64260
64261 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64262
64263         Port test-getaddrinfo to Solaris.
64264         Problem reported by Bruno Haible in
64265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64266         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64267         explanation of setting 'hints'.
64268         Don't reject an implementation merely because it returns EAI_SERVICE.
64269         (EAI_SERVICE): Define to 0 if not defined.
64270
64271 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         The license of gnu-make and posix-shell is now "GPLed build tool".
64274         * modules/gnu-make (License): Likewise.
64275         * modules/posix-shell (License): Likewise.
64276
64277         New module posix-shell, for determining a POSIX shell
64278         or perhaps something that is close enough to a POSIX shell.
64279         * m4/posix-shell.m4: New file.
64280         * modules/posix-shell: New file.
64281
64282         * MODULES.html.sh: Mention new module.
64283
64284         New module gnu-make, for determining whether we're using GNU Make.
64285         * m4/gnu-make.m4: New file.
64286         * modules/gnu-make: New file.
64287         * MODULES.html.sh: Mention new module.
64288
64289 2007-11-14  Jim Meyering  <meyering@redhat.com>
64290
64291         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64292         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64293         use this macro to create a function _definition_.
64294         Remove useless "#undef ARGMATCH_DIE".
64295
64296 2007-11-14  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/config.charset: Update for OpenBSD 4.1.
64299         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64300
64301 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         Document 64-bit #if problems in stdint.texi.
64304         * doc/headers/stdint.texi (stdint.h): Mention problems with
64305         64-bit-#if, and how to work around them.
64306
64307         Don't insist on 'long long int' support in the preprocessor.  It
64308         breaks too many things.  For example, PRIdMAX still uses a 'long
64309         long int' format with the latest Sun compiler, even though
64310         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64311         preprocessor problem.  This causes the latest coreutils to dump
64312         core on Solaris 10 sparc with the Sun C compiler.
64313         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64314         the troublesome expressions at configure-time, not at #if-time.
64315         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64316         preprocessor.
64317         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64318         compile-time C checks, done at 'configure'-time.
64319         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64320         * modules/inttypes (Makefile): Substitute the new symbols that
64321         gl_INTTYPES_H now generates.
64322         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64323
64324 2007-11-12  Bruno Haible  <bruno@clisp.org>
64325
64326         Tests for Unicode character classification functions.
64327
64328         * modules/unictype/bidicategory-byname-tests: New file.
64329         * modules/unictype/bidicategory-name-tests: New file.
64330         * modules/unictype/bidicategory-of-tests: New file.
64331         * modules/unictype/bidicategory-test-tests: New file.
64332         * modules/unictype/block-list-tests: New file.
64333         * modules/unictype/block-of-tests: New file.
64334         * modules/unictype/block-test-tests: New file.
64335         * modules/unictype/category-C-tests: New file.
64336         * modules/unictype/category-Cc-tests: New file.
64337         * modules/unictype/category-Cf-tests: New file.
64338         * modules/unictype/category-Cn-tests: New file.
64339         * modules/unictype/category-Co-tests: New file.
64340         * modules/unictype/category-Cs-tests: New file.
64341         * modules/unictype/category-L-tests: New file.
64342         * modules/unictype/category-Ll-tests: New file.
64343         * modules/unictype/category-Lm-tests: New file.
64344         * modules/unictype/category-Lo-tests: New file.
64345         * modules/unictype/category-Lt-tests: New file.
64346         * modules/unictype/category-Lu-tests: New file.
64347         * modules/unictype/category-M-tests: New file.
64348         * modules/unictype/category-Mc-tests: New file.
64349         * modules/unictype/category-Me-tests: New file.
64350         * modules/unictype/category-Mn-tests: New file.
64351         * modules/unictype/category-N-tests: New file.
64352         * modules/unictype/category-Nd-tests: New file.
64353         * modules/unictype/category-Nl-tests: New file.
64354         * modules/unictype/category-No-tests: New file.
64355         * modules/unictype/category-P-tests: New file.
64356         * modules/unictype/category-Pc-tests: New file.
64357         * modules/unictype/category-Pd-tests: New file.
64358         * modules/unictype/category-Pe-tests: New file.
64359         * modules/unictype/category-Pf-tests: New file.
64360         * modules/unictype/category-Pi-tests: New file.
64361         * modules/unictype/category-Po-tests: New file.
64362         * modules/unictype/category-Ps-tests: New file.
64363         * modules/unictype/category-S-tests: New file.
64364         * modules/unictype/category-Sc-tests: New file.
64365         * modules/unictype/category-Sk-tests: New file.
64366         * modules/unictype/category-Sm-tests: New file.
64367         * modules/unictype/category-So-tests: New file.
64368         * modules/unictype/category-Z-tests: New file.
64369         * modules/unictype/category-Zl-tests: New file.
64370         * modules/unictype/category-Zp-tests: New file.
64371         * modules/unictype/category-Zs-tests: New file.
64372         * modules/unictype/category-and-not-tests: New file.
64373         * modules/unictype/category-and-tests: New file.
64374         * modules/unictype/category-byname-tests: New file.
64375         * modules/unictype/category-name-tests: New file.
64376         * modules/unictype/category-none-tests: New file.
64377         * modules/unictype/category-of-tests: New file.
64378         * modules/unictype/category-or-tests: New file.
64379         * modules/unictype/category-test-withtable-tests: New file.
64380         * modules/unictype/combining-class-tests: New file.
64381         * modules/unictype/ctype-alnum-tests: New file.
64382         * modules/unictype/ctype-alpha-tests: New file.
64383         * modules/unictype/ctype-blank-tests: New file.
64384         * modules/unictype/ctype-cntrl-tests: New file.
64385         * modules/unictype/ctype-digit-tests: New file.
64386         * modules/unictype/ctype-graph-tests: New file.
64387         * modules/unictype/ctype-lower-tests: New file.
64388         * modules/unictype/ctype-print-tests: New file.
64389         * modules/unictype/ctype-punct-tests: New file.
64390         * modules/unictype/ctype-space-tests: New file.
64391         * modules/unictype/ctype-upper-tests: New file.
64392         * modules/unictype/ctype-xdigit-tests: New file.
64393         * modules/unictype/decimal-digit-tests: New file.
64394         * modules/unictype/digit-tests: New file.
64395         * modules/unictype/mirror-tests: New file.
64396         * modules/unictype/numeric-tests: New file.
64397         * modules/unictype/property-alphabetic-tests: New file.
64398         * modules/unictype/property-ascii-hex-digit-tests: New file.
64399         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64400         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64401         * modules/unictype/property-bidi-block-separator-tests: New file.
64402         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64403         * modules/unictype/property-bidi-common-separator-tests: New file.
64404         * modules/unictype/property-bidi-control-tests: New file.
64405         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64406         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64407         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64408         * modules/unictype/property-bidi-european-digit-tests: New file.
64409         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64410         * modules/unictype/property-bidi-left-to-right-tests: New file.
64411         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64412         * modules/unictype/property-bidi-other-neutral-tests: New file.
64413         * modules/unictype/property-bidi-pdf-tests: New file.
64414         * modules/unictype/property-bidi-segment-separator-tests: New file.
64415         * modules/unictype/property-bidi-whitespace-tests: New file.
64416         * modules/unictype/property-byname-tests: New file.
64417         * modules/unictype/property-combining-tests: New file.
64418         * modules/unictype/property-composite-tests: New file.
64419         * modules/unictype/property-currency-symbol-tests: New file.
64420         * modules/unictype/property-dash-tests: New file.
64421         * modules/unictype/property-decimal-digit-tests: New file.
64422         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64423         * modules/unictype/property-deprecated-tests: New file.
64424         * modules/unictype/property-diacritic-tests: New file.
64425         * modules/unictype/property-extender-tests: New file.
64426         * modules/unictype/property-format-control-tests: New file.
64427         * modules/unictype/property-grapheme-base-tests: New file.
64428         * modules/unictype/property-grapheme-extend-tests: New file.
64429         * modules/unictype/property-grapheme-link-tests: New file.
64430         * modules/unictype/property-hex-digit-tests: New file.
64431         * modules/unictype/property-hyphen-tests: New file.
64432         * modules/unictype/property-id-continue-tests: New file.
64433         * modules/unictype/property-id-start-tests: New file.
64434         * modules/unictype/property-ideographic-tests: New file.
64435         * modules/unictype/property-ids-binary-operator-tests: New file.
64436         * modules/unictype/property-ids-trinary-operator-tests: New file.
64437         * modules/unictype/property-ignorable-control-tests: New file.
64438         * modules/unictype/property-iso-control-tests: New file.
64439         * modules/unictype/property-join-control-tests: New file.
64440         * modules/unictype/property-left-of-pair-tests: New file.
64441         * modules/unictype/property-line-separator-tests: New file.
64442         * modules/unictype/property-logical-order-exception-tests: New file.
64443         * modules/unictype/property-lowercase-tests: New file.
64444         * modules/unictype/property-math-tests: New file.
64445         * modules/unictype/property-non-break-tests: New file.
64446         * modules/unictype/property-not-a-character-tests: New file.
64447         * modules/unictype/property-numeric-tests: New file.
64448         * modules/unictype/property-other-alphabetic-tests: New file.
64449         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64450         * modules/unictype/property-other-grapheme-extend-tests: New file.
64451         * modules/unictype/property-other-id-continue-tests: New file.
64452         * modules/unictype/property-other-id-start-tests: New file.
64453         * modules/unictype/property-other-lowercase-tests: New file.
64454         * modules/unictype/property-other-math-tests: New file.
64455         * modules/unictype/property-other-uppercase-tests: New file.
64456         * modules/unictype/property-paired-punctuation-tests: New file.
64457         * modules/unictype/property-paragraph-separator-tests: New file.
64458         * modules/unictype/property-pattern-syntax-tests: New file.
64459         * modules/unictype/property-pattern-white-space-tests: New file.
64460         * modules/unictype/property-private-use-tests: New file.
64461         * modules/unictype/property-punctuation-tests: New file.
64462         * modules/unictype/property-quotation-mark-tests: New file.
64463         * modules/unictype/property-radical-tests: New file.
64464         * modules/unictype/property-sentence-terminal-tests: New file.
64465         * modules/unictype/property-soft-dotted-tests: New file.
64466         * modules/unictype/property-space-tests: New file.
64467         * modules/unictype/property-terminal-punctuation-tests: New file.
64468         * modules/unictype/property-test-tests: New file.
64469         * modules/unictype/property-titlecase-tests: New file.
64470         * modules/unictype/property-unassigned-code-value-tests: New file.
64471         * modules/unictype/property-unified-ideograph-tests: New file.
64472         * modules/unictype/property-uppercase-tests: New file.
64473         * modules/unictype/property-variation-selector-tests: New file.
64474         * modules/unictype/property-white-space-tests: New file.
64475         * modules/unictype/property-xid-continue-tests: New file.
64476         * modules/unictype/property-xid-start-tests: New file.
64477         * modules/unictype/property-zero-width-tests: New file.
64478         * modules/unictype/scripts-tests: New file.
64479         * modules/unictype/syntax-c-ident-tests: New file.
64480         * modules/unictype/syntax-c-whitespace-tests: New file.
64481         * modules/unictype/syntax-java-ident-tests: New file.
64482         * modules/unictype/syntax-java-whitespace-tests: New file.
64483         * tests/unictype/test-bidi_byname.c: New file.
64484         * tests/unictype/test-bidi_name.c: New file.
64485         * tests/unictype/test-bidi_of.c: New file.
64486         * tests/unictype/test-bidi_test.c: New file.
64487         * tests/unictype/test-block_list.c: New file.
64488         * tests/unictype/test-block_of.c: New file.
64489         * tests/unictype/test-block_test.c: New file.
64490         * tests/unictype/test-categ_and.c: New file.
64491         * tests/unictype/test-categ_and_not.c: New file.
64492         * tests/unictype/test-categ_byname.c: New file.
64493         * tests/unictype/test-categ_name.c: New file.
64494         * tests/unictype/test-categ_none.c: New file.
64495         * tests/unictype/test-categ_of.c: New file.
64496         * tests/unictype/test-categ_or.c: New file.
64497         * tests/unictype/test-categ_test_withtable.c: New file.
64498         * tests/unictype/test-combining.c: New file.
64499         * tests/unictype/test-decdigit.c: New file.
64500         * tests/unictype/test-digit.c: New file.
64501         * tests/unictype/test-mirror.c: New file.
64502         * tests/unictype/test-numeric.c: New file.
64503         * tests/unictype/test-pr_byname.c: New file.
64504         * tests/unictype/test-pr_test.c: New file.
64505         * tests/unictype/test-predicate-part1.h: New file.
64506         * tests/unictype/test-predicate-part2.h: New file.
64507         * tests/unictype/test-scripts.c: New file.
64508         * tests/unictype/test-sy_c_ident.c: New file.
64509         * tests/unictype/test-sy_java_ident.c: New file.
64510
64511         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64512         for Unicode 5.0.0.
64513         * tests/unictype/test-categ_Cc.c: Likewise.
64514         * tests/unictype/test-categ_Cf.c: Likewise.
64515         * tests/unictype/test-categ_Cn.c: Likewise.
64516         * tests/unictype/test-categ_Co.c: Likewise.
64517         * tests/unictype/test-categ_Cs.c: Likewise.
64518         * tests/unictype/test-categ_L.c: Likewise.
64519         * tests/unictype/test-categ_Ll.c: Likewise.
64520         * tests/unictype/test-categ_Lm.c: Likewise.
64521         * tests/unictype/test-categ_Lo.c: Likewise.
64522         * tests/unictype/test-categ_Lt.c: Likewise.
64523         * tests/unictype/test-categ_Lu.c: Likewise.
64524         * tests/unictype/test-categ_M.c: Likewise.
64525         * tests/unictype/test-categ_Mc.c: Likewise.
64526         * tests/unictype/test-categ_Me.c: Likewise.
64527         * tests/unictype/test-categ_Mn.c: Likewise.
64528         * tests/unictype/test-categ_N.c: Likewise.
64529         * tests/unictype/test-categ_Nd.c: Likewise.
64530         * tests/unictype/test-categ_Nl.c: Likewise.
64531         * tests/unictype/test-categ_No.c: Likewise.
64532         * tests/unictype/test-categ_P.c: Likewise.
64533         * tests/unictype/test-categ_Pc.c: Likewise.
64534         * tests/unictype/test-categ_Pd.c: Likewise.
64535         * tests/unictype/test-categ_Pe.c: Likewise.
64536         * tests/unictype/test-categ_Pf.c: Likewise.
64537         * tests/unictype/test-categ_Pi.c: Likewise.
64538         * tests/unictype/test-categ_Po.c: Likewise.
64539         * tests/unictype/test-categ_Ps.c: Likewise.
64540         * tests/unictype/test-categ_S.c: Likewise.
64541         * tests/unictype/test-categ_Sc.c: Likewise.
64542         * tests/unictype/test-categ_Sk.c: Likewise.
64543         * tests/unictype/test-categ_Sm.c: Likewise.
64544         * tests/unictype/test-categ_So.c: Likewise.
64545         * tests/unictype/test-categ_Z.c: Likewise.
64546         * tests/unictype/test-categ_Zl.c: Likewise.
64547         * tests/unictype/test-categ_Zp.c: Likewise.
64548         * tests/unictype/test-categ_Zs.c: Likewise.
64549         * tests/unictype/test-ctype_alnum.c: Likewise.
64550         * tests/unictype/test-ctype_alpha.c: Likewise.
64551         * tests/unictype/test-ctype_blank.c: Likewise.
64552         * tests/unictype/test-ctype_cntrl.c: Likewise.
64553         * tests/unictype/test-ctype_digit.c: Likewise.
64554         * tests/unictype/test-ctype_graph.c: Likewise.
64555         * tests/unictype/test-ctype_lower.c: Likewise.
64556         * tests/unictype/test-ctype_print.c: Likewise.
64557         * tests/unictype/test-ctype_punct.c: Likewise.
64558         * tests/unictype/test-ctype_space.c: Likewise.
64559         * tests/unictype/test-ctype_upper.c: Likewise.
64560         * tests/unictype/test-ctype_xdigit.c: Likewise.
64561         * tests/unictype/test-decdigit.h: Likewise.
64562         * tests/unictype/test-digit.h: Likewise.
64563         * tests/unictype/test-numeric.h: Likewise.
64564         * tests/unictype/test-pr_alphabetic.c: Likewise.
64565         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64566         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64567         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64568         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64569         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64570         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64571         * tests/unictype/test-pr_bidi_control.c: Likewise.
64572         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64573         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64574         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64575         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64576         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64577         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64578         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64579         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64580         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64581         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64582         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64583         * tests/unictype/test-pr_combining.c: Likewise.
64584         * tests/unictype/test-pr_composite.c: Likewise.
64585         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64586         * tests/unictype/test-pr_dash.c: Likewise.
64587         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64588         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64589         * tests/unictype/test-pr_deprecated.c: Likewise.
64590         * tests/unictype/test-pr_diacritic.c: Likewise.
64591         * tests/unictype/test-pr_extender.c: Likewise.
64592         * tests/unictype/test-pr_format_control.c: Likewise.
64593         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64594         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64595         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64596         * tests/unictype/test-pr_hex_digit.c: Likewise.
64597         * tests/unictype/test-pr_hyphen.c: Likewise.
64598         * tests/unictype/test-pr_id_continue.c: Likewise.
64599         * tests/unictype/test-pr_id_start.c: Likewise.
64600         * tests/unictype/test-pr_ideographic.c: Likewise.
64601         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64602         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64603         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64604         * tests/unictype/test-pr_iso_control.c: Likewise.
64605         * tests/unictype/test-pr_join_control.c: Likewise.
64606         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64607         * tests/unictype/test-pr_line_separator.c: Likewise.
64608         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64609         * tests/unictype/test-pr_lowercase.c: Likewise.
64610         * tests/unictype/test-pr_math.c: Likewise.
64611         * tests/unictype/test-pr_non_break.c: Likewise.
64612         * tests/unictype/test-pr_not_a_character.c: Likewise.
64613         * tests/unictype/test-pr_numeric.c: Likewise.
64614         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64615         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64616         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64617         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64618         * tests/unictype/test-pr_other_id_start.c: Likewise.
64619         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64620         * tests/unictype/test-pr_other_math.c: Likewise.
64621         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64622         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64623         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64624         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64625         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64626         * tests/unictype/test-pr_private_use.c: Likewise.
64627         * tests/unictype/test-pr_punctuation.c: Likewise.
64628         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64629         * tests/unictype/test-pr_radical.c: Likewise.
64630         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64631         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64632         * tests/unictype/test-pr_space.c: Likewise.
64633         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64634         * tests/unictype/test-pr_titlecase.c: Likewise.
64635         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64636         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64637         * tests/unictype/test-pr_uppercase.c: Likewise.
64638         * tests/unictype/test-pr_variation_selector.c: Likewise.
64639         * tests/unictype/test-pr_white_space.c: Likewise.
64640         * tests/unictype/test-pr_xid_continue.c: Likewise.
64641         * tests/unictype/test-pr_xid_start.c: Likewise.
64642         * tests/unictype/test-pr_zero_width.c: Likewise.
64643         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64644         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64645
64646 2007-11-12  Bruno Haible  <bruno@clisp.org>
64647
64648         Unicode character classification functions.
64649         * lib/unictype.h: New file.
64650         * modules/unictype/base: New file.
64651         * modules/unictype/category-L: New file.
64652         * modules/unictype/category-Lu: New file.
64653         * modules/unictype/category-Ll: New file.
64654         * modules/unictype/category-Lt: New file.
64655         * modules/unictype/category-Lm: New file.
64656         * modules/unictype/category-Lo: New file.
64657         * modules/unictype/category-M: New file.
64658         * modules/unictype/category-Mn: New file.
64659         * modules/unictype/category-Mc: New file.
64660         * modules/unictype/category-Me: New file.
64661         * modules/unictype/category-N: New file.
64662         * modules/unictype/category-Nd: New file.
64663         * modules/unictype/category-Nl: New file.
64664         * modules/unictype/category-No: New file.
64665         * modules/unictype/category-P: New file.
64666         * modules/unictype/category-Pc: New file.
64667         * modules/unictype/category-Pd: New file.
64668         * modules/unictype/category-Ps: New file.
64669         * modules/unictype/category-Pe: New file.
64670         * modules/unictype/category-Pi: New file.
64671         * modules/unictype/category-Pf: New file.
64672         * modules/unictype/category-Po: New file.
64673         * modules/unictype/category-S: New file.
64674         * modules/unictype/category-Sm: New file.
64675         * modules/unictype/category-Sc: New file.
64676         * modules/unictype/category-Sk: New file.
64677         * modules/unictype/category-So: New file.
64678         * modules/unictype/category-Z: New file.
64679         * modules/unictype/category-Zs: New file.
64680         * modules/unictype/category-Zl: New file.
64681         * modules/unictype/category-Zp: New file.
64682         * modules/unictype/category-C: New file.
64683         * modules/unictype/category-Cc: New file.
64684         * modules/unictype/category-Cf: New file.
64685         * modules/unictype/category-Cs: New file.
64686         * modules/unictype/category-Co: New file.
64687         * modules/unictype/category-Cn: New file.
64688         * modules/unictype/category-or: New file.
64689         * modules/unictype/category-of: New file.
64690         * modules/unictype/category-test: New file.
64691         * modules/unictype/category-test-withtable: New file.
64692         * modules/unictype/category-byname: New file.
64693         * modules/unictype/category-none: New file.
64694         * modules/unictype/category-and: New file.
64695         * modules/unictype/category-and-not: New file.
64696         * modules/unictype/category-name: New file.
64697         * modules/unictype/combining-class: New file.
64698         * modules/unictype/category-all: New file.
64699         * modules/unictype/bidicategory-all: New file.
64700         * modules/unictype/bidicategory-byname: New file.
64701         * modules/unictype/bidicategory-name: New file.
64702         * modules/unictype/bidicategory-of: New file.
64703         * modules/unictype/bidicategory-test: New file.
64704         * modules/unictype/decimal-digit: New file.
64705         * modules/unictype/digit: New file.
64706         * modules/unictype/numeric: New file.
64707         * modules/unictype/mirror: New file.
64708         * modules/unictype/property-white-space: New file.
64709         * modules/unictype/property-alphabetic: New file.
64710         * modules/unictype/property-other-alphabetic: New file.
64711         * modules/unictype/property-not-a-character: New file.
64712         * modules/unictype/property-default-ignorable-code-point: New file.
64713         * modules/unictype/property-other-default-ignorable-code-point: New
64714         file.
64715         * modules/unictype/property-deprecated: New file.
64716         * modules/unictype/property-logical-order-exception: New file.
64717         * modules/unictype/property-variation-selector: New file.
64718         * modules/unictype/property-private-use: New file.
64719         * modules/unictype/property-unassigned-code-value: New file.
64720         * modules/unictype/property-uppercase: New file.
64721         * modules/unictype/property-other-uppercase: New file.
64722         * modules/unictype/property-lowercase: New file.
64723         * modules/unictype/property-other-lowercase: New file.
64724         * modules/unictype/property-titlecase: New file.
64725         * modules/unictype/property-soft-dotted: New file.
64726         * modules/unictype/property-id-start: New file.
64727         * modules/unictype/property-other-id-start: New file.
64728         * modules/unictype/property-id-continue: New file.
64729         * modules/unictype/property-other-id-continue: New file.
64730         * modules/unictype/property-xid-start: New file.
64731         * modules/unictype/property-xid-continue: New file.
64732         * modules/unictype/property-pattern-white-space: New file.
64733         * modules/unictype/property-pattern-syntax: New file.
64734         * modules/unictype/property-join-control: New file.
64735         * modules/unictype/property-grapheme-base: New file.
64736         * modules/unictype/property-grapheme-extend: New file.
64737         * modules/unictype/property-other-grapheme-extend: New file.
64738         * modules/unictype/property-grapheme-link: New file.
64739         * modules/unictype/property-bidi-control: New file.
64740         * modules/unictype/property-bidi-left-to-right: New file.
64741         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64742         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64743         * modules/unictype/property-bidi-european-digit: New file.
64744         * modules/unictype/property-bidi-eur-num-separator: New file.
64745         * modules/unictype/property-bidi-eur-num-terminator: New file.
64746         * modules/unictype/property-bidi-arabic-digit: New file.
64747         * modules/unictype/property-bidi-common-separator: New file.
64748         * modules/unictype/property-bidi-block-separator: New file.
64749         * modules/unictype/property-bidi-segment-separator: New file.
64750         * modules/unictype/property-bidi-whitespace: New file.
64751         * modules/unictype/property-bidi-non-spacing-mark: New file.
64752         * modules/unictype/property-bidi-boundary-neutral: New file.
64753         * modules/unictype/property-bidi-pdf: New file.
64754         * modules/unictype/property-bidi-embedding-or-override: New file.
64755         * modules/unictype/property-bidi-other-neutral: New file.
64756         * modules/unictype/property-hex-digit: New file.
64757         * modules/unictype/property-ascii-hex-digit: New file.
64758         * modules/unictype/property-ideographic: New file.
64759         * modules/unictype/property-unified-ideograph: New file.
64760         * modules/unictype/property-radical: New file.
64761         * modules/unictype/property-ids-binary-operator: New file.
64762         * modules/unictype/property-ids-trinary-operator: New file.
64763         * modules/unictype/property-zero-width: New file.
64764         * modules/unictype/property-space: New file.
64765         * modules/unictype/property-non-break: New file.
64766         * modules/unictype/property-iso-control: New file.
64767         * modules/unictype/property-format-control: New file.
64768         * modules/unictype/property-dash: New file.
64769         * modules/unictype/property-hyphen: New file.
64770         * modules/unictype/property-punctuation: New file.
64771         * modules/unictype/property-line-separator: New file.
64772         * modules/unictype/property-paragraph-separator: New file.
64773         * modules/unictype/property-quotation-mark: New file.
64774         * modules/unictype/property-sentence-terminal: New file.
64775         * modules/unictype/property-terminal-punctuation: New file.
64776         * modules/unictype/property-currency-symbol: New file.
64777         * modules/unictype/property-math: New file.
64778         * modules/unictype/property-other-math: New file.
64779         * modules/unictype/property-paired-punctuation: New file.
64780         * modules/unictype/property-left-of-pair: New file.
64781         * modules/unictype/property-combining: New file.
64782         * modules/unictype/property-composite: New file.
64783         * modules/unictype/property-decimal-digit: New file.
64784         * modules/unictype/property-numeric: New file.
64785         * modules/unictype/property-diacritic: New file.
64786         * modules/unictype/property-extender: New file.
64787         * modules/unictype/property-ignorable-control: New file.
64788         * modules/unictype/property-test: New file.
64789         * modules/unictype/property-byname: New file.
64790         * modules/unictype/property-all: New file.
64791         * modules/unictype/scripts: New file.
64792         * modules/unictype/scripts-all: New file.
64793         * modules/unictype/block-of: New file.
64794         * modules/unictype/block-test: New file.
64795         * modules/unictype/block-list: New file.
64796         * modules/unictype/block-all: New file.
64797         * modules/unictype/syntax-c-whitespace: New file.
64798         * modules/unictype/syntax-java-whitespace: New file.
64799         * modules/unictype/syntax-c-ident: New file.
64800         * modules/unictype/syntax-java-ident: New file.
64801         * modules/unictype/ctype-alnum: New file.
64802         * modules/unictype/ctype-alpha: New file.
64803         * modules/unictype/ctype-cntrl: New file.
64804         * modules/unictype/ctype-digit: New file.
64805         * modules/unictype/ctype-graph: New file.
64806         * modules/unictype/ctype-lower: New file.
64807         * modules/unictype/ctype-print: New file.
64808         * modules/unictype/ctype-punct: New file.
64809         * modules/unictype/ctype-space: New file.
64810         * modules/unictype/ctype-upper: New file.
64811         * modules/unictype/ctype-xdigit: New file.
64812         * modules/unictype/ctype-blank: New file.
64813         * lib/unictype/bidi_byname.c: New file.
64814         * lib/unictype/bidi_name.c: New file.
64815         * lib/unictype/bidi_of.c: New file.
64816         * lib/unictype/bidi_test.c: New file.
64817         * lib/unictype/bitmap.h: New file.
64818         * lib/unictype/block_test.c: New file.
64819         * lib/unictype/blocks.c: New file.
64820         * lib/unictype/categ_C.c: New file.
64821         * lib/unictype/categ_Cc.c: New file.
64822         * lib/unictype/categ_Cf.c: New file.
64823         * lib/unictype/categ_Cn.c: New file.
64824         * lib/unictype/categ_Co.c: New file.
64825         * lib/unictype/categ_Cs.c: New file.
64826         * lib/unictype/categ_L.c: New file.
64827         * lib/unictype/categ_Ll.c: New file.
64828         * lib/unictype/categ_Lm.c: New file.
64829         * lib/unictype/categ_Lo.c: New file.
64830         * lib/unictype/categ_Lt.c: New file.
64831         * lib/unictype/categ_Lu.c: New file.
64832         * lib/unictype/categ_M.c: New file.
64833         * lib/unictype/categ_Mc.c: New file.
64834         * lib/unictype/categ_Me.c: New file.
64835         * lib/unictype/categ_Mn.c: New file.
64836         * lib/unictype/categ_N.c: New file.
64837         * lib/unictype/categ_Nd.c: New file.
64838         * lib/unictype/categ_Nl.c: New file.
64839         * lib/unictype/categ_No.c: New file.
64840         * lib/unictype/categ_P.c: New file.
64841         * lib/unictype/categ_Pc.c: New file.
64842         * lib/unictype/categ_Pd.c: New file.
64843         * lib/unictype/categ_Pe.c: New file.
64844         * lib/unictype/categ_Pf.c: New file.
64845         * lib/unictype/categ_Pi.c: New file.
64846         * lib/unictype/categ_Po.c: New file.
64847         * lib/unictype/categ_Ps.c: New file.
64848         * lib/unictype/categ_S.c: New file.
64849         * lib/unictype/categ_Sc.c: New file.
64850         * lib/unictype/categ_Sk.c: New file.
64851         * lib/unictype/categ_Sm.c: New file.
64852         * lib/unictype/categ_So.c: New file.
64853         * lib/unictype/categ_Z.c: New file.
64854         * lib/unictype/categ_Zl.c: New file.
64855         * lib/unictype/categ_Zp.c: New file.
64856         * lib/unictype/categ_Zs.c: New file.
64857         * lib/unictype/categ_and.c: New file.
64858         * lib/unictype/categ_and_not.c: New file.
64859         * lib/unictype/categ_byname.c: New file.
64860         * lib/unictype/categ_name.c: New file.
64861         * lib/unictype/categ_none.c: New file.
64862         * lib/unictype/categ_of.c: New file.
64863         * lib/unictype/categ_or.c: New file.
64864         * lib/unictype/categ_test.c: New file.
64865         * lib/unictype/combining.c: New file.
64866         * lib/unictype/ctype_alnum.c: New file.
64867         * lib/unictype/ctype_alpha.c: New file.
64868         * lib/unictype/ctype_blank.c: New file.
64869         * lib/unictype/ctype_cntrl.c: New file.
64870         * lib/unictype/ctype_digit.c: New file.
64871         * lib/unictype/ctype_graph.c: New file.
64872         * lib/unictype/ctype_lower.c: New file.
64873         * lib/unictype/ctype_print.c: New file.
64874         * lib/unictype/ctype_punct.c: New file.
64875         * lib/unictype/ctype_space.c: New file.
64876         * lib/unictype/ctype_upper.c: New file.
64877         * lib/unictype/ctype_xdigit.c: New file.
64878         * lib/unictype/decdigit.c: New file.
64879         * lib/unictype/digit.c: New file.
64880         * lib/unictype/identsyntaxmap.h: New file.
64881         * lib/unictype/mirror.c: New file.
64882         * lib/unictype/numeric.c: New file.
64883         * lib/unictype/pr_alphabetic.c: New file.
64884         * lib/unictype/pr_ascii_hex_digit.c: New file.
64885         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64886         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64887         * lib/unictype/pr_bidi_block_separator.c: New file.
64888         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64889         * lib/unictype/pr_bidi_common_separator.c: New file.
64890         * lib/unictype/pr_bidi_control.c: New file.
64891         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64892         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64893         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64894         * lib/unictype/pr_bidi_european_digit.c: New file.
64895         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64896         * lib/unictype/pr_bidi_left_to_right.c: New file.
64897         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64898         * lib/unictype/pr_bidi_other_neutral.c: New file.
64899         * lib/unictype/pr_bidi_pdf.c: New file.
64900         * lib/unictype/pr_bidi_segment_separator.c: New file.
64901         * lib/unictype/pr_bidi_whitespace.c: New file.
64902         * lib/unictype/pr_byname.c: New file.
64903         * lib/unictype/pr_byname.gperf: New file.
64904         * lib/unictype/pr_combining.c: New file.
64905         * lib/unictype/pr_composite.c: New file.
64906         * lib/unictype/pr_currency_symbol.c: New file.
64907         * lib/unictype/pr_dash.c: New file.
64908         * lib/unictype/pr_decimal_digit.c: New file.
64909         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64910         * lib/unictype/pr_deprecated.c: New file.
64911         * lib/unictype/pr_diacritic.c: New file.
64912         * lib/unictype/pr_extender.c: New file.
64913         * lib/unictype/pr_format_control.c: New file.
64914         * lib/unictype/pr_grapheme_base.c: New file.
64915         * lib/unictype/pr_grapheme_extend.c: New file.
64916         * lib/unictype/pr_grapheme_link.c: New file.
64917         * lib/unictype/pr_hex_digit.c: New file.
64918         * lib/unictype/pr_hyphen.c: New file.
64919         * lib/unictype/pr_id_continue.c: New file.
64920         * lib/unictype/pr_id_start.c: New file.
64921         * lib/unictype/pr_ideographic.c: New file.
64922         * lib/unictype/pr_ids_binary_operator.c: New file.
64923         * lib/unictype/pr_ids_trinary_operator.c: New file.
64924         * lib/unictype/pr_ignorable_control.c: New file.
64925         * lib/unictype/pr_iso_control.c: New file.
64926         * lib/unictype/pr_join_control.c: New file.
64927         * lib/unictype/pr_left_of_pair.c: New file.
64928         * lib/unictype/pr_line_separator.c: New file.
64929         * lib/unictype/pr_logical_order_exception.c: New file.
64930         * lib/unictype/pr_lowercase.c: New file.
64931         * lib/unictype/pr_math.c: New file.
64932         * lib/unictype/pr_non_break.c: New file.
64933         * lib/unictype/pr_not_a_character.c: New file.
64934         * lib/unictype/pr_numeric.c: New file.
64935         * lib/unictype/pr_other_alphabetic.c: New file.
64936         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64937         * lib/unictype/pr_other_grapheme_extend.c: New file.
64938         * lib/unictype/pr_other_id_continue.c: New file.
64939         * lib/unictype/pr_other_id_start.c: New file.
64940         * lib/unictype/pr_other_lowercase.c: New file.
64941         * lib/unictype/pr_other_math.c: New file.
64942         * lib/unictype/pr_other_uppercase.c: New file.
64943         * lib/unictype/pr_paired_punctuation.c: New file.
64944         * lib/unictype/pr_paragraph_separator.c: New file.
64945         * lib/unictype/pr_pattern_syntax.c: New file.
64946         * lib/unictype/pr_pattern_white_space.c: New file.
64947         * lib/unictype/pr_private_use.c: New file.
64948         * lib/unictype/pr_punctuation.c: New file.
64949         * lib/unictype/pr_quotation_mark.c: New file.
64950         * lib/unictype/pr_radical.c: New file.
64951         * lib/unictype/pr_sentence_terminal.c: New file.
64952         * lib/unictype/pr_soft_dotted.c: New file.
64953         * lib/unictype/pr_space.c: New file.
64954         * lib/unictype/pr_terminal_punctuation.c: New file.
64955         * lib/unictype/pr_test.c: New file.
64956         * lib/unictype/pr_titlecase.c: New file.
64957         * lib/unictype/pr_unassigned_code_value.c: New file.
64958         * lib/unictype/pr_unified_ideograph.c: New file.
64959         * lib/unictype/pr_uppercase.c: New file.
64960         * lib/unictype/pr_variation_selector.c: New file.
64961         * lib/unictype/pr_white_space.c: New file.
64962         * lib/unictype/pr_xid_continue.c: New file.
64963         * lib/unictype/pr_xid_start.c: New file.
64964         * lib/unictype/pr_zero_width.c: New file.
64965         * lib/unictype/scripts.c: New file.
64966         * lib/unictype/sy_c_ident.c: New file.
64967         * lib/unictype/sy_c_whitespace.c: New file.
64968         * lib/unictype/sy_java_ident.c: New file.
64969         * lib/unictype/sy_java_whitespace.c: New file.
64970
64971         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64972         Unicode 5.0.0.
64973         * lib/unictype/blocks.h: Likewise.
64974         * lib/unictype/categ_C.h: Likewise.
64975         * lib/unictype/categ_Cc.h: Likewise.
64976         * lib/unictype/categ_Cf.h: Likewise.
64977         * lib/unictype/categ_Cn.h: Likewise.
64978         * lib/unictype/categ_Co.h: Likewise.
64979         * lib/unictype/categ_Cs.h: Likewise.
64980         * lib/unictype/categ_L.h: Likewise.
64981         * lib/unictype/categ_Ll.h: Likewise.
64982         * lib/unictype/categ_Lm.h: Likewise.
64983         * lib/unictype/categ_Lo.h: Likewise.
64984         * lib/unictype/categ_Lt.h: Likewise.
64985         * lib/unictype/categ_Lu.h: Likewise.
64986         * lib/unictype/categ_M.h: Likewise.
64987         * lib/unictype/categ_Mc.h: Likewise.
64988         * lib/unictype/categ_Me.h: Likewise.
64989         * lib/unictype/categ_Mn.h: Likewise.
64990         * lib/unictype/categ_N.h: Likewise.
64991         * lib/unictype/categ_Nd.h: Likewise.
64992         * lib/unictype/categ_Nl.h: Likewise.
64993         * lib/unictype/categ_No.h: Likewise.
64994         * lib/unictype/categ_P.h: Likewise.
64995         * lib/unictype/categ_Pc.h: Likewise.
64996         * lib/unictype/categ_Pd.h: Likewise.
64997         * lib/unictype/categ_Pe.h: Likewise.
64998         * lib/unictype/categ_Pf.h: Likewise.
64999         * lib/unictype/categ_Pi.h: Likewise.
65000         * lib/unictype/categ_Po.h: Likewise.
65001         * lib/unictype/categ_Ps.h: Likewise.
65002         * lib/unictype/categ_S.h: Likewise.
65003         * lib/unictype/categ_Sc.h: Likewise.
65004         * lib/unictype/categ_Sk.h: Likewise.
65005         * lib/unictype/categ_Sm.h: Likewise.
65006         * lib/unictype/categ_So.h: Likewise.
65007         * lib/unictype/categ_Z.h: Likewise.
65008         * lib/unictype/categ_Zl.h: Likewise.
65009         * lib/unictype/categ_Zp.h: Likewise.
65010         * lib/unictype/categ_Zs.h: Likewise.
65011         * lib/unictype/categ_of.h: Likewise.
65012         * lib/unictype/combining.h: Likewise.
65013         * lib/unictype/ctype_alnum.h: Likewise.
65014         * lib/unictype/ctype_alpha.h: Likewise.
65015         * lib/unictype/ctype_blank.h: Likewise.
65016         * lib/unictype/ctype_cntrl.h: Likewise.
65017         * lib/unictype/ctype_digit.h: Likewise.
65018         * lib/unictype/ctype_graph.h: Likewise.
65019         * lib/unictype/ctype_lower.h: Likewise.
65020         * lib/unictype/ctype_print.h: Likewise.
65021         * lib/unictype/ctype_punct.h: Likewise.
65022         * lib/unictype/ctype_space.h: Likewise.
65023         * lib/unictype/ctype_upper.h: Likewise.
65024         * lib/unictype/ctype_xdigit.h: Likewise.
65025         * lib/unictype/decdigit.h: Likewise.
65026         * lib/unictype/digit.h: Likewise.
65027         * lib/unictype/mirror.h: Likewise.
65028         * lib/unictype/numeric.h: Likewise.
65029         * lib/unictype/pr_alphabetic.h: Likewise.
65030         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65031         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65032         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65033         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65034         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65035         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65036         * lib/unictype/pr_bidi_control.h: Likewise.
65037         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65038         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65039         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65040         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65041         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65042         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65043         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65044         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65045         * lib/unictype/pr_bidi_pdf.h: Likewise.
65046         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65047         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65048         * lib/unictype/pr_combining.h: Likewise.
65049         * lib/unictype/pr_composite.h: Likewise.
65050         * lib/unictype/pr_currency_symbol.h: Likewise.
65051         * lib/unictype/pr_dash.h: Likewise.
65052         * lib/unictype/pr_decimal_digit.h: Likewise.
65053         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65054         * lib/unictype/pr_deprecated.h: Likewise.
65055         * lib/unictype/pr_diacritic.h: Likewise.
65056         * lib/unictype/pr_extender.h: Likewise.
65057         * lib/unictype/pr_format_control.h: Likewise.
65058         * lib/unictype/pr_grapheme_base.h: Likewise.
65059         * lib/unictype/pr_grapheme_extend.h: Likewise.
65060         * lib/unictype/pr_grapheme_link.h: Likewise.
65061         * lib/unictype/pr_hex_digit.h: Likewise.
65062         * lib/unictype/pr_hyphen.h: Likewise.
65063         * lib/unictype/pr_id_continue.h: Likewise.
65064         * lib/unictype/pr_id_start.h: Likewise.
65065         * lib/unictype/pr_ideographic.h: Likewise.
65066         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65067         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65068         * lib/unictype/pr_ignorable_control.h: Likewise.
65069         * lib/unictype/pr_iso_control.h: Likewise.
65070         * lib/unictype/pr_join_control.h: Likewise.
65071         * lib/unictype/pr_left_of_pair.h: Likewise.
65072         * lib/unictype/pr_line_separator.h: Likewise.
65073         * lib/unictype/pr_logical_order_exception.h: Likewise.
65074         * lib/unictype/pr_lowercase.h: Likewise.
65075         * lib/unictype/pr_math.h: Likewise.
65076         * lib/unictype/pr_non_break.h: Likewise.
65077         * lib/unictype/pr_not_a_character.h: Likewise.
65078         * lib/unictype/pr_numeric.h: Likewise.
65079         * lib/unictype/pr_other_alphabetic.h: Likewise.
65080         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65081         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65082         * lib/unictype/pr_other_id_continue.h: Likewise.
65083         * lib/unictype/pr_other_id_start.h: Likewise.
65084         * lib/unictype/pr_other_lowercase.h: Likewise.
65085         * lib/unictype/pr_other_math.h: Likewise.
65086         * lib/unictype/pr_other_uppercase.h: Likewise.
65087         * lib/unictype/pr_paired_punctuation.h: Likewise.
65088         * lib/unictype/pr_paragraph_separator.h: Likewise.
65089         * lib/unictype/pr_pattern_syntax.h: Likewise.
65090         * lib/unictype/pr_pattern_white_space.h: Likewise.
65091         * lib/unictype/pr_private_use.h: Likewise.
65092         * lib/unictype/pr_punctuation.h: Likewise.
65093         * lib/unictype/pr_quotation_mark.h: Likewise.
65094         * lib/unictype/pr_radical.h: Likewise.
65095         * lib/unictype/pr_sentence_terminal.h: Likewise.
65096         * lib/unictype/pr_soft_dotted.h: Likewise.
65097         * lib/unictype/pr_space.h: Likewise.
65098         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65099         * lib/unictype/pr_titlecase.h: Likewise.
65100         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65101         * lib/unictype/pr_unified_ideograph.h: Likewise.
65102         * lib/unictype/pr_uppercase.h: Likewise.
65103         * lib/unictype/pr_variation_selector.h: Likewise.
65104         * lib/unictype/pr_white_space.h: Likewise.
65105         * lib/unictype/pr_xid_continue.h: Likewise.
65106         * lib/unictype/pr_xid_start.h: Likewise.
65107         * lib/unictype/pr_zero_width.h: Likewise.
65108         * lib/unictype/scripts.h: Likewise.
65109         * lib/unictype/scripts_byname.gperf: Likewise.
65110         * lib/unictype/sy_c_ident.h: Likewise.
65111         * lib/unictype/sy_c_whitespace.h: Likewise.
65112         * lib/unictype/sy_java_ident.h: Likewise.
65113         * lib/unictype/sy_java_whitespace.h: Likewise.
65114
65115         * lib/unictype/Makefile: New file.
65116         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65117         glibc.
65118         * lib/unictype/3level.h: New file, copied from glibc.
65119         * lib/unictype/3levelbit.h: New file.
65120
65121 2007-11-11  Bruno Haible  <bruno@clisp.org>
65122
65123         * modules/gperf: New file.
65124         * modules/iconv_open (Depends-on): Add it.
65125         (Makefile.am): Remove the GPERF definition.
65126
65127 2007-11-11  Bruno Haible  <bruno@clisp.org>
65128
65129         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65130         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65131
65132 2007-11-11  Bruno Haible  <bruno@clisp.org>
65133
65134         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65135         (usage): Remove function.
65136
65137 2007-11-11  Bruno Haible  <bruno@clisp.org>
65138
65139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65140         gl_FUNC_CEILF_LIBS.
65141         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65142         gl_FUNC_CEIL_LIBS.
65143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65144         gl_FUNC_CEILL_LIBS.
65145         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65146         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65147         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65148
65149 2007-11-11  Bruno Haible  <bruno@clisp.org>
65150
65151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65152         roundf were declared but do not exist on functions.
65153         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65154         roundl were declared but do not exist on functions.
65155         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65156         HAVE_FLOORL_AND_CEILL, respectively.
65157         Needed for Sun C on Solaris 10.
65158
65159 2007-11-11  Bruno Haible  <bruno@clisp.org>
65160
65161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65162         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65163         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65164         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65165         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65166         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65167         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65168         HAVE_DECL_ROUNDF.
65169         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65170         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65172         of HAVE_DECL_ROUND*.
65173         * modules/math (Makefile.am): Update.
65174
65175 2007-11-10  Bruno Haible  <bruno@clisp.org>
65176
65177         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65178         ptrdiff_t as m4/intl.m4.
65179
65180 2007-11-10  Jim Meyering  <meyering@redhat.com>
65181
65182         Avoid link failure for the argmatch test.
65183         * tests/test-argmatch.c (usage): Define function to avoid a link
65184         failure: argmatch_die requires a usage function.
65185
65186 2007-11-09  Bruno Haible  <bruno@clisp.org>
65187
65188         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65189         * doc/functions/vsnprintf.texi: Likewise.
65190         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65191         with a size argument < 2.
65192
65193 2007-11-09  Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65196         buffer. Fixes an inefficiency introduced on 2007-11-03.
65197
65198 2007-11-09  Bruno Haible  <bruno@clisp.org>
65199
65200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65201         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65202
65203 2007-11-08  Jim Meyering  <meyering@redhat.com>
65204
65205         Change cache variable name prefix "jm_" to "gl_" everywhere.
65206         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65207         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65208         * m4/uptime.m4: s/gl_/jm_/
65209
65210 2007-11-07  Bruno Haible  <bruno@clisp.org>
65211
65212         Update to GNU gettext 0.17.
65213         * m4/intl.m4: Update to GNU gettext 0.17.
65214         * m4/po.m4: Likewise.
65215         * modules/gettext (Files): Remove m4/ulonglong.m4.
65216         (configure.ac): Require gettext infrastructure from version 0.17.
65217
65218 2007-11-06  Bruno Haible  <bruno@clisp.org>
65219
65220         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65221         symbolic values are not defined in a public header.
65222         * lib/freadable.c (freadable) [QNX]: Likewise.
65223         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65224         * lib/freading.c (freading) [QNX]: Likewise.
65225         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65226         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65227         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65228         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65229         Reported by Alain Magloire.
65230
65231         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65232
65233 2007-11-05  Bruno Haible  <bruno@clisp.org>
65234
65235         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65236         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65237         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65238         Reported by Eric Blake.
65239
65240 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65241             Bruno Haible  <bruno@clisp.org>
65242
65243         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65244         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65245         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65246         (malloc): Undefine also before including <stdlib.h>.
65247         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65248         Needed on OSF/1 4.0.
65249
65250 2007-11-05  Jim Meyering  <meyering@redhat.com>
65251
65252         git-version-gen: sync from coreutils.
65253         * build-aux/git-version-gen: Add comments.
65254         Change the first '-' to '.' in the snapshot version string,
65255         e.g., 6.9-377-08144 -> 6.9.377-08144
65256         Remove first parameter.
65257         Don't declare a version "-dirty" merely because a time
65258         stamp has changed.
65259
65260 2007-11-04  Bruno Haible  <bruno@clisp.org>
65261
65262         * lib/lock.h: Protect all macro definitions containing an 'if'
65263         statement through a "do { ... } while (0)".
65264         * lib/tls.h: Likewise.
65265
65266 2007-11-04  Bruno Haible  <bruno@clisp.org>
65267
65268         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65269
65270 2007-11-04  Bruno Haible  <bruno@clisp.org>
65271
65272         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65273         * modules/fprintf-posix (Depends-on): Add nocrash.
65274         * modules/snprintf-posix (Depends-on): Likewise.
65275         * modules/sprintf-posix (Depends-on): Likewise.
65276         * modules/vasnprintf-posix (Depends-on): Likewise.
65277         * modules/vasprintf-posix (Depends-on): Likewise.
65278         * modules/vfprintf-posix (Depends-on): Likewise.
65279         * modules/vsnprintf-posix (Depends-on): Likewise.
65280         * modules/vsprintf-posix (Depends-on): Likewise.
65281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65283         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65287         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65288
65289 2007-11-04  Bruno Haible  <bruno@clisp.org>
65290
65291         * modules/nocrash: New file.
65292         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65293         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65294
65295 2007-11-04  Bruno Haible  <bruno@clisp.org>
65296
65297         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65298         precision handling.
65299         * tests/test-vasprintf-posix.c (test_function): Likewise.
65300         * tests/test-snprintf-posix.h (test_function): Likewise.
65301         * tests/test-sprintf-posix.h (test_function): Likewise.
65302
65303         Fix *printf behaviour for large precisions on mingw and BeOS.
65304         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65305         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65307         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65309         gl_PRINTF_PRECISION and test its result. Invoke
65310         gl_PREREQ_VASNPRINTF_PRECISION.
65311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65315         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65317         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65318         * doc/functions/fprintf.texi: Update.
65319         * doc/functions/printf.texi: Update.
65320         * doc/functions/snprintf.texi: Update.
65321         * doc/functions/sprintf.texi: Update.
65322         * doc/functions/vfprintf.texi: Update.
65323         * doc/functions/vprintf.texi: Update.
65324         * doc/functions/vsnprintf.texi: Update.
65325         * doc/functions/vsprintf.texi: Update.
65326
65327 2007-11-04  Bruno Haible  <bruno@clisp.org>
65328
65329         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65330
65331 2007-11-04  Bruno Haible  <bruno@clisp.org>
65332
65333         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65334         Reported by Sylvain Beucler <beuc@gnu.org>.
65335
65336 2007-11-03  Bruno Haible  <bruno@clisp.org>
65337
65338         * tests/test-fprintf-posix2.sh: New file.
65339         * tests/test-fprintf-posix2.c: New file.
65340         * modules/fprintf-posix-tests (Files): Add them.
65341         (TESTS): Add test-fprintf-posix2.sh.
65342         (configure.ac): Check for getrlimit and setrlimit.
65343         (check_PROGRAMS): Add test-fprintf-posix2.
65344
65345         * tests/test-printf-posix2.sh: New file.
65346         * tests/test-printf-posix2.c: New file.
65347         * modules/printf-posix-tests (Files): Add them.
65348         (TESTS): Add test-printf-posix2.sh.
65349         (configure.ac): Check for getrlimit and setrlimit.
65350         (check_PROGRAMS): Add test-printf-posix2.
65351
65352         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65353         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65354         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65355         (decode_double): New function, copied from decode_long_double.
65356         (scale10_round_decimal_decoded): New function, extracted from
65357         scale10_round_decimal_long_double.
65358         (scale10_round_decimal_long_double): Use it.
65359         (scale10_round_decimal_double): New function.
65360         (floorlog10): New function.
65361         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65363         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65365         gl_PRINTF_ENOMEM and test its result. Invoke
65366         gl_PREREQ_VASNPRINTF_ENOMEM.
65367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65374         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65375         * modules/snprintf-posix (Depends-on): Likewise.
65376         * modules/sprintf-posix (Depends-on): Likewise.
65377         * modules/vasnprintf-posix (Depends-on): Likewise.
65378         * modules/vasprintf-posix (Depends-on): Likewise.
65379         * modules/vfprintf-posix (Depends-on): Likewise.
65380         * modules/vsnprintf-posix (Depends-on): Likewise.
65381         * modules/vsprintf-posix (Depends-on): Likewise.
65382         * doc/functions/fprintf.texi: Update.
65383         * doc/functions/printf.texi: Update.
65384         * doc/functions/snprintf.texi: Update.
65385         * doc/functions/sprintf.texi: Update.
65386         * doc/functions/vfprintf.texi: Update.
65387         * doc/functions/vprintf.texi: Update.
65388         * doc/functions/vsnprintf.texi: Update.
65389         * doc/functions/vsprintf.texi: Update.
65390
65391 2007-11-03  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/frexp-nolibm-tests: New file.
65394
65395         * modules/frexp-nolibm: New file.
65396         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65397
65398 2007-11-03  Bruno Haible  <bruno@clisp.org>
65399
65400         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65401         value is C99 compliant.
65402         Needed for OSF/1 5.1.
65403
65404 2007-11-03  Bruno Haible  <bruno@clisp.org>
65405
65406         Fix out-of-memory handling of vasnprintf.
65407         * lib/printf-parse.c: Include <errno.h>.
65408         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65409         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65410         is already set.
65411
65412 2007-11-02  Eric Blake  <ebb9@byu.net>
65413
65414         Fix tests on cygwin.
65415         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65416
65417 2007-11-01  Bruno Haible  <bruno@clisp.org>
65418
65419         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65420         warning.
65421         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65422         needed for POSIX compatibility.
65423
65424 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65427         for compatibility with GNU.
65428
65429 2007-11-01  Bruno Haible  <bruno@clisp.org>
65430
65431         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65432         (putenv): Renamed from rpl_putenv. Change argument type from
65433         'const char *' to 'char *'.
65434         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65435         of defining putenv in config.h, just set REPLACE_PUTENV.
65436         * modules/putenv (Depends-on): Add stdlib.
65437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65438         (Include): Use <stdlib.h>.
65439         * lib/stdlib.in.h (putenv): New declaration.
65440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65441         REPLACE_PUTENV.
65442         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65443         REPLACE_PUTENV.
65444         Needed for MacOS X 10.5.0.
65445         Reported by Peter O'Gorman <peter@pogma.com>.
65446
65447 2007-11-01  Jim Meyering  <meyering@redhat.com>
65448
65449         Treat an empty date string exactly like "0".
65450         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65451         if the remaining date string (to be parsed) is empty, use "0".
65452         Reported by Mischa Molhoek and discussed in this thread:
65453         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65454
65455 2007-10-31  Bruno Haible  <bruno@clisp.org>
65456
65457         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65458         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65459         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65460         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65461         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65462         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65463
65464 2007-10-31  Bruno Haible  <bruno@clisp.org>
65465
65466         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65467         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65468         (AC_TYPE_LONG_LONG_INT): Use it.
65469         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65470         it as well.
65471         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65472         to m4/longlong.m4.
65473         * modules/stdint (Files): Remove m4/ulonglong.m4.
65474         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65475         m4/ulonglong.m4.
65476         * modules/strtoumax (Files): Likewise.
65477
65478 2007-10-30  Bruno Haible  <bruno@clisp.org>
65479
65480         * modules/xvasprintf-posix: New file.
65481         Suggested by Eric Blake.
65482
65483 2007-10-30  Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/xprintf-posix-tests: New file.
65486         * tests/test-xprintf-posix.sh: New file.
65487         * tests/test-xprintf-posix.c: New file.
65488         * tests/test-xfprintf-posix.c: New file.
65489
65490         * modules/xprintf-posix: New file.
65491
65492 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65493
65494         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65495         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65496         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65497
65498 2007-10-29  Bruno Haible  <bruno@clisp.org>
65499
65500         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65501         contain the special marker '_cv_'.
65502         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65503         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65504         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65505         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65506         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65507         Reported by Ralf Wildenhues.
65508
65509 2007-10-29  Bruno Haible  <bruno@clisp.org>
65510
65511         * gnulib-tool (func_import): When --lgpl is not specified, set
65512         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65513         GPLv3.
65514         Reported by Simon Josefsson.
65515
65516 2007-10-28  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65519         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65520         HAVE_DECL_ISFINITE.
65521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65522         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65523         HAVE_DECL_ISFINITE.
65524
65525 2007-10-28  Bruno Haible  <bruno@clisp.org>
65526
65527         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65528         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65529
65530 2007-10-28  Bruno Haible  <bruno@clisp.org>
65531
65532         Fix link errors with Sun C 5.0 on Solaris 10.
65533         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65534         function is declared but not present in the compiler's libm.
65535         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65536         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65537         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65538         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65539         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65540         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65541         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65543         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65544         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65545         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65546         HAVE_DECL_FLOORL.
65547
65548 2007-10-28  Bruno Haible  <bruno@clisp.org>
65549
65550         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65551         gl_FUNC_FLOORL. Cache the result.
65552         (gl_FUNC_FLOORL): Use it.
65553         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65554         gl_FUNC_CEILL. Cache the result.
65555         (gl_FUNC_CEILL): Use it.
65556
65557         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65558         gl_FUNC_FLOOR. Cache the result.
65559         (gl_FUNC_FLOOR): Use it.
65560         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65561         gl_FUNC_CEIL. Cache the result.
65562         (gl_FUNC_CEIL): Use it.
65563
65564         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65565         gl_FUNC_FLOORF. Cache the result.
65566         (gl_FUNC_FLOORF): Use it.
65567         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65568         gl_FUNC_CEILF. Cache the result.
65569         (gl_FUNC_CEILF): Use it.
65570
65571 2007-10-28  Bruno Haible  <bruno@clisp.org>
65572
65573         * gnulib-tool: Allow specifying the LGPL version number through
65574         --lgpl=2 or --lgpl=3.
65575         (func_usage): Document --lgpl with argument.
65576         Handle --lgpl=... arguments.
65577         (func_import): Recognize also gl_LGPL calls with an argument. When
65578         --lgpl=2 is used and the module's license is just LGPL, report an
65579         error. Set sed_transform_lib_file according to the lgpl variable. In
65580         the generated files, use --lgpl or gl_LGPL invocations with argument,
65581         if necessary.
65582         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65583         an LGPv2+ license.
65584         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65585         gl_LGPL macro.
65586
65587 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65588             Bruno Haible  <bruno@clisp.org>
65589
65590         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65591         (u16_uctomb_aux): Likewise.
65592         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65593         !HAVE_INLINE.
65594         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65595
65596 2007-10-28  Bruno Haible  <bruno@clisp.org>
65597
65598         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65599         Invoke AM_GETTEXT_OPTION if it exists.
65600         * modules/vasprintf: Likewise.
65601         * modules/verror: Likewise.
65602         * modules/xprintf: Likewise.
65603         * modules/xvasprintf: Likewise.
65604
65605 2007-10-27  Ben Pfaff  <blp@gnu.org>
65606
65607         * lib/math.in.h: Define isfinite macro and prototypes for
65608         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65609         implementations.
65610         * m4/math_h.m4: New substitutions for isfinite module.
65611         * lib/isfinite.c: New file.
65612         * m4/isfinite.m4: New file.
65613         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65614         * modules/isfinite: New file.
65615         * modules/isfinite-tests: New file.
65616         * tests/tests-isfinite.c: New file.
65617         * doc/functions/isfinite.texi: Mention isfinite module.
65618         * MODULES.html.sh: Mention new module.
65619
65620 2007-10-27  Ben Pfaff  <blp@gnu.org>
65621
65622         Ralf Wildenhues reported that Tru64 4.0D declares the round
65623         functions but does not have definitions.
65624         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65625         cannot be found in any library, set the output variable to
65626         "missing" instead of "".
65627         * m4/round.m4: Also use our substitute if we cannot find round in
65628         any library, even if it is declared.
65629         * m4/roundf.m4: Likewise for roundf.
65630         * m4/roundl.m4: Likewise for roundl.
65631         * lib/math.in.h: Undefine roundf, round, roundl before defining
65632         their replacements, to allow for hypothetical systems where these
65633         may be defined as macros but not available in libraries.
65634
65635 2007-10-27  Bruno Haible  <bruno@clisp.org>
65636
65637         * doc/gnulib.texi: Invoke @firstparagraphindent.
65638         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65639         changes in gnulib.
65640         (Source changes): New section.
65641
65642 2007-10-26  Bruno Haible  <bruno@clisp.org>
65643
65644         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65645         borrowed from autoconf.
65646
65647 2007-10-26  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65650         strerror returned the empty string. Needed on HP-UX 11.00.
65651
65652 2007-10-24  Micah Cowan  <micah@cowan.name>
65653
65654         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65655         * build-aux/bootstrap: Remove support for now-unnecessary option,
65656         --cvs-user, and envvars CVS_USER, CVS_RSH.
65657
65658 2007-10-24  Jim Meyering  <meyering@redhat.com>
65659
65660         Avoid diagnostics from sha1sum when there is no cached checksum.
65661         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65662         if the po.s1 file hasn't been created yet.
65663
65664         * build-aux/bootstrap: Sync from coreutils:
65665         2007-10-24  Jim Meyering  <meyering@redhat.com>
65666         Get gnulib from the git repository, not from an obsolete cvs one.
65667         * build-aux/bootstrap: Suggestion from Micah Cowan.
65668         2007-10-04  Jim Meyering  <jim@meyering.net>
65669         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65670         (update_po_files): Work also when there are no .po files in po/.
65671
65672 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * README: Append ".git" to git and cg examples.
65675         Problem reported by Benoit Sigoure.
65676
65677 2007-10-23  Micah Cowan  <micah@cowan.name>
65678
65679         * users.txt: Add wget.
65680
65681 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65682
65683         Fix linking of some unistdio tests on FreeBSD.
65684         * modules/unistdio/u16-vsnprintf-tests
65685         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65686         * modules/unistdio/u16-vsprintf-tests
65687         (test_u16_vsnprintf1_LDADD): Likewise.
65688         * modules/unistdio/u32-vsnprintf-tests
65689         (test_u32_vsnprintf1_LDADD): Likewise.
65690         * modules/unistdio/u32-vsprintf-tests
65691         (test_u32_vsprintf1_LDADD): Likewise.
65692         * modules/unistdio/u8-vsnprintf-tests
65693         (test_u8_vsnprintf1_LDADD): Likewise.
65694         * modules/unistdio/u8-vsprintf-tests
65695         (test_u8_vsprintf1_LDADD): Likewise.
65696         * modules/unistdio/ulc-vsnprintf-tests
65697         (test_ulc_vsnprintf1_LDADD): Likewise.
65698         * modules/unistdio/ulc-vsprintf-tests
65699         (test_ulc_vsprintf1_LDADD): Likewise.
65700
65701         Fix linking of some uniconv tests on FreeBSD.
65702         * modules/uniconv/u16-conv-from-enc-tests
65703         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65704         * modules/uniconv/u16-conv-to-enc-tests
65705         (test_u16_conv_to_enc_LDADD): Likewise.
65706         * modules/uniconv/u16-strconv-from-enc-tests
65707         (test_u16_strconv_from_enc_LDADD): Likewise.
65708         * modules/uniconv/u16-strconv-to-enc-tests
65709         (test_u16_strconv_to_enc_LDADD): Likewise.
65710         * modules/uniconv/u32-conv-from-enc-tests
65711         (test_u32_conv_from_enc_LDADD): Likewise.
65712         * modules/uniconv/u32-conv-to-enc-tests
65713         (test_u32_conv_to_enc_LDADD): Likewise.
65714         * modules/uniconv/u32-strconv-from-enc-tests
65715         (test_u32_strconv_from_enc_LDADD): Likewise.
65716         * modules/uniconv/u32-strconv-to-enc-tests
65717         (test_u32_strconv_to_enc_LDADD): Likewise.
65718         * modules/uniconv/u8-conv-from-enc-tests
65719         (test_u8_conv_from_enc_LDADD): Likewise.
65720         * modules/uniconv/u8-conv-to-enc-tests
65721         (test_u8_conv_to_enc_LDADD): Likewise.
65722         * modules/uniconv/u8-strconv-from-enc-tests
65723         (test_u8_strconv_from_enc_LDADD): Likewise.
65724         * modules/uniconv/u8-strconv-to-enc-tests
65725         (test_u8_strconv_to_enc_LDADD): Likewise.
65726
65727 2007-10-22  Bruno Haible  <bruno@clisp.org>
65728
65729         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65730         size.
65731
65732 2007-10-22  Eric Blake  <ebb9@byu.net>
65733
65734         Tweak x*printf documentation.
65735         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65736         variable name and comments.
65737         Suggested by Bruno Haible.
65738
65739 2007-10-22  Bruno Haible  <bruno@clisp.org>
65740
65741         * lib/acl.c (copy_acl): Fix file name in comment.
65742
65743 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         Fix Tru64 problem with stdbool.h.
65746         * lib/stdbool.in.h (false, true):
65747         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65748         Don't declare as an enum in this situation; it runs afoul of Tru64.
65749         Problem reported by Steven M. Schweda in
65750         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65751
65752 2007-10-22  Eric Blake  <ebb9@byu.net>
65753
65754         Also wrap vf?printf.
65755         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65756         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65757         (xvprintf, xvfprintf): New functions.
65758
65759 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65760
65761         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65762         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65763
65764         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65765         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65766
65767 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65770         by Bruno Haible.
65771
65772 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65773
65774         * lib/getloadavg.c
65775         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65776         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65777
65778         * tests/test-i-ring.c: Work for C89.
65779
65780 2007-10-22  Bruno Haible  <bruno@clisp.org>
65781
65782         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65783         -1u, in preprocessor expression, so that we don't test for the bug
65784         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65786
65787 2007-10-22  Eric Blake  <ebb9@byu.net>
65788
65789         * tests/test-yesno.sh: Silence stderr during test.
65790
65791 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65792
65793         * modules/crypto/gc-camellia: New file.
65794
65795         * m4/gc-camellia.m4: New file.
65796
65797         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65798
65799         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65800
65801 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65802
65803         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65804         --help to stdout.  Reported by sms@antinode.org (Steven
65805         M. Schweda).
65806
65807 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65808
65809         * users.txt: Fix link to libksba.
65810
65811 2007-10-21  Ben Pfaff  <blp@gnu.org>
65812
65813         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65814         round.c roundf implementation that depends on floorf and ceilf to
65815         be tested unconditionally.
65816
65817 2007-10-21  Ben Pfaff  <blp@gnu.org>
65818
65819         * m4/check-libm-func.m4: Removed.
65820         * m4/check-math-lib.m4: New file.
65821         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65822         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65823         definition and lack of AC_LIBOBJ([roundf]).
65824         * m4/roundl.m4: Ditto, and similarly for roundl.
65825         * modules/round: Reference new m4 file.
65826         * modules/roundf: Ditto.
65827         * modules/roundl: Ditto.
65828         * tests/test-round2.c (main): Use ROUND instead of round.
65829         Bug report from Bruno Haible.
65830
65831 2007-10-21  Bruno Haible  <bruno@clisp.org>
65832
65833         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65834         context.
65835
65836 2007-10-21  Bruno Haible  <bruno@clisp.org>
65837
65838         * tests/test-wcwidth.c (main): Allow negative result for some control
65839         characters.
65840
65841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65842         Needed on OSF/1 5.1.
65843
65844 2007-10-21  Bruno Haible  <bruno@clisp.org>
65845
65846         * tests/test-floorf1.c: Include isnanf.h.
65847         (main): Use isnanf() instead of isnan().
65848         * tests/test-ceilf1.c: Include isnanf.h.
65849         (main): Use isnanf() instead of isnan().
65850         * tests/test-truncf1.c: Include isnanf.h.
65851         (main): Use isnanf() instead of isnan().
65852         * tests/test-roundf1.c: Include isnanf.h.
65853         (main): Use isnanf() instead of isnan().
65854
65855 2007-10-21  Eric Blake  <ebb9@byu.net>
65856
65857         * users.txt: Update URL for m4.
65858
65859 2007-10-21  Bruno Haible  <bruno@clisp.org>
65860
65861         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65862
65863 2007-10-21  Bruno Haible  <bruno@clisp.org>
65864
65865         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65866         Git's management files if the CVS files are not present.
65867
65868 2007-10-20  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65871         gcc-3.4.x.
65872
65873 2007-10-20  Ben Pfaff  <blp@gnu.org>
65874
65875         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65876         implementations.
65877         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65878         * lib/round.c: New file.
65879         * lib/roundf.c: New file.
65880         * lib/roundl.c: New file.
65881         * m4/round.m4: New file.
65882         * m4/roundf.m4: New file.
65883         * m4/roundl.m4: New file.
65884         * m4/check-libm-func-m4: New file.
65885         * modules/math: Replace round, roundf, roundl related @VARS@ in
65886         math.in.h.
65887         * modules/round: New file.
65888         * modules/round-tests: New file.
65889         * modules/roundf: New file.
65890         * modules/roundf-tests: New file.
65891         * modules/roundl: New file.
65892         * modules/roundl-tests: New file.
65893         * tests/test-round1.c: New file.
65894         * tests/test-round2.c: New file.
65895         * tests/test-roundf1.c: New file.
65896         * tests/test-roundf2.c: New file.
65897         * tests/test-roundl.c: New file.
65898         * doc/functions/round.texi: Mention round module.
65899         * doc/functions/roundf.texi: Mention roundf module.
65900         * doc/functions/roundl.texi: Mention roundl module.
65901         * MODULES.html.sh: Mention new modules.
65902         Thanks to Bruno Haible for suggestions.
65903
65904 2007-10-20  Jim Meyering  <meyering@redhat.com>
65905
65906         * lib/xprintf.c: Include <config.h> unconditionally.
65907
65908         Change xprintf's license to GPL.
65909         * modules/xprintf (License): s/LGPL/GPL/, since this module
65910         depends on modules (exit and exitfail) which are GPL.
65911         Suggestion from Bruno Haible.
65912
65913         xprintf fixes.
65914         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65915         Use a clearer diagnostic.
65916         Patch from Bruno Haible.
65917
65918 2007-10-20  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65921         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65923
65924 2007-10-20  Bruno Haible  <bruno@clisp.org>
65925
65926         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65927         precision in the comparison result > x - 1 or similar.
65928         * tests/test-ceilf2.c (correct_result_p): Likewise.
65929         * tests/test-truncf2.c (correct_result_p): Likewise.
65930         * tests/test-trunc2.c (correct_result_p): Likewise.
65931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65932
65933 2007-10-20  Bruno Haible  <bruno@clisp.org>
65934
65935         * modules/ceil: New file.
65936         * m4/ceil.m4: New file.
65937         * doc/functions/ceil.texi: Mention the 'ceil' module.
65938
65939 2007-10-20  Bruno Haible  <bruno@clisp.org>
65940
65941         * modules/floor: New file.
65942         * m4/floor.m4: New file.
65943         * doc/functions/floor.texi: Mention the 'floor' module.
65944
65945 2007-10-20  Bruno Haible  <bruno@clisp.org>
65946
65947         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65948         of %a.
65949         * modules/floorf-tests (Depends-on): Likewise.
65950         * modules/truncf-tests (Depends-on): Likewise.
65951         * modules/trunc-tests (Depends-on): Likewise.
65952         Reported by Ben Pfaff.
65953
65954 2007-10-19  Jim Meyering  <meyering@redhat.com>
65955
65956         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65957         Don't bother testing specific errno values.  Just test ferror.
65958
65959         New module: xprintf
65960         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65961
65962 2007-10-19  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65965         syntax.
65966         * modules/javaexec (Makefile.am): Likewise.
65967         * modules/relocatable-prog (Makefile.am): Likewise.
65968         Suggested by Jim Meyering.
65969
65970 2007-10-18  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65973         Reported by Jim Meyering.
65974
65975 2007-10-18  Eric Blake  <ebb9@byu.net>
65976
65977         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65978
65979 2007-10-18  Bruno Haible  <bruno@clisp.org>
65980
65981         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65982         the format string into writable memory. Needed in Fortify conditions.
65983
65984 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65985             Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65988         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65989         * modules/trim (Depends-on): Add mbchar.
65990         (configure.ac): Add gl_FUNC_MBRTOWC.
65991         (Makefile.am): Augment lib_SOURCES.
65992
65993 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65994
65995         Modify glob.c to use fstatat and dirfd, to simplify it.
65996         Suggested by Eric Blake.
65997         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65998         Don't include <stdbool.h>; not used.
65999         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66000         (link_exists_p): Simplify implementation, since we can now assume
66001         dirfd and fstatat.
66002         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66003
66004 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66005
66006         * gnulib-tool (func_get_dependencies): Fix sed script to
66007         match only tests.
66008
66009 2007-10-17  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66012         allow locale names without encoding suffix.
66013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66015
66016 2007-10-16  Bruno Haible  <bruno@clisp.org>
66017
66018         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66019         * lib/getgroups.c (getgroups): Likewise.
66020         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66021
66022 2007-10-16  Bruno Haible  <bruno@clisp.org>
66023
66024         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66025         * modules/malloc-posix (License): Likewise.
66026         * modules/realloc-posix (License): Likewise.
66027         * modules/calloc-posix (License): Likewise.
66028         * modules/intprops (License): Change from GPL to LGPL, with
66029         Paul Eggert's approval.
66030
66031 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66032
66033         Merge glibc changes into lib/glob.c.
66034
66035         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66036         2007-10-15 04:59:03 UTC.  Here are the changes:
66037
66038         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66039
66040         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66041
66042         * lib/glob.c: Add some branch prediction throughout.
66043
66044         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66045
66046         [BZ #5103]
66047         * lib/glob.c (glob): Recognize patterns starting \/.
66048
66049         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66050
66051         [BZ #3996]
66052         * lib/glob.c (attribute_hidden): Define if not defined.
66053         (glob): Unescape dirname, filename or username when needed and not
66054         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66055         is NULL.  Handle unescaped [ in pattern without closing ].
66056         Don't pass GLOB_CHECK down to recursive glob for directories.
66057         (__glob_pattern_type): New function.
66058         (__glob_pattern_p): Implement using __glob_pattern_type.
66059         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66060         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66061         Remove unreachable code.
66062
66063         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66064
66065         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66066         explain why there are no leaks.
66067
66068         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66069
66070         [BZ #3253]
66071         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66072         time, rather allocate increasingly bigger arrays of pointers, if
66073         possible with alloca, if too large with malloc.
66074
66075 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66076
66077         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66078         Problem reported by H.Merijn Brand in
66079         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66081         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66082
66083 2007-10-15  Bruno Haible  <bruno@clisp.org>
66084
66085         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66086         with explicit rpl_ prefix.
66087         * lib/fopen.c (fopen): Likewise.
66088         * lib/freopen.c (freopen): Likewise.
66089         * lib/iconv.c (iconv): Likewise.
66090         * lib/iconv_close.c (iconv_close): Likewise.
66091
66092 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66093
66094         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66095
66096 2007-10-15  Bruno Haible  <bruno@clisp.org>
66097
66098         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66099         <stddef.h> instead of <stdlib.h> since we only need NULL.
66100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66101
66102 2007-10-15  Bruno Haible  <bruno@clisp.org>
66103
66104         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66105         Replace paragraph talking about LIBOBJS.
66106         Reported by Colin Watson <cjwatson@debian.org>.
66107
66108 2007-10-15  Bruno Haible  <bruno@clisp.org>
66109
66110         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66111         <stdlib.h> before using NULL.
66112
66113 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66114
66115         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66116         Reported by Albert Chin <china@thewrittenword.com>.
66117
66118 2007-10-14  Bruno Haible  <bruno@clisp.org>
66119
66120         * modules/iconv_open-utf-tests: New file.
66121         * tests/test-iconv-utf.c: New file.
66122
66123         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66124         * modules/iconv_open-utf: New file.
66125         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66126         (iconv, iconv_close): New declarations.
66127         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66128         be defined.
66129         (iconv_open): Add special handling of conversion between UTF-8 and
66130         UTF-{16,32}{BE,LE}.
66131         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66132         * lib/iconv_close.c: New file.
66133         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66134         gl_FUNC_ICONV_OPEN.
66135         (gl_FUNC_ICONV_OPEN): Use it.
66136         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66137         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66138         and REPLACE_ICONV_UTF.
66139         * modules/iconv_open (Depends-on): Add c-strcase.
66140         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66141         ICONV_CONST.
66142         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66143
66144 2007-10-13  Albert Chin  <china@thewrittenword.com>
66145             Bruno Haible  <bruno@clisp.org>
66146
66147         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66148         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66149
66150 2007-10-13  Bruno Haible  <bruno@clisp.org>
66151
66152         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66153         defined, use the ISO C99 inline semantics.
66154         * lib/argp.h (ARGP_EI): Likewise.
66155
66156 2007-10-13  Bruno Haible  <bruno@clisp.org>
66157
66158         Handle 'inline' change in gcc 4.3.0.
66159         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66160         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66161         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66162         argp_fmtstream_point): Disable 'extern' declaration if the function
66163         definition is going to be provided inline.
66164         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66165         semantics, not the ISO C99 inline semantics.
66166         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66167         'extern' declaration if the function definition is going to be provided
66168         inline.
66169         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66170         the GNU C inline semantics, not the ISO C99 inline semantics. With
66171         GCC 4.2, avoid a warning.
66172
66173 2007-10-13  Bruno Haible  <bruno@clisp.org>
66174
66175         * lib/freading.h (freading): Enable the use of __freading for
66176         glibc >= 2.7.
66177         * lib/freading.c (freading): Likewise.
66178
66179 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66182         "warning: C99 inline functions are not supported; using GNU89".
66183
66184 2007-10-12  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66187         of 2.
66188         * tests/test-ceilf2.c: New file.
66189         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66190
66191         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66192         * modules/ceilf-tests: Update.
66193
66194 2007-10-12  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66197         of 2.
66198         * tests/test-floorf2.c: New file.
66199         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66200
66201         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66202         * modules/floorf-tests: Update.
66203
66204 2007-10-12  Bruno Haible  <bruno@clisp.org>
66205
66206         * tests/test-trunc2.c: New file.
66207         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66208
66209         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66210         * modules/trunc-tests: Update.
66211
66212 2007-10-12  Bruno Haible  <bruno@clisp.org>
66213
66214         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66215         of 2.
66216         * tests/test-truncf2.c: New file.
66217         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66218
66219         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66220         * modules/truncf-tests: Update.
66221
66222 2007-10-11  Eric Blake  <ebb9@byu.net>
66223
66224         Don't claim strerror is broken on Interix.
66225         * doc/functions/strerror.texi (strerror): Known broken systems are
66226         now Solaris 8, and not Interix.
66227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66228         Interix on cross-compile.
66229         Reported by Martin Koeppe in
66230         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66231
66232 2007-10-11  Bruno Haible  <bruno@clisp.org>
66233
66234         * modules/i-ring-tests: New file.
66235         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66236         instead of assert.
66237
66238 2007-10-11  Bruno Haible  <bruno@clisp.org>
66239
66240         * modules/filenamecat-tests: New file.
66241         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66242         * lib/filenamecat.c: Remove test code.
66243
66244 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66247
66248         * lib/strerror.c: Include <string.h> always, to test interface,
66249         and to remove the need for the dummy.
66250         Include intprops.h to compute width instead of doing it ourselves
66251         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66252         (strerror): Define it to return NULL if there's no system strerror.
66253         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66254         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66255         ancient pre-strerror Unix systems well any more.  Saying "unknown
66256         system error" is enough.
66257         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66258         simpler strerror.c implementation.
66259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66260         Simplify the tests to reflect the simpler strerror implementation.
66261         * modules/strerror (Depends-on): Add intprops.
66262
66263 2007-10-09  Eric Blake  <ebb9@byu.net>
66264
66265         Silence test-fpending.
66266         * modules/fpending-tests (Files): Add wrapper script.
66267         * tests/test-fpending.sh: New file.
66268
66269 2007-10-09  Bruno Haible  <bruno@clisp.org>
66270
66271         * MODULES.html.sh (func_module): Don't create a hyperlink for
66272         function names like 'printf_frexp'.
66273         (Misc): Add crc, memxor.
66274         (Characteristics of floating types): New section.
66275         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66276         isnanf-nolibm, signbit, trunc, truncf, truncl.
66277         (Enhancements for ISO C 99 functions): New subsection Input/output.
66278         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66279         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66280         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66281         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66282         (Enhancements for POSIX:2001 functions): Add chdir-long.
66283         (File system functions): Add areadlink, chdir-safer, read-file.
66284         Remove cycle-check.
66285         (File system as inode set): New section.
66286         (Date and time): Add gethrxtime.
66287         (Multithreading): Add openmp.
66288         (Internationalization functions): Add localename.
66289         (Unicode string functions): Add unistr/u*-mbsnlen.
66290         (Support for maintaining and releasing projects): Add git-version-gen.
66291         (Lone files): Remove directories.
66292
66293 2007-10-08  Ben Pfaff  <blp@gnu.org>
66294
66295         * lib/xmalloca.h: Fix typo in comment.
66296
66297 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66300         when avoiding problems with integer overflow.  Use a portable test
66301         instead.
66302
66303 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66304
66305         * modules/dummy (License): Change to LGPLv2+.
66306         * modules/float (License): Likewise
66307         * modules/realloc (License): Likewise
66308         * modules/stdlib (License): Likewise
66309
66310 2007-10-07  Bruno Haible  <bruno@clisp.org>
66311
66312         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66313         * floor.c (TWO_MANT_DIG): Likewise.
66314         * ceil.c (TWO_MANT_DIG): Likewise.
66315         Reported by Ben Pfaff.
66316
66317 2007-10-07  Bruno Haible  <bruno@clisp.org>
66318
66319         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66320         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66321         * lib/frexp.c (FUNC): Likewise.
66322         * lib/printf-frexp.h (printf_frexp): Likewise.
66323         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66324         * lib/printf-frexp.c (FUNC): Likewise.
66325         Suggested by Jim Meyering.
66326
66327 2007-10-07  Jim Meyering  <meyering@redhat.com>
66328
66329         Make xnanosleep's integer overflow test more robust.
66330         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66331         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66332
66333 2007-10-07  Bruno Haible  <bruno@clisp.org>
66334
66335         * NEWS: Mention the license change.
66336
66337         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66338         abbreviations in the modules files.
66339
66340         Change copyright notice from GPLv2+ to GPLv3+.
66341         * README: Change copyright notice.
66342         * MODULES.html.sh: Likewise.
66343         * build-aux/bootstrap.conf: Likewise.
66344         * build-aux/config.libpath: Likewise.
66345         * build-aux/csharpcomp.sh.in: Likewise.
66346         * build-aux/csharpexec.sh.in: Likewise.
66347         * build-aux/install-reloc: Likewise.
66348         * build-aux/javacomp.sh.in: Likewise.
66349         * build-aux/javaexec.sh.in: Likewise.
66350         * build-aux/ldd.sh.in: Likewise.
66351         * build-aux/reloc-ldflags: Likewise.
66352         * build-aux/relocatable.sh.in: Likewise.
66353         * build-aux/x-to-1.in: Likewise.
66354         * check-module: Likewise.
66355         * config/srclistvars.sh: Likewise.
66356         * gnulib-tool: Likewise.
66357         * lib/acl-internal.h: Likewise.
66358         * lib/acl.c: Likewise.
66359         * lib/acl.h: Likewise.
66360         * lib/acl_entries.c: Likewise.
66361         * lib/areadlink-with-size.c: Likewise.
66362         * lib/areadlink.c: Likewise.
66363         * lib/areadlink.h: Likewise.
66364         * lib/argmatch.c: Likewise.
66365         * lib/argmatch.h: Likewise.
66366         * lib/argp-ba.c: Likewise.
66367         * lib/argp-eexst.c: Likewise.
66368         * lib/argp-fmtstream.c: Likewise.
66369         * lib/argp-fmtstream.h: Likewise.
66370         * lib/argp-fs-xinl.c: Likewise.
66371         * lib/argp-help.c: Likewise.
66372         * lib/argp-namefrob.h: Likewise.
66373         * lib/argp-parse.c: Likewise.
66374         * lib/argp-pin.c: Likewise.
66375         * lib/argp-pv.c: Likewise.
66376         * lib/argp-pvh.c: Likewise.
66377         * lib/argp-xinl.c: Likewise.
66378         * lib/argp.h: Likewise.
66379         * lib/at-func.c: Likewise.
66380         * lib/atanl.c: Likewise.
66381         * lib/backupfile.c: Likewise.
66382         * lib/backupfile.h: Likewise.
66383         * lib/basename.c: Likewise.
66384         * lib/binary-io.h: Likewise.
66385         * lib/byteswap.in.h: Likewise.
66386         * lib/c-stack.c: Likewise.
66387         * lib/c-stack.h: Likewise.
66388         * lib/c-strcasestr.c: Likewise.
66389         * lib/c-strcasestr.h: Likewise.
66390         * lib/c-strstr.c: Likewise.
66391         * lib/c-strstr.h: Likewise.
66392         * lib/c-strtod.c: Likewise.
66393         * lib/calloc.c: Likewise.
66394         * lib/canon-host.c: Likewise.
66395         * lib/canon-host.h: Likewise.
66396         * lib/canonicalize-lgpl.c: Likewise.
66397         * lib/canonicalize.c: Likewise.
66398         * lib/canonicalize.h: Likewise.
66399         * lib/ceil.c: Likewise.
66400         * lib/ceilf.c: Likewise.
66401         * lib/ceill.c: Likewise.
66402         * lib/chdir-long.c: Likewise.
66403         * lib/chdir-long.h: Likewise.
66404         * lib/chdir-safer.c: Likewise.
66405         * lib/chdir-safer.h: Likewise.
66406         * lib/chown.c: Likewise.
66407         * lib/classpath.c: Likewise.
66408         * lib/classpath.h: Likewise.
66409         * lib/clean-temp.c: Likewise.
66410         * lib/clean-temp.h: Likewise.
66411         * lib/cloexec.c: Likewise.
66412         * lib/close-stream.c: Likewise.
66413         * lib/closein.c: Likewise.
66414         * lib/closein.h: Likewise.
66415         * lib/closeout.c: Likewise.
66416         * lib/closeout.h: Likewise.
66417         * lib/concat-filename.c: Likewise.
66418         * lib/copy-file.c: Likewise.
66419         * lib/copy-file.h: Likewise.
66420         * lib/count-one-bits.h: Likewise.
66421         * lib/crc.c: Likewise.
66422         * lib/crc.h: Likewise.
66423         * lib/creat-safer.c: Likewise.
66424         * lib/csharpcomp.c: Likewise.
66425         * lib/csharpcomp.h: Likewise.
66426         * lib/csharpexec.c: Likewise.
66427         * lib/csharpexec.h: Likewise.
66428         * lib/cycle-check.c: Likewise.
66429         * lib/cycle-check.h: Likewise.
66430         * lib/diacrit.c: Likewise.
66431         * lib/diacrit.h: Likewise.
66432         * lib/diffseq.h: Likewise.
66433         * lib/dirchownmod.c: Likewise.
66434         * lib/dirent.in.h: Likewise.
66435         * lib/dirfd.c: Likewise.
66436         * lib/dirfd.h: Likewise.
66437         * lib/dirname.c: Likewise.
66438         * lib/dirname.h: Likewise.
66439         * lib/dummy.c: Likewise.
66440         * lib/dup-safer.c: Likewise.
66441         * lib/dup2.c: Likewise.
66442         * lib/eealloc.h: Likewise.
66443         * lib/error.c: Likewise.
66444         * lib/error.h: Likewise.
66445         * lib/euidaccess.c: Likewise.
66446         * lib/exclude.c: Likewise.
66447         * lib/exclude.h: Likewise.
66448         * lib/execute.c: Likewise.
66449         * lib/execute.h: Likewise.
66450         * lib/exitfail.c: Likewise.
66451         * lib/exitfail.h: Likewise.
66452         * lib/expl.c: Likewise.
66453         * lib/fatal-signal.c: Likewise.
66454         * lib/fatal-signal.h: Likewise.
66455         * lib/fbufmode.c: Likewise.
66456         * lib/fbufmode.h: Likewise.
66457         * lib/fchdir.c: Likewise.
66458         * lib/fchmodat.c: Likewise.
66459         * lib/fchownat.c: Likewise.
66460         * lib/fcntl--.h: Likewise.
66461         * lib/fcntl-safer.h: Likewise.
66462         * lib/fcntl.in.h: Likewise.
66463         * lib/fd-safer.c: Likewise.
66464         * lib/fflush.c: Likewise.
66465         * lib/file-has-acl.c: Likewise.
66466         * lib/file-set.c: Likewise.
66467         * lib/file-type.c: Likewise.
66468         * lib/file-type.h: Likewise.
66469         * lib/fileblocks.c: Likewise.
66470         * lib/filemode.c: Likewise.
66471         * lib/filemode.h: Likewise.
66472         * lib/filename.h: Likewise.
66473         * lib/filenamecat.c: Likewise.
66474         * lib/filenamecat.h: Likewise.
66475         * lib/findprog.c: Likewise.
66476         * lib/findprog.h: Likewise.
66477         * lib/float.in.h: Likewise.
66478         * lib/floor.c: Likewise.
66479         * lib/floorf.c: Likewise.
66480         * lib/floorl.c: Likewise.
66481         * lib/fopen-safer.c: Likewise.
66482         * lib/fopen.c: Likewise.
66483         * lib/fpending.c: Likewise.
66484         * lib/fpending.h: Likewise.
66485         * lib/fprintf.c: Likewise.
66486         * lib/fprintftime.h: Likewise.
66487         * lib/fpucw.h: Likewise.
66488         * lib/fpurge.c: Likewise.
66489         * lib/fpurge.h: Likewise.
66490         * lib/freadable.c: Likewise.
66491         * lib/freadable.h: Likewise.
66492         * lib/freadahead.c: Likewise.
66493         * lib/freadahead.h: Likewise.
66494         * lib/freading.c: Likewise.
66495         * lib/freading.h: Likewise.
66496         * lib/free.c: Likewise.
66497         * lib/freopen.c: Likewise.
66498         * lib/frexp.c: Likewise.
66499         * lib/frexpl.c: Likewise.
66500         * lib/fseek.c: Likewise.
66501         * lib/fseterr.c: Likewise.
66502         * lib/fseterr.h: Likewise.
66503         * lib/fstatat.c: Likewise.
66504         * lib/fstrcmp.c: Likewise.
66505         * lib/fstrcmp.h: Likewise.
66506         * lib/fsusage.c: Likewise.
66507         * lib/fsusage.h: Likewise.
66508         * lib/ftell.c: Likewise.
66509         * lib/ftello.c: Likewise.
66510         * lib/fts-cycle.c: Likewise.
66511         * lib/fts.c: Likewise.
66512         * lib/fts_.h: Likewise.
66513         * lib/full-read.c: Likewise.
66514         * lib/full-read.h: Likewise.
66515         * lib/full-write.c: Likewise.
66516         * lib/full-write.h: Likewise.
66517         * lib/fwritable.c: Likewise.
66518         * lib/fwritable.h: Likewise.
66519         * lib/fwriteerror.c: Likewise.
66520         * lib/fwriteerror.h: Likewise.
66521         * lib/fwriting.c: Likewise.
66522         * lib/fwriting.h: Likewise.
66523         * lib/gcd.c: Likewise.
66524         * lib/gcd.h: Likewise.
66525         * lib/getcwd.c: Likewise.
66526         * lib/getdate.h: Likewise.
66527         * lib/getdate.y: Likewise.
66528         * lib/getdomainname.c: Likewise.
66529         * lib/getdomainname.h: Likewise.
66530         * lib/getgroups.c: Likewise.
66531         * lib/gethostname.c: Likewise.
66532         * lib/gethrxtime.c: Likewise.
66533         * lib/gethrxtime.h: Likewise.
66534         * lib/getloadavg.c: Likewise.
66535         * lib/getndelim2.c: Likewise.
66536         * lib/getndelim2.h: Likewise.
66537         * lib/getnline.c: Likewise.
66538         * lib/getnline.h: Likewise.
66539         * lib/getopt.c: Likewise.
66540         * lib/getopt.in.h: Likewise.
66541         * lib/getopt1.c: Likewise.
66542         * lib/getopt_int.h: Likewise.
66543         * lib/getpagesize.h: Likewise.
66544         * lib/getsubopt.c: Likewise.
66545         * lib/gettime.c: Likewise.
66546         * lib/getugroups.c: Likewise.
66547         * lib/getugroups.h: Likewise.
66548         * lib/getusershell.c: Likewise.
66549         * lib/gl_anyavltree_list1.h: Likewise.
66550         * lib/gl_anyavltree_list2.h: Likewise.
66551         * lib/gl_anyhash_list1.h: Likewise.
66552         * lib/gl_anyhash_list2.h: Likewise.
66553         * lib/gl_anylinked_list1.h: Likewise.
66554         * lib/gl_anylinked_list2.h: Likewise.
66555         * lib/gl_anyrbtree_list1.h: Likewise.
66556         * lib/gl_anyrbtree_list2.h: Likewise.
66557         * lib/gl_anytree_list1.h: Likewise.
66558         * lib/gl_anytree_list2.h: Likewise.
66559         * lib/gl_anytree_oset.h: Likewise.
66560         * lib/gl_anytreehash_list1.h: Likewise.
66561         * lib/gl_anytreehash_list2.h: Likewise.
66562         * lib/gl_array_list.c: Likewise.
66563         * lib/gl_array_list.h: Likewise.
66564         * lib/gl_array_oset.c: Likewise.
66565         * lib/gl_array_oset.h: Likewise.
66566         * lib/gl_avltree_list.c: Likewise.
66567         * lib/gl_avltree_list.h: Likewise.
66568         * lib/gl_avltree_oset.c: Likewise.
66569         * lib/gl_avltree_oset.h: Likewise.
66570         * lib/gl_avltreehash_list.c: Likewise.
66571         * lib/gl_avltreehash_list.h: Likewise.
66572         * lib/gl_carray_list.c: Likewise.
66573         * lib/gl_carray_list.h: Likewise.
66574         * lib/gl_linked_list.c: Likewise.
66575         * lib/gl_linked_list.h: Likewise.
66576         * lib/gl_linkedhash_list.c: Likewise.
66577         * lib/gl_linkedhash_list.h: Likewise.
66578         * lib/gl_list.c: Likewise.
66579         * lib/gl_list.h: Likewise.
66580         * lib/gl_oset.c: Likewise.
66581         * lib/gl_oset.h: Likewise.
66582         * lib/gl_rbtree_list.c: Likewise.
66583         * lib/gl_rbtree_list.h: Likewise.
66584         * lib/gl_rbtree_oset.c: Likewise.
66585         * lib/gl_rbtree_oset.h: Likewise.
66586         * lib/gl_rbtreehash_list.c: Likewise.
66587         * lib/gl_rbtreehash_list.h: Likewise.
66588         * lib/gl_sublist.c: Likewise.
66589         * lib/gl_sublist.h: Likewise.
66590         * lib/group-member.c: Likewise.
66591         * lib/group-member.h: Likewise.
66592         * lib/hard-locale.c: Likewise.
66593         * lib/hard-locale.h: Likewise.
66594         * lib/hash-pjw.c: Likewise.
66595         * lib/hash-pjw.h: Likewise.
66596         * lib/hash-triple.c: Likewise.
66597         * lib/hash.c: Likewise.
66598         * lib/hash.h: Likewise.
66599         * lib/human.c: Likewise.
66600         * lib/human.h: Likewise.
66601         * lib/i-ring.c: Likewise.
66602         * lib/i-ring.h: Likewise.
66603         * lib/idcache.c: Likewise.
66604         * lib/imaxabs.c: Likewise.
66605         * lib/imaxdiv.c: Likewise.
66606         * lib/inet_pton.c: Likewise.
66607         * lib/inet_pton.h: Likewise.
66608         * lib/intprops.h: Likewise.
66609         * lib/inttostr.c: Likewise.
66610         * lib/inttostr.h: Likewise.
66611         * lib/inttypes.in.h: Likewise.
66612         * lib/isapipe.c: Likewise.
66613         * lib/isdir.c: Likewise.
66614         * lib/isnan.c: Likewise.
66615         * lib/isnan.h: Likewise.
66616         * lib/isnanf.c: Likewise.
66617         * lib/isnanf.h: Likewise.
66618         * lib/isnanl-nolibm.h: Likewise.
66619         * lib/isnanl.c: Likewise.
66620         * lib/isnanl.h: Likewise.
66621         * lib/javacomp.c: Likewise.
66622         * lib/javacomp.h: Likewise.
66623         * lib/javaexec.c: Likewise.
66624         * lib/javaexec.h: Likewise.
66625         * lib/javaversion.c: Likewise.
66626         * lib/javaversion.h: Likewise.
66627         * lib/javaversion.java: Likewise.
66628         * lib/lbrkprop.h: Likewise.
66629         * lib/lchmod.h: Likewise.
66630         * lib/lchown.c: Likewise.
66631         * lib/ldexpl.c: Likewise.
66632         * lib/linebreak.c: Likewise.
66633         * lib/linebreak.h: Likewise.
66634         * lib/linebuffer.c: Likewise.
66635         * lib/linebuffer.h: Likewise.
66636         * lib/locale.in.h: Likewise.
66637         * lib/logl.c: Likewise.
66638         * lib/long-options.c: Likewise.
66639         * lib/long-options.h: Likewise.
66640         * lib/lstat.c: Likewise.
66641         * lib/lstat.h: Likewise.
66642         * lib/math.in.h: Likewise.
66643         * lib/mbchar.c: Likewise.
66644         * lib/mbchar.h: Likewise.
66645         * lib/mbfile.h: Likewise.
66646         * lib/mbiter.h: Likewise.
66647         * lib/mbscasecmp.c: Likewise.
66648         * lib/mbscasestr.c: Likewise.
66649         * lib/mbschr.c: Likewise.
66650         * lib/mbscspn.c: Likewise.
66651         * lib/mbslen.c: Likewise.
66652         * lib/mbsncasecmp.c: Likewise.
66653         * lib/mbsnlen.c: Likewise.
66654         * lib/mbspbrk.c: Likewise.
66655         * lib/mbspcasecmp.c: Likewise.
66656         * lib/mbsrchr.c: Likewise.
66657         * lib/mbssep.c: Likewise.
66658         * lib/mbsspn.c: Likewise.
66659         * lib/mbsstr.c: Likewise.
66660         * lib/mbstok_r.c: Likewise.
66661         * lib/mbswidth.c: Likewise.
66662         * lib/mbswidth.h: Likewise.
66663         * lib/mbuiter.h: Likewise.
66664         * lib/memcasecmp.c: Likewise.
66665         * lib/memcasecmp.h: Likewise.
66666         * lib/memchr.c: Likewise.
66667         * lib/memcmp.c: Likewise.
66668         * lib/memcoll.c: Likewise.
66669         * lib/memcoll.h: Likewise.
66670         * lib/memcpy.c: Likewise.
66671         * lib/memrchr.c: Likewise.
66672         * lib/mkancesdirs.c: Likewise.
66673         * lib/mkdir-p.c: Likewise.
66674         * lib/mkdir-p.h: Likewise.
66675         * lib/mkdir.c: Likewise.
66676         * lib/mkdirat.c: Likewise.
66677         * lib/mkdtemp.c: Likewise.
66678         * lib/mkstemp-safer.c: Likewise.
66679         * lib/mkstemp.c: Likewise.
66680         * lib/modechange.c: Likewise.
66681         * lib/modechange.h: Likewise.
66682         * lib/mountlist.c: Likewise.
66683         * lib/mountlist.h: Likewise.
66684         * lib/mpsort.c: Likewise.
66685         * lib/nanosleep.c: Likewise.
66686         * lib/obstack.c: Likewise.
66687         * lib/obstack.h: Likewise.
66688         * lib/open-safer.c: Likewise.
66689         * lib/open.c: Likewise.
66690         * lib/openat-die.c: Likewise.
66691         * lib/openat-priv.h: Likewise.
66692         * lib/openat-proc.c: Likewise.
66693         * lib/openat.c: Likewise.
66694         * lib/openat.h: Likewise.
66695         * lib/pagealign_alloc.c: Likewise.
66696         * lib/pagealign_alloc.h: Likewise.
66697         * lib/physmem.c: Likewise.
66698         * lib/physmem.h: Likewise.
66699         * lib/pipe-safer.c: Likewise.
66700         * lib/pipe.c: Likewise.
66701         * lib/pipe.h: Likewise.
66702         * lib/posixtm.c: Likewise.
66703         * lib/posixtm.h: Likewise.
66704         * lib/posixver.c: Likewise.
66705         * lib/printf-frexp.c: Likewise.
66706         * lib/printf-frexp.h: Likewise.
66707         * lib/printf-frexpl.c: Likewise.
66708         * lib/printf-frexpl.h: Likewise.
66709         * lib/printf.c: Likewise.
66710         * lib/progname.c: Likewise.
66711         * lib/progname.h: Likewise.
66712         * lib/progreloc.c: Likewise.
66713         * lib/putenv.c: Likewise.
66714         * lib/quote.c: Likewise.
66715         * lib/quote.h: Likewise.
66716         * lib/quotearg.c: Likewise.
66717         * lib/quotearg.h: Likewise.
66718         * lib/raise.c: Likewise.
66719         * lib/readline.c: Likewise.
66720         * lib/readline.h: Likewise.
66721         * lib/readlink.c: Likewise.
66722         * lib/readtokens.c: Likewise.
66723         * lib/readtokens.h: Likewise.
66724         * lib/readtokens0.c: Likewise.
66725         * lib/readtokens0.h: Likewise.
66726         * lib/readutmp.c: Likewise.
66727         * lib/readutmp.h: Likewise.
66728         * lib/realloc.c: Likewise.
66729         * lib/relocwrapper.c: Likewise.
66730         * lib/rename-dest-slash.c: Likewise.
66731         * lib/rename.c: Likewise.
66732         * lib/rmdir.c: Likewise.
66733         * lib/rpmatch.c: Likewise.
66734         * lib/safe-read.c: Likewise.
66735         * lib/safe-read.h: Likewise.
66736         * lib/safe-write.c: Likewise.
66737         * lib/safe-write.h: Likewise.
66738         * lib/same-inode.h: Likewise.
66739         * lib/same.c: Likewise.
66740         * lib/same.h: Likewise.
66741         * lib/save-cwd.c: Likewise.
66742         * lib/save-cwd.h: Likewise.
66743         * lib/savedir.c: Likewise.
66744         * lib/savedir.h: Likewise.
66745         * lib/savewd.c: Likewise.
66746         * lib/savewd.h: Likewise.
66747         * lib/search.in.h: Likewise.
66748         * lib/setenv.c: Likewise.
66749         * lib/setenv.h: Likewise.
66750         * lib/settime.c: Likewise.
66751         * lib/sh-quote.c: Likewise.
66752         * lib/sh-quote.h: Likewise.
66753         * lib/sig2str.c: Likewise.
66754         * lib/sig2str.h: Likewise.
66755         * lib/signal.in.h: Likewise.
66756         * lib/signbitd.c: Likewise.
66757         * lib/signbitf.c: Likewise.
66758         * lib/signbitl.c: Likewise.
66759         * lib/sigprocmask.c: Likewise.
66760         * lib/sincosl.c: Likewise.
66761         * lib/sleep.c: Likewise.
66762         * lib/sprintf.c: Likewise.
66763         * lib/sqrtl.c: Likewise.
66764         * lib/stat-time.h: Likewise.
66765         * lib/stdio--.h: Likewise.
66766         * lib/stdio-safer.h: Likewise.
66767         * lib/stdlib--.h: Likewise.
66768         * lib/stdlib-safer.h: Likewise.
66769         * lib/stdlib.in.h: Likewise.
66770         * lib/stpcpy.c: Likewise.
66771         * lib/stpncpy.c: Likewise.
66772         * lib/strchrnul.c: Likewise.
66773         * lib/strcspn.c: Likewise.
66774         * lib/strerror.c: Likewise.
66775         * lib/strftime.c: Likewise.
66776         * lib/strftime.h: Likewise.
66777         * lib/striconveh.c: Likewise.
66778         * lib/striconveh.h: Likewise.
66779         * lib/striconveha.c: Likewise.
66780         * lib/striconveha.h: Likewise.
66781         * lib/stripslash.c: Likewise.
66782         * lib/strnlen1.c: Likewise.
66783         * lib/strnlen1.h: Likewise.
66784         * lib/strtod.c: Likewise.
66785         * lib/strtoimax.c: Likewise.
66786         * lib/strtok_r.c: Likewise.
66787         * lib/strtol.c: Likewise.
66788         * lib/strtoll.c: Likewise.
66789         * lib/strtoul.c: Likewise.
66790         * lib/strtoull.c: Likewise.
66791         * lib/sysexits.in.h: Likewise.
66792         * lib/tempname.c: Likewise.
66793         * lib/tempname.h: Likewise.
66794         * lib/timespec.h: Likewise.
66795         * lib/tls.c: Likewise.
66796         * lib/tls.h: Likewise.
66797         * lib/tmpdir.c: Likewise.
66798         * lib/tmpdir.h: Likewise.
66799         * lib/tmpfile-safer.c: Likewise.
66800         * lib/tmpfile.c: Likewise.
66801         * lib/trigl.c: Likewise.
66802         * lib/trigl.h: Likewise.
66803         * lib/trim.c: Likewise.
66804         * lib/trim.h: Likewise.
66805         * lib/trunc.c: Likewise.
66806         * lib/truncf.c: Likewise.
66807         * lib/truncl.c: Likewise.
66808         * lib/tsearch.c: Likewise.
66809         * lib/unicodeio.c: Likewise.
66810         * lib/unicodeio.h: Likewise.
66811         * lib/unistd--.h: Likewise.
66812         * lib/unistd-safer.h: Likewise.
66813         * lib/unistdio/ulc-fprintf.c: Likewise.
66814         * lib/unistdio/ulc-vfprintf.c: Likewise.
66815         * lib/unlinkdir.c: Likewise.
66816         * lib/unlinkdir.h: Likewise.
66817         * lib/unlocked-io.h: Likewise.
66818         * lib/unsetenv.c: Likewise.
66819         * lib/userspec.c: Likewise.
66820         * lib/utime.c: Likewise.
66821         * lib/utimecmp.c: Likewise.
66822         * lib/utimecmp.h: Likewise.
66823         * lib/utimens.c: Likewise.
66824         * lib/verify.h: Likewise.
66825         * lib/verror.c: Likewise.
66826         * lib/verror.h: Likewise.
66827         * lib/version-etc-fsf.c: Likewise.
66828         * lib/version-etc.c: Likewise.
66829         * lib/version-etc.h: Likewise.
66830         * lib/vfprintf.c: Likewise.
66831         * lib/vprintf.c: Likewise.
66832         * lib/vsprintf.c: Likewise.
66833         * lib/w32spawn.h: Likewise.
66834         * lib/wait-process.c: Likewise.
66835         * lib/wait-process.h: Likewise.
66836         * lib/wcwidth.c: Likewise.
66837         * lib/write-any-file.c: Likewise.
66838         * lib/xalloc-die.c: Likewise.
66839         * lib/xalloc.h: Likewise.
66840         * lib/xasprintf.c: Likewise.
66841         * lib/xgetcwd.c: Likewise.
66842         * lib/xgetcwd.h: Likewise.
66843         * lib/xgetdomainname.c: Likewise.
66844         * lib/xgetdomainname.h: Likewise.
66845         * lib/xgethostname.c: Likewise.
66846         * lib/xmalloc.c: Likewise.
66847         * lib/xmalloca.c: Likewise.
66848         * lib/xmalloca.h: Likewise.
66849         * lib/xmemcoll.c: Likewise.
66850         * lib/xnanosleep.c: Likewise.
66851         * lib/xreadlink.c: Likewise.
66852         * lib/xreadlink.h: Likewise.
66853         * lib/xsetenv.c: Likewise.
66854         * lib/xsetenv.h: Likewise.
66855         * lib/xstriconv.c: Likewise.
66856         * lib/xstriconv.h: Likewise.
66857         * lib/xstrndup.c: Likewise.
66858         * lib/xstrndup.h: Likewise.
66859         * lib/xstrtod.c: Likewise.
66860         * lib/xstrtod.h: Likewise.
66861         * lib/xstrtol-error.c: Likewise.
66862         * lib/xstrtol.c: Likewise.
66863         * lib/xstrtol.h: Likewise.
66864         * lib/xtime.h: Likewise.
66865         * lib/xvasprintf.c: Likewise.
66866         * lib/xvasprintf.h: Likewise.
66867         * lib/yesno.c: Likewise.
66868         * lib/yesno.h: Likewise.
66869         * posix-modules: Likewise.
66870         * tests/test-alloca-opt.c: Likewise.
66871         * tests/test-arcfour.c: Likewise.
66872         * tests/test-arctwo.c: Likewise.
66873         * tests/test-argmatch.c: Likewise.
66874         * tests/test-argp-2.sh: Likewise.
66875         * tests/test-argp.c: Likewise.
66876         * tests/test-arpa_inet.c: Likewise.
66877         * tests/test-array_list.c: Likewise.
66878         * tests/test-array_oset.c: Likewise.
66879         * tests/test-atexit.c: Likewise.
66880         * tests/test-avltree_list.c: Likewise.
66881         * tests/test-avltree_oset.c: Likewise.
66882         * tests/test-avltreehash_list.c: Likewise.
66883         * tests/test-base64.c: Likewise.
66884         * tests/test-binary-io.c: Likewise.
66885         * tests/test-byteswap.c: Likewise.
66886         * tests/test-c-ctype.c: Likewise.
66887         * tests/test-c-strcasecmp.c: Likewise.
66888         * tests/test-c-strcasestr.c: Likewise.
66889         * tests/test-c-strncasecmp.c: Likewise.
66890         * tests/test-c-strstr.c: Likewise.
66891         * tests/test-canonicalize-lgpl.c: Likewise.
66892         * tests/test-canonicalize.c: Likewise.
66893         * tests/test-carray_list.c: Likewise.
66894         * tests/test-ceilf.c: Likewise.
66895         * tests/test-ceill.c: Likewise.
66896         * tests/test-count-one-bits.c: Likewise.
66897         * tests/test-crc.c: Likewise.
66898         * tests/test-dirname.c: Likewise.
66899         * tests/test-fbufmode.c: Likewise.
66900         * tests/test-fcntl.c: Likewise.
66901         * tests/test-fflush.c: Likewise.
66902         * tests/test-floorf.c: Likewise.
66903         * tests/test-floorl.c: Likewise.
66904         * tests/test-fopen.c: Likewise.
66905         * tests/test-fprintf-posix.c: Likewise.
66906         * tests/test-fprintf-posix.h: Likewise.
66907         * tests/test-fpurge.c: Likewise.
66908         * tests/test-freadable.c: Likewise.
66909         * tests/test-freadahead.c: Likewise.
66910         * tests/test-freading.c: Likewise.
66911         * tests/test-freopen.c: Likewise.
66912         * tests/test-frexp.c: Likewise.
66913         * tests/test-frexpl.c: Likewise.
66914         * tests/test-fseek.c: Likewise.
66915         * tests/test-fseeko.c: Likewise.
66916         * tests/test-fseterr.c: Likewise.
66917         * tests/test-fstrcmp.c: Likewise.
66918         * tests/test-ftell.c: Likewise.
66919         * tests/test-ftello.c: Likewise.
66920         * tests/test-fwritable.c: Likewise.
66921         * tests/test-fwriting.c: Likewise.
66922         * tests/test-getaddrinfo.c: Likewise.
66923         * tests/test-getpass.c: Likewise.
66924         * tests/test-gettimeofday.c: Likewise.
66925         * tests/test-hmac-md5.c: Likewise.
66926         * tests/test-hmac-sha1.c: Likewise.
66927         * tests/test-iconv.c: Likewise.
66928         * tests/test-iconvme.c: Likewise.
66929         * tests/test-inttypes.c: Likewise.
66930         * tests/test-isnan.c: Likewise.
66931         * tests/test-isnanf.c: Likewise.
66932         * tests/test-isnanl-nolibm.c: Likewise.
66933         * tests/test-isnanl.c: Likewise.
66934         * tests/test-isnanl.h: Likewise.
66935         * tests/test-ldexpl.c: Likewise.
66936         * tests/test-linked_list.c: Likewise.
66937         * tests/test-linkedhash_list.c: Likewise.
66938         * tests/test-locale.c: Likewise.
66939         * tests/test-localename.c: Likewise.
66940         * tests/test-lock.c: Likewise.
66941         * tests/test-lseek.c: Likewise.
66942         * tests/test-malloca.c: Likewise.
66943         * tests/test-math.c: Likewise.
66944         * tests/test-mbscasecmp.c: Likewise.
66945         * tests/test-mbscasestr1.c: Likewise.
66946         * tests/test-mbscasestr2.c: Likewise.
66947         * tests/test-mbscasestr3.c: Likewise.
66948         * tests/test-mbscasestr4.c: Likewise.
66949         * tests/test-mbschr.c: Likewise.
66950         * tests/test-mbscspn.c: Likewise.
66951         * tests/test-mbsncasecmp.c: Likewise.
66952         * tests/test-mbspbrk.c: Likewise.
66953         * tests/test-mbspcasecmp.c: Likewise.
66954         * tests/test-mbsrchr.c: Likewise.
66955         * tests/test-mbsspn.c: Likewise.
66956         * tests/test-mbsstr1.c: Likewise.
66957         * tests/test-mbsstr2.c: Likewise.
66958         * tests/test-mbsstr3.c: Likewise.
66959         * tests/test-md5.c: Likewise.
66960         * tests/test-memmem.c: Likewise.
66961         * tests/test-netinet_in.c: Likewise.
66962         * tests/test-open.c: Likewise.
66963         * tests/test-printf-frexp.c: Likewise.
66964         * tests/test-printf-frexpl.c: Likewise.
66965         * tests/test-printf-posix.c: Likewise.
66966         * tests/test-printf-posix.h: Likewise.
66967         * tests/test-rbtree_list.c: Likewise.
66968         * tests/test-rbtree_oset.c: Likewise.
66969         * tests/test-rbtreehash_list.c: Likewise.
66970         * tests/test-read-file.c: Likewise.
66971         * tests/test-rijndael.c: Likewise.
66972         * tests/test-search.c: Likewise.
66973         * tests/test-signbit.c: Likewise.
66974         * tests/test-sleep.c: Likewise.
66975         * tests/test-snprintf-posix.c: Likewise.
66976         * tests/test-snprintf-posix.h: Likewise.
66977         * tests/test-snprintf.c: Likewise.
66978         * tests/test-sprintf-posix.c: Likewise.
66979         * tests/test-sprintf-posix.h: Likewise.
66980         * tests/test-stat-time.c: Likewise.
66981         * tests/test-stdbool.c: Likewise.
66982         * tests/test-stdint.c: Likewise.
66983         * tests/test-stdio.c: Likewise.
66984         * tests/test-stdlib.c: Likewise.
66985         * tests/test-stpncpy.c: Likewise.
66986         * tests/test-strcasestr.c: Likewise.
66987         * tests/test-striconv.c: Likewise.
66988         * tests/test-striconveh.c: Likewise.
66989         * tests/test-striconveha.c: Likewise.
66990         * tests/test-string.c: Likewise.
66991         * tests/test-sys_select.c: Likewise.
66992         * tests/test-sys_socket.c: Likewise.
66993         * tests/test-sys_stat.c: Likewise.
66994         * tests/test-sys_time.c: Likewise.
66995         * tests/test-sysexits.c: Likewise.
66996         * tests/test-time.c: Likewise.
66997         * tests/test-tls.c: Likewise.
66998         * tests/test-trunc.c: Likewise.
66999         * tests/test-truncf.c: Likewise.
67000         * tests/test-truncl.c: Likewise.
67001         * tests/test-unistd.c: Likewise.
67002         * tests/test-vasnprintf-posix.c: Likewise.
67003         * tests/test-vasnprintf-posix2.c: Likewise.
67004         * tests/test-vasnprintf.c: Likewise.
67005         * tests/test-vasprintf-posix.c: Likewise.
67006         * tests/test-vasprintf.c: Likewise.
67007         * tests/test-verify.c: Likewise.
67008         * tests/test-vfprintf-posix.c: Likewise.
67009         * tests/test-vprintf-posix.c: Likewise.
67010         * tests/test-vsnprintf-posix.c: Likewise.
67011         * tests/test-vsnprintf.c: Likewise.
67012         * tests/test-vsprintf-posix.c: Likewise.
67013         * tests/test-wchar.c: Likewise.
67014         * tests/test-wctype.c: Likewise.
67015         * tests/test-wcwidth.c: Likewise.
67016         * tests/test-xstrtol.c: Likewise.
67017         * tests/test-xvasprintf.c: Likewise.
67018         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67019         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67020         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67021         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67022         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67023         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67024         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67025         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67026         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67027         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67028         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67029         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67030         * tests/uniname/test-uninames.c: Likewise.
67031         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67032         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67033         * tests/unistdio/test-u16-printf1.h: Likewise.
67034         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67035         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67036         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67037         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67038         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67039         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67040         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67041         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67042         * tests/unistdio/test-u32-printf1.h: Likewise.
67043         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67044         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67045         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67046         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67047         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67048         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67049         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67050         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67051         * tests/unistdio/test-u8-printf1.h: Likewise.
67052         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67053         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67054         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67055         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67056         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67057         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67058         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67059         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67060         * tests/unistdio/test-ulc-printf1.h: Likewise.
67061         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67062         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67063         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67064         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67065         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67066         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67067         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67068         * tests/uniwidth/test-u16-width.c: Likewise.
67069         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67070         * tests/uniwidth/test-u32-width.c: Likewise.
67071         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67072         * tests/uniwidth/test-u8-width.c: Likewise.
67073         * tests/uniwidth/test-uc_width.c: Likewise.
67074         * config/srclist-update: Likewise.
67075         (fixlicense): Update to GPLv3+.
67076
67077         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67078         * tests/test-tsearch.c: Change copyright notice.
67079
67080         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67081         * lib/c-strcaseeq.h: Change copyright notice.
67082         * lib/streq.h: Likewise.
67083         * lib/uniconv.h: Likewise.
67084         * lib/uniconv/u-conv-from-enc.h: Likewise.
67085         * lib/uniconv/u-conv-to-enc.h: Likewise.
67086         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67087         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67088         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67089         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67090         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67091         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67092         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67093         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67094         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67095         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67096         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67097         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67098         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67099         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67100         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67101         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67102         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67103         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67104         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67105         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67106         * lib/uniname.h: Likewise.
67107         * lib/uniname/uniname.c: Likewise.
67108         * lib/unistdio.h: Likewise.
67109         * lib/unistdio/u-asnprintf.h: Likewise.
67110         * lib/unistdio/u-asprintf.h: Likewise.
67111         * lib/unistdio/u-printf-args.c: Likewise.
67112         * lib/unistdio/u-printf-args.h: Likewise.
67113         * lib/unistdio/u-printf-parse.h: Likewise.
67114         * lib/unistdio/u-snprintf.h: Likewise.
67115         * lib/unistdio/u-sprintf.h: Likewise.
67116         * lib/unistdio/u-vasprintf.h: Likewise.
67117         * lib/unistdio/u-vsnprintf.h: Likewise.
67118         * lib/unistdio/u-vsprintf.h: Likewise.
67119         * lib/unistdio/u16-asnprintf.c: Likewise.
67120         * lib/unistdio/u16-asprintf.c: Likewise.
67121         * lib/unistdio/u16-printf-parse.c: Likewise.
67122         * lib/unistdio/u16-snprintf.c: Likewise.
67123         * lib/unistdio/u16-sprintf.c: Likewise.
67124         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67125         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67126         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67127         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67128         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67129         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67130         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67131         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67132         * lib/unistdio/u16-vasnprintf.c: Likewise.
67133         * lib/unistdio/u16-vasprintf.c: Likewise.
67134         * lib/unistdio/u16-vsnprintf.c: Likewise.
67135         * lib/unistdio/u16-vsprintf.c: Likewise.
67136         * lib/unistdio/u32-asnprintf.c: Likewise.
67137         * lib/unistdio/u32-asprintf.c: Likewise.
67138         * lib/unistdio/u32-printf-parse.c: Likewise.
67139         * lib/unistdio/u32-snprintf.c: Likewise.
67140         * lib/unistdio/u32-sprintf.c: Likewise.
67141         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67142         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67143         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67144         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67145         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67146         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67147         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67148         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67149         * lib/unistdio/u32-vasnprintf.c: Likewise.
67150         * lib/unistdio/u32-vasprintf.c: Likewise.
67151         * lib/unistdio/u32-vsnprintf.c: Likewise.
67152         * lib/unistdio/u32-vsprintf.c: Likewise.
67153         * lib/unistdio/u8-asnprintf.c: Likewise.
67154         * lib/unistdio/u8-asprintf.c: Likewise.
67155         * lib/unistdio/u8-printf-parse.c: Likewise.
67156         * lib/unistdio/u8-snprintf.c: Likewise.
67157         * lib/unistdio/u8-sprintf.c: Likewise.
67158         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67159         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67160         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67161         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67162         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67163         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67164         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67165         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67166         * lib/unistdio/u8-vasnprintf.c: Likewise.
67167         * lib/unistdio/u8-vasprintf.c: Likewise.
67168         * lib/unistdio/u8-vsnprintf.c: Likewise.
67169         * lib/unistdio/u8-vsprintf.c: Likewise.
67170         * lib/unistdio/ulc-asnprintf.c: Likewise.
67171         * lib/unistdio/ulc-asprintf.c: Likewise.
67172         * lib/unistdio/ulc-printf-parse.c: Likewise.
67173         * lib/unistdio/ulc-snprintf.c: Likewise.
67174         * lib/unistdio/ulc-sprintf.c: Likewise.
67175         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67176         * lib/unistdio/ulc-vasprintf.c: Likewise.
67177         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67178         * lib/unistdio/ulc-vsprintf.c: Likewise.
67179         * lib/unistr.h: Likewise.
67180         * lib/unistr/u-cpy-alloc.h: Likewise.
67181         * lib/unistr/u-cpy.h: Likewise.
67182         * lib/unistr/u-endswith.h: Likewise.
67183         * lib/unistr/u-move.h: Likewise.
67184         * lib/unistr/u-set.h: Likewise.
67185         * lib/unistr/u-startswith.h: Likewise.
67186         * lib/unistr/u-stpcpy.h: Likewise.
67187         * lib/unistr/u-stpncpy.h: Likewise.
67188         * lib/unistr/u-strcat.h: Likewise.
67189         * lib/unistr/u-strcpy.h: Likewise.
67190         * lib/unistr/u-strcspn.h: Likewise.
67191         * lib/unistr/u-strdup.h: Likewise.
67192         * lib/unistr/u-strlen.h: Likewise.
67193         * lib/unistr/u-strncat.h: Likewise.
67194         * lib/unistr/u-strncpy.h: Likewise.
67195         * lib/unistr/u-strnlen.h: Likewise.
67196         * lib/unistr/u-strpbrk.h: Likewise.
67197         * lib/unistr/u-strspn.h: Likewise.
67198         * lib/unistr/u-strstr.h: Likewise.
67199         * lib/unistr/u-strtok.h: Likewise.
67200         * lib/unistr/u16-check.c: Likewise.
67201         * lib/unistr/u16-chr.c: Likewise.
67202         * lib/unistr/u16-cmp.c: Likewise.
67203         * lib/unistr/u16-cpy-alloc.c: Likewise.
67204         * lib/unistr/u16-cpy.c: Likewise.
67205         * lib/unistr/u16-endswith.c: Likewise.
67206         * lib/unistr/u16-mblen.c: Likewise.
67207         * lib/unistr/u16-mbsnlen.c: Likewise.
67208         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67209         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67210         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67211         * lib/unistr/u16-mbtouc.c: Likewise.
67212         * lib/unistr/u16-mbtoucr.c: Likewise.
67213         * lib/unistr/u16-move.c: Likewise.
67214         * lib/unistr/u16-next.c: Likewise.
67215         * lib/unistr/u16-prev.c: Likewise.
67216         * lib/unistr/u16-set.c: Likewise.
67217         * lib/unistr/u16-startswith.c: Likewise.
67218         * lib/unistr/u16-stpcpy.c: Likewise.
67219         * lib/unistr/u16-stpncpy.c: Likewise.
67220         * lib/unistr/u16-strcat.c: Likewise.
67221         * lib/unistr/u16-strchr.c: Likewise.
67222         * lib/unistr/u16-strcmp.c: Likewise.
67223         * lib/unistr/u16-strcpy.c: Likewise.
67224         * lib/unistr/u16-strcspn.c: Likewise.
67225         * lib/unistr/u16-strdup.c: Likewise.
67226         * lib/unistr/u16-strlen.c: Likewise.
67227         * lib/unistr/u16-strmblen.c: Likewise.
67228         * lib/unistr/u16-strmbtouc.c: Likewise.
67229         * lib/unistr/u16-strncat.c: Likewise.
67230         * lib/unistr/u16-strncmp.c: Likewise.
67231         * lib/unistr/u16-strncpy.c: Likewise.
67232         * lib/unistr/u16-strnlen.c: Likewise.
67233         * lib/unistr/u16-strpbrk.c: Likewise.
67234         * lib/unistr/u16-strrchr.c: Likewise.
67235         * lib/unistr/u16-strspn.c: Likewise.
67236         * lib/unistr/u16-strstr.c: Likewise.
67237         * lib/unistr/u16-strtok.c: Likewise.
67238         * lib/unistr/u16-to-u32.c: Likewise.
67239         * lib/unistr/u16-to-u8.c: Likewise.
67240         * lib/unistr/u16-uctomb-aux.c: Likewise.
67241         * lib/unistr/u16-uctomb.c: Likewise.
67242         * lib/unistr/u32-check.c: Likewise.
67243         * lib/unistr/u32-chr.c: Likewise.
67244         * lib/unistr/u32-cmp.c: Likewise.
67245         * lib/unistr/u32-cpy-alloc.c: Likewise.
67246         * lib/unistr/u32-cpy.c: Likewise.
67247         * lib/unistr/u32-endswith.c: Likewise.
67248         * lib/unistr/u32-mblen.c: Likewise.
67249         * lib/unistr/u32-mbsnlen.c: Likewise.
67250         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67251         * lib/unistr/u32-mbtouc.c: Likewise.
67252         * lib/unistr/u32-mbtoucr.c: Likewise.
67253         * lib/unistr/u32-move.c: Likewise.
67254         * lib/unistr/u32-next.c: Likewise.
67255         * lib/unistr/u32-prev.c: Likewise.
67256         * lib/unistr/u32-set.c: Likewise.
67257         * lib/unistr/u32-startswith.c: Likewise.
67258         * lib/unistr/u32-stpcpy.c: Likewise.
67259         * lib/unistr/u32-stpncpy.c: Likewise.
67260         * lib/unistr/u32-strcat.c: Likewise.
67261         * lib/unistr/u32-strchr.c: Likewise.
67262         * lib/unistr/u32-strcmp.c: Likewise.
67263         * lib/unistr/u32-strcpy.c: Likewise.
67264         * lib/unistr/u32-strcspn.c: Likewise.
67265         * lib/unistr/u32-strdup.c: Likewise.
67266         * lib/unistr/u32-strlen.c: Likewise.
67267         * lib/unistr/u32-strmblen.c: Likewise.
67268         * lib/unistr/u32-strmbtouc.c: Likewise.
67269         * lib/unistr/u32-strncat.c: Likewise.
67270         * lib/unistr/u32-strncmp.c: Likewise.
67271         * lib/unistr/u32-strncpy.c: Likewise.
67272         * lib/unistr/u32-strnlen.c: Likewise.
67273         * lib/unistr/u32-strpbrk.c: Likewise.
67274         * lib/unistr/u32-strrchr.c: Likewise.
67275         * lib/unistr/u32-strspn.c: Likewise.
67276         * lib/unistr/u32-strstr.c: Likewise.
67277         * lib/unistr/u32-strtok.c: Likewise.
67278         * lib/unistr/u32-to-u16.c: Likewise.
67279         * lib/unistr/u32-to-u8.c: Likewise.
67280         * lib/unistr/u32-uctomb.c: Likewise.
67281         * lib/unistr/u8-check.c: Likewise.
67282         * lib/unistr/u8-chr.c: Likewise.
67283         * lib/unistr/u8-cmp.c: Likewise.
67284         * lib/unistr/u8-cpy-alloc.c: Likewise.
67285         * lib/unistr/u8-cpy.c: Likewise.
67286         * lib/unistr/u8-endswith.c: Likewise.
67287         * lib/unistr/u8-mblen.c: Likewise.
67288         * lib/unistr/u8-mbsnlen.c: Likewise.
67289         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67290         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67291         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67292         * lib/unistr/u8-mbtouc.c: Likewise.
67293         * lib/unistr/u8-mbtoucr.c: Likewise.
67294         * lib/unistr/u8-move.c: Likewise.
67295         * lib/unistr/u8-next.c: Likewise.
67296         * lib/unistr/u8-prev.c: Likewise.
67297         * lib/unistr/u8-set.c: Likewise.
67298         * lib/unistr/u8-startswith.c: Likewise.
67299         * lib/unistr/u8-stpcpy.c: Likewise.
67300         * lib/unistr/u8-stpncpy.c: Likewise.
67301         * lib/unistr/u8-strcat.c: Likewise.
67302         * lib/unistr/u8-strchr.c: Likewise.
67303         * lib/unistr/u8-strcmp.c: Likewise.
67304         * lib/unistr/u8-strcpy.c: Likewise.
67305         * lib/unistr/u8-strcspn.c: Likewise.
67306         * lib/unistr/u8-strdup.c: Likewise.
67307         * lib/unistr/u8-strlen.c: Likewise.
67308         * lib/unistr/u8-strmblen.c: Likewise.
67309         * lib/unistr/u8-strmbtouc.c: Likewise.
67310         * lib/unistr/u8-strncat.c: Likewise.
67311         * lib/unistr/u8-strncmp.c: Likewise.
67312         * lib/unistr/u8-strncpy.c: Likewise.
67313         * lib/unistr/u8-strnlen.c: Likewise.
67314         * lib/unistr/u8-strpbrk.c: Likewise.
67315         * lib/unistr/u8-strrchr.c: Likewise.
67316         * lib/unistr/u8-strspn.c: Likewise.
67317         * lib/unistr/u8-strstr.c: Likewise.
67318         * lib/unistr/u8-strtok.c: Likewise.
67319         * lib/unistr/u8-to-u16.c: Likewise.
67320         * lib/unistr/u8-to-u32.c: Likewise.
67321         * lib/unistr/u8-uctomb-aux.c: Likewise.
67322         * lib/unistr/u8-uctomb.c: Likewise.
67323         * lib/unitypes.h: Likewise.
67324         * lib/uniwidth.h: Likewise.
67325         * lib/uniwidth/cjk.h: Likewise.
67326         * lib/uniwidth/u16-strwidth.c: Likewise.
67327         * lib/uniwidth/u16-width.c: Likewise.
67328         * lib/uniwidth/u32-strwidth.c: Likewise.
67329         * lib/uniwidth/u32-width.c: Likewise.
67330         * lib/uniwidth/u8-strwidth.c: Likewise.
67331         * lib/uniwidth/u8-width.c: Likewise.
67332         * lib/uniwidth/width.c: Likewise.
67333
67334 2007-10-07  Bruno Haible  <bruno@clisp.org>
67335
67336         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67337         The file is still under LGPL (see modules/inttypes).
67338
67339 2007-10-06  Bruno Haible  <bruno@clisp.org>
67340
67341         * modules/trunc (Dependencies): Add 'extensions'.
67342         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67343         Reported by Ben Pfaff <blp@gnu.org>.
67344
67345 2007-10-06  Bruno Haible  <bruno@clisp.org>
67346
67347         * modules/freopen-tests: New file.
67348         * tests/test-freopen.c: New file.
67349
67350         * modules/fopen-tests: New file.
67351         * tests/test-fopen.c: New file.
67352
67353         * modules/fopen: New file.
67354         * lib/fopen.c: New file.
67355         * m4/fopen.m4: New file.
67356         * modules/freopen: New file.
67357         * lib/freopen.c: New file.
67358         * m4/freopen.m4: New file.
67359         * lib/stdio.in.h (fopen, freopen): New declarations.
67360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67361         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67362         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67363         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67364         * doc/functions/fopen.texi: Mention the 'fopen' module.
67365         * doc/functions/freopen.texi: Mention the 'freopen' module.
67366
67367 2007-10-06  Bruno Haible  <bruno@clisp.org>
67368
67369         * modules/open-tests: New file.
67370         * tests/test-open.c: New file.
67371
67372         * modules/open: New file.
67373         * lib/open.c: New file.
67374         * m4/open.m4: New file.
67375         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67376         lib/open.c does.
67377         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67378         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67379         macros.
67380         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67381         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67382         REPLACE_OPEN.
67383         * doc/functions/open.texi: Mention the 'open' module.
67384
67385 2007-10-04  Bruno Haible  <bruno@clisp.org>
67386
67387         * modules/ceill-tests: New file.
67388         * tests/test-ceill.c: New file.
67389
67390         * modules/ceill: New file.
67391         * lib/ceill.c: Replace entire file.
67392         * m4/ceill.m4: New file.
67393         * lib/math.in.h (ceill): Replace declaration.
67394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67395         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67396         * doc/functions/ceill.texi: Mention the 'ceill' module.
67397         * modules/mathl (Files): Remove lib/ceill.c.
67398         (Depends-on): Add ceill.
67399
67400 2007-10-04  Bruno Haible  <bruno@clisp.org>
67401
67402         * modules/ceilf-tests: New file.
67403         * tests/test-ceilf.c: New file.
67404
67405         * modules/ceilf: New file.
67406         * lib/ceil.c: New file.
67407         * lib/ceilf.c: New file.
67408         * m4/ceilf.m4: New file.
67409         * lib/math.in.h (ceilf): New declaration.
67410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67411         HAVE_DECL_CEILF.
67412         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67413         HAVE_DECL_CEILF.
67414         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67415
67416 2007-10-04  Bruno Haible  <bruno@clisp.org>
67417
67418         * modules/floorl-tests: New file.
67419         * tests/test-floorl.c: New file.
67420
67421         * modules/floorl: New file.
67422         * lib/floorl.c: Replace entire file.
67423         * m4/floorl.m4: New file.
67424         * lib/math.in.h (floorl): Replace declaration.
67425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67426         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67427         * doc/functions/floorl.texi: Mention the 'floorl' module.
67428         * modules/mathl (Files): Remove lib/floorl.c.
67429         (Depends-on): Add floorl.
67430
67431 2007-10-04  Bruno Haible  <bruno@clisp.org>
67432
67433         * modules/floorf-tests: New file.
67434         * tests/test-floorf.c: New file.
67435
67436         * modules/floorf: New file.
67437         * lib/floor.c: New file.
67438         * lib/floorf.c: New file.
67439         * m4/floorf.m4: New file.
67440         * lib/math.in.h (floorf): New declaration.
67441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67442         HAVE_DECL_FLOORF.
67443         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67444         HAVE_DECL_FLOORF.
67445         * doc/functions/floorf.texi: Mention the 'floorf' module.
67446
67447 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67448             Bruno Haible  <bruno@clisp.org>
67449
67450         Advertise for the Git server instead of the CVS server.
67451         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67452         repository instead of the CVS one.
67453         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67454         about all VCS systems generically.
67455         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67456
67457 2007-10-04  Bruno Haible  <bruno@clisp.org>
67458
67459         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67460         means.
67461         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67462
67463 2007-10-04  Bruno Haible  <bruno@clisp.org>
67464
67465         * modules/truncl-tests: New file.
67466         * tests/test-truncl.c: New file.
67467
67468         * modules/truncl: New file.
67469         * lib/truncl.c: New file.
67470         * m4/truncl.m4: New file.
67471         * lib/math.in.h (truncl): New declaration.
67472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67473         HAVE_DECL_TRUNCL.
67474         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67475         HAVE_DECL_TRUNCL.
67476         * doc/functions/truncl.texi: Mention the 'truncl' module.
67477
67478 2007-10-04  Bruno Haible  <bruno@clisp.org>
67479
67480         * modules/truncf-tests: New file.
67481         * tests/test-truncf.c: New file.
67482
67483         * modules/truncf: New file.
67484         * lib/trunc.c: Make paramerizable through USE_* macros.
67485         * lib/truncf.c: New file.
67486         * m4/truncf.m4: New file.
67487         * lib/math.in.h (truncf): New declaration.
67488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67489         HAVE_DECL_TRUNCF.
67490         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67491         HAVE_DECL_TRUNCF.
67492         * doc/functions/truncf.texi: Mention the 'truncf' module.
67493
67494 2007-10-03  Bruno Haible  <bruno@clisp.org>
67495
67496         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67497         augmentation also for tests modules.
67498         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67499         * modules/atexit-tests (Makefile.am): Likewise.
67500         * modules/binary-io-tests (Makefile.am): Likewise.
67501         * modules/c-strcase-tests (Makefile.am): Likewise.
67502         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67503         * modules/canonicalize-tests (Makefile.am): Likewise.
67504         * modules/closein-tests (Makefile.am): Likewise.
67505         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67506         * modules/freadahead-tests (Makefile.am): Likewise.
67507         * modules/fseek-tests (Makefile.am): Likewise.
67508         * modules/fseeko-tests (Makefile.am): Likewise.
67509         * modules/ftell-tests (Makefile.am): Likewise.
67510         * modules/ftello-tests (Makefile.am): Likewise.
67511         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67512         * modules/isnanl-tests (Makefile.am): Likewise.
67513         * modules/lseek-tests (Makefile.am): Likewise.
67514         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67515         * modules/mbscasestr-tests (Makefile.am): Likewise.
67516         * modules/mbschr-tests (Makefile.am): Likewise.
67517         * modules/mbscspn-tests (Makefile.am): Likewise.
67518         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67519         * modules/mbspbrk-tests (Makefile.am): Likewise.
67520         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67521         * modules/mbsrchr-tests (Makefile.am): Likewise.
67522         * modules/mbsspn-tests (Makefile.am): Likewise.
67523         * modules/mbsstr-tests (Makefile.am): Likewise.
67524         * modules/printf-posix-tests (Makefile.am): Likewise.
67525         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67526         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67527         * modules/tsearch-tests (Makefile.am): Likewise.
67528         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67529         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67530         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67531         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67532         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67533         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67534         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67535         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67536         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67537         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67538         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67539         * modules/xstrtol-tests (Makefile.am): Likewise.
67540         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67541         * modules/yesno-tests (Makefile.am): Likewise.
67542
67543 2007-10-03  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/trunc-tests: New file.
67546         * tests/test-trunc.c: New file.
67547
67548         * modules/trunc: New file.
67549         * lib/trunc.c: New file.
67550         * m4/trunc.m4: New file.
67551         * lib/math.in.h (trunc): New declaration.
67552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67553         HAVE_DECL_TRUNC.
67554         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67555         HAVE_DECL_TRUNC.
67556         * doc/functions/trunc.texi: Mention the 'trunc' module.
67557
67558 2007-10-03  Bruno Haible  <bruno@clisp.org>
67559
67560         * tests/test-fpending.c: New file, mostly copied
67561         from coreutils/lib/t-fpending.c.
67562         * modules/fpending-tests: New file.
67563
67564 2007-10-03  Bruno Haible  <bruno@clisp.org>
67565
67566         Port the stdio extensions to QNX (untested).
67567         * lib/fseterr.c (fseterr): Add support for QNX.
67568         * lib/fbufmode.c (fbufmode): Likewise.
67569         * lib/freadable.c (freadable): Likewise.
67570         * lib/fwritable.c (fwritable): Likewise.
67571         * lib/freading.c (freading): Likewise.
67572         * lib/fwriting.c (fwriting): Likewise.
67573         * lib/freadahead.c (freadahed): Likewise.
67574         * lib/fpurge.c (fpurge): Likewise.
67575         * lib/fseeko.c (rpl_fseeko): Likewise.
67576
67577 2007-10-03  Bruno Haible  <bruno@clisp.org>
67578             Jim Meyering  <jim@meyering.net>
67579             Eric Blake  <ebb9@byu.net>
67580
67581         * doc/relocatable.texi: Use @command instead of @program.
67582
67583 2007-10-02  Jim Meyering  <jim@meyering.net>
67584
67585         Perform one more "_.h" -> ".in.h" substitution.
67586         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67587         instead of unistd_.h here, too.
67588
67589 2007-10-01  Bruno Haible  <bruno@clisp.org>
67590
67591         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67592         Needed for the alloca-opt module.
67593
67594 2007-09-30  Bruno Haible  <bruno@clisp.org>
67595
67596         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67597         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67598         alloca_.h.
67599         * lib/argz.in.h: Renamed from lib/argz_.h.
67600         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67601         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67602         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67603         byteswap_.h.
67604         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67605         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67606         dirent_.h.
67607         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67608         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67609         fcntl_.h.
67610         * lib/float.in.h: Renamed from lib/float_.h.
67611         * modules/float (Files, Makefile.am): Use float.in.h instead of
67612         float_.h.
67613         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67614         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67615         fnmatch_.h.
67616         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67617         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67618         getopt_.h.
67619         * lib/glob.in.h: Renamed from lib/glob_.h.
67620         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67621         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67622         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67623         iconv_.h.
67624         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67625         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67626         inttypes_.h.
67627         * lib/locale.in.h: Renamed from lib/locale_.h.
67628         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67629         locale_.h.
67630         * lib/math.in.h: Renamed from lib/math_.h.
67631         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67632         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67633         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67634         of netinet_in_.h. Add dependency.
67635         * lib/poll.in.h: Renamed from lib/poll_.h.
67636         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67637         * lib/search.in.h: Renamed from lib/search_.h.
67638         * modules/search (Files, Makefile.am): Use search.in.h instead of
67639         search_.h.
67640         * lib/signal.in.h: Renamed from lib/signal_.h.
67641         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67642         _signal.h.
67643         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67644         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67645         stdbool_.h.
67646         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67647         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67648         stdint_.h.
67649         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67650         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67651         stdio_.h.
67652         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67653         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67654         stdlib_.h.
67655         * lib/string.in.h: Renamed from lib/string_.h.
67656         * modules/string (Files, Makefile.am): Use string.in.h instead of
67657         string_.h.
67658         * doc/gnulib-tool.texi (Initial import): Update.
67659         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67660         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67661         of sys_select_.h. Add dependency.
67662         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67663         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67664         of sys_socket_.h.
67665         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67666         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67667         sys_stat_.h.
67668         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67669         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67670         sys_time_.h.
67671         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67672         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67673         sysexits_.h.
67674         * lib/time.in.h: Renamed from lib/time_.h.
67675         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67676         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67677         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67678         unistd_.h.
67679         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67680         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67681         wchar_.h.
67682         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67683         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67684         wctype_.h.
67685         * build-aux/bootstrap (slurp): Update.
67686         * lib/.cppi-disable: Update.
67687
67688 2007-09-30  Bruno Haible  <bruno@clisp.org>
67689
67690         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67691         Needed on BeOS.
67692
67693 2007-09-30  Bruno Haible  <bruno@clisp.org>
67694
67695         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67696
67697 2007-09-29  Bruno Haible  <bruno@clisp.org>
67698
67699         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67700
67701 2007-09-29  Bruno Haible  <bruno@clisp.org>
67702
67703         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67704         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67705         * build-aux/install-reloc: Compile also areadlink.c.
67706         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67707
67708 2007-09-29  Bruno Haible  <bruno@clisp.org>
67709
67710         * gnulib-tool (func_emit_initmacro_done): Indentation.
67711
67712 2007-09-29  Bruno Haible  <bruno@clisp.org>
67713
67714         * README: Add CVS checkout update instructions.
67715         Info from Bob Proulx <bob@proulx.com>.
67716
67717 2007-09-28  Eric Blake  <ebb9@byu.net>
67718
67719         Provide move-if-change.
67720         * build-aux/move-if-change: New file, based on best practice
67721         rather than any canonical upstream location.
67722
67723 2007-09-28  Jim Meyering  <jim@meyering.net>
67724
67725         Fix canonicalize loop-detection corner case.
67726         Do not attempt to stat the symlink values stored via seen_triple.
67727         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67728         on linux-2.6.18, (but not 2.6.22).
67729         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67730         triple_compare.  The former compares dev,ino,filename, while the latter
67731         would actually stat dirname(filename) when dev and ino were equal.
67732         * lib/hash-triple.c: Install <string.h>.
67733         (STREQ): Define.
67734         (triple_compare_ino_str): New function.
67735         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67736
67737 2007-09-28  Eric Blake  <ebb9@byu.net>
67738
67739         Enforce that AC_REPLACE_FUNCS files exist.
67740         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67741         override check for typos.
67742
67743         Fix test-closein on Solaris 10.
67744         * tests/test-closein.c (main): Don't assume stdin can be inherited
67745         closed on all systems.
67746         * tests/test-closein.sh: Likewise.
67747         Reported by Piotr Tarnowski.
67748
67749 2007-09-28  Jim Meyering  <jim@meyering.net>
67750
67751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67752
67753 2007-09-27  Jim Meyering  <jim@meyering.net>
67754
67755         canonicalize: Avoid a false-positive cycle failure.
67756         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67757         Sort.  Remove cycle-check.
67758         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67759         not cycle-check.h.
67760         (seen_triple): New function.
67761         (canonicalize_filename_mode): Use it instead of cycle-check.
67762         * tests/test-canonicalize.c: Add a test for this bug.
67763         * tests/test-canonicalize.sh: Set up and run the test.
67764
67765         New module, file-set, from coreutils.
67766         * modules/file-set: Define it.
67767         * lib/file-set.c, lib/file-set.h: Implement.
67768
67769         New module, hash-triple, from coreutils.
67770         * modules/hash-triple: Define it.
67771         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67772
67773 2007-09-25  Eric Blake  <ebb9@byu.net>
67774
67775         Fix strerror on Interix.
67776         * lib/string_.h (strerror): Declare replacement.
67777         * doc/functions/strerror.texi (strerror): Document the Interix
67778         shortcoming.
67779         * modules/string (Makefile.am): Support new hooks.
67780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67781         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67782         gl_FUNC_STRERROR_SEPARATE.
67783         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67784         * lib/strerror.c (rpl_strerror): Provide replacement.
67785         * modules/strerror (Depends-on): Add string.
67786         (configure.ac): Detect use of module.
67787         * tests/test-strerror.c: New file.
67788         * modules/strerror-tests: New test module.
67789         * modules/argp (Depends-on): Add strerror.
67790         * modules/error (Depends-on): Likewise.
67791         Reported by Martin Koeppe.
67792
67793 2007-09-24  Bruno Haible  <bruno@clisp.org>
67794
67795         * README: Update git instructions.
67796
67797 2007-09-24  Eric Blake  <ebb9@byu.net>
67798
67799         Revert fpending breakage from 2007-09-08.
67800         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67801         __fpending.c.
67802
67803 2007-09-24  Jim Meyering  <jim@meyering.net>
67804
67805         filenamecat.c: Add a test.
67806         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67807         showing how the function works when DIR is the empty string.
67808
67809 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67810
67811         * tests/test-canonicalize.sh: Turn on executable bit.
67812
67813 2007-09-19  Eric Blake  <ebb9@byu.net>
67814
67815         * README: Update CVS instructions.
67816
67817 2007-09-18  Bruno Haible  <bruno@clisp.org>
67818
67819         * modules/areadlink: New file.
67820         * lib/areadlink.h (areadlink): New declaration.
67821         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67822
67823 2007-09-17  Jim Meyering  <jim@meyering.net>
67824
67825         * lib/savewd.c (ESTALE) [!defined]: Define.
67826         Reported to be required on Interix by Martin Koeppe.
67827
67828 2007-09-17  Bruno Haible  <bruno@clisp.org>
67829
67830         * gnulib-tool (func_version): Use $version.
67831
67832 2007-09-16  Bruno Haible  <bruno@clisp.org>
67833
67834         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67835         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67836         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67837         Reported by Greg Schafer <gschafer@zip.com.au>.
67838
67839 2007-09-15  Bruno Haible  <bruno@clisp.org>
67840
67841         * gnulib-tool (sed): Try a little harder to make bash understand the
67842         alias.
67843         Reported by Bruce Korb <bruce.korb@gmail.com>.
67844
67845 2007-09-13  Eric Blake  <ebb9@byu.net>
67846
67847         * ChangeLog: Remove conflict markers.
67848
67849 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67850
67851         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67852         Reported by Bruno Haible <bruno@clisp.org>.
67853
67854 2007-09-12  Bruno Haible  <bruno@clisp.org>
67855
67856         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67857         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67858         is not defined.
67859
67860 2007-09-12  Eric Blake  <ebb9@byu.net>
67861
67862         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67864         Autoconf definition.
67865         * modules/euidaccess (Depends-on): Add extensions, for
67866         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67867         * modules/fnmatch (Depends-on): Likewise.
67868         * modules/getaddrinfo (Depends-on): Likewise.
67869         * modules/getdelim (Depends-on): Likewise.
67870         * modules/getline (Depends-on): Likewise.
67871         * modules/getsubopt (Depends-on): Likewise.
67872         * modules/gettext (Depends-on): Likewise.
67873         * modules/group-member (Depends-on): Likewise.
67874         * modules/mbchar (Depends-on): Likewise.
67875         * modules/memmem (Depends-on): Likewise.
67876         * modules/mempcpy (Depends-on): Likewise.
67877         * modules/memrchr (Depends-on): Likewise.
67878         * modules/pagealign_alloc (Depends-on): Likewise.
67879         * modules/readutmp (Depends-on): Likewise.
67880         * modules/stpcpy (Depends-on): Likewise.
67881         * modules/stpncpy (Depends-on): Likewise.
67882         * modules/strchrnul (Depends-on): Likewise.
67883         * modules/strndup (Depends-on): Likewise.
67884         * modules/strsep (Depends-on): Likewise.
67885         * modules/strverscmp (Depends-on): Likewise.
67886         * modules/vasprintf (Depends-on): Likewise.
67887         * modules/wcwidth (Depends-on): Likewise.
67888         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67889         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67890         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67892         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67893         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67894         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67895         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67896         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67897         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67899         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67900         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67902         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67903         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67904         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67905         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67906         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67907         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67908         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67909         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67910         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67911         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67912         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67914         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67915         so that lock.m4 can be used in gettext without extensions module.
67916
67917 2007-09-11  Bruno Haible  <bruno@clisp.org>
67918
67919         * m4/isc-posix.m4: Remove file.
67920         Suggested by Eric Blake.
67921
67922 2007-09-11  Eric Blake  <ebb9@byu.net>
67923
67924         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67925
67926 2007-09-10  Bruno Haible  <bruno@clisp.org>
67927
67928         * posix-modules: Fix typo in error message.
67929         Reported by Matt <mkraai@beckman.com>.
67930
67931 2007-09-09  Bruno Haible  <bruno@clisp.org>
67932
67933         * doc/functions/getdelim.texi: Update list of platforms lacking the
67934         function.
67935         * doc/functions/getline.texi: Likewise.
67936
67937 2007-09-09  Jim Meyering  <jim@meyering.net>
67938
67939         * lib/hash.c (hash_initialize): Detect calloc failure.
67940         Reported by Bruno Haible.
67941
67942 2007-09-09  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67945         malloc or realloc fails.
67946
67947 2007-09-09  Bruno Haible  <bruno@clisp.org>
67948
67949         * modules/getcwd (Depends-on): Add malloc-posix.
67950         * modules/glob (Depends-on): Likewise.
67951         * modules/putenv (Depends-on): Likewise.
67952         * modules/strdup (Depends-on): Likewise.
67953         * modules/getdelim (Depends-on): Add realloc-posix.
67954         * modules/read-file (Depends-on): Likewise.
67955
67956 2007-09-09  Bruno Haible  <bruno@clisp.org>
67957
67958         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67959         (gl_FUNC_MALLOC_POSIX): Require it.
67960         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67961         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67962         * modules/realloc (Files): Add m4/malloc.m4.
67963         * modules/calloc (Files): Likewise.
67964
67965 2007-09-09  Bruno Haible  <bruno@clisp.org>
67966
67967         * modules/malloc-posix: New file.
67968         * modules/malloc (Depends-on): Add malloc-posix.
67969         * lib/malloc.c: Include errno.h.
67970         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67971         and a POSIX-compatible malloc into a single function. Set ENOMEM
67972         when returning NULL.
67973         * m4/malloc.m4: New file.
67974         * doc/functions/malloc.texi: Mention the malloc-posix module.
67975         * lib/stdlib_.h (malloc): New declaration.
67976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67977         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67978         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67979         and HAVE_MALLOC_POSIX.
67980
67981 2007-09-09  Bruno Haible  <bruno@clisp.org>
67982
67983         * modules/realloc-posix: New file.
67984         * modules/realloc (Depends-on): Add realloc-posix.
67985         * lib/realloc.c: Include errno.h.
67986         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67987         and a POSIX-compatible realloc into a single function. Set ENOMEM
67988         when returning NULL.
67989         * m4/realloc.m4: New file.
67990         * doc/functions/realloc.texi: Mention the realloc-posix module.
67991         * lib/stdlib_.h (realloc): New declaration.
67992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67993         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67994         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67995         and HAVE_REALLOC_POSIX.
67996
67997 2007-09-09  Bruno Haible  <bruno@clisp.org>
67998
67999         * modules/calloc-posix: New file.
68000         * modules/calloc (Depends-on): Add calloc-posix.
68001         * lib/calloc.c: Include errno.h.
68002         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68003         and a POSIX-compatible calloc into a single function. Set ENOMEM
68004         when returning NULL.
68005         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68006         * doc/functions/calloc.texi: Mention the calloc-posix module.
68007         * lib/stdlib_.h (calloc): New declaration.
68008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68009         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68010         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68011         and HAVE_CALLOC_POSIX.
68012
68013 2007-09-09  Bruno Haible  <bruno@clisp.org>
68014
68015         Allow for modules to show an arbitrary notice.
68016         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68017         * gnulib-tool: New option --extract-notice.
68018         (func_usage): Document it.
68019         (sed_extract_prog): Update.
68020         (func_get_notice): New function.
68021         (func_modules_notice): New function.
68022         (func_import, func_create_testdir): Invoke it.
68023         Suggested by Jim Meyering.
68024
68025 2007-09-09  Bruno Haible  <bruno@clisp.org>
68026
68027         * gnulib-tool: New options --verbose, --quiet.
68028         (func_usage): Document them.
68029         (verbose): New variable.
68030         (func_execute_command): New function.
68031         (func_import): Don't show the module list and the file list if
68032         $verbose < 0.
68033         (func_create_testdir): Likewise. Use func_execute_command.
68034         (func_create_megatestdir): Use func_execute_command.
68035
68036 2007-09-08  Bruno Haible  <bruno@clisp.org>
68037
68038         * gnulib-tool (func_import): Prefer rsync over wget when available,
68039         for fetching the PO files.
68040
68041 2007-09-08  Bruno Haible  <bruno@clisp.org>
68042
68043         * posix-modules: New file. Portions copied from gnulib-tool.
68044         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68045
68046 2007-09-08  Jim Meyering  <jim@meyering.net>
68047
68048         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68049         * lib/fpending.h: Rename from __fpending.h.
68050         * lib/fpending.c: Rename from __fpending.c.
68051         Include "fpending.h", not "__fpending.h".
68052         * lib/__fpending.h, lib/__fpending.c: Remove files.
68053         * modules/fpending (Files): Reflect new file names.
68054         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68055
68056 2007-09-08  Bruno Haible  <bruno@clisp.org>
68057
68058         * m4/inttypes-h.m4: Remove stub file.
68059
68060 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68061
68062         * doc/headers/stdint.texi: Discuss #include_next issue.
68063
68064 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68067
68068 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68069
68070         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68071         in variable name.
68072
68073 2007-09-03  Jim Meyering  <jim@meyering.net>
68074
68075         New module: git-version-gen.
68076         * modules/git-version-gen: New file.
68077
68078         Import changes from coreutils for bootstrap script.
68079
68080         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68081
68082         bootstrap: uses rsync to download the .po files
68083         * build-aux/bootstrap (po_download_command_format): New global.
68084         (download_po_files): Use rsync.
68085         (update_po_files): Don't remove .po files after download,
68086         so future rsync runs can take advantage of the copies.
68087
68088         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68089
68090         Solve the unnecessary-.po-file-regeneration problem once and for all.
68091         * build-aux/bootstrap (download_po_files): New function, renamed from
68092         get_translations.  Now, downloads, but doesn't update LINGUAS.
68093         (update_po_files): New function.
68094
68095         bootstrap: Ignore more.
68096         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68097         uniwidth to e.g., lib/.gitignore.
68098         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68099
68100         * build-aux/bootstrap: New setting: vc_ignore.
68101         (insert_sorted_if_absent): Create $file if absent.
68102         Adapt to new, possibly empty, list: $vc_ignore.
68103
68104         bootstrap: generate more ignorable names
68105         * build-aux/bootstrap (slurp): When generating ignorable names,
68106         also map .sin to .sed, .gperf to .c, and .y to .c.
68107
68108 2007-09-03  Jim Meyering  <jim@meyering.net>
68109
68110         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68111         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68112
68113 2007-09-02  Bruno Haible  <bruno@clisp.org>
68114
68115         Fix mis-recognition of 'mcs' on QNX 6.
68116         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68117         output contains the string "Mono".
68118         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68119         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68120
68121 2007-09-01  Bruno Haible  <bruno@clisp.org>
68122
68123         Fix collision between uniwidth/* and linebreak modules.
68124         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68125         u32_width): Remove declarations.
68126         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68127         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68128         streq3, streq2, streq1, streq0): Remove functions.
68129         (STREQ): Remove macro.
68130         (is_cjk_encoding): Remove function.
68131         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68132         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68133         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68134         * NEWS: Document the change.
68135
68136 2007-09-01  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/streq.h: Add double-inclusion guard.
68139
68140 2007-09-01  Karl Berry  <karl@gnu.org>
68141
68142         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68143
68144 2007-08-28  Jim Meyering  <jim@meyering.net>
68145
68146         Rename mreadlink_with_size to areadlink_with_size.
68147         * NEWS: Document the change.
68148         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68149         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68150         * lib/mreadlink.h: Rename this to...
68151         * lib/areadlink.h: ...this.
68152         * modules/mreadlink-with-size: Rename this to...
68153         * modules/areadlink-with-size: ...this.
68154         * lib/canonicalize.c: Reflect the renaming.
68155         * modules/canonicalize: Likewise.
68156
68157 2007-08-26  Bruno Haible  <bruno@clisp.org>
68158
68159         * gnulib-tool (func_import): When deciding which files to remove,
68160         consider also dangling symbolic links.
68161         Reported by Eric Blake.
68162
68163 2007-08-26  Bruno Haible  <bruno@clisp.org>
68164
68165         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68166
68167 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68168
68169         * lib/readline.c: Don't include getline.h, the prototype is now
68170         found in stdio.h.
68171
68172 2007-08-23  Jim Meyering  <jim@meyering.net>
68173
68174         Getdelim touchup.
68175         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68176         around the funlockfile call, since funlockfile never sets errno.
68177         Don't set errno upon failed realloc.
68178
68179 2007-08-22  Eric Blake  <ebb9@byu.net>
68180
68181         Getline touchups.
68182         * lib/getdelim.c (getdelim): Revert regression that required *n to
68183         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68185         getdelim, rather than whether implementation is missing.
68186         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68187         * lib/stdio_.h (getline): Also declare if replacement is
68188         required.
68189         * doc/functions/getdelim.texi: New file.
68190         * doc/functions/getline.texi: Likewise.
68191         * doc/gnulib.texi (Function Substitutes): Add new files.
68192         Reported by Bruno Haible.
68193
68194 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68195
68196         * users.txt: Add Guile.
68197
68198 2007-08-22  Eric Blake  <ebb9@byu.net>
68199
68200         * tests/test-getdelim.c (main): Use remove, not unlink.
68201         * tests/test-getline.c (main): Likewise.
68202
68203         Move getline and getdelim into stdio.h, per POSIX 200x.
68204         * modules/getline (Files): Remove getline.h.
68205         (Depends-on): Add stdio.
68206         (configure.ac): Add module indicator.
68207         * modules/getdelim (Files): Remove getdelim.h.
68208         (Depends-on): Add stdio.
68209         (configure.ac): Add module indicator.
68210         * modules/stdio (Makefile.am): Work with new indicators.
68211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68213         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68214         * lib/getdelim.h: Delete.
68215         * lib/getline.h: Delete.
68216         * lib/stdio_.h (getdelim, getline): Declare.
68217         * modules/getdelim-tests: New module.
68218         * modules/getline-tests: Likewise.
68219         * tests/test-getdelim.c: New file.
68220         * tests/test-getline.c: Likewise.
68221         * NEWS: Document the change.
68222         * lib/getline.c: Update choice of header.
68223         * lib/csharpcomp.c: Likewise.
68224         * lib/getpass.c: Likewise.
68225         * lib/javacomp.c: Likewise.
68226         * lib/javaversion.c: Likewise.
68227         * lib/yesno.c: Likewise.
68228         * lib/getdelim.c: Likewise.
68229         (getdelim): Set errno on failure, and avoid memory leak.
68230
68231 2007-08-19  Bruno Haible  <bruno@clisp.org>
68232
68233         * modules/closein (Depends-on): Add freadahead.
68234         * lib/closein.c: Include freadahead.h.
68235         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68236         is zero.
68237
68238 2007-08-19  Bruno Haible  <bruno@clisp.org>
68239
68240         * modules/freadahead-tests: New file.
68241         * tests/test-freadahead.sh: New file.
68242         * tests/test-freadahead.c: New file.
68243
68244         * modules/freadahead: New file.
68245         * lib/freadahead.h: New file.
68246         * lib/freadahead.c: New file.
68247         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68248         fbufmode, fpurge, freadable, fwritable.
68249
68250 2007-08-19  Eric Blake  <ebb9@byu.net>
68251
68252         Test yesno in combination with closein.
68253         * lib/yesno.c (yesno): Document use of stdin.
68254         * modules/yesno-tests (Files): New module.
68255         * tests/test-yesno.c (main): New file.
68256         * tests/test-yesno.sh: Likewise.
68257
68258 2007-08-19  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68261         * lib/fseeko.c (rpl_fseeko): Likewise.
68262         * lib/fseterr.c (fseterr): Likewise.
68263
68264 2007-08-19  Bruno Haible  <bruno@clisp.org>
68265
68266         * tests/test-lseek.c (main): Disable a test for BeOS.
68267         * doc/functions/lseek.texi: Document the BeOS bug.
68268
68269 2007-08-19  Bruno Haible  <bruno@clisp.org>
68270             Eric Blake  <ebb9@byu.net>
68271
68272         * lib/lseek.c: Include <sys/stat.h>.
68273         (rpl_lseek): Add workaround code also for Unix platforms.
68274         Needed for BeOS.
68275         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68276         * doc/functions/lseek.texi: Document BeOS definiency.
68277
68278 2007-08-18  Bruno Haible  <bruno@clisp.org>
68279
68280         * modules/fstrcmp-tests: New file.
68281         * tests/test-fstrcmp.c: New file.
68282
68283 2007-08-18  Bruno Haible  <bruno@clisp.org>
68284
68285         * modules/fstrcmp: New file, from GNU gettext with modifications.
68286         * lib/fstrcmp.h: New file, from GNU gettext.
68287         * lib/fstrcmp.c: New file, from GNU gettext.
68288         * MODULES.html.sh (String handling): Add fstrcmp.
68289
68290 2007-08-18  Bruno Haible  <bruno@clisp.org>
68291
68292         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68293         'bool'.
68294         (diag, compareseq): Remove const from the ctxt argument.
68295         (USE_HEURISTIC): Undefine at the end.
68296
68297 2007-08-18  Jim Meyering  <jim@meyering.net>
68298
68299         New file: lib/idcache.h
68300         * NEWS: Mention the addition.
68301         * modules/idcache (Files): Add lib/idcache.h
68302         * lib/idcache.c: Include "idcache.h".
68303         Don't include <sys/types.h>.
68304         Add a FIXME comment.
68305         Move file-scoped "static" declarations to the top.
68306         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68307
68308 2007-08-17  Bruno Haible  <bruno@clisp.org>
68309         and Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         * MODULES.html.sh: Add diffseq.
68312         * modules/diffseq: New file.
68313         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68314         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68315
68316 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         Import changes from coreutils for bootstrap script.
68319
68320         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * build-aux/bootstrap (slurp): Work even in environments where
68323         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68324         current code does not slurp files whose names start with ".", and
68325         this looks like it might be a troublesome area.
68326
68327         2007-07-11  Jim Meyering  <jim@meyering.net>
68328
68329         If there's a GPL vN copyright comment, require that N == 3.
68330
68331         2007-07-08  Jim Meyering  <jim@meyering.net>
68332
68333         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68334         * build-aux/bootstrap (mam_template): Move definition out of loop.
68335
68336         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68337
68338         * build-aux/bootstrap (symlink_to_dir): Rename function from
68339         symlink_to_gnulib.  Add a directory parameter.  Update all
68340         callers.
68341         (cp_mark_as_generated): Also check for -- and link to -- files in
68342         gl/.
68343
68344         2007-07-08  Jim Meyering  <jim@meyering.net>
68345
68346         Adapt to deeper hierarchy in gnulib.
68347         * build-aux/bootstrap (symlink_to_dir): If the destination
68348         directory doesn't exist, create it. This is required at least for
68349         "lib/uniwidth/cjk.h".
68350
68351         2007-05-15  Jim Meyering  <jim@meyering.net>
68352
68353         * build-aux/bootstrap: Now that generated Makefile.am files
68354         are no longer under version control, they must be created at
68355         bootstrap time.
68356
68357 2007-08-14  Ben Pfaff  <blp@gnu.org>
68358
68359         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68360
68361 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68362
68363         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68364         given the changes below.
68365         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68366         even on hosts that have padding bits beyond the supported 64.
68367
68368 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68371         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68372         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68373         depends on it.
68374         (xstrtol_error): Remove.
68375         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68376         but with a different signature.
68377         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68378         * lib/xstrtol-error.c: Include exitfail.h.
68379         (xstrtol_fatal): New function, with a different signature from the
68380         old xstrtol_error, so that the caller need not worry about passing
68381         in an exit status, or about storage management of the option argument.
68382         (xstrtol_error): Now a static function.  Redo signature to
68383         implement xstrtol_fatal.  Output the correct number of hyphens in
68384         front of the option so that the caller need not worry about
68385         storage management.
68386         (N_): New macro.
68387         (_): Remove; not used now.
68388         * modules/xstrtol: Depend on getopt.
68389         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68390         of old STRTOL_FATAL_ERROR macro.
68391         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68392         of test program.
68393         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68394         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68395
68396 2007-08-08  Eric Blake  <ebb9@byu.net>
68397
68398         * lib/xstrtol-error.c: Add missing include.
68399
68400         Move xstrtol messages into gnulib domain, when --pobase is used.
68401         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68402         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68403         * modules/xstrtol (Files): Distribute new file.
68404         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68405         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68406         * tests/test-xstrtol.c: ...into new file.
68407         * tests/test-xstrtoul.c: Also test xstrtoul.
68408         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68409         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68410         * tests/test-xstrtol.sh: Drive the tests.
68411         * tests/test-xstrtoimax.sh: Likewise.
68412         * tests/test-xstrtoumax.sh: Likewise.
68413         * modules/xstrtol-tests: New module.
68414         * modules/xstrtoimax-tests: Likewise.
68415         * modules/xstrtoumax-tests: Likewise.
68416
68417 2007-08-08  Jim Meyering  <jim@meyering.net>
68418
68419         New function: mfile_name_concat.
68420         * lib/filenamecat.c (mfile_name_concat): New function, just like
68421         file_name_concat, but return NULL upon failure rather than exiting
68422         with a diagnostic.
68423         * lib/filenamecat.h: Declare it.
68424
68425 2007-08-07  Bruno Haible  <bruno@clisp.org>
68426
68427         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68428         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68429         warning from gcc.
68430         Reported by Eric Blake.
68431
68432 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68433
68434         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68435         * modules/crypto/arcfour (License): Likewise.
68436         * modules/crypto/des-tests (License): Likewise.
68437         * modules/crypto/gc-arctwo-tests (License): Likewise.
68438         * modules/crypto/gc-des-tests (License): Likewise.
68439         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68440         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68441         * modules/crypto/gc-md2-tests (License): Likewise.
68442         * modules/crypto/gc-md4-tests (License): Likewise.
68443         * modules/crypto/gc-md5-tests (License): Likewise.
68444         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68445         * modules/crypto/gc-rijndael-tests (License): Likewise.
68446         * modules/crypto/gc-sha1-tests (License): Likewise.
68447         * modules/crypto/gc-tests (License): Likewise.
68448         * modules/crypto/hmac-md5 (License): Likewise.
68449         * modules/crypto/hmac-sha1 (License): Likewise.
68450         * modules/crypto/md2-tests (License): Likewise.
68451         * modules/crypto/md4-tests (License): Likewise.
68452         * modules/crypto/md5 (License): Likewise.
68453         * modules/crypto/rijndael (License): Likewise.
68454         * modules/crypto/sha1 (License): Likewise.
68455         * modules/memxor (License): Likewise.
68456
68457 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68458         and Bruno Haible  <bruno@clisp.org>
68459
68460         * NEWS: Describe interface changes to human, xstrtol.
68461         * lib/human.h: Include <xstrtol.h>.
68462         (human_options): Return enum strtol_error, not int.  Remove
68463         bool arg; take int * instead.
68464         * lib/human.c: Don't include "gettext.h".
68465         (_): Remove; no longer used.
68466         Don't include <xstrtol.h>, since human.h does it.
68467         (human_options): Adjust to abovementioned interface changes.
68468         Do not report error to stderr; that's now the caller's
68469         responsibility.
68470         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68471         interface change.
68472         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68473         Str, Argument_type_string.  All uses changed.  Put " argument"
68474         in diagnostics to make them clearer.  Change wording of suffix
68475         message for clarity.
68476         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68477         Argument_type_string.
68478         (STRTOL_FATAL_WARN): Remove; no longer used.
68479         * modules/human (Depends-on): Remove gettext-h.
68480
68481 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68482
68483         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68484
68485 2007-07-31  Bruno Haible  <bruno@clisp.org>
68486
68487         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68488         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68489         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68490
68491 2007-07-31  Bruno Haible  <bruno@clisp.org>
68492
68493         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68494         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68495
68496 2007-07-30  Bruno Haible  <bruno@clisp.org>
68497
68498         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68499         * modules/c-ctype (License): Likewise.
68500         * modules/c-strcase (License): Likewise.
68501         * modules/check-version (License): Likewise.
68502         * modules/iconv (License): Likewise.
68503         * modules/iconv_open (License): Likewise.
68504         * modules/read-file (License): Likewise.
68505         * modules/striconv (License): Likewise.
68506         * modules/strverscmp (License): Likewise.
68507         * modules/vasprintf (License): Likewise.
68508         * modules/crypto/des (License): Likewise.
68509         * modules/crypto/gc (License): Likewise.
68510         * modules/crypto/gc-arcfour (License): Likewise.
68511         * modules/crypto/gc-arctwo (License): Likewise.
68512         * modules/crypto/gc-des (License): Likewise.
68513         * modules/crypto/gc-hmac-md5 (License): Likewise.
68514         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68515         * modules/crypto/gc-md2 (License): Likewise.
68516         * modules/crypto/gc-md4 (License): Likewise.
68517         * modules/crypto/gc-md5 (License): Likewise.
68518         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68519         * modules/crypto/gc-random (License): Likewise.
68520         * modules/crypto/gc-rijndael (License): Likewise.
68521         * modules/crypto/gc-sha1 (License): Likewise.
68522         * modules/crypto/md2 (License): Likewise.
68523         * modules/crypto/md4 (License): Likewise.
68524
68525 2007-07-30  Jim Meyering  <jim@meyering.net>
68526
68527         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68528         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68529         it has valid stat data.  This bug would cause du not to count the
68530         sizes of inaccessible directories.
68531         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68532         in <http://bugzilla.redhat.com/250077>.
68533
68534 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68535             Bruno Haible  <bruno@clisp.org>
68536
68537         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68538         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68539         #include_next, gives a diagnostic about it, but reports no error in
68540         the exit code.
68541         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68542
68543 2007-07-24  Ben Pfaff  <blp@gnu.org>
68544
68545         Improve name: "count-one-bits" is better than "popcount".
68546         * MODULES.html.sh: Update name.
68547         * lib/popcount.h: Renamed lib/count-one-bits.h.
68548         (popcount): Renamed count_one_bits.
68549         (popcountl): Renamed count_one_bits_l.
68550         (popcountll): Renamed count_one_bits_ll.
68551         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68552         * modules/popcount: Renamed module/count-one-bits.
68553         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68554         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68555
68556 2007-07-23  Ben Pfaff  <blp@gnu.org>
68557
68558         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68559         better code generation, and add U to large constants to avoid
68560         warnings, in non-GCC case.
68561         Suggested by Bruno Haible.
68562
68563 2007-07-23  Ben Pfaff  <blp@gnu.org>
68564
68565         * lib/popcount.h: Use verify_true instead of if...abort.
68566         * modules/popcount: Depend on verify module.
68567         Suggested by Jim Meyering.
68568
68569 2007-07-23  Bruno Haible  <bruno@clisp.org>
68570
68571         * gnulib-tool (func_import): Create a .cvsignore file also when the
68572         directory is not yet in CVS but the toplevel directory is. When
68573         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68574         Reported by Karl Berry.
68575
68576 2007-07-22  Ben Pfaff  <blp@gnu.org>
68577
68578         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68579         case.
68580         Suggested by Eric Blake.
68581
68582 2007-07-22  Ben Pfaff  <blp@gnu.org>
68583
68584         New module: popcount.
68585         * MODULES.html.sh: Add popcount.
68586         * modules/popcount: New file.
68587         * modules/popcount-tests: New file.
68588         * tests/test-popcount.c: New file.
68589         * lib/popcount.h: New file.
68590         * m4/popcount.m4: New file.
68591
68592 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * build-aux/announce-gen: Update to GPLv3.
68595
68596         * build-aux/config.guess: Update from config.
68597
68598 2007-07-21  Bruno Haible  <bruno@clisp.org>
68599
68600         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68601         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68602
68603 2007-07-20  Jim Meyering  <jim@meyering.net>
68604
68605         * check-module: Diagnose a self-dependency.
68606
68607 2007-07-19  Bruno Haible  <bruno@clisp.org>
68608
68609         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68610         empty.
68611         Reported by Eric Blake.
68612
68613 2007-07-18  Bruno Haible  <bruno@clisp.org>
68614
68615         * gnulib-tool: New options --po-base, --po-domain.
68616         (func_usage): Document them.
68617         (pobase, po_domain): New variables.
68618         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68619         DEFAULT_TEXT_DOMAIN.
68620         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68621         (func_import): Consider pobase and po_domain. Create a po/ directory.
68622         (func_create_testdir): Set pobase and po_domain to empty.
68623         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68624         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68625
68626 2007-07-18  Bruno Haible  <bruno@clisp.org>
68627
68628         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68629         EXTRA_DIST augmentation for files in build-aux/.
68630
68631 2007-07-16  Bruno Haible  <bruno@clisp.org>
68632
68633         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68634         * modules/getdelim (License): Likewise.
68635
68636 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68637
68638         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68639         * modules/d-type (License): Likewise.
68640         * modules/extensions (License): Likewise.
68641         * modules/fnmatch (License): Likewise.
68642         * modules/fseeko (License): Likewise.
68643         * modules/getaddrinfo (License): Likewise.
68644         * modules/getline (License): Likewise.
68645         * modules/getlogin_r (License): Likewise.
68646         * modules/getpass (License): Likewise.
68647         * modules/gettimeofday (License): Likewise.
68648         * modules/glob (License): Likewise.
68649         * modules/inet_ntop (License): Likewise.
68650         * modules/malloc (License): Likewise.
68651         * modules/malloca (License): Likewise.
68652         * modules/memmem (License): Likewise.
68653         * modules/mempcpy (License): Likewise.
68654         * modules/memset (License): Likewise.
68655         * modules/minmax (License): Likewise.
68656         * modules/mktime (License): Likewise.
68657         * modules/netinet_in (License): Likewise.
68658         * modules/pathmax (License): Likewise.
68659         * modules/poll (License): Likewise.
68660         * modules/regex (License): Likewise.
68661         * modules/snprintf (License): Likewise.
68662         * modules/stdbool (License): Likewise.
68663         * modules/stdint (License): Likewise.
68664         * modules/stdio (License): Likewise.
68665         * modules/strcase (License): Likewise.
68666         * modules/strcasestr (License): Likewise.
68667         * modules/strdup (License): Likewise.
68668         * modules/string (License): Likewise.
68669         * modules/strndup (License): Likewise.
68670         * modules/strnlen (License): Likewise.
68671         * modules/strpbrk (License): Likewise.
68672         * modules/strptime (License): Likewise.
68673         * modules/strsep (License): Likewise.
68674         * modules/sys_select (License): Likewise.
68675         * modules/sys_socket (License): Likewise.
68676         * modules/sys_stat (License): Likewise.
68677         * modules/sys_time (License): Likewise.
68678         * modules/time (License): Likewise.
68679         * modules/time_r (License): Likewise.
68680         * modules/timegm (License): Likewise.
68681         * modules/unistd (License): Likewise.
68682         * modules/vsnprintf (License): Likewise.
68683         * modules/wctype (License): Likewise.
68684
68685 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68686
68687         * modules/argz (License): LGPLv2+.
68688
68689 2007-07-15  Karl Berry  <karl@gnu.org>
68690
68691         * doc/gnulib.texi: revise node structure per new fdl.texi.
68692
68693 2007-07-14  Bruno Haible  <bruno@clisp.org>
68694
68695         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68696         the output file.
68697         * lib/uniname/uninames.h: Regenerated.
68698
68699 2007-07-14  Karl Berry  <karl@gnu.org>
68700
68701         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68702         omitting sectioning and index commands.
68703
68704 2007-07-13  Bruno Haible  <bruno@clisp.org>
68705
68706         New gnulib-tool option --more-symlinks.
68707         * gnulib-tool (func_usage): Document --more-symlinks.
68708         (do_copyrights): New variable.
68709         Recognize option --more-symlinks.
68710         (func_import): Don't add a copyright notice transform to
68711         sed_transform_lib_file if do_copyrights is empty.
68712
68713 2007-07-13  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/vasnprintf.c (decimal_point_char): Define also if
68716         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68717         && !NEED_PRINTF_DIRECTIVE_A.
68718         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68719         Gary V. Vaughan <gary@gnu.org>.
68720
68721 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * lib/inttypes_.h: Undo previous change, since it was fixed
68724         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68725
68726 2007-07-13  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68729         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68730
68731 2007-07-13  Jim Meyering  <jim@meyering.net>
68732
68733         df: Don't fail for Tru64's "file-on-file mount".
68734         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68735         so we fall through and use statfs instead.  Details here:
68736         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68737         Reported by Albert Chin.
68738
68739 2007-07-13  Bruno Haible  <bruno@clisp.org>
68740
68741         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68742         * modules/configmake (License): Likewise.
68743         * modules/gettext (License): Likewise.
68744         * modules/gettext-h (License): Likewise.
68745         * modules/include_next (License): Likewise.
68746         * modules/link-warning (License): Likewise.
68747         * modules/localcharset (License): Likewise.
68748         * modules/localename (License): Likewise.
68749         * modules/lock (License): Likewise.
68750         * modules/relocatable-lib-lgpl (License): Likewise.
68751         * modules/size_max (License): Likewise.
68752         * modules/vasnprintf (License): Likewise.
68753         * modules/wchar (License): Likewise.
68754         * modules/xsize (License): Likewise.
68755
68756 2007-07-13  Bruno Haible  <bruno@clisp.org>
68757
68758         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68759         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68760
68761 2007-07-12  Bruno Haible  <bruno@clisp.org>
68762
68763         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68764         in the modules files.
68765
68766 2007-07-11  Karl Berry  <karl@gnu.org>
68767
68768         * MODULES.html.sh (func_module): use
68769          sed -e '\|^'"${includefile}"'$|d'
68770          instead of /.../d, to avoid errors on $includefile's containing /.
68771
68772 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68773
68774         * gnulib-tool (func_import): Avoid duplication of --avoid
68775         statements
68776         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68777         names to `_' in variable names.
68778
68779 2007-07-10  Eric Blake  <ebb9@byu.net>
68780
68781         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68782         * NEWS: Document this change.
68783
68784 2007-07-08  Bruno Haible  <bruno@clisp.org>
68785
68786         Update to Unicode 5.0.
68787         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68788         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68789         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68790         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68791         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68792         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68793         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68794         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68795         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68796         U+10A3F, U+1D242..U+1D244.
68797         (nonspacing_table_ind): Update.
68798         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68799         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68800
68801 2007-07-08  Bruno Haible  <bruno@clisp.org>
68802
68803         Update to Unicode 5.0.
68804         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68805         code transform. Extend the name index field of unicode_name_to_code and
68806         unicode_code_to_name from 16 to 24 bits.
68807         * lib/uniname/uniname.c (unicode_character_name,
68808         unicode_name_character): Add the range 0x12xxx to the code transform.
68809         * lib/uniname/uninames.h: Regenerated.
68810         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68811
68812 2007-07-07  Bruno Haible  <bruno@clisp.org>
68813
68814         * modules/wcwidth-tests: New file.
68815         * tests/test-wcwidth.c: New file.
68816
68817         Work around MacOS X wcwidth() bug.
68818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68819         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68820         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68821         original wcwidth in non-UTF-8 locales.
68822         * modules/wcwidth (Depends-on): Add localcharset, streq,
68823         uniwidth/width.
68824         * doc/functions/wcwidth.texi: Update.
68825
68826 2007-07-07  Bruno Haible  <bruno@clisp.org>
68827
68828         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68829         (wcwidth): New declaration.
68830         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68831         macros.
68832         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68833         here. Prepare for creating <wchar.h> unconditionally.
68834         * modules/wchar (Depends-on): Add link-warning.
68835         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68836         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68837         * lib/wcwidth.h: Remove file.
68838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68839         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68840         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68841         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68842         (Include): Replace wcwidth.h with <wchar.h>.
68843         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68844         * lib/mbchar.h: Don't include wcwidth.h.
68845         * lib/mbswidth.c: Likewise.
68846         * NEWS: Mention the change.
68847
68848 2007-07-07  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68851         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68852         definition with an external declaration.
68853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68854         defined as a function. Remove AC_C_INLINE requirement.
68855         * modules/wcwidth (Files): Add lib/wcwidth.c.
68856         (Makefile.am): Remove redundant statement.
68857
68858 2007-07-07  Bruno Haible  <bruno@clisp.org>
68859
68860         * MODULES.html.sh (Unicode string functions): Add the new modules.
68861
68862         * tests/uniwidth/test-u32-strwidth.c: New file.
68863         * modules/uniwidth/u32-strwidth-tests: New file.
68864
68865         * lib/uniwidth/u32-strwidth.c: New file.
68866         * modules/uniwidth/u32-strwidth: New file.
68867
68868         * tests/uniwidth/test-u16-strwidth.c: New file.
68869         * modules/uniwidth/u16-strwidth-tests: New file.
68870
68871         * lib/uniwidth/u16-strwidth.c: New file.
68872         * modules/uniwidth/u16-strwidth: New file.
68873
68874         * tests/uniwidth/test-u8-strwidth.c: New file.
68875         * modules/uniwidth/u8-strwidth-tests: New file.
68876
68877         * lib/uniwidth/u8-strwidth.c: New file.
68878         * modules/uniwidth/u8-strwidth: New file.
68879
68880         * tests/uniwidth/test-u32-width.c: New file.
68881         * modules/uniwidth/u32-width-tests: New file.
68882
68883         * lib/uniwidth/u32-width.c: New file.
68884         * modules/uniwidth/u32-width: New file.
68885
68886         * tests/uniwidth/test-u16-width.c: New file.
68887         * modules/uniwidth/u16-width-tests: New file.
68888
68889         * lib/uniwidth/u16-width.c: New file.
68890         * modules/uniwidth/u16-width: New file.
68891
68892         * tests/uniwidth/test-u8-width.c: New file.
68893         * modules/uniwidth/u8-width-tests: New file.
68894
68895         * lib/uniwidth/u8-width.c: New file.
68896         * modules/uniwidth/u8-width: New file.
68897
68898         * tests/uniwidth/test-uc_width.c: New file.
68899         * modules/uniwidth/width-tests: New file.
68900
68901         * lib/uniwidth/width.c: New file, from GNU libiconv.
68902         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68903         * modules/uniwidth/width: New file.
68904
68905         * lib/uniwidth.h: New file, from GNU libiconv.
68906         * modules/uniwidth/base: New file.
68907
68908 2007-07-07  Bruno Haible  <bruno@clisp.org>
68909
68910         * lib/uniname.h: New file, from GNU gettext.
68911         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68912         * lib/uniname/uninames.h: New file, from GNU gettext.
68913         * lib/uniname/uniname.c: New file, from GNU gettext.
68914         * tests/uniname/test-uninames.sh: New file.
68915         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68916         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68917         * modules/uniname/base: New file.
68918         * modules/uniname/uniname: New file.
68919         * modules/uniname/uniname-tests: New file.
68920         * MODULES.html.sh (Unicode string functions): Add the new modules.
68921
68922 2007-07-06  Bruno Haible  <bruno@clisp.org>
68923
68924         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68925
68926 2007-07-06  Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68929         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68930         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68931         include <sys/time.h>.
68932         Reported by Eric Blake.
68933
68934 2007-07-06  Eric Blake  <ebb9@byu.net>
68935
68936         Fix testing canonicalize on cygwin.
68937         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68938         Revert patch from 2007-06-19.
68939         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68940         canonicalize module is also in use.
68941         * tests/test-canonicalize.c: New file.
68942         * tests/test-canonicalize.sh: Likewise.
68943         * modules/canonicalize-tests: Likewise.
68944
68945 2007-07-06  Jim Meyering  <jim@meyering.net>
68946
68947         * lib/getugroups.c (getugroups): Detect getgrent failure.
68948         Adjust comment to reflect reality: this function may return -1.
68949
68950 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68951
68952         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68953         the new TP address.
68954         (usage): Fix typo
68955         (gnulib_mk): New variable.
68956
68957 2007-07-05  Jim Meyering  <jim@meyering.net>
68958
68959         Don't let endgrent clobber errno, no matter how improbable.
68960         * lib/getugroups.c (getugroups): Save and restore errno around
68961         endgrent call.
68962
68963         Close the group DB even when failing with 2^31 or more members.
68964         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68965
68966 2007-07-04  Jim Meyering  <jim@meyering.net>
68967
68968         * lib/getugroups.h: New file.
68969         * lib/getugroups.c: Include "getugroups.h".
68970         Remove uses of "register" keyword.
68971         Move local variable, "cp", down into scope where used.
68972         Give "username" parameter the "const" attribute.
68973         * modules/getugroups (Files): Add lib/getugroups.h
68974
68975 2007-07-04  Karl Berry  <karl@gnu.org>
68976
68977         * MODULES.html.sh (func_all_modules): Complete rename of
68978         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68979
68980 2007-07-02  Bruno Haible  <bruno@clisp.org>
68981
68982         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68983         mode, when inttypes.h comes from gnulib.
68984         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68985
68986 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68987
68988         * NEWS: Mention lgpl module name change.
68989
68990         * modules/lgpl-2.1: Renamed from lgpl.
68991
68992         * NEWS: Mention gpl module name change.
68993
68994         * modules/gpl-3.0: New file, based on gpl-2.0.
68995
68996         * modules/gpl-2.0: Renamed from gpl.
68997
68998         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68999         doc/gpl-2.0.texi.
69000
69001 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69004         #define __STDC_LIMIT_MACROS temporarily while including
69005         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69006         Problem reported by Joel E. Denny in
69007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69008
69009 2007-07-01  Bruno Haible  <bruno@clisp.org>
69010
69011         * lib/unistdio.h: New file.
69012         * lib/unistdio/u-asnprintf.h: New file.
69013         * lib/unistdio/u-asprintf.h: New file.
69014         * lib/unistdio/u-printf-args.c: New file.
69015         * lib/unistdio/u-printf-args.h: New file.
69016         * lib/unistdio/u-printf-parse.h: New file.
69017         * lib/unistdio/u-snprintf.h: New file.
69018         * lib/unistdio/u-sprintf.h: New file.
69019         * lib/unistdio/u-vasprintf.h: New file.
69020         * lib/unistdio/u-vsnprintf.h: New file.
69021         * lib/unistdio/u-vsprintf.h: New file.
69022         * lib/unistdio/ulc-asnprintf.c: New file.
69023         * lib/unistdio/ulc-asprintf.c: New file.
69024         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69025         * lib/unistdio/ulc-printf-parse.c: New file.
69026         * lib/unistdio/ulc-snprintf.c: New file.
69027         * lib/unistdio/ulc-sprintf.c: New file.
69028         * lib/unistdio/ulc-vasnprintf.c: New file.
69029         * lib/unistdio/ulc-vasprintf.c: New file.
69030         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69031         * lib/unistdio/ulc-vsnprintf.c: New file.
69032         * lib/unistdio/ulc-vsprintf.c: New file.
69033         * lib/unistdio/u8-asnprintf.c: New file.
69034         * lib/unistdio/u8-asprintf.c: New file.
69035         * lib/unistdio/u8-printf-parse.c: New file.
69036         * lib/unistdio/u8-snprintf.c: New file.
69037         * lib/unistdio/u8-sprintf.c: New file.
69038         * lib/unistdio/u8-vasnprintf.c: New file.
69039         * lib/unistdio/u8-vasprintf.c: New file.
69040         * lib/unistdio/u8-vsnprintf.c: New file.
69041         * lib/unistdio/u8-vsprintf.c: New file.
69042         * lib/unistdio/u8-u8-asnprintf.c: New file.
69043         * lib/unistdio/u8-u8-asprintf.c: New file.
69044         * lib/unistdio/u8-u8-snprintf.c: New file.
69045         * lib/unistdio/u8-u8-sprintf.c: New file.
69046         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69047         * lib/unistdio/u8-u8-vasprintf.c: New file.
69048         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69049         * lib/unistdio/u8-u8-vsprintf.c: New file.
69050         * lib/unistdio/u16-asnprintf.c: New file.
69051         * lib/unistdio/u16-asprintf.c: New file.
69052         * lib/unistdio/u16-printf-parse.c: New file.
69053         * lib/unistdio/u16-snprintf.c: New file.
69054         * lib/unistdio/u16-sprintf.c: New file.
69055         * lib/unistdio/u16-vasnprintf.c: New file.
69056         * lib/unistdio/u16-vasprintf.c: New file.
69057         * lib/unistdio/u16-vsnprintf.c: New file.
69058         * lib/unistdio/u16-vsprintf.c: New file.
69059         * lib/unistdio/u16-u16-asnprintf.c: New file.
69060         * lib/unistdio/u16-u16-asprintf.c: New file.
69061         * lib/unistdio/u16-u16-snprintf.c: New file.
69062         * lib/unistdio/u16-u16-sprintf.c: New file.
69063         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69064         * lib/unistdio/u16-u16-vasprintf.c: New file.
69065         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69066         * lib/unistdio/u16-u16-vsprintf.c: New file.
69067         * lib/unistdio/u32-asnprintf.c: New file.
69068         * lib/unistdio/u32-asprintf.c: New file.
69069         * lib/unistdio/u32-printf-parse.c: New file.
69070         * lib/unistdio/u32-snprintf.c: New file.
69071         * lib/unistdio/u32-sprintf.c: New file.
69072         * lib/unistdio/u32-vasnprintf.c: New file.
69073         * lib/unistdio/u32-vasprintf.c: New file.
69074         * lib/unistdio/u32-vsnprintf.c: New file.
69075         * lib/unistdio/u32-vsprintf.c: New file.
69076         * lib/unistdio/u32-u32-asnprintf.c: New file.
69077         * lib/unistdio/u32-u32-asprintf.c: New file.
69078         * lib/unistdio/u32-u32-snprintf.c: New file.
69079         * lib/unistdio/u32-u32-sprintf.c: New file.
69080         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69081         * lib/unistdio/u32-u32-vasprintf.c: New file.
69082         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69083         * lib/unistdio/u32-u32-vsprintf.c: New file.
69084         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69085         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69086         * tests/unistdio/test-ulc-printf1.h: New file.
69087         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69088         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69089         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69090         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69091         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69092         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69093         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69094         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69095         * tests/unistdio/test-u8-asnprintf1.c: New file.
69096         * tests/unistdio/test-u8-asnprintf1.h: New file.
69097         * tests/unistdio/test-u8-printf1.h: New file.
69098         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69099         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69100         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69101         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69102         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69103         * tests/unistdio/test-u8-vasprintf1.c: New file.
69104         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69105         * tests/unistdio/test-u8-vsprintf1.c: New file.
69106         * tests/unistdio/test-u16-asnprintf1.c: New file.
69107         * tests/unistdio/test-u16-asnprintf1.h: New file.
69108         * tests/unistdio/test-u16-printf1.h: New file.
69109         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69110         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69111         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69112         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69113         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69114         * tests/unistdio/test-u16-vasprintf1.c: New file.
69115         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69116         * tests/unistdio/test-u16-vsprintf1.c: New file.
69117         * tests/unistdio/test-u32-asnprintf1.c: New file.
69118         * tests/unistdio/test-u32-asnprintf1.h: New file.
69119         * tests/unistdio/test-u32-printf1.h: New file.
69120         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69121         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69122         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69123         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69124         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69125         * tests/unistdio/test-u32-vasprintf1.c: New file.
69126         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69127         * tests/unistdio/test-u32-vsprintf1.c: New file.
69128         * modules/unistdio/base: New file.
69129         * modules/unistdio/u-printf-args: New file.
69130         * modules/unistdio/ulc-asnprintf: New file.
69131         * modules/unistdio/ulc-asprintf: New file.
69132         * modules/unistdio/ulc-fprintf: New file.
69133         * modules/unistdio/ulc-printf-parse: New file.
69134         * modules/unistdio/ulc-snprintf: New file.
69135         * modules/unistdio/ulc-sprintf: New file.
69136         * modules/unistdio/ulc-vasnprintf: New file.
69137         * modules/unistdio/ulc-vasprintf: New file.
69138         * modules/unistdio/ulc-vfprintf: New file.
69139         * modules/unistdio/ulc-vsnprintf: New file.
69140         * modules/unistdio/ulc-vsprintf: New file.
69141         * modules/unistdio/u8-asnprintf: New file.
69142         * modules/unistdio/u8-asprintf: New file.
69143         * modules/unistdio/u8-printf-parse: New file.
69144         * modules/unistdio/u8-snprintf: New file.
69145         * modules/unistdio/u8-sprintf: New file.
69146         * modules/unistdio/u8-vasnprintf: New file.
69147         * modules/unistdio/u8-vasprintf: New file.
69148         * modules/unistdio/u8-vsnprintf: New file.
69149         * modules/unistdio/u8-vsprintf: New file.
69150         * modules/unistdio/u8-u8-asnprintf: New file.
69151         * modules/unistdio/u8-u8-asprintf: New file.
69152         * modules/unistdio/u8-u8-snprintf: New file.
69153         * modules/unistdio/u8-u8-sprintf: New file.
69154         * modules/unistdio/u8-u8-vasnprintf: New file.
69155         * modules/unistdio/u8-u8-vasprintf: New file.
69156         * modules/unistdio/u8-u8-vsnprintf: New file.
69157         * modules/unistdio/u8-u8-vsprintf: New file.
69158         * modules/unistdio/u16-asnprintf: New file.
69159         * modules/unistdio/u16-asprintf: New file.
69160         * modules/unistdio/u16-printf-parse: New file.
69161         * modules/unistdio/u16-snprintf: New file.
69162         * modules/unistdio/u16-sprintf: New file.
69163         * modules/unistdio/u16-vasnprintf: New file.
69164         * modules/unistdio/u16-vasprintf: New file.
69165         * modules/unistdio/u16-vsnprintf: New file.
69166         * modules/unistdio/u16-vsprintf: New file.
69167         * modules/unistdio/u16-u16-asnprintf: New file.
69168         * modules/unistdio/u16-u16-asprintf: New file.
69169         * modules/unistdio/u16-u16-snprintf: New file.
69170         * modules/unistdio/u16-u16-sprintf: New file.
69171         * modules/unistdio/u16-u16-vasnprintf: New file.
69172         * modules/unistdio/u16-u16-vasprintf: New file.
69173         * modules/unistdio/u16-u16-vsnprintf: New file.
69174         * modules/unistdio/u16-u16-vsprintf: New file.
69175         * modules/unistdio/u32-asnprintf: New file.
69176         * modules/unistdio/u32-asprintf: New file.
69177         * modules/unistdio/u32-printf-parse: New file.
69178         * modules/unistdio/u32-snprintf: New file.
69179         * modules/unistdio/u32-sprintf: New file.
69180         * modules/unistdio/u32-vasnprintf: New file.
69181         * modules/unistdio/u32-vasprintf: New file.
69182         * modules/unistdio/u32-vsnprintf: New file.
69183         * modules/unistdio/u32-vsprintf: New file.
69184         * modules/unistdio/u32-u32-asnprintf: New file.
69185         * modules/unistdio/u32-u32-asprintf: New file.
69186         * modules/unistdio/u32-u32-snprintf: New file.
69187         * modules/unistdio/u32-u32-sprintf: New file.
69188         * modules/unistdio/u32-u32-vasnprintf: New file.
69189         * modules/unistdio/u32-u32-vasprintf: New file.
69190         * modules/unistdio/u32-u32-vsnprintf: New file.
69191         * modules/unistdio/u32-u32-vsprintf: New file.
69192         * modules/unistdio/ulc-asnprintf-tests: New file.
69193         * modules/unistdio/ulc-vasnprintf-tests: New file.
69194         * modules/unistdio/ulc-vasprintf-tests: New file.
69195         * modules/unistdio/ulc-vsnprintf-tests: New file.
69196         * modules/unistdio/ulc-vsprintf-tests: New file.
69197         * modules/unistdio/u8-asnprintf-tests: New file.
69198         * modules/unistdio/u8-vasnprintf-tests: New file.
69199         * modules/unistdio/u8-vasprintf-tests: New file.
69200         * modules/unistdio/u8-vsnprintf-tests: New file.
69201         * modules/unistdio/u8-vsprintf-tests: New file.
69202         * modules/unistdio/u16-asnprintf-tests: New file.
69203         * modules/unistdio/u16-vasnprintf-tests: New file.
69204         * modules/unistdio/u16-vasprintf-tests: New file.
69205         * modules/unistdio/u16-vsnprintf-tests: New file.
69206         * modules/unistdio/u16-vsprintf-tests: New file.
69207         * modules/unistdio/u32-asnprintf-tests: New file.
69208         * modules/unistdio/u32-vasnprintf-tests: New file.
69209         * modules/unistdio/u32-vasprintf-tests: New file.
69210         * modules/unistdio/u32-vsnprintf-tests: New file.
69211         * modules/unistdio/u32-vsprintf-tests: New file.
69212         * MODULES.html.sh (Unicode string functions): Add the new modules.
69213
69214 2007-07-01  Bruno Haible  <bruno@clisp.org>
69215
69216         * lib/sprintf.c (sprintf): Limit the available length estimation,
69217         to avoid address wraparound.
69218         * lib/vsprintf.c (vsprintf): Likewise.
69219         * modules/sprintf-posix (Dependencies): Add stdint.
69220         * modules/vsprintf-posix (Dependencies): Likewise.
69221
69222 2007-07-01  Bruno Haible  <bruno@clisp.org>
69223
69224         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69225         Windows PATH as well. Conservative double-quoting. Comments.
69226
69227 2007-07-01  Bruno Haible  <bruno@clisp.org>
69228             Eric Blake  <ebb9@byu.net>
69229             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69230
69231         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69232         empty components in $PATH, denoting '.'.
69233
69234 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69235
69236         * gnulib-tool: Fix indentation.
69237         (func_create_megatestdir): Likewise.
69238         Report by Bruno Haible.
69239
69240 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69241
69242         Sync from Automake.
69243         * build-aux/gnupload: Fix shell portability issues with for loops.
69244         Report by Karl Berry.
69245
69246 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69247
69248         * build-aux/maint.mk (POURL): Use translationproject.org.
69249
69250 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69251             Bruno Haible  <bruno@clisp.org>
69252
69253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69254         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69255         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69256         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69257         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69258
69259 2007-06-27  Bruno Haible  <bruno@clisp.org>
69260
69261         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69262         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69263
69264 2007-06-26  Karl Berry  <karl@gnu.org>
69265
69266         * MODULES.html.sh: remove xreadlink-with-size.
69267
69268 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69269
69270         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69271         method that I hope also handles the double-include problem noted
69272         by Bruno Haible in
69273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69274
69275 2007-06-23  Bruno Haible  <bruno@clisp.org>
69276
69277         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69278         Don't let the 'mostlyclean' target fail if the last subdirectory could
69279         not be removed.
69280         Reported by Karl Berry.
69281
69282 2007-06-23  Bruno Haible  <bruno@clisp.org>
69283
69284         * gnulib-tool (echo): Add a speedier workaround for ksh.
69285         * tests/test-echo.sh: Likewise.
69286
69287 2007-06-23  Bruno Haible  <bruno@clisp.org>
69288
69289         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69290         * tests/test-echo.sh: Likewise.
69291
69292 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69293
69294         * gnulib-tool (IFS): Initialize early, so we don't set it to
69295         empty later.
69296         (self_abspathname): Rewrite algorithm to set it, reindent.
69297         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69298         (func_create_megatestdir): Merge some sed scripts.
69299
69300 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69303         exposed by Sun Studio 11 cc on Solaris 8.
69304
69305 2007-06-22  Bruno Haible  <bruno@clisp.org>
69306
69307         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69308         backslashes.
69309         * tests/test-echo.sh: New file.
69310
69311 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69312
69313         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69314         simplify `sed_replace_build_aux' scripts, they are portable but
69315         echoing them with `echo' is not.
69316         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69317
69318 2007-06-21  Karl Berry  <karl@gnu.org>
69319
69320         * config/srclist.txt: guess we can't handle the licenses via
69321         srclist at the moment.
69322
69323 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * MODULES.html.sh: Add include_next.
69326         * modules/include_next: New file.
69327
69328 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69331         INCLUDE_NEXT.
69332         (gl_CHECK_NEXT_HEADERS): New macro.
69333         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69334         the obsolescent gl_ABSOLUTE_HEADER.
69335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69336         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69337         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69338         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69339         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69340         * m4/math_h.m4 (gl_MATH_H): Likewise.
69341         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69342         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69343         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69344         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69345         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69346         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69347         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69351         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69352         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69353         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69354         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69355         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69356         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69357         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69358         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69359         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69360         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69361         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69362         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69363         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69364         * lib/float_.h: Likewise.
69365         * lib/inttypes_.h: Likewise.
69366         * lib/math_.h: Likewise.
69367         * lib/search_.h: Likewise.
69368         * lib/signal_.h: Likewise.
69369         * lib/stdint_.h: Likewise.
69370         * lib/stdio_.h: Likewise.
69371         * lib/stdlib_.h: Likewise.
69372         * lib/string_.h: Likewise.
69373         * lib/sys_stat_.h: Likewise.
69374         * lib/sys_time_.h: Likewise.
69375         * lib/time_.h: Likewise.
69376         * lib/unistd_.h: Likewise.
69377         * lib/wchar_.h: Likewise.
69378         * lib/wctype_.h: Likewise.
69379         * lib/dirent_.h: Likewise.
69380         * lib/iconv_.h: Likewise.
69381         * lib/locale_.h: Likewise.
69382         * lib/netinet_in_.h: Likewise.
69383         * lib/sys_select_.h: Likewise.
69384         * lib/sys_socket_.h: Likewise.
69385         * lib/sysexits_.h: Likewise.
69386         * modules/fcntl (Depends-on): Depend on include_next, not
69387         absolute_header.
69388         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69389         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69390         * modules/fchdir: Likewise.
69391         * modules/float: Likewise.
69392         * modules/iconv_open: Likewise.
69393         * modules/inttypes: Likewise.
69394         * modules/locale: Likewise.
69395         * modules/math: Likewise.
69396         * modules/netinet_in: Likewise.
69397         * modules/search: Likewise.
69398         * modules/signal: Likewise.
69399         * modules/stdint: Likewise.
69400         * modules/stdio: Likewise.
69401         * modules/stdlib: Likewise.
69402         * modules/string: Likewise.
69403         * modules/sys_select: Likewise.
69404         * modules/sys_socket: Likewise.
69405         * modules/sys_stat: Likewise.
69406         * modules/sys_time: Likewise.
69407         * modules/sysexits: Likewise.
69408         * modules/time: Likewise.
69409         * modules/unistd: Likewise.
69410         * modules/wchar: Likewise.
69411         * modules/wctype: Likewise.
69412         * modules/sys_stat: Change maintainer to "all".
69413         * modules/unistd: Likewise.
69414
69415 2007-06-20  Karl Berry  <karl@gnu.org>
69416
69417         * config/srclist.txt: track www changes in license files.
69418
69419 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69420
69421         * build-aux/bootstrap: Remove stray dot.
69422         Make sure build_aux settings are honored when linking
69423         gnulib_extra_files.
69424
69425 2007-06-19  Eric Blake  <ebb9@byu.net>
69426
69427         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69428         Allow compilation on cygwin.
69429
69430 2007-06-19  Jim Meyering  <jim@meyering.net>
69431
69432         xreadlink-with-size: Remove module.  No longer used.
69433         Ex-callers now use xreadlink or mreadlink-with-size.
69434         * modules/xreadlink-with-size: Remove module.
69435         * lib/xreadlink-with-size.c: Remove file.
69436         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69437         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69438         just before the function definition *is* accurate.
69439
69440         Eliminate one way canonicalize_filename_mode could exit.
69441         * lib/canonicalize.c (canonicalize_filename_mode):
69442         Use mreadlink_with_size, not xreadlink_with_size.
69443
69444 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         Detect porting problems to FreeBSD/arm, which has time_t wider than
69447         long int.  Original problem reported for GNU diff by Xin Li in
69448         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69449         * modules/getdate (Depends-on): Add intprops, verify.
69450         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69451         is an integer type no wider than long int.
69452
69453 2007-06-18  Jim Meyering  <jim@meyering.net>
69454
69455         New module: mreadlink-with-size.
69456         * MODULES.html.sh: Add mreadlink-with-size.
69457         * modules/mreadlink-with-size: New module
69458         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69459         not xreadlink-with-size.
69460         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69461
69462 2007-06-16  Bruno Haible  <bruno@clisp.org>
69463
69464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69465         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69466         Reported by Gary V. Vaughan <gary@gnu.org>.
69467
69468 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         Revamp lchown so that it lives in unistd.h where it belongs.
69471         * lib/lchown.h: Remove.
69472         * lib/dirchownmod.c: Don't include lib/lchown.h.
69473         * lib/fchownat.c: Likewise.
69474         * lib/openat.c: Likewise.
69475         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69476         does not follow symlinks.
69477         (EOPNOTSUPP): Define if not defined.
69478         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69479         is defined to 0.
69480         (lchown): New decl.
69481         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69482         Do not check for lchown decl.
69483         Set REPLACE_LCHOWN.
69484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69485         REPLACE_LCHOWN.
69486         * modules/chown: Make it clear it follows symlinks.
69487         * modules/lchown: Make it clear it doesn't follow symlinks.
69488         (Files): Remove lib/lchown.h
69489         (Depends-on): Add unistd.
69490         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69491         (Include): Include <unistd.h>, not "lchown.h".
69492         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69493         REPLACE_LCHOWN.
69494
69495 2007-06-15  Jim Meyering  <jim@meyering.net>
69496
69497         Change license (GPL to LGPL) of fsusage and dependents.
69498         * modules/fsusage (License): Change to LGPL.
69499         * modules/full-read (License): Likewise.
69500         * modules/full-write (License): Likewise.
69501         * modules/safe-read (License): Likewise.
69502         * modules/safe-write (License): Likewise.
69503
69504 2007-06-14  Ben Pfaff  <blp@gnu.org>
69505
69506         Missing part of allocsa -> malloca transition.
69507         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69508         gl_MALLOCA.
69509
69510 2007-06-12  Bruno Haible  <bruno@clisp.org>
69511
69512         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69513         to ia64, x86_64, i386.
69514         Reported by Eric Blake.
69515
69516 2007-06-12  Bruno Haible  <bruno@clisp.org>
69517
69518         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69519         cross-compiling to x86_64.
69520
69521 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69524         glitch reported by Ralf Wildenhues in
69525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69526
69527         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69528         Vin Shelton.
69529
69530 2007-06-11  Bruno Haible  <bruno@clisp.org>
69531
69532         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69533         replacement string.
69534         Reported by Eric Blake.
69535
69536 2007-06-10  Bruno Haible  <bruno@clisp.org>
69537
69538         Prepare vasnprintf code for use with Unicode strings.
69539         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69540         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69541         TYPE_U32_STRING.
69542         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69543         a_u32_string variants.
69544         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69545         * lib/printf-args.c: Don't include config.h and the specification
69546         header if PRINTF_FETCHARGS is already defined.
69547         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69548         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69549         TYPE_U16_STRING, TYPE_U32_STRING.
69550         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69551         u16_directive, u16_directives, u32_directive, u32_directives): New
69552         types.
69553         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69554         New declarations.
69555         * lib/printf-parse.c: Don't include config.h and the specification
69556         header if PRINTF_PARSE is already defined. Eliminate the set of
69557         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69558         them now. Include c-ctype.h.
69559         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69560         directive and CHAR_T_ONLY_ASCII.
69561         * lib/vasnprintf.c: Don't include config.h and the specification header
69562         if VASNPRINTF is already defined.
69563         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69564         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69565         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69566         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69567         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69568         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69569         code accordingly.
69570         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69571         pad_ourselves also in this case, with the 'c' and 's' directives, and
69572         with a different notion of "width".
69573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69574
69575 2007-06-10  Bruno Haible  <bruno@clisp.org>
69576
69577         * modules/unistr/u32-mbsnlen: New file.
69578         * lib/unistr/u32-mbsnlen.c: New file.
69579
69580         * modules/unistr/u16-mbsnlen: New file.
69581         * lib/unistr/u16-mbsnlen.c: New file.
69582
69583         * modules/unistr/u8-mbsnlen: New file.
69584         * lib/unistr/u8-mbsnlen.c: New file.
69585
69586         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69587         declarations.
69588
69589 2007-06-10  Bruno Haible  <bruno@clisp.org>
69590
69591         * lib/string_.h (mbsnlen): New declaration.
69592         * lib/mbsnlen.c: New file.
69593         * m4/mbsnlen.m4: New file.
69594         * modules/mbsnlen: New file.
69595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69596         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69597         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69598
69599 2007-06-10  Bruno Haible  <bruno@clisp.org>
69600
69601         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69602
69603 2007-06-10  Bruno Haible  <bruno@clisp.org>
69604
69605         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69606         * lib/mbuiter.h: Likewise.
69607
69608 2007-06-10  Bruno Haible  <bruno@clisp.org>
69609
69610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69611         declaration.
69612
69613 2007-06-10  Karl Berry  <karl@gnu.org>
69614
69615         * config/srclist.txt: remove gettext entries, Bruno prefers
69616         to update individually.
69617
69618 2007-06-10  Bruno Haible  <bruno@clisp.org>
69619
69620         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69621         'maxlen'. Ensure only length + width bytes are allocated, not
69622         length + 1 + width.
69623
69624 2007-06-09  Bruno Haible  <bruno@clisp.org>
69625
69626         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69627         (CHAR_T): Remove macro.
69628         (VASNPRINTF): Update.
69629
69630 2007-06-09  Bruno Haible  <bruno@clisp.org>
69631
69632         * MODULES.html.sh (Unicode string functions): Add the new modules.
69633
69634         * modules/uniconv/u32-conv-to-enc: New file.
69635         * lib/uniconv/u32-conv-to-enc.c: New file.
69636         * modules/uniconv/u32-conv-to-enc-tests: New file.
69637         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69638
69639         * modules/uniconv/u16-conv-to-enc: New file.
69640         * lib/uniconv/u16-conv-to-enc.c: New file.
69641         * lib/uniconv/u-conv-to-enc.h: New file.
69642         * modules/uniconv/u16-conv-to-enc-tests: New file.
69643         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69644
69645         * modules/uniconv/u8-conv-to-enc: New file.
69646         * lib/uniconv/u8-conv-to-enc.c: New file.
69647         * modules/uniconv/u8-conv-to-enc-tests: New file.
69648         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69649
69650         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69651         u32_conv_to_encoding): New declarations.
69652
69653 2007-06-09  Bruno Haible  <bruno@clisp.org>
69654
69655         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69656
69657 2007-06-09  Bruno Haible  <bruno@clisp.org>
69658
69659         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69660         * modules/malloca: Renamed from modules/allocsa, updated.
69661         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69662         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69663         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69664         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69665         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69666         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69667         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69668         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69669         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69670         * modules/c-strcasestr (Depends-on): Update.
69671         * lib/c-strcasestr.c: Update.
69672         * modules/c-strstr (Depends-on): Update.
69673         * lib/c-strstr.c: Update.
69674         * modules/canonicalize-lgpl (Depends-on): Update.
69675         * lib/canonicalize-lgpl.c: Update.
69676         * modules/clean-temp (Depends-on): Update.
69677         * lib/clean-temp.c: Update.
69678         * modules/csharpcomp (Depends-on): Update.
69679         * lib/csharpcomp.c: Update.
69680         * modules/csharpexec (Depends-on): Update.
69681         * lib/csharpexec.c: Update.
69682         * modules/javacomp (Depends-on): Update.
69683         * lib/javacomp.c: Update.
69684         * modules/javaexec (Depends-on): Update.
69685         * lib/javaexec.c: Update.
69686         * modules/mbscasestr (Depends-on): Update.
69687         * lib/mbscasestr.c: Update.
69688         * modules/mbsstr (Depends-on): Update.
69689         * lib/mbsstr.c: Update.
69690         * modules/setenv (Depends-on): Update.
69691         * lib/setenv.c: Update.
69692         * modules/strcasestr (Depends-on): Update.
69693         * lib/strcasestr.c: Update.
69694         * modules/striconveha (Depends-on): Update.
69695         * lib/striconveha.c: Update.
69696         * modules/relocatable-prog-wrapper (Files): Update.
69697         * lib/relocwrapper.c: Update.
69698         * build-aux/install-reloc: Update.
69699         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69700
69701 2007-06-08  Bruno Haible  <bruno@clisp.org>
69702
69703         Port to uClibc.
69704         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69705         * lib/fpurge.c (fpurge): Likewise.
69706         * lib/freading.c (freading): Likewise.
69707         * lib/fseeko.c (rpl_fseeko): Likewise.
69708         * lib/fseterr.c (fseterr): Likewise.
69709         * lib/fwriting.c (fwriting): Likewise.
69710         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69711
69712 2007-06-08  Bruno Haible  <bruno@clisp.org>
69713
69714         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69715         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69716         * modules/gettext (Files): Add m4/intlmacosx.m4.
69717
69718 2007-06-07  Bruno Haible  <bruno@clisp.org>
69719
69720         * modules/localename-tests: New file.
69721         * tests/test-localename.c: New file.
69722
69723         New module 'localename'.
69724         * lib/localename.h: New file.
69725         * lib/localename.c: New file, from GNU gettext.
69726         * m4/localename.m4: New file.
69727         * modules/localename: New file.
69728
69729 2007-06-07  Bruno Haible  <bruno@clisp.org>
69730
69731         Work around the lack of <wchar.h> on some builds of uClibc.
69732         * doc/headers/wchar.texi: Update.
69733         * lib/wchar_.h: Include <wchar.h> only if it exists.
69734         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69735         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69736         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69737         doesn't exist.
69738         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69739         * modules/mbfile (Depends-on): Add wchar.
69740         * modules/mbiter (Depends-on): Likewise.
69741         * modules/mbuiter (Depends-on): Likewise.
69742         Reported by Simon Josefsson.
69743
69744 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         Work around problem reported by Steven M. Schweda in
69747         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69748         Tru64 5.1B with the Compaq compiler environment installed declares
69749         an 'isblank' function but does not define it in the C library.
69750         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69751         * lib/regex_internal.h (isblank): Likewise.
69752         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69754
69755 2007-06-05  Bruno Haible  <bruno@clisp.org>
69756
69757         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69758         ia64.
69759         * modules/printf-safe: New file.
69760         * modules/fprintf-posix (Depends-on): Add printf-safe.
69761         * modules/printf-posix (Depends-on): Likewise.
69762         * modules/snprintf-posix (Depends-on): Likewise.
69763         * modules/sprintf-posix (Depends-on): Likewise.
69764         * modules/vasnprintf-posix (Depends-on): Likewise.
69765         * modules/vasprintf-posix (Depends-on): Likewise.
69766         * modules/vfprintf-posix (Depends-on): Likewise.
69767         * modules/vprintf-posix (Depends-on): Likewise.
69768         * modules/vsnprintf-posix (Depends-on): Likewise.
69769         * modules/vsprintf-posix (Depends-on): Likewise.
69770         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69771         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69772         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69773         "no" on i386, x86_64, ia64.
69774         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69775         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69776         on i386, x86_64, ia64.
69777         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69778         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69779         on i386, x86_64, ia64.
69780         * tests/test-vasnprintf-posix.c: Include float.h.
69781         (LDBL80_WORDS): New macro.
69782         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69783         on i386, x86_64, ia64.
69784         * tests/test-vasprintf-posix.c: Include float.h.
69785         (LDBL80_WORDS): New macro.
69786         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69787         on i386, x86_64, ia64.
69788         * tests/test-snprintf-posix.c: Include float.h.
69789         * tests/test-sprintf-posix.c: Likewise.
69790         * tests/test-vsnprintf-posix.c: Likewise.
69791         * tests/test-vsprintf-posix.c: Likewise.
69792
69793 2007-06-05  Bruno Haible  <bruno@clisp.org>
69794
69795         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69796         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69797         non-IEEE numbers on i386, x86_64, ia64.
69798         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69799         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69800         * tests/test-isnanl.h: Include float.h.
69801         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69802
69803 2007-06-05  Bruno Haible  <bruno@clisp.org>
69804
69805         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69806         also the %a / %A. Handle the %a / %A code before this extra handling.
69807
69808 2007-06-05  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69811         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69812
69813 2007-06-05  Bruno Haible  <bruno@clisp.org>
69814
69815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69816         typo in variable name.
69817
69818 2007-06-05  Eric Blake  <ebb9@byu.net>
69819
69820         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69821         Reported by Simon Josefsson.
69822
69823 2007-06-04  Bruno Haible  <bruno@clisp.org>
69824
69825         Avoid test failures on some PowerPC platforms.
69826         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69827         Define differently for PowerPC.
69828         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69829         Reported by Gary V. Vaughan <gary@gnu.org>.
69830
69831 2007-06-02  Bruno Haible  <bruno@clisp.org>
69832
69833         Fix test-stdint failure on FreeBSD/ia64.
69834         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69835         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69836         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69837         * doc/headers/stdint.texi: Update.
69838
69839 2007-06-01  Bruno Haible  <bruno@clisp.org>
69840
69841         * tests/test-binary-io.c (main): Pass a third argument to open().
69842         Reported by Gary V. Vaughan <gary@gnu.org>.
69843
69844 2007-06-01  Bruno Haible  <bruno@clisp.org>
69845
69846         * doc/functions/frexpl.texi: Update for mingw.
69847
69848 2007-06-01  Bruno Haible  <bruno@clisp.org>
69849
69850         * tests/test-lseek.c (main): Disable test of errno for invalid third
69851         argument.
69852         * doc/functions/lseek.texi: Update.
69853         Reported by Gary V. Vaughan <gary@gnu.org>.
69854
69855 2007-05-28  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69858
69859 2007-05-31  Eric Blake  <ebb9@byu.net>
69860
69861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69862         cross compiling.
69863
69864 2007-05-30  Eric Blake  <ebb9@byu.net>
69865         and Bruno Haible  <bruno@clisp.org>
69866
69867         Work around mingw test failures exposed by m4-1.4.9b.
69868         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69869         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69870         moment.
69871
69872 2007-05-30  Bruno Haible  <bruno@clisp.org>
69873
69874         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69875         assuming that they are closed. Needed on HP-UX 11.
69876
69877 2007-05-29  Bruno Haible  <bruno@clisp.org>
69878
69879         Fix a problem with #include_next.
69880         * lib/dirent_.h: Split the double-inclusion guard.
69881         * lib/fcntl_.h: Likewise.
69882         * lib/float_.h: Likewise.
69883         * lib/iconv_.h: Likewise.
69884         * lib/inttypes_.h: Likewise.
69885         * lib/locale_.h: Likewise.
69886         * lib/math_.h: Likewise.
69887         * lib/netinet_in_.h: Likewise.
69888         * lib/search_.h: Likewise.
69889         * lib/signal_.h: Likewise.
69890         * lib/stdint_.h: Likewise.
69891         * lib/stdio_.h: Likewise.
69892         * lib/stdlib_.h: Likewise.
69893         * lib/string_.h: Likewise.
69894         * lib/sys_select_.h: Likewise.
69895         * lib/sys_socket_.h: Likewise.
69896         * lib/sys_stat_.h: Likewise.
69897         * lib/sys_time_.h: Likewise.
69898         * lib/sysexits_.h: Likewise.
69899         * lib/time_.h: Likewise.
69900         * lib/unistd_.h: Likewise.
69901         * lib/wchar_.h: Likewise.
69902         * lib/wctype_.h: Likewise.
69903
69904 2007-05-29  Bruno Haible  <bruno@clisp.org>
69905
69906         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69907         for the moment.
69908
69909 2007-05-29  Bruno Haible  <bruno@clisp.org>
69910
69911         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69912         invocation.
69913         Reported by Eric Blake.
69914
69915 2007-05-29  Bruno Haible  <bruno@clisp.org>
69916
69917         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69918         compiling case.
69919
69920 2007-05-29  Eric Blake  <ebb9@byu.net>
69921             Bruno Haible  <bruno@clisp.org>
69922
69923         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69924         cross compiles.
69925
69926 2007-05-28  Eric Blake  <ebb9@byu.net>
69927
69928         * modules/closein-tests (test_closein_LDADD): Support test on
69929         cygwin with libtool.
69930
69931 2007-05-28  Bruno Haible  <bruno@clisp.org>
69932
69933         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69934         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69935         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69936         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69937         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69938         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69939         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69940         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69941         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69942
69943 2007-05-28  Eric Blake  <ebb9@byu.net>
69944
69945         Unconditionally include <config.h> in unit tests.
69946         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69947         * tests/test-allocsa.c, tests/test-arcfour.c,
69948         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69949         tests/test-array_list.c, tests/test-array_oset.c,
69950         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69951         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69952         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69953         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69954         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69955         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69956         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69957         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69958         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69959         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69960         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69961         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69962         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69963         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69964         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69965         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69966         test-md5.c, test-memmem.c, test-printf-posix.c,
69967         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69968         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69969         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69970         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69971         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69972         test-vasnprintf-posix2.c, test-vasnprintf.c,
69973         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69974         test-vfprintf-posix.c, test-vprintf-posix.c,
69975         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69976         test-xvasprintf.c: Likewise.
69977
69978 2007-05-28  Bruno Haible  <bruno@clisp.org>
69979
69980         * gnulib-tool (func_import): Remember the --with-tests command-line
69981         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69982         Reported by Eric Blake.
69983
69984 2007-05-28  Bruno Haible  <bruno@clisp.org>
69985
69986         * modules/ftell-tests: New file.
69987         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69988         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69989
69990         * lib/ftell.c: New file.
69991         * modules/ftell: New file.
69992         * m4/ftell.m4: New file.
69993         * doc/functions/ftell.texi: Update.
69994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69995         REPLACE_FTELL.
69996         * lib/stdio_.h (rpl_ftell): New declaration.
69997         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69998         REPLACE_FTELL.
69999
70000 2007-05-28  Eric Blake  <ebb9@byu.net>
70001
70002         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70003
70004 2007-05-28  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/fseek-tests: New file.
70007         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70008         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70009
70010         * lib/fseek.c: New file.
70011         * modules/fseek: New file.
70012         * m4/fseek.m4: New file.
70013         * doc/functions/fseek.texi: Update.
70014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70015         REPLACE_FSEEK.
70016         * lib/stdio_.h (rpl_fseek): New declaration.
70017         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70018         REPLACE_FSEEK.
70019
70020 2007-05-28  Bruno Haible  <bruno@clisp.org>
70021
70022         * lib/stdio_.h (fflush): More comments.
70023
70024 2007-05-28  Bruno Haible  <bruno@clisp.org>
70025
70026         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70027         runtime test.
70028
70029 2007-05-28  Eric Blake  <ebb9@byu.net>
70030
70031         Improve lseek module.
70032         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70033         * lib/unistd_.h (lseek): Scale back link warning message.
70034         * tests/test-lseek.c: Beef up test.
70035         * tests/test-lseek.sh: Exercise more facets of lseek.
70036         Reported by Bruno Haible.
70037
70038 2007-05-28  Bruno Haible  <bruno@clisp.org>
70039
70040         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70041         to define.
70042
70043 2007-05-27  Bruno Haible  <bruno@clisp.org>
70044
70045         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70046
70047 2007-05-27  Bruno Haible  <bruno@clisp.org>
70048
70049         * modules/openmp: New file.
70050         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70051         Noah Misch.
70052
70053 2007-05-26  Bruno Haible  <bruno@clisp.org>
70054
70055         * modules/chdir-long (Depends-on): Add fchdir.
70056         * modules/chdir-safer (Depends-on): Likewise.
70057         * modules/fts (Depends-on): Likewise.
70058         * modules/fts-lgpl (Depends-on): Likewise.
70059         * modules/openat (Depends-on): Likewise.
70060         * modules/savewd (Depends-on): Likewise.
70061
70062 2007-05-24  Eric Blake  <ebb9@byu.net>
70063
70064         Fix lseek on mingw.
70065         * modules/lseek: New module.
70066         * m4/lseek.m4: New file.
70067         * lib/lseek.c: New file.
70068         * modules/lseek-tests: New file.
70069         * tests/test-lseek.c: New file.
70070         * tests/test-lseek.sh: New file.
70071         * MODULES.html.sh: Document lseek module.
70072         * modules/fflush (Depends-on): Add lseek, fseeko.
70073         * modules/fseeko (Depends-on): Likewise.
70074         * modules/ftello (Depends-on): Likewise.
70075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70076         broken.
70077         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70078         broken.
70079         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70080         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70081         * lib/ftello.c (rpl_ftello): Likewise.
70082         * tests/test-fseeko.c (main): Test this.
70083         * tests/test-fseeko.sh: Likewise.
70084         * tests/test-ftello.c (main): Likewise.
70085         * tests/test-ftello.sh: Likewise.
70086         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70087         implies replacing fseek.
70088         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70089         HAVE_FTELLO.
70090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70091         * modules/unistd (Makefile.am): Likewise.
70092         * lib/unistd_.h (lseek): Declare a replacement.
70093         * doc/functions/lseek.texi (lseek): Document this fix.
70094         * doc/functions/fseek.texi (fseek): Likewise.
70095         * doc/functions/ftell.texi (ftell): Likewise.
70096
70097 2007-05-24  Bruno Haible  <bruno@clisp.org>
70098
70099         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70100         in the printed representation of a NaN.
70101         * tests/test-vasprintf-posix.c (test_function): Likewise.
70102         * tests/test-snprintf-posix.h (test_function): Likewise.
70103         * tests/test-sprintf-posix.h (test_function): Likewise.
70104         Reported by Eric Blake.
70105
70106 2007-05-23  Eric Blake  <ebb9@byu.net>
70107
70108         Fix fseeko/ftello on cygwin 1.5.24.
70109         * doc/functions/fseeko.texi (fseeko): Document the fix.
70110         * doc/functions/ftello.texi (ftello): Document the fix.
70111         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70112         * doc/functions/stdout.text (stdout): New file.
70113         * doc/functions/stderr.text (stderr): New file.
70114         * doc/gnulib.texi (Function Substitutes): Use new files.
70115         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70116         prior to 1.7.0.
70117         * tests/test-ftello.c (main): Likewise for ftello.
70118         * tests/test-fseeko.sh: New file.
70119         * tests/test-ftello.sh: New file.
70120         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70121         with seekable stdin.
70122         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70124         (gl_REPLACE_FSEEKO): New macro.
70125         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70126         * modules/fseeko (Files): Distribute fseeko.c.
70127         * modules/ftello (Files): Distribute ftello.c.
70128         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70129         mode.
70130         * lib/ftello.c (rpl_ftello): New file.
70131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70132         fseeko, ftello.
70133         (gl_STDIN_LARGE_OFFSET): New macro.
70134         * modules/stdio (Makefile.am): Perform the replacement.
70135         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70136
70137 2007-05-23  Bruno Haible  <bruno@clisp.org>
70138
70139         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70140         GNULIB_POSIXCHECK is defined.
70141
70142 2007-05-21  Bruno Haible  <bruno@clisp.org>
70143
70144         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70145         Check also the output for NaN arguments. When cross-compiling, guess
70146         no on IRIX.
70147         * lib/vasnprintf.c: Update comments.
70148         * tests/test-vasnprintf-posix.c (strisnan): New function.
70149         (test_function): Use it.
70150         * tests/test-vasprintf-posix.c (strisnan): New function.
70151         (test_function): Use it.
70152         * tests/test-snprintf-posix.h (strisnan): New function.
70153         (test_function): Use it.
70154         * tests/test-sprintf-posix.h (strisnan): New function.
70155         (test_function): Use it.
70156         Reported by Eric Blake.
70157
70158 2007-05-20  Bruno Haible  <bruno@clisp.org>
70159
70160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70161         numbers that fails on BeOS.
70162         * doc/functions/frexpl.texi: Update.
70163
70164 2007-05-20  Jim Meyering  <jim@meyering.net>
70165
70166         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70167         forced upon us by glibc-2.6.
70168
70169 2007-05-20  Bruno Haible  <bruno@clisp.org>
70170
70171         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70172         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70173         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70174         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70175         NEED_PRINTF_INFINITE.
70176         (is_infinitel): New function.
70177         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70179         gl_PREREQ_VASNPRINTF_INFINITE.
70180         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70182         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70183         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70184         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70185         gl_PREREQ_VASNPRINTF_INFINITE.
70186         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70187         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70188         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70190         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70192         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70193         * doc/functions/fprintf.texi: Update.
70194         * doc/functions/printf.texi: Update.
70195         * doc/functions/snprintf.texi: Update.
70196         * doc/functions/sprintf.texi: Update.
70197         * doc/functions/vfprintf.texi: Update.
70198         * doc/functions/vprintf.texi: Update.
70199         * doc/functions/vsnprintf.texi: Update.
70200         * doc/functions/vsprintf.texi: Update.
70201
70202 2007-05-20  Bruno Haible  <bruno@clisp.org>
70203
70204         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70205         was not found in libc.
70206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70207
70208 2007-05-20  Bruno Haible  <bruno@clisp.org>
70209
70210         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70211         printed as "-nan" instead of "nan".
70212         * tests/test-vasprintf-posix.c (test_function): Likewise.
70213         * tests/test-snprintf-posix.h (test_function): Likewise.
70214         * tests/test-sprintf-posix.h (test_function): Likewise.
70215         Needed for HP-UX 11.
70216
70217 2007-05-20  Jim Meyering  <jim@meyering.net>
70218
70219         Fix buggy test for the fchownat-deref bug.
70220         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70221         symlink required for the run-test.  Without it, this test would
70222         always declare that fchownat doesn't work, and client code would
70223         unnecessarily use the replacement function with fixed libc.
70224         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70225         Reported by Greg Schafer.
70226
70227 2007-05-19  Bruno Haible  <bruno@clisp.org>
70228
70229         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70230         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70231         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70232         Needed for IRIX 6.5 and Solaris 2.5.1.
70233
70234 2007-05-19  Bruno Haible  <bruno@clisp.org>
70235
70236         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70237         (test_function): Skip tests involving -0.0 on platforms where
70238         -0.0 = 0.0.
70239         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70240         (test_function): Skip tests involving -0.0 on platforms where
70241         -0.0 = 0.0.
70242         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70243         (test_function): Skip tests involving -0.0 on platforms where
70244         -0.0 = 0.0.
70245         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70246         (test_function): Skip tests involving -0.0 on platforms where
70247         -0.0 = 0.0.
70248         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70249         tests.
70250         * tests/test-printf-posix.h (test_function): Likewise.
70251         * tests/test-printf-posix.output: Remove all -0.0 related results.
70252         Needed for IRIX 6.5.
70253
70254 2007-05-19  Bruno Haible  <bruno@clisp.org>
70255
70256         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70257         printed as "nan0x7fffffff" instead of "nan".
70258         * tests/test-vasprintf-posix.c (test_function): Likewise.
70259         * tests/test-snprintf-posix.h (test_function): Likewise.
70260         * tests/test-sprintf-posix.h (test_function): Likewise.
70261         * tests/test-fprintf-posix.h (NaN): Remove macro.
70262         (test_function): Remove all NaN related tests.
70263         * tests/test-printf-posix.h (NaN): Remove macro.
70264         (test_function): Remove all NaN related tests.
70265         * tests/test-printf-posix.output: Remove all NaN related results.
70266         Needed for IRIX 6.5.
70267
70268 2007-05-19  Bruno Haible  <bruno@clisp.org>
70269
70270         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70272
70273 2007-05-19  Bruno Haible  <bruno@clisp.org>
70274
70275         * lib/float_.h: New file.
70276         * m4/float_h.m4: New file.
70277         * modules/float: New file.
70278         * modules/isnanl (Dependencies): Add float.
70279         * modules/isnanl-nolibm (Dependencies): Likewise.
70280         * modules/mathl (Dependencies): Likewise.
70281         * modules/printf-frexpl (Dependencies): Likewise.
70282         * modules/signbit (Dependencies): Likewise.
70283         * modules/vasnprintf (Dependencies): Likewise.
70284         * doc/headers/float.texi: Update.
70285
70286 2007-05-19  Jim Meyering  <jim@meyering.net>
70287
70288         * lib/utimens.c (gl_futimens): Rename from futimens,
70289         now that glibc-2.6 declares futimens.
70290         * lib/utimens.h: Likewise.
70291
70292 2007-05-19  Bruno Haible  <bruno@clisp.org>
70293
70294         Avoid test failures on mingw.
70295         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70296         * tests/test-printf-posix.sh: Likewise.
70297         * tests/test-vfprintf-posix.sh: Likewise.
70298         * tests/test-vprintf-posix.sh: Likewise.
70299
70300 2007-05-19  Bruno Haible  <bruno@clisp.org>
70301
70302         Fix *printf result for NaN, Inf, -0.0 on mingw.
70303         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70304         * lib/vasnprintf.c: Include math.h and isnan.h.
70305         (is_infinite_or_zero): New function.
70306         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70307         values in the %f, %F, %e, %E, %g, %G directives.
70308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70310         gl_PRINTF_INFINITE and test its result. Invoke
70311         gl_PREREQ_VASNPRINTF_INFINITE.
70312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70319         * doc/functions/fprintf.texi: Update.
70320         * doc/functions/printf.texi: Update.
70321         * doc/functions/snprintf.texi: Update.
70322         * doc/functions/sprintf.texi: Update.
70323         * doc/functions/vfprintf.texi: Update.
70324         * doc/functions/vprintf.texi: Update.
70325         * doc/functions/vsnprintf.texi: Update.
70326         * doc/functions/vsprintf.texi: Update.
70327
70328 2007-05-19  Bruno Haible  <bruno@clisp.org>
70329
70330         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70331         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70332         Instead of multiplying with 10^k, set extra_zeroes to k.
70333         (scale10_round_long_double): Remove function.
70334
70335 2007-05-18  Bruno Haible  <bruno@clisp.org>
70336
70337         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70338         introduced on 2007-05-06.
70339
70340 2007-05-18  Bruno Haible  <bruno@clisp.org>
70341
70342         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70343         %g directives.
70344         * tests/test-vasprintf-posix.c (test_function): Likewise.
70345         * tests/test-snprintf-posix.h (test_function): Likewise.
70346         * tests/test-sprintf-posix.h (test_function): Likewise.
70347
70348 2007-05-18  Bruno Haible  <bruno@clisp.org>
70349
70350         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70351         (strmatch): New function.
70352         (test_function): Test the %f directive on numbers of various exponents.
70353         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70354         (strmatch): New function.
70355         (test_function): Test the %f directive on numbers of various exponents.
70356         * tests/test-snprintf-posix.h (strmatch): New function.
70357         (test_function): Test the %f directive on numbers of various exponents.
70358         * tests/test-sprintf-posix.h (strmatch): New function.
70359         (test_function): Test the %f directive on numbers of various exponents.
70360         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70361         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70362         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70363         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70364
70365 2007-05-18  Bruno Haible  <bruno@clisp.org>
70366
70367         Add support for 'long double' number output.
70368         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70369         * lib/vasnprintf.c: Include math.h and float+.h.
70370         (mp_limb_t): New type.
70371         (GMP_LIMB_BITS): New macro.
70372         (mp_twolimb_t): New type.
70373         (GMP_TWOLIMB_BITS): New macro.
70374         (mpn_t): New type.
70375         (multiply, divide, convert_to_decimal, decode_long_double,
70376         scale10_round_long_double, scale10_round_decimal_long_double,
70377         floorlog10l): New functions.
70378         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70379         for the %f, %F, %e, %E, %g, %G directives.
70380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70382         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70383         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70391         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70392         * modules/snprintf-posix (Depends-on): Likewise.
70393         * modules/sprintf-posix (Depends-on): Likewise.
70394         * modules/vasnprintf-posix (Depends-on): Likewise.
70395         * modules/vasprintf-posix (Depends-on): Likewise.
70396         * modules/vfprintf-posix (Depends-on): Likewise.
70397         * modules/vsnprintf-posix (Depends-on): Likewise.
70398         * modules/vsprintf-posix (Depends-on): Likewise.
70399         * modules/vasnprintf (Files): Add lib/float+.h.
70400         * doc/functions/fprintf.texi: Update.
70401         * doc/functions/printf.texi: Update.
70402         * doc/functions/snprintf.texi: Update.
70403         * doc/functions/sprintf.texi: Update.
70404         * doc/functions/vfprintf.texi: Update.
70405         * doc/functions/vprintf.texi: Update.
70406         * doc/functions/vsnprintf.texi: Update.
70407         * doc/functions/vsprintf.texi: Update.
70408
70409 2007-05-18  Bruno Haible  <bruno@clisp.org>
70410
70411         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70412
70413 2007-05-18  Bruno Haible  <bruno@clisp.org>
70414
70415         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70416         for printing 64-bit integers. Needed for mingw.
70417
70418 2007-05-18  Bruno Haible  <bruno@clisp.org>
70419
70420         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70421         gl_FUNC_FREXPL_WORKS.
70422         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70423
70424 2007-05-18  Bruno Haible  <bruno@clisp.org>
70425
70426         * modules/frexpl-nolibm-tests: New file.
70427
70428         * modules/frexpl-nolibm: New file.
70429         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70430
70431 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70432
70433         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70434         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70435         GCC 4.2, which otherwise issues a lot of warnings.
70436         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70437         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70438         Likewise.
70439         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70440         * modules/iconv_open (iconv.h): Likewise.
70441         * modules/locale (locale.h): Likewise.
70442         * modules/netinet_in (netinet/in.h): Likewise.
70443         * modules/sys_select (sys_select.h): Likewise.
70444         * modules/sys_socket (sys/socket.h): Likewise.
70445         * modules/sys_stat (sys/stat.h): Likewise.
70446         * modules/sysexits (sysexits.h): Likewise.
70447         * modules/unistd (unistd.h): Likewise.
70448
70449 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70450
70451         * modules/closein-tests (Makefile.am): Distribute
70452         `test-closein.sh'.
70453
70454 2007-05-17  Bruno Haible  <bruno@clisp.org>
70455
70456         * tests/test-printf-posix.output: Renamed from
70457         tests/test-fprintf-posix.out.
70458         * modules/fprintf-posix-tests: Update.
70459         * modules/printf-posix-tests: Update.
70460         * modules/vfprintf-posix-tests: Update.
70461         * modules/vprintf-posix-tests: Update.
70462         * tests/test-fprintf-posix.sh: Update.
70463         * tests/test-printf-posix.sh: Update.
70464         * tests/test-vfprintf-posix.sh: Update.
70465         * tests/test-vprintf-posix.sh: Update.
70466         Reported by Ralf Wildenhues.
70467
70468 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70469
70470         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70471         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70472         GCC 4.2, which otherwise issues a lot of warnings.
70473         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70474         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70475         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70476         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70477         it should no longer be needed.
70478         * lib/string_.h: Likewise.
70479         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70480         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70481         * modules/inttypes (inttypes.h): Likewise.
70482         * modules/math (math.h): Likewise.
70483         * modules/search (search.h): Likewise.
70484         * modules/signal (signal.h): Likewise.
70485         * modules/stdint (stdint.h): Likewise.
70486         * modules/stdio (stdio.h): Likewise.
70487         * modules/stdlib (stdlib.h): Likewise.
70488         * modules/string (string.h): Likewise.
70489         * modules/sys_time (sys/time.h): Likewise.
70490         * modules/time (time.h): Likewise.
70491         * modules/wchar (wchar.h): Likewise.
70492         * modules/wctype (wtype.h): Likewise.
70493
70494 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70495
70496         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70497
70498 2007-05-13  Bruno Haible  <bruno@clisp.org>
70499
70500         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70501         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70502         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70503         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70504         (gl_PREREQ_STRTOK_R): Don't require it here.
70505
70506 2007-05-13  Bruno Haible  <bruno@clisp.org>
70507
70508         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70509         when used in C++ mode.
70510
70511 2007-05-12  Bruno Haible  <bruno@clisp.org>
70512
70513         * lib/linebuffer.h: Tweak doc.
70514         * lib/linebuffer.c: Likewise.
70515
70516 2007-05-12  James Youngman  <jay@gnu.org>
70517
70518         * lib/linebuffer.c (readlinebuffer_delim): New function,
70519         like readlinebuffer, but use a caller-specified delimiter.
70520         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70521         as the delimiter.
70522         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70523
70524 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70525
70526         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70527         * modules/openat (Files): Remove openat-die.c.
70528         (Depends-on): Add openat-die.
70529         * modules/openat-die: New module.
70530
70531 2007-05-06  Bruno Haible  <bruno@clisp.org>
70532
70533         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70534         Update with info about Cygwin.
70535         * doc/functions/fprintf.texi: Update.
70536         * doc/functions/printf.texi: Update.
70537         * doc/functions/snprintf.texi: Update.
70538         * doc/functions/sprintf.texi: Update.
70539         * doc/functions/vfprintf.texi: Update.
70540         * doc/functions/vprintf.texi: Update.
70541         * doc/functions/vsnprintf.texi: Update.
70542         * doc/functions/vsprintf.texi: Update.
70543         Reported by Eric Blake.
70544
70545 2007-05-06  Bruno Haible  <bruno@clisp.org>
70546
70547         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70548         padding ourselves for the floating-point directives.
70549         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70552         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70553         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70561         * tests/test-snprintf-posix.h (test_function): Also check the width
70562         and some flags in the %f directive.
70563         * tests/test-sprintf-posix.h (test_function): Likewise.
70564         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70565         * tests/test-vasprintf-posix.c (test_function): Likewise.
70566         * doc/functions/fprintf.texi: Update.
70567         * doc/functions/printf.texi: Update.
70568         * doc/functions/snprintf.texi: Update.
70569         * doc/functions/sprintf.texi: Update.
70570         * doc/functions/vfprintf.texi: Update.
70571         * doc/functions/vprintf.texi: Update.
70572         * doc/functions/vsnprintf.texi: Update.
70573         * doc/functions/vsprintf.texi: Update.
70574
70575 2007-05-06  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70578         pass the ' flag character to sprintf or snprintf.
70579         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70582         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70583         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70591         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70592         flag.
70593         * tests/test-sprintf-posix.h (test_function): Likewise.
70594         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70595         * tests/test-vasprintf-posix.c (test_function): Likewise.
70596         * doc/functions/fprintf.texi: Update.
70597         * doc/functions/printf.texi: Update.
70598         * doc/functions/snprintf.texi: Update.
70599         * doc/functions/sprintf.texi: Update.
70600         * doc/functions/vfprintf.texi: Update.
70601         * doc/functions/vprintf.texi: Update.
70602         * doc/functions/vsnprintf.texi: Update.
70603         * doc/functions/vsprintf.texi: Update.
70604
70605 2007-05-01  Bruno Haible  <bruno@clisp.org>
70606
70607         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70608
70609 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70612         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70613
70614 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70617         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70618         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70619
70620 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70621
70622         * lib/argp-help.c (struct hol_entry): New member `ord'.
70623         (HOL_ENTRY_PTRCMP): Use ord for comparison
70624         (hol_sort): Initialize ord.
70625
70626 2007-05-01  Bruno Haible  <bruno@clisp.org>
70627
70628         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70629         Reported by Eric Blake.
70630         * doc/gnulib.texi (Function Substitutes): Update.
70631
70632 2007-05-01  Bruno Haible  <bruno@clisp.org>
70633
70634         * doc/functions.texi: Remove file, now redundant through
70635         doc/functions/*.texi.
70636
70637 2007-05-01  Bruno Haible  <bruno@clisp.org>
70638
70639         * modules/argp (Depends-on): Add sleep.
70640
70641 2007-05-01  Bruno Haible  <bruno@clisp.org>
70642
70643         * modules/sleep-tests: New file.
70644         * tests/test-sleep.c: New file.
70645
70646         * modules/sleep: New file.
70647         * lib/sleep.c: New file.
70648         * m4/sleep.m4: New file.
70649         * lib/unistd_.h (sleep): New declaration.
70650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70651         HAVE_SLEEP.
70652         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70653         * doc/functions/sleep.texi: Document the sleep module.
70654
70655 2007-05-01  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/sigprocmask.h: Remove file.
70658         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70659         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70661         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70662         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70663         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70664         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70665         HAVE_SIGSET_T as a shell variable.
70666         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70667         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70668         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70669         (Depends-on): Add signal. Remove verify.
70670         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70671         (Include): Mention <signal.h> instead of sigprocmask.h.
70672         * NEWS: Mention the change.
70673         * lib/fatal-signal.c: Don't include sigprocmask.h.
70674
70675 2007-05-01  Bruno Haible  <bruno@clisp.org>
70676
70677         * modules/signal: New file.
70678         * lib/signal_.h: New file.
70679         * m4/signal_h.m4: New file.
70680
70681 2007-05-01  Bruno Haible  <bruno@clisp.org>
70682
70683         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70684         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70685         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70686         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70687
70688 2007-05-01  Bruno Haible  <bruno@clisp.org>
70689
70690         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70691         configure time.
70692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70693         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70694         * modules/sys_stat (Makefile.am): Substitute their values into
70695         sys/stat.h.
70696
70697 2007-05-01  Bruno Haible  <bruno@clisp.org>
70698
70699         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70700         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70701         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70702
70703 2007-05-01  Bruno Haible  <bruno@clisp.org>
70704
70705         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70706         'assert' module here.
70707
70708 2007-05-01  Bruno Haible  <bruno@clisp.org>
70709
70710         * doc/functions/*.texi: New files.
70711         * doc/functions/google-ranking.txt: New file.
70712         * doc/gnulib.texi (Function Substitutes): New chapter.
70713         (ctime, inet_ntoa): Remove sections.
70714         * doc/ctime.texi: Remove file.
70715         * doc/inet_ntoa.texi: Remove file.
70716         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70717         dependencies.
70718         (%.info): New rule, specifying a --reference-limit.
70719
70720 2007-05-01  Bruno Haible  <bruno@clisp.org>
70721
70722         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70723
70724 2007-05-01  Bruno Haible  <bruno@clisp.org>
70725
70726         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70727         the portability of 'mkdir' to mingw systems.
70728
70729 2007-05-01  Bruno Haible  <bruno@clisp.org>
70730
70731         * doc/headers/google-ranking.txt: New file.
70732
70733 2007-04-30  Eric Blake  <ebb9@byu.net>
70734
70735         Prefer fseeko to fseek.
70736         * modules/getpass (Depends-on): Add fseeko.
70737         * lib/getpass.c (getpass): Use fseeko, not fseek.
70738
70739 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70740
70741         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70742         assumes the sorting is stable, while most qsort implementations
70743         are not.  Use argument addresses to ensure they never compare as
70744         equal.
70745
70746         * tests/test-argp-2.sh (usage-indent test): Fix output
70747         (func_compare): Restore diff options
70748         * tests/test-argp.c: Restore #include "progname.h"
70749
70750 2007-04-29  Bruno Haible  <bruno@clisp.org>
70751
70752         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70754         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70756         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70757         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70758         (TESTS, check_PROGRAMS): Add test-snprintf.
70759         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70760         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70761         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70762         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70763         assertions that fail on HP-UX, OSF/1, or IRIX.
70764         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70765
70766 2007-04-29  Bruno Haible  <bruno@clisp.org>
70767
70768         * MODULES.html.sh (posix_functions): Remove 'contents'.
70769
70770 2007-04-29  Karl Berry  <karl@gnu.org>
70771
70772         * config/srclist.txt (gendocs_template_min): new entry.
70773
70774 2007-04-29  Bruno Haible  <bruno@clisp.org>
70775
70776         Work around fpurge bug on BSD systems.
70777         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70778         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70779         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70780         fpurge to rpl_fpurge if the system already has this function.
70781         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70782         the case where the system already has this function. Correct invariants
70783         on BSD systems.
70784         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70785         BSD systems.
70786
70787 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70788
70789         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70790         proposed by Sven Verdoolaege.
70791
70792         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70793         options.
70794         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70795         (usage and help tests): Update
70796
70797 2007-04-29  Bruno Haible  <bruno@clisp.org>
70798
70799         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70800         Print more information in case of failure. Disable a test on BeOS.
70801
70802 2007-04-29  Bruno Haible  <bruno@clisp.org>
70803
70804         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70805         This helps debugging on systems on which no gdb is available.
70806
70807 2007-04-29  Bruno Haible  <bruno@clisp.org>
70808
70809         * lib/freading.h: Improve comments.
70810         * lib/fwriting.h: Likewise.
70811         * tests/test-freading.c (main): Don't check freading immediately after
70812         repositioning. Needed for glibc.
70813
70814 2007-04-29  Bruno Haible  <bruno@clisp.org>
70815
70816         * lib/freading.c (freading): Trivial simplification.
70817
70818 2007-04-28  Bruno Haible  <bruno@clisp.org>
70819
70820         * tests/test-fwriting.c (main): Also test the interaction between
70821         fflush and fwriting.
70822         * modules/fwriting-tests (Depends-on): Add fflush.
70823
70824         * tests/test-freading.c (main): Also test the interaction between
70825         fflush and freading.
70826         * modules/freading-tests (Depends-on): Add fflush.
70827
70828 2007-04-28  Bruno Haible  <bruno@clisp.org>
70829
70830         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70831         fseeko and ftello.
70832         Suggested by Eric Blake.
70833
70834 2007-04-28  Jim Meyering  <jim@meyering.net>
70835
70836         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70837         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70838         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70839
70840 2007-04-27  Eric Blake  <ebb9@byu.net>
70841
70842         * doc/headers/assert.texi (assert.h): Document assert module use.
70843
70844 2007-04-27  Bruno Haible  <bruno@clisp.org>
70845
70846         * doc/headers/*.texi: New files.
70847         * doc/gnulib.texi (Header File Substitutes): New chapter.
70848         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70849         dependencies.
70850         (standards.info ,standards.html, standards.dvi): Update dependencies.
70851         (mostlyclean, clean): New targets.
70852
70853 2007-04-27  Bruno Haible  <bruno@clisp.org>
70854
70855         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70856         * modules/sysexits (Files, Makefile.am): Update.
70857
70858         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70859         * modules/sys_socket (Files, Makefile.am): Update.
70860
70861         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70862         * modules/sys_stat (Files, Makefile.am): Update.
70863
70864 2007-04-27  Eric Blake  <ebb9@byu.net>
70865
70866         * lib/freading.h: Improve comments.
70867         * lib/fwriting.h: Likewise.
70868         * lib/fflush.c: Likewise.
70869
70870         Fix closein for mingw.
70871         * modules/closein-tests: Add tests for closein.
70872         * tests/test-closein.c: New file.
70873         * tests/test-closein.sh: Likewise.
70874         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70875         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70876
70877 2007-04-27  Bruno Haible  <bruno@clisp.org>
70878
70879         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70880         version is < 6.
70881         * lib/math_.h [__DECC]: Likewise.
70882         * lib/stdio_.h [__DECC]: Likewise.
70883         * lib/stdlib_.h [__DECC]: Likewise.
70884         * lib/string_.h [__DECC]: Likewise.
70885         * lib/time_.h [__DECC]: Likewise.
70886         * lib/wchar_.h [__DECC]: Likewise.
70887         * lib/wctype_.h [__DECC]: Likewise.
70888
70889 2007-04-27  Bruno Haible  <bruno@clisp.org>
70890
70891         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70892
70893 2007-04-27  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/fflush.c: Add comments.
70896         * modules/fpurge-tests (Depends-on): Add fflush.
70897         * modules/freadable-tests (Depends-on): Likewise.
70898         * modules/fwritable-tests (Depends-on): Likewise.
70899
70900 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70901
70902         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70903         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70904         Report by Bruno Haible <bruno@clisp.org>.
70905
70906 2007-04-26  Eric Blake  <ebb9@byu.net>
70907
70908         Fix fflush on mingw.
70909         * modules/fflush (Depends-on): Add freading.
70910         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70911         but unread data.
70912
70913 2007-04-26  Eric Blake  <ebb9@byu.net>
70914         and Bruno Haible  <bruno@clisp.org>
70915
70916         Implement freading and fwriting.
70917         * lib/freading.c: New file.
70918         * lib/freading.h: Likewise.
70919         * m4/freading.m4: Likewise.
70920         * modules/freading: Likewise.
70921         * modules/freading-tests: Likewise.
70922         * tests/test-freading.c: Likewise.
70923         * lib/fwriting.c: New file.
70924         * lib/fwriting.h: Likewise.
70925         * m4/fwriting.m4: Likewise.
70926         * modules/fwriting: Likewise.
70927         * modules/fwriting-tests: Likewise.
70928         * tests/test-fwriting.c: Likewise.
70929         * MODULES.html.sh (File stream based Input/Output): Mention them.
70930
70931 2007-04-26  Bruno Haible  <bruno@clisp.org>
70932
70933         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70934         'long' when we assume it.
70935         Suggested by Eric Blake.
70936
70937 2007-04-26  Bruno Haible  <bruno@clisp.org>
70938
70939         Ensure fseeko, ftello are declared on glibc systems.
70940         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70941         * modules/fseeko (configure.ac-early): Likewise.
70942         * modules/ftello (configure.ac-early): Likewise.
70943         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70944         AC_FUNC_FSEEKO for this.
70945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70946         (gl_CHECK_FSEEKO): Remove macro.
70947
70948 2007-04-26  Bruno Haible  <bruno@clisp.org>
70949
70950         * tests/test-fflush.c (main): Also check the ftell result after
70951         fflush and fseek/fseeko.
70952         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70953         file descriptor position cache in the stream.
70954         * lib/fseeko.c (rpl_fseeko): Likewise.
70955
70956 2007-04-26  Bruno Haible  <bruno@clisp.org>
70957
70958         * modules/fflush-tests (Depends-on): Add fseeko.
70959
70960 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70961             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70962
70963         * lib/argz_.h: ensure error_t definition is obtained in same
70964         mechanism system argz.h would have.
70965         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70966         argz facilities are known bad.  Err on the side of caution if
70967         cross-compiling.
70968
70969 2007-04-25  Eric Blake  <ebb9@byu.net>
70970
70971         * lib/fpurge.c (includes): Use stdlib.h for free.
70972         * tests/test-fflush.c (main): Also test fflush-fseeko.
70973
70974 2007-04-25  Bruno Haible  <bruno@clisp.org>
70975
70976         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70977         * lib/fseeko.c: New file.
70978         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70979         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70980         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70981         gl_FUNC_FSEEKO.
70982         (gl_FUNC_FSEEKO): Invoke it.
70983         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70984         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70985         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70986
70987 2007-04-25  Bruno Haible  <bruno@clisp.org>
70988
70989         * modules/fflush (Depends-on): Add ftello.
70990
70991 2007-04-25  Bruno Haible  <bruno@clisp.org>
70992
70993         * modules/ftello-tests: New file.
70994         * tests/test-ftello.c: New file.
70995
70996         * modules/ftello: New file.
70997         * m4/ftello.m4: New file.
70998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70999         HAVE_FTELLO.
71000         * lib/stdio_.h (ftello): New declaration.
71001         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71002         HAVE_FTELLO.
71003
71004 2007-04-25  Bruno Haible  <bruno@clisp.org>
71005
71006         * modules/fseeko-tests: New file.
71007         * tests/test-fseeko.c: New file.
71008
71009         * modules/fseeko: New file.
71010         * m4/fseeko.m4: New file.
71011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71012         HAVE_FSEEKO.
71013         * lib/stdio_.h (fseeko): New declaration.
71014         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71015         HAVE_FSEEKO.
71016
71017 2007-04-25  Bruno Haible  <bruno@clisp.org>
71018
71019         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71020
71021 2007-04-25  Bruno Haible  <bruno@clisp.org>
71022
71023         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71024         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71025         * tests/test-unistd.c: Likewise.
71026         * tests/test-fcntl.c: Likewise.
71027
71028 2007-04-23  Eric Blake  <ebb9@byu.net>
71029
71030         * lib/fflush.c: Fix missing include.
71031         Reported by Bruno Haible.
71032
71033 2007-04-23  Bruno Haible  <bruno@clisp.org>
71034
71035         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71036         Reported by Eric Blake.
71037
71038 2007-04-23  Bruno Haible  <bruno@clisp.org>
71039
71040         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71041
71042 2007-04-23  Bruno Haible  <bruno@clisp.org>
71043
71044         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71045
71046 2007-04-23  Bruno Haible  <bruno@clisp.org>
71047
71048         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71049         Needed on HP-UX 11.
71050
71051 2007-04-16  Eric Blake  <ebb9@byu.net>
71052
71053         Make fflush rely on fpurge.
71054         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71055         open coding all variants.
71056         * modules/fflush (Depends-on): Add fpurge and unistd.
71057         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71058         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71059
71060         Fix --with-tests compilation on cygwin.
71061         * modules/argmatch-tests (Makefile.am): List gnulib library first
71062         in LDADD.
71063         * modules/argp-tests (Makefile.am): Likewise.
71064         * modules/array-list-tests (Makefile.am): Likewise.
71065         * modules/array-oset-tests (Makefile.am): Likewise.
71066         * modules/avltree-list-tests (Makefile.am): Likewise.
71067         * modules/avltree-oset-tests (Makefile.am): Likewise.
71068         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71069         * modules/carray-list-tests (Makefile.am): Likewise.
71070         * modules/dirname-tests (Makefile.am): Likewise.
71071         * modules/frexp-tests (Makefile.am): Likewise.
71072         * modules/isnanl-tests (Makefile.am): Likewise.
71073         * modules/linked-list-tests (Makefile.am): Likewise.
71074         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71075         * modules/lock-tests (Makefile.am): Likewise.
71076         * modules/rbtree-list-tests (Makefile.am): Likewise.
71077         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71078         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71079         * modules/tls-tests (Makefile.am): Likewise.
71080         * modules/tsearch-tests (Makefile.am): Likewise.
71081         * modules/xvasprintf-tests (Makefile.am): Likewise.
71082
71083         Fix fpurge for cygwin.
71084         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71085         value.
71086         * modules/fpurge-tests (Depends-on): Clean up trash.
71087
71088 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71089
71090         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71091
71092         * m4/autobuild.m4: Re-indent.
71093
71094 2007-04-13  Bruno Haible  <bruno@clisp.org>
71095
71096         * modules/fpurge-tests: New file.
71097         * tests/test-fpurge.c: New file.
71098
71099         * modules/fpurge: New file.
71100         * lib/fpurge.h: New file.
71101         * lib/fpurge.c: New file.
71102         * m4/fpurge.m4: New file.
71103
71104 2007-04-13  Bruno Haible  <bruno@clisp.org>
71105
71106         * modules/fbufmode-tests: New file.
71107         * tests/test-fbufmode.c: New file.
71108
71109         * modules/fbufmode: New file.
71110         * lib/fbufmode.h: New file.
71111         * lib/fbufmode.c: New file.
71112         * m4/fbufmode.m4: New file.
71113
71114 2007-04-13  Bruno Haible  <bruno@clisp.org>
71115
71116         * modules/fwritable-tests: New file.
71117         * tests/test-fwritable.c: New file.
71118
71119         * modules/fwritable: New file.
71120         * lib/fwritable.h: New file.
71121         * lib/fwritable.c: New file.
71122         * m4/fwritable.m4: New file.
71123
71124 2007-04-13  Bruno Haible  <bruno@clisp.org>
71125
71126         * modules/freadable-tests: New file.
71127         * tests/test-freadable.c: New file.
71128
71129         * modules/freadable: New file.
71130         * lib/freadable.h: New file.
71131         * lib/freadable.c: New file.
71132         * m4/freadable.m4: New file.
71133
71134 2007-04-13  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71137         MOSTLYCLEANFILES.
71138
71139 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71140
71141         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71142         gzip bootstrap.conf to avoid dragging in i18n machinery.
71143         (gnulib_tool_option): Use it.
71144
71145 2007-04-13  Bruno Haible  <bruno@clisp.org>
71146
71147         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71148         %F directives.
71149         * tests/test-vasprintf-posix.c (test_function): Likewise.
71150         * tests/test-snprintf-posix.h (test_function): Likewise.
71151         * tests/test-sprintf-posix.h (test_function): Likewise.
71152         * tests/test-fprintf-posix.h (test_function): Likewise.
71153         * tests/test-printf-posix.h (test_function): Likewise.
71154         * tests/test-fprintf-posix.out: Likewise.
71155
71156 2007-04-13  Bruno Haible  <bruno@clisp.org>
71157
71158         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71159         * modules/tls-tests (configure.ac): Likewise.
71160         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71161
71162 2007-04-13  Bruno Haible  <bruno@clisp.org>
71163
71164         * lib/tls.c (glthread_tls_get): Fix return type.
71165         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71166
71167 2007-04-12  Eric Blake  <ebb9@byu.net>
71168
71169         * modules/gettime (Depends-on): Remove gettime.
71170         Reported by Dmitry V. Levin.
71171
71172 2007-04-12  Bruno Haible  <bruno@clisp.org>
71173
71174         * modules/fflush (Include): Mention <stdio.h>.
71175         * modules/strtoimax (Include): Mention <inttypes.h>.
71176         * modules/strtoumax (Include): Likewise.
71177
71178 2007-04-12  Eric Blake  <ebb9@byu.net>
71179
71180         * .cvsignore: New file.
71181         * .gitignore: Likewise.
71182
71183 2007-04-12  Bruno Haible  <bruno@clisp.org>
71184
71185         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71186         not before, since $(LDADD) often contains libgnu.a.
71187         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71188         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71189         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71190         Needed on Cygwin.
71191
71192 2007-04-12  Eric Blake  <ebb9@byu.net>
71193
71194         Work around glibc's failure to flush stdin on fclose.
71195         * lib/closein.c (close_stdin): Flush stdin before closing.
71196
71197         Work around glibc's failure to reset seekable stdin on exit.
71198         * modules/closein: New module.
71199         * lib/closein.c: New file.
71200         * lib/closein.h: Likewise.
71201         * m4/closein.m4: Likewise.
71202         * MODULES.html.sh (File stream based Input/Output): Document it.
71203
71204 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71205
71206         * gnulib-tool: Rename generated 'autobuild' script to
71207         'do-autobuild' in --create-megatestdir output.
71208
71209         * doc/gnulib.texi (Build robot for gnulib): Fix.
71210
71211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71212
71213         * modules/sysexits (Depends-on): Add absolute-header.
71214
71215 2007-04-12  Eric Blake  <ebb9@byu.net>
71216
71217         No need to preserve errno on success.
71218         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71219         Reported by Bruno Haible.
71220
71221 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71222
71223         * MODULES.html.sh (Support for maintaining and releasing
71224         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71225
71226 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71227
71228         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71229
71230 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71231
71232         * modules/autobuild: New module.
71233
71234         * m4/autobuild.m4: New file.
71235
71236 2007-04-11  Bruno Haible  <bruno@clisp.org>
71237
71238         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71239         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71243         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71244         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71249         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71250         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71251         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71255         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71256         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71258         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71259         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71266         Reported by Eric Blake.
71267
71268 2007-04-11  Bruno Haible  <bruno@clisp.org>
71269
71270         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71271
71272 2007-04-10  Bruno Haible  <bruno@clisp.org>
71273
71274         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71275         for NaN and Infinity. Needed on FreeBSD 6.1.
71276         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71277         regarding results for "%010a" of Infinity and NaN.
71278         * tests/test-vasprintf-posix.c (test_function): Likewise.
71279         * tests/test-snprintf-posix.h (test_function): Likewise.
71280         * tests/test-sprintf-posix.h (test_function): Likewise.
71281         * tests/test-fprintf-posix.h (test_function): Likewise.
71282         * tests/test-printf-posix.h (test_function): Likewise.
71283         * tests/test-fprintf-posix.out: Likewise.
71284
71285 2007-04-10  Bruno Haible  <bruno@clisp.org>
71286
71287         * modules/locale-tests: New file.
71288         * tests/test-locale.c: New file.
71289
71290         * modules/locale: New file.
71291         * lib/locale_.h: New file.
71292         * m4/locale_h.m4: New file.
71293
71294 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71295             Bruno Haible  <bruno@clisp.org>
71296
71297         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71298         be determined, test for availability of the copysignf, copysign,
71299         copysignl functions.
71300         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71301         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71302         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71303
71304 2007-04-09  Eric Blake  <ebb9@byu.net>
71305
71306         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71307         * modules/stdio (Makefile.am): Support fflush.
71308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71309         * modules/fflush: New file.
71310         * lib/fflush.c: Likewise.
71311         * m4/fflush.m4: Likewise.
71312         * modules/fflush-tests: New test.
71313         * tests/test-fflush.c: Likewise.
71314         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71315
71316 2007-04-06  Bruno Haible  <bruno@clisp.org>
71317
71318         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71319         (VASNPRINTF): Use signbit for faster determination whether to print a
71320         minus sign.
71321         * modules/vasnprintf (Files): Remove lib/float+.h.
71322         * modules/fprintf-posix (Depends-on): Add signbit.
71323         * modules/snprintf-posix (Depends-on): Likewise.
71324         * modules/sprintf-posix (Depends-on): Likewise.
71325         * modules/vasnprintf-posix (Depends-on): Likewise.
71326         * modules/vasprintf-posix (Depends-on): Likewise.
71327         * modules/vfprintf-posix (Depends-on): Likewise.
71328         * modules/vsnprintf-posix (Depends-on): Likewise.
71329         * modules/vsprintf-posix (Depends-on): Likewise.
71330
71331 2007-04-06  Bruno Haible  <bruno@clisp.org>
71332
71333         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71334         * tests/test-frexpl.c (main): Likewise.
71335         * tests/test-ldexpl.c (main): Likewise.
71336         * modules/frexp-tests (Depends-on): Add signbit.
71337         * modules/frexpl-tests (Depdends-on): Likewise.
71338         * modules/ldexpl-tests (Depdends-on): Likewise.
71339
71340 2007-04-06  Bruno Haible  <bruno@clisp.org>
71341
71342         * modules/signbit-tests: New file.
71343         * tests/test-signbit.c: New file.
71344
71345         * modules/signbit: New file.
71346         * lib/signbitf.c: New file.
71347         * lib/signbitd.c: New file.
71348         * lib/signbitl.c: New file.
71349         * m4/signbit.m4: New file.
71350         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71351         (signbit): New macro.
71352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71353         REPLACE_SIGNBIT.
71354         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71355         REPLACE_FREXPL into math.h.
71356
71357 2007-04-06  Bruno Haible  <bruno@clisp.org>
71358
71359         * modules/isnanf-nolibm-tests: New file.
71360         * tests/test-isnanf.c: New file.
71361
71362         * modules/isnanf-nolibm: New file.
71363         * lib/isnanf.h: New file.
71364         * lib/isnanf.c: New file.
71365         * lib/isnan.c: Consider the USE_FLOAT macro.
71366         * m4/isnanf.m4: New file.
71367
71368 2007-04-06  Bruno Haible  <bruno@clisp.org>
71369
71370         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71371         (Link): New section.
71372
71373         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71374
71375 2007-04-06  Bruno Haible  <bruno@clisp.org>
71376
71377         Assume the 'long double' type.
71378         * m4/longdouble.m4: Remove file.
71379         * config/srclist.txt: Don't mention longdouble.m4.
71380         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71381         * lib/float+.h: Likewise.
71382         * lib/frexp.c: Likewise.
71383         * lib/printf-args.h: Likewise.
71384         * lib/printf-args.c: Likewise.
71385         * lib/printf-frexp.c: Likewise.
71386         * lib/printf-parse.c: Likewise.
71387         * lib/vasnprintf.c: Likewise.
71388         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71389         * m4/intl.m4: Likewise.
71390         * m4/isnanl.m4: Likewise.
71391         * m4/printf.m4: Likewise.
71392         * m4/printf-frexpl.m4: Likewise.
71393         * m4/vasnprintf.m4: Likewise.
71394         * modules/allocsa (Files): Remove m4/longdouble.m4.
71395         * modules/gettext (Files): Likewise.
71396         * modules/relocatable-prog-wrapper (Files): Likewise.
71397         * modules/vasnprintf (Files): Likewise.
71398         * modules/isnanl (Files): Likewise.
71399         (Include): Simplify.
71400         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71401         (Include): Simplify.
71402         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71403         (Include): Simplify.
71404         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71405         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71406         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71407         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71408         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71409         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71410         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71411         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71412         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71413         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71414         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71415         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71416         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71417         * tests/test-isnanl.c: Likewise.
71418         * tests/test-snprintf-posix.h: Likewise.
71419         * tests/test-sprintf-posix.h: Likewise.
71420         * tests/test-vasnprintf-posix.c: Likewise.
71421         * tests/test-vasnprintf-posix2.c: Likewise.
71422         * tests/test-vasprintf-posix.c: Likewise.
71423
71424 2007-04-06  Bruno Haible  <bruno@clisp.org>
71425
71426         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71427         * lib/math_.h [__DECC]: Include the overridden include file through
71428         #include_next, outside the double-inclusion guard.
71429         * lib/stdio_.h [__DECC]: Likewise.
71430         * lib/stdlib_.h [__DECC]: Likewise.
71431         * lib/string_.h [__DECC]: Likewise.
71432         * lib/time_.h [__DECC]: Likewise.
71433         * lib/wchar_.h [__DECC]: Likewise.
71434         * lib/wctype_.h [__DECC]: Likewise.
71435         * lib/inttypes_.h [__DECC]: Likewise.
71436         Reported by Albert Chin <china@thewrittenword.com> in
71437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71438
71439 2007-04-04  Eric Blake  <ebb9@byu.net>
71440
71441         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71442         1.5.x.
71443
71444 2007-04-04  Bruno Haible  <bruno@clisp.org>
71445
71446         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71447         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71448
71449 2007-04-04  Bruno Haible  <bruno@clisp.org>
71450
71451         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71452         results for "%010a" of Infinity and NaN.
71453         * tests/test-vasprintf-posix.c (test_function): Likewise.
71454         * tests/test-snprintf-posix.h (test_function): Likewise.
71455         * tests/test-sprintf-posix.h (test_function): Likewise.
71456         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71457         * tests/test-printf-posix.h (test_function): Likewise.
71458         * tests/test-fprintf-posix.out: Update.
71459         Needed for FreeBSD 6.1.
71460
71461 2007-04-04  Bruno Haible  <bruno@clisp.org>
71462
71463         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71464         directly used by the gnulib modules nor by gnulib-tool.
71465
71466 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * DEPENDENCIES: Give overall description of version dependency
71469         desirability.  Use more-typical names for apps.
71470         Add shell, coreutils, diffutils, grep, tar, gzip.
71471
71472 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71473
71474         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71475
71476 2007-04-04  Karl Berry  <karl@gnu.org>
71477
71478         * MODULES.html.sh (func_module): missing '.
71479
71480 2007-04-03  Bruno Haible  <bruno@clisp.org>
71481
71482         * modules/argmatch-tests (Makefile.am): New variable
71483         test_argmatch_LDADD.
71484         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71485         * modules/array-list-tests (Makefile.am): New variable
71486         test_array_list_LDADD.
71487         * modules/array-oset-tests (Makefile.am): New variable
71488         test_array_oset_LDADD.
71489         * modules/avltree-list-tests (Makefile.am): New variable
71490         test_avltree_list_LDADD.
71491         * modules/avltree-oset-tests (Makefile.am): New variable
71492         test_avltree_oset_LDADD.
71493         * modules/avltreehash-list-tests (Makefile.am): New variable
71494         test_avltreehash_list_LDADD.
71495         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71496         test_canonicalize_lgpl_LDADD.
71497         * modules/carray-list-tests (Makefile.am): New variable
71498         test_carray_list_LDADD.
71499         * modules/dirname-tests (Makefile.am): New variable
71500         test_dirname_LDADD.
71501         * modules/linked-list-tests (Makefile.am): New variable
71502         test_linked_list_LDADD.
71503         * modules/linkedhash-list-tests (Makefile.am): New variable
71504         test_linkedhash_list_LDADD.
71505         * modules/rbtree-list-tests (Makefile.am): New variable
71506         test_rbtree_list_LDADD.
71507         * modules/rbtree-oset-tests (Makefile.am): New variable
71508         test_rbtree_oset_LDADD.
71509         * modules/rbtreehash-list-tests (Makefile.am): New variable
71510         test_rbtreehash_list_LDADD.
71511         * modules/xvasprintf-tests (Makefile.am): New variable
71512         test_xvasprintf_LDADD.
71513         Reported by Eric Blake.
71514
71515 2007-04-03  Eric Blake  <ebb9@byu.net>
71516
71517         * DEPENDENCIES: Weaken m4 requirements.
71518
71519 2007-04-03  Bruno Haible  <bruno@clisp.org>
71520
71521         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71522         * modules/isnanl-tests (configure.ac): Likewise.
71523
71524 2007-04-03  Ben Pfaff  <blp@gnu.org>
71525
71526         * modules/iconv_open: Add $(srcdir)/ to source directory
71527         references in Makefile fragments that call gperf, to fix VPATH
71528         builds.
71529
71530 2007-04-03  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71533         * lib/ldexpl.c: Undo last change.
71534
71535 2007-04-03  Bruno Haible  <bruno@clisp.org>
71536
71537         * modules/printf-frexpl (Depends-on): Undo last change.
71538         (Files): Add m4/ldexpl.m4.
71539
71540 2007-04-03  Bruno Haible  <bruno@clisp.org>
71541
71542         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71543         * modules/isnanl (Link): New section.
71544
71545         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71546         * modules/frexp (Link): New section.
71547
71548         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71549         * modules/frexpl (Link): New section.
71550
71551         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71552         * modules/ldexpl (Link): New section.
71553
71554 2007-04-03  Bruno Haible  <bruno@clisp.org>
71555
71556         * modules/TEMPLATE-EXTENDED: New file.
71557         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71558
71559 2007-04-03  Bruno Haible  <bruno@clisp.org>
71560
71561         * DEPENDENCIES: New file.
71562         Suggested by Simon Josefsson.
71563
71564 2007-04-03  Bruno Haible  <bruno@clisp.org>
71565
71566         * doc/gnulib.texi: Escape @.
71567
71568 2007-04-03  James Youngman  <jay@gnu.org>
71569         and Paul Eggert  <eggert@cs.ucla.edu>
71570
71571         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71572         birthtime on all systems that have birthtime, not just those which
71573         use st_birthtimensec rather than st_birthtim.  Putting zero in
71574         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71575         that the birth time is not available for files on an NFS mount.
71576
71577 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71578
71579         * modules/memxor: Move back from crypto/, suggested by Bruno.
71580         * modules/crypto/hmac-sha1: Fix memxor dependency.
71581
71582         * modules/crypto/gc: Moved from ../.
71583
71584 2007-04-02  Eric Blake  <ebb9@byu.net>
71585
71586         * lib/ldexpl.c (includes): Avoid libm.
71587
71588         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71589
71590 2007-04-02  Bruno Haible  <bruno@clisp.org>
71591
71592         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71593         on IRIX.
71594
71595 2007-04-02  Bruno Haible  <bruno@clisp.org>
71596
71597         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71598         x86 or x86_64 platforms running MacOS X.
71599         Reported by Ryan Schmidt <@ryandesign.com>.
71600
71601 2007-04-02  Bruno Haible  <bruno@clisp.org>
71602
71603         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71604         i386.
71605
71606 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71607
71608         * modules/crypto/arcfour: Moved from ../.
71609         * modules/crypto/arcfour-tests: Moved from ../.
71610         * modules/crypto/arctwo: Moved from ../.
71611         * modules/crypto/arctwo-tests: Moved from ../.
71612         * modules/crypto/des: Moved from ../.
71613         * modules/crypto/des-tests: Moved from ../.
71614         * modules/crypto/gc-arcfour: Moved from ../.
71615         * modules/crypto/gc-arcfour-tests: Moved from ../.
71616         * modules/crypto/gc-arctwo: Moved from ../.
71617         * modules/crypto/gc-arctwo-tests: Moved from ../.
71618         * modules/crypto/gc-des: Moved from ../.
71619         * modules/crypto/gc-des-tests: Moved from ../.
71620         * modules/crypto/gc-hmac-md5: Moved from ../.
71621         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71622         * modules/crypto/gc-hmac-sha1: Moved from ../.
71623         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71624         * modules/crypto/gc-md2: Moved from ../.
71625         * modules/crypto/gc-md2-tests: Moved from ../.
71626         * modules/crypto/gc-md4: Moved from ../.
71627         * modules/crypto/gc-md4-tests: Moved from ../.
71628         * modules/crypto/gc-md5: Moved from ../.
71629         * modules/crypto/gc-md5-tests: Moved from ../.
71630         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71631         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71632         * modules/crypto/gc-random: Moved from ../.
71633         * modules/crypto/gc-rijndael: Moved from ../.
71634         * modules/crypto/gc-rijndael-tests: Moved from ../.
71635         * modules/crypto/gc-sha1: Moved from ../.
71636         * modules/crypto/gc-sha1-tests: Moved from ../.
71637         * modules/crypto/gc-tests: Moved from ../.
71638         * modules/crypto/hmac-md5: Moved from ../.
71639         * modules/crypto/hmac-md5-tests: Moved from ../.
71640         * modules/crypto/hmac-sha1: Moved from ../.
71641         * modules/crypto/hmac-sha1-tests: Moved from ../.
71642         * modules/crypto/md2: Moved from ../.
71643         * modules/crypto/md2-tests: Moved from ../.
71644         * modules/crypto/md4: Moved from ../.
71645         * modules/crypto/md4-tests: Moved from ../.
71646         * modules/crypto/md5: Moved from ../.
71647         * modules/crypto/md5-tests: Moved from ../.
71648         * modules/crypto/memxor: Moved from ../.
71649         * modules/crypto/rijndael: Moved from ../.
71650         * modules/crypto/rijndael-tests: Moved from ../.
71651         * modules/crypto/sha1: Moved from ../.
71652
71653 2007-03-30  James Youngman  <jay@gnu.org>
71654
71655         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71656         rename() to change the ctime of a file (because ctime is unaffected
71657         by rename on jfs2 on AIX 5.1).
71658         (main): Start by doing cleanup, in case a previous run failed leaving
71659         test files behind.
71660
71661 2007-03-31  Bruno Haible  <bruno@clisp.org>
71662
71663         Support old proprietary implementations of iconv.
71664         * modules/iconv_open: New file.
71665         * lib/iconv_.h: New file.
71666         * m4/iconv_h.m4: New file.
71667         * lib/iconv_open.c: New file.
71668         * lib/iconv_open-aix.gperf: New file.
71669         * lib/iconv_open-hpux.gperf: New file.
71670         * lib/iconv_open-irix.gperf: New file.
71671         * lib/iconv_open-osf.gperf: New file.
71672         * m4/iconv_open.m4: New file.
71673         * modules/linebreak (Depends-on): Add iconv_open.
71674         * modules/striconv (Depends-on): Likewise.
71675         * modules/striconveh (Depends-on): Likewise.
71676         * modules/unicodeio (Depends-on): Likewise.
71677         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71678         (iconv_t)(-1).
71679         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71680         conversion if cd is (iconv_t)(-1).
71681         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71682         is not possible.
71683
71684 2007-03-31  Bruno Haible  <bruno@clisp.org>
71685
71686         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71687         work on Solaris either. Protect also second use of "autodetect_jp".
71688
71689 2007-03-31  Bruno Haible  <bruno@clisp.org>
71690
71691         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71692         the function is not present.
71693
71694 2007-03-31  Bruno Haible  <bruno@clisp.org>
71695
71696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71697         the function is not present.
71698
71699 2007-03-31  Bruno Haible  <bruno@clisp.org>
71700
71701         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71702         a bug in HP-UX iconv_open().
71703
71704 2007-03-31  Bruno Haible  <bruno@clisp.org>
71705
71706         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71707         (Mathematics <math.h>): New section, add fpieee.
71708         (Input/output <stdio.h>): Add fseterr.
71709         (Mathematics <math.h>): New section, add printf-frexp.
71710         (Container data structures): Add sublist.
71711         (Core language properties): Add fpucw, inline.
71712         (Functions for greatest-width integer types <inttypes.h>): Add
71713         imaxabs, imaxdiv, inttypes.
71714         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71715         isnanl-nolibm, ldexp.
71716         (Mathematics <math.h>): New section, add printf-frexpl.
71717         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71718         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71719         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71720         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71721         (Unicode string functions): Add unistr/u*-mbtoucr.
71722         (Java): Add javacomp-script, javaexec-script.
71723         (C#): Add csharpcomp-script, csharpexec-script.
71724         (Support for building libraries and executables): Add havelib,
71725         relocatable-*.
71726         (Support for maintaining and releasing projects): Renamed from
71727         'Support for maintaining and release projects'. Add announce-gen.
71728
71729 2007-03-31  Bruno Haible  <bruno@clisp.org>
71730
71731         * README: Talk primarily about git.
71732         (git and CVS): Renamed from CVS.
71733         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71734         gnulib is available through git.
71735         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71736
71737 2007-03-30  Bruno Haible  <bruno@clisp.org>
71738
71739         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71740         * lib/poll_.h: Likewise.
71741         * lib/stat_.h: Likewise.
71742         * lib/sys_time_.h: Likewise.
71743         * lib/sysexit_.h: Likewise.
71744         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71745         * lib/stdbool_.h: Likewise.
71746         * lib/byteswap_.h: Add double-inclusion guard.
71747
71748 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71749
71750         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71751
71752 2007-03-30  Karl Berry  <karl@gnu.org>
71753
71754         * config/srclist-update: double space after USA in the license
71755         substitution, since that's how it's usually (?) written.
71756
71757 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71760         reported by Bruno Haible.
71761
71762 2007-03-29  Bruno Haible  <bruno@clisp.org>
71763
71764         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71765         a bug in AIX iconv().
71766
71767 2007-03-29  Bruno Haible  <bruno@clisp.org>
71768
71769         * modules/ldexpl-tests: New file.
71770         * tests/test-ldexpl.c: New file.
71771
71772 2007-03-29  Bruno Haible  <bruno@clisp.org>
71773
71774         * lib/ldexpl.c: Include fpucw.h.
71775         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71776         multiplication.
71777         * modules/ldexpl (Depends-on): Add fpucw.
71778
71779 2007-03-29  Bruno Haible  <bruno@clisp.org>
71780
71781         * modules/ldexpl: New file.
71782         * m4/ldexpl.m4: New file.
71783         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71784         set.
71785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71786         REPLACE_LDEXPL.
71787         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71788         REPLACE_LDEXPL.
71789         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71790         gl_FUNC_LDEXPL_WORKS.
71791         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71792         * modules/mathl (Files): Remove lib/ldexpl.c.
71793         (Depends-on): Add ldexpl.
71794
71795 2007-03-29  Bruno Haible  <bruno@clisp.org>
71796
71797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71798
71799 2007-03-29  Bruno Haible  <bruno@clisp.org>
71800
71801         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71802         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71803         and possibly also HP-UX.
71804         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71805         work on AIX, IRIX, HP-UX, OSF/1.
71806         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71807         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71808         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71809         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71810         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71811         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71812
71813 2007-03-29  Bruno Haible  <bruno@clisp.org>
71814
71815         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71816
71817 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71820         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71821
71822 2007-03-29  Eric Blake  <ebb9@byu.net>
71823
71824         * lib/acl-internal.h: Remove redundant include.
71825         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71826         Cygwin when a file is locked.
71827
71828 2007-03-29  Bruno Haible  <bruno@clisp.org>
71829
71830         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71831         file.
71832         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71833
71834 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71835
71836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71837         try to remove a parent directory if the child couldn't be removed
71838         (except for the first rmdir, which could fail because the child
71839         doesn't exist).  Problem reported by Jeff Blaine in
71840         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71841
71842 2007-03-28  Bruno Haible  <bruno@clisp.org>
71843
71844         * lib/striconveh.c (utf8conv_carefully): New function.
71845         (mem_cd_iconveh_internal): Invoke it.
71846
71847 2007-03-28  Bruno Haible  <bruno@clisp.org>
71848
71849         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71850         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71851         input.
71852         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71853         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71854         unistr/u8-uctomb.
71855
71856 2007-03-28  Bruno Haible  <bruno@clisp.org>
71857
71858         * modules/unistr/u8-mbtoucr: New file.
71859         * lib/unistr/u8-mbtoucr.c: New file.
71860         * modules/unistr/u16-mbtoucr: New file.
71861         * lib/unistr/u16-mbtoucr.c: New file.
71862         * modules/unistr/u16-mbtoucr: New file.
71863         * lib/unistr/u16-mbtoucr.c: New file.
71864         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71865
71866 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71867             Bruno Haible  <bruno@clisp.org>
71868
71869         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71870         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71871         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71872
71873         * m4/stdio_h.m4: Add stubs for vasprintf too.
71874
71875         * modules/stdio: Support vasprintf in sed command.
71876
71877         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71878         vasprintf.h.  Add stdio module indicator.
71879
71880         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71881         vasprintf.h.
71882
71883         * lib/vasprintf.h: File removed.
71884
71885         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71886         * lib/vasprintf.c: Ditto.
71887         * lib/xvasprintf.c: Ditto.
71888         * tests/test-vasprintf-posix.c: Ditto.
71889         * tests/test-vasprintf.c: Ditto.
71890
71891 2007-03-27  Bruno Haible  <bruno@clisp.org>
71892
71893         Make vasnprintf multithread-safe.
71894         * lib/vasnprintf.c (decimal_point_char): New function.
71895         (VASNPRINTF): Use it.
71896         Suggested by Simon Josefsson.
71897
71898 2007-03-27  Eric Blake  <ebb9@byu.net>
71899
71900         Support sub-second birthtime on cygwin.
71901         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71902         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71903         (get_stat_birthtime): Also work with st_birthtim.
71904
71905 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71906
71907         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71908         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71909         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71910         (get_stat_birthtime_ns): Simplify compile-time tests.
71911         (get_stat_birthtime): Change the API to look like
71912         get_stat_mtime etc., except return a negative tv_nsec on error.
71913         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71914         Don't check for "spare" fields.
71915         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71916         or for struct stat.st_birthtime, as these tests aren't used.
71917         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71918
71919 2007-03-27  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/stat-time.h: Include <sys/stat.h>.
71922
71923 2007-03-27  James Youngman  <jay@gnu.org>
71924
71925         * lib/stat-time.h (get_stat_birthtime): New function for
71926           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71927         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71928           and its variants.
71929         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71930         * modules/stat-time-test: New file.
71931         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71932
71933 2007-03-26  Bruno Haible  <bruno@clisp.org>
71934
71935         Better support of signalling NaNs.
71936         * lib/atanl.c: Include isnanl.h.
71937         (atanl): Perform test for NaN at the beginning of the function and
71938         through a call to isnanl.
71939         * lib/cosl.c: Include isnanl.h.
71940         (cosl): Perform test for NaN at the beginning of the function and
71941         through a call to isnanl.
71942         * lib/ldexpl.c: Include isnanl.h.
71943         (ldexpl): Perform test for NaN through a call to isnanl.
71944         * lib/logl.c: Include isnanl.h.
71945         (logl): Perform test for NaN at the beginning of the function and
71946         through a call to isnanl.
71947         * lib/sinl.c: Include isnanl.h.
71948         (sinl): Perform test for NaN at the beginning of the function and
71949         through a call to isnanl.
71950         * lib/sqrtl.c: Include isnanl.h.
71951         (sqrtl): Perform test for NaN at the beginning of the function and
71952         through a call to isnanl.
71953         * lib/tanl.c: Include isnanl.h.
71954         (tanl): Perform test for NaN at the beginning of the function and
71955         through a call to isnanl.
71956         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71957         * modules/mathl (Depends-on): Add isnanl.
71958
71959 2007-03-26  Eric Blake  <ebb9@byu.net>
71960
71961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71962         regression in logic sense of previous patch.
71963
71964 2007-03-26  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71967         unportable shell command "if ! ...".
71968         Reported by Ralf Wildenhues.
71969
71970 2007-03-25  Bruno Haible  <bruno@clisp.org>
71971
71972         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71973         <sysexits.h> file, and only add EX_CONFIG.
71974         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71975         absolute file name and whether it is sufficient. Substitute also
71976         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71977         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71978         ABSOLUTE_SYSEXITS_H into sysexits.h.
71979
71980 2007-03-25  Bruno Haible  <bruno@clisp.org>
71981
71982         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71983         hints is NULL.
71984
71985 2007-03-25  Bruno Haible  <bruno@clisp.org>
71986
71987         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71988         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71989
71990 2007-03-25  Bruno Haible  <bruno@clisp.org>
71991
71992         * lib/vasnprintf.c: Include langinfo.h.
71993         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71994         multithread-safe.
71995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71998         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71999         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72000         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72004         Reported by Simon Josefsson.
72005
72006 2007-03-25  Bruno Haible  <bruno@clisp.org>
72007
72008         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72009         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72010         * modules/vasnprintf (Depends-on): Add stdint.
72011
72012 2007-03-25  Bruno Haible  <bruno@clisp.org>
72013
72014         * modules/fpieee: New file.
72015         * m4/fpieee.m4: New file.
72016         * modules/isnan-nolibm (Depends-on): Add fpieee.
72017         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72018         * modules/isnanl (Depends-on): Add fpieee.
72019
72020 2007-03-25  Bruno Haible  <bruno@clisp.org>
72021
72022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72023
72024 2007-03-25  Bruno Haible  <bruno@clisp.org>
72025
72026         Avoid test failures on IRIX 6.5.
72027         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72028         (main): Use it.
72029         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72030         macros.
72031         (main): Use them.
72032
72033 2007-03-25  Bruno Haible  <bruno@clisp.org>
72034
72035         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72036         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72037         exists but doesn't work.
72038         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72039         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72041         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72042         math.h.
72043
72044 2007-03-25  Bruno Haible  <bruno@clisp.org>
72045
72046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72047         returns inf. Needed on IRIX 6.5.
72048
72049 2007-03-25  Bruno Haible  <bruno@clisp.org>
72050
72051         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72052         (main): Use isnanl instead of x != x idiom.
72053         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72054
72055         * tests/test-frexp.c: Include isnan.h.
72056         (main): Use isnan instead of x != x idiom.
72057         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72058
72059 2007-03-25  Bruno Haible  <bruno@clisp.org>
72060
72061         * tests/test-frexp.c (NaN): New function/macro.
72062         (main): Use it instead of 0.0 / 0.0.
72063         * tests/test-isnan.c (NaN): New function/macro.
72064         (main): Use it instead of 0.0 / 0.0.
72065         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72066         (test_function): Use it instead of 0.0 / 0.0.
72067         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72068         (test_function): Use it instead of 0.0 / 0.0.
72069         * tests/test-snprintf-posix.h (NaN): New function/macro.
72070         (test_function): Use it instead of 0.0 / 0.0.
72071         * tests/test-sprintf-posix.h (NaN): New function/macro.
72072         (test_function): Use it instead of 0.0 / 0.0.
72073         * tests/test-fprintf-posix.h (NaN): New function/macro.
72074         (test_function): Use it instead of 0.0 / 0.0.
72075         * tests/test-printf-posix.h (NaN): New function/macro.
72076         (test_function): Use it instead of 0.0 / 0.0.
72077
72078         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72079
72080 2007-03-25  Bruno Haible  <bruno@clisp.org>
72081
72082         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72083
72084 2007-03-25  Bruno Haible  <bruno@clisp.org>
72085
72086         * lib/regexec.c (merge_state_with_log): Make static.
72087
72088 2007-03-25  Bruno Haible  <bruno@clisp.org>
72089
72090         * lib/trigl.c (kernel_rem_pio2): Make static.
72091
72092 2007-03-25  Bruno Haible  <bruno@clisp.org>
72093
72094         * lib/sincosl.c (sincosl_table): Make static.
72095
72096 2007-03-25  Bruno Haible  <bruno@clisp.org>
72097
72098         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72099         if the compiler does not support C99.
72100
72101 2007-03-25  Bruno Haible  <bruno@clisp.org>
72102
72103         * modules/time (Makefile.am): Ensure all rule action lines start with a
72104         tab.
72105
72106 2007-03-24  Bruno Haible  <bruno@clisp.org>
72107
72108         * modules/tsearch-tests: New file.
72109         * tests/test-tsearch.sh: New file.
72110         * tests/test-tsearch.c: New file, mostly copied from glibc.
72111
72112         * modules/search-tests: New file.
72113         * tests/test-search.c: New file.
72114
72115         * modules/search: New file.
72116         * lib/search_.h: New file, incorporating lib/tsearch.h.
72117         * m4/search_h.m4: New file.
72118         * lib/tsearch.h: Remove file.
72119         * lib/tsearch.c: Include search.h instead of tsearch.h.
72120         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72121         HAVE_TSEARCH.
72122         * modules/tsearch (Files): Remove lib/tsearch.h.
72123         (Depends-on): Add search.
72124         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72125         (Include): Change tsearch.h into search.h.
72126
72127 2007-03-24  Bruno Haible  <bruno@clisp.org>
72128
72129         * modules/fpucw: New file.
72130         * lib/fpucw.h: New file.
72131         * lib/frexp.c: Include fpucw.h.
72132         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72133         (FUNC): Use them.
72134         * lib/printf-frexp.c: Include fpucw.h.
72135         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72136         (FUNC): Use them.
72137         * lib/vasnprintf.c: Include fpucw.h.
72138         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72139         'long double' calculations.
72140         * tests/test-frexpl.c: Include fpucw.h.
72141         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72142         * tests/test-printf-frexpl.c: Include fpucw.h.
72143         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72144         * modules/frexpl (Depends-on): Add fpucw.
72145         * modules/printf-frexpl (Depends-on): Likewise.
72146         * modules/fprintf-posix (Depends-on): Likewise.
72147         * modules/snprintf-posix (Depends-on): Likewise.
72148         * modules/sprintf-posix (Depends-on): Likewise.
72149         * modules/vasnprintf-posix (Depends-on): Likewise.
72150         * modules/vasprintf-posix (Depends-on): Likewise.
72151         * modules/vfprintf-posix (Depends-on): Likewise.
72152         * modules/vsnprintf-posix (Depends-on): Likewise.
72153         * modules/vsprintf-posix (Depends-on): Likewise.
72154         * modules/frexpl-tests (Depends-on): Likewise.
72155         * modules/printf-frexpl-tests (Depends-on): Likewise.
72156
72157 2007-03-24  Bruno Haible  <bruno@clisp.org>
72158
72159         * lib/float+.h: New file.
72160         * lib/isnan.c: Include float+.h.
72161         (SIZE): New macro.
72162         (FUNC): Compare only SIZE bytes of the value.
72163         * lib/vasnprintf.c: Include float+.h.
72164         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72165         SIZEOF_LDBL or SIZEOF_DBL bytes.
72166         * modules/isnan-nolibm (Files): Add lib/float+.h.
72167         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72168         * modules/isnanl (Files): Add lib/float+.h.
72169         * modules/vasnprintf (Files): Add lib/float+.h.
72170
72171 2007-03-24  Bruno Haible  <bruno@clisp.org>
72172
72173         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72174         include isnanl-nolibm.h.
72175
72176 2007-03-24  Bruno Haible  <bruno@clisp.org>
72177
72178         * tests/test-read-file.c (main): Don't produce spurious output for
72179         expected situations. Make the test fail if it encountered unexpected
72180         results.
72181
72182 2007-03-24  Bruno Haible  <bruno@clisp.org>
72183
72184         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72185         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72186
72187 2007-03-24  Bruno Haible  <bruno@clisp.org>
72188
72189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72190
72191 2007-03-24  Bruno Haible  <bruno@clisp.org>
72192
72193         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72194         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72195
72196         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72197         * modules/utf8-ucs4: Turn into a symbolic link to module
72198         unistr/u8-mbtouc.
72199
72200         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72201         utf8-ucs4-unsafe.
72202         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72203         unistr/u8-mbtouc-unsafe.
72204
72205         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72206         * modules/utf16-ucs4: Turn into a symbolic link to module
72207         unistr/u16-mbtouc.
72208
72209         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72210         utf16-ucs4-unsafe.
72211         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72212         unistr/u16-mbtouc-unsafe.
72213
72214         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72215         * modules/ucs4-utf8: Turn into a symbolic link to module
72216         unistr/u8-ubtomb.
72217
72218         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72219         * modules/ucs4-utf16: Turn into a symbolic link to module
72220         unistr/u16-ubtomb.
72221
72222 2007-03-24  Bruno Haible  <bruno@clisp.org>
72223
72224         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72225         Enable the function only if HAVE_INLINE.
72226         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72227         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72228         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72229         Enable the function only if HAVE_INLINE.
72230         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72231         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72232         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72233         Enable the function only if HAVE_INLINE.
72234         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72235         Enable the function only if HAVE_INLINE.
72236         * modules/utf8-ucs4: Update.
72237         * modules/utf8-ucs4-unsafe: Update.
72238         * modules/utf16-ucs4: Update.
72239         * modules/utf16-ucs4-unsafe: Update.
72240         * modules/ucs4-utf8: Update.
72241         * modules/ucs4-utf16: Update.
72242
72243 2007-03-24  Bruno Haible  <bruno@clisp.org>
72244
72245         * lib/utf8-ucs4.h: Remove file.
72246         * lib/utf8-ucs4-unsafe.h: Remove file.
72247         * lib/utf16-ucs4.h: Remove file.
72248         * lib/utf16-ucs4-unsafe.h: Remove file.
72249         * lib/ucs4-utf8.h: Remove file.
72250         * lib/ucs4-utf16.h: Remove file.
72251         * lib/unistr.h: Include their previous contents.
72252         * m4/utf-ucs4.m4: Remove file.
72253         * m4/ucs4-utf.m4: Remove file.
72254         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72255         (Depends-on): Add unistr/base.
72256         (configure.ac): Remove gl_UTF_UCS4.
72257         (Makefile.am): Update.
72258         (Include): Change to unistr.h.
72259         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72260         (Depends-on): Add unistr/base.
72261         (configure.ac): Remove gl_UTF_UCS4.
72262         (Makefile.am): Update.
72263         (Include): Change to unistr.h.
72264         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72265         (Depends-on): Add unistr/base.
72266         (configure.ac): Remove gl_UTF_UCS4.
72267         (Makefile.am): Update.
72268         (Include): Change to unistr.h.
72269         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72270         (Depends-on): Add unistr/base.
72271         (configure.ac): Remove gl_UTF_UCS4.
72272         (Makefile.am): Update.
72273         (Include): Change to unistr.h.
72274         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72275         (Depends-on): Add unistr/base.
72276         (configure.ac): Remove gl_UCS4_UTF.
72277         (Makefile.am): Update.
72278         (Include): Change to unistr.h.
72279         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72280         (Depends-on): Add unistr/base.
72281         (configure.ac): Remove gl_UCS4_UTF.
72282         (Makefile.am): Update.
72283         (Include): Change to unistr.h.
72284         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72285         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72286         utf8-ucs4-unsafe.h.
72287         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72288         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72289         utf16-ucs4-unsafe.h.
72290         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72291         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72292         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72293         * lib/unistr/u8-strchr.c: Likewise.
72294         * lib/unistr/u8-strrchr.c: Likewise.
72295         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72296         * lib/unistr/u16-strchr.c: Likewise.
72297         * lib/unistr/u16-strrchr.c: Likewise.
72298         * lib/striconveh.c: Update.
72299         * lib/linebreak.c: Update.
72300
72301 2007-03-24  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72304         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72305
72306 2007-03-22  Bruno Haible  <bruno@clisp.org>
72307
72308         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72309
72310 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72311
72312         * MODULES.html.sh (File system functions): New module write-any-file.
72313         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72314         * m4/write-any-file.m4: New files.
72315
72316 2007-03-23  Eric Blake  <ebb9@byu.net>
72317
72318         * gnulib-tool: Rearrange space-tab sequences, since some editors
72319         like to eat them.
72320
72321 2007-03-23  Eric Blake  <ebb9@byu.net>
72322
72323         * lib/version-etc.c (version_etc_va): Update license wording to
72324         be more concise.  Recommended by Richard Stallman.
72325
72326 2007-03-22  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/poll.c (MSG_PEEK): New fallback definition.
72329
72330 2007-03-22  Bruno Haible  <bruno@clisp.org>
72331
72332         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72333         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72334         (main): Update.
72335         Fixes a compilation error on BeOS.
72336
72337 2007-03-22  Bruno Haible  <bruno@clisp.org>
72338
72339         * modules/frexpl-tests: New file.
72340         * tests/test-frexpl.c: New file.
72341
72342         * modules/frexpl: New file.
72343         * m4/frexpl.m4: New file.
72344         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72345         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72347         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72348         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72349         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72350
72351 2007-03-22  Bruno Haible  <bruno@clisp.org>
72352
72353         * lib/frexpl.c: Share code with lib/frexp.c.
72354         * modules/mathl (Files): Add lib/frexp.c.
72355         (Depends-on): Add isnanl-nolibm.
72356
72357 2007-03-22  Bruno Haible  <bruno@clisp.org>
72358
72359         * modules/printf-frexp (Files): Add m4/frexp.m4.
72360         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72361         only if the found frexp function actually works.
72362
72363 2007-03-22  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/frexp.c: Remove older implementation that uses divisions.
72366
72367 2007-03-21  Bruno Haible  <bruno@clisp.org>
72368
72369         * modules/frexp-tests: New file.
72370         * tests/test-frexp.c: New file.
72371
72372         * modules/frexp: New file.
72373         * lib/frexp.c: New file.
72374         * m4/frexp.m4: New file.
72375         * lib/math_.h (frexp): New declaration.
72376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72377         REPLACE_FREXP.
72378         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72379
72380 2007-03-21  Bruno Haible  <bruno@clisp.org>
72381
72382         * modules/isnanl-tests: New file.
72383         * tests/test-isnanl.c: New file.
72384
72385         * modules/isnanl: New file.
72386         * lib/isnanl.h: New file.
72387         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72388         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72389         gl_FUNC_ISNANL_WORKS.
72390         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72391         New macros.
72392
72393 2007-03-21  Bruno Haible  <bruno@clisp.org>
72394
72395         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72396         lib/isnanl.h.
72397         (Include): Update.
72398         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72399         * lib/vasnprintf.c: Update.
72400         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72401         tests/test-isnanl.h, remove tests/test-isnanl.c.
72402         (Makefile.am): Update.
72403         * tests/test-isnanl-nolibm.c: New file.
72404         * tests/test-isnanl.h: New file.
72405         * tests/test-isnanl.c: Remove file.
72406
72407 2007-03-21  Jim Meyering  <jim@meyering.net>
72408
72409         When trying to open ".", treat ESTALE like EACCES.
72410         * lib/savewd.c (savewd_save): Resort to forking not just upon
72411         failure with EACCES, but also when errno is ESTALE.
72412
72413 2007-03-20  Bruno Haible  <bruno@clisp.org>
72414
72415         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72416         Needed on AIX 5.1. Reported by Matthew Woehlke.
72417
72418 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         Suggestions by Bruno Haible:
72421         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72422         our own.
72423         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72424         * modules/acl (Depends-on): Add gettext.
72425
72426 2007-03-19  Bruno Haible  <bruno@clisp.org>
72427
72428         * modules/iconvme: Remove file.
72429         * lib/iconvme.h: Remove file.
72430         * lib/iconvme.c: Remove file.
72431         * m4/iconvme.m4: Remove file.
72432
72433 2007-03-19  Bruno Haible  <bruno@clisp.org>
72434
72435         * doc/relocatable-maint.texi: Break long shell script line.
72436         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72437
72438 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72439
72440         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72441         handle file_has_acl.
72442         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72443         * lib/acl.c: Move header inclusions and related macro defns into
72444         lib/acl-internal.h.
72445         (S_ISLNK): Remove defn, since that's now done for us.
72446         (file_has_acl): Move to lib/file-has-acl.c.
72447         Call acl_trivial if available.  This is the crucial part of the fix.
72448         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72449         shared within the library.  Rewrite a bit, partly to make it compatible
72450         with the GNU coding style.
72451         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72452         Remove unnecessary double-quotes.
72453         Don't test for acl_to_text; the build will catch that.
72454         Replace acl_entries if it doesn't exist and it is needed.
72455         Check for -lsec and acl_trivial (as used on Solaris 10).
72456         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72457         lib/file-has-acl.c.
72458         (Depends-on): Add sys_stat, for S_ISLNK.
72459
72460 2007-03-19  Ben Pfaff  <blp@gnu.org>
72461
72462         * doc/gnulib.texi: Fix typos.
72463         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72464
72465 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72468         If size is zero here, buf must be zero.
72469
72470 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72471
72472         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72473         <bruno@clisp.org>.
72474
72475 2007-03-18  Bruno Haible  <bruno@clisp.org>
72476
72477         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72478         Suggested by Eric Blake.
72479
72480 2007-03-18  Ben Pfaff  <blp@gnu.org>
72481
72482         * doc/relocatable.texi: Recommend using as prefix a directory
72483         that does not exist and will never be created.  Based on
72484         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72485         and others.
72486
72487 2007-03-17  Bruno Haible  <bruno@clisp.org>
72488
72489         * lib/fchownat.c: Include lchown.h.
72490
72491 2007-03-17  Bruno Haible  <bruno@clisp.org>
72492
72493         Fix endless loop when the given allocated size was > INT_MAX.
72494         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72495         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72496         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72497         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72498         * lib/sprintf.c (sprintf): Likewise.
72499
72500 2007-03-17  Bruno Haible  <bruno@clisp.org>
72501
72502         * tests/test-argp-2.sh (func_compare): Output a context diff.
72503
72504 2007-03-17  Bruno Haible  <bruno@clisp.org>
72505
72506         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72507         locale's decimal-point character.
72508
72509 2007-03-17  Bruno Haible  <bruno@clisp.org>
72510
72511         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72512         before comparing it. Needed because on some platforms (e.g. x86) a
72513         'long double' occupies less bytes than sizeof (long double).
72514
72515 2007-03-17  Bruno Haible  <bruno@clisp.org>
72516
72517         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72518         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72519         * tests/test-getaddrinfo.c (simple): Likewise.
72520         * tests/test-read-file.c (main): Likewise.
72521
72522 2007-03-17  Bruno Haible  <bruno@clisp.org>
72523
72524         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72525
72526 2007-03-17  Bruno Haible  <bruno@clisp.org>
72527
72528         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72529         unused variable.
72530
72531 2007-03-17  Bruno Haible  <bruno@clisp.org>
72532
72533         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72534         * tests/test-c-strncasecmp.c: Likewise.
72535
72536 2007-03-17  Bruno Haible  <bruno@clisp.org>
72537
72538         * modules/stdlib (Depends-on): Add unistd.
72539         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72540         Needed for MacOS X 10.3.
72541
72542 2007-03-17  Bruno Haible  <bruno@clisp.org>
72543
72544         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72545
72546 2007-03-17  Bruno Haible  <bruno@clisp.org>
72547
72548         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72549
72550 2007-03-17  Bruno Haible  <bruno@clisp.org>
72551
72552         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72553         to reflect files copied from gnulib (with or without modifications).
72554         Suggested by Jim Meyering.
72555
72556 2007-03-17  Eric Blake  <ebb9@byu.net>
72557
72558         * NEWS: Document stdlib change from 2007-02-18.
72559
72560 2007-03-17  Jim Meyering  <jim@meyering.net>
72561
72562         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72563         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72564         someone uses a name containing shell meta-characters.
72565         Reported by Alfred M. Szmidt.
72566
72567         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72568
72569 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72570
72571         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72572         and copy gettext configuration files only if configure.ac contains
72573         a use of AM_GNU_GETTEXT_VERSION.
72574
72575 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72576
72577         * build-aux/bootstrap (gnulib_name): New variable.
72578         (gnulib_tool_options): Use it.
72579
72580 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72581
72582         * tests/test-des.c: Use new namespace.
72583
72584 2007-03-15  Bruno Haible  <bruno@clisp.org>
72585
72586         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72587         Reported by James Youngman <jay@gnu.org>.
72588
72589 2007-03-15  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72592         declared prototype. Needed with cc on OSF/1 5.1.
72593
72594 2007-03-15  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72597         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72598         (struct gl_list_implementation): Add dispose_fn argument to the
72599         'create_empty', 'create' methods.
72600         (struct gl_list_impl_base): Add field 'dispose_fn'.
72601         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72602         argument.
72603         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72604         dispose_fn argument.
72605         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72606         dispose_fn on the dropped values.
72607         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72608         dispose_fn argument.
72609         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72610         dropped values.
72611         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72612         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72613         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72614         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72615         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72616         argument.
72617         (gl_tree_list_free): Call dispose_fn on the dropped values.
72618         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72619         the dropped values.
72620         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72621         Add dispose_fn argument.
72622         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72623         Call dispose_fn on the dropped values.
72624         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72625         Add dispose_fn argument.
72626         (gl_sublist_create): Initialize the 'dispose_fn' field.
72627         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72628         * tests/test-array_list.c (main): Update.
72629         * tests/test-carray_list.c (main): Update.
72630         * tests/test-avltree_list.c (main): Update.
72631         * tests/test-rbtree_list.c (main): Update.
72632         * tests/test-avltreehash_list.c (main): Update.
72633         * tests/test-rbtreehash_list.c (main): Update.
72634         * tests/test-linked_list.c (main): Update.
72635         * tests/test-linkedhash_list.c (main): Update.
72636         * tests/test-array_oset.c (main): Update.
72637
72638 2007-03-15  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72641         (gl_oset_create_empty): Add dispose_fn argument.
72642         (struct gl_oset_implementation): Add dispose_fn argument to
72643         'create_empty' method.
72644         (struct gl_oset_impl_base): Add dispose_fn field.
72645         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72646         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72647         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72648         values.
72649         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72650         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72651         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72652         dropped value.
72653         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72654         dropped value.
72655         * tests/test-array_oset.c (main): Update.
72656         * tests/test-avltree_oset.c (main): Update.
72657         * tests/test-rbtree_oset.c (main): Update.
72658         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72659
72660 2007-03-13  Bruno Haible  <bruno@clisp.org>
72661
72662         * tests/test-stdbool.c (i): Update after last patch.
72663
72664 2007-03-12  Bruno Haible  <bruno@clisp.org>
72665
72666         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72667         the iswprint macro. Needed on Solaris 2.5.1.
72668
72669 2007-03-12  Bruno Haible  <bruno@clisp.org>
72670
72671         * tests/test-printf-frexp.c (main): Declare x as volatile.
72672
72673 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72674
72675         * doc/gnulib.texi (Build robot for gnulib): New section.
72676
72677 2007-03-12  Jim Meyering  <jim@meyering.net>
72678
72679         * build-aux/bootstrap: New file.
72680         * build-aux/bootstrap.conf: New file, from coreutils.
72681
72682 2007-03-11  Bruno Haible  <bruno@clisp.org>
72683
72684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72685
72686 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72687
72688         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72689         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72690         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72691
72692 2007-03-11  Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72695         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72696
72697 2007-03-11  Bruno Haible  <bruno@clisp.org>
72698
72699         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72700         formula. Needed for SunPRO C 5.0.
72701
72702 2007-03-11  Bruno Haible  <bruno@clisp.org>
72703
72704         * modules/long-options (Depends-on): Add getopt.
72705
72706 2007-03-11  Bruno Haible  <bruno@clisp.org>
72707
72708         * modules/modechange (Depends-on): Add stdbool.
72709
72710 2007-03-11  Bruno Haible  <bruno@clisp.org>
72711
72712         * modules/i-ring (Depends-on): Add stdbool.
72713
72714 2007-03-11  Bruno Haible  <bruno@clisp.org>
72715
72716         * modules/gc-des (Depends-on): Add stdbool.
72717
72718 2007-03-11  Bruno Haible  <bruno@clisp.org>
72719
72720         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72721
72722 2007-03-11  Bruno Haible  <bruno@clisp.org>
72723
72724         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72725
72726 2007-03-11  Bruno Haible  <bruno@clisp.org>
72727
72728         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72729
72730 2007-03-11  Bruno Haible  <bruno@clisp.org>
72731
72732         * lib/vasnprintf.c (sprintf): Undefine.
72733
72734 2007-03-11  Bruno Haible  <bruno@clisp.org>
72735
72736         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72737         initializers in SunPRO C and Compaq C compilers.
72738
72739 2007-03-11  Bruno Haible  <bruno@clisp.org>
72740
72741         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72742         decrementing code ANSI C compliant.
72743
72744 2007-03-11  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72747         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72748
72749 2007-03-11  Bruno Haible  <bruno@clisp.org>
72750
72751         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72752         <stdbool.h> substitute doesn't pass.
72753
72754 2007-03-11  Bruno Haible  <bruno@clisp.org>
72755
72756         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72757
72758 2007-03-11  Bruno Haible  <bruno@clisp.org>
72759
72760         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72761         script, for submission to autobuild.josefsson.org.
72762
72763 2007-03-10  Bruno Haible  <bruno@clisp.org>
72764
72765         * modules/canonicalize-lgpl-tests: New file.
72766         * tests/test-canonicalize-lgpl.sh: New file.
72767         * tests/test-canonicalize-lgpl.c: New file.
72768
72769         * modules/c-strcase-tests: New file.
72770         * tests/test-c-strcase.sh: New file.
72771         * tests/test-c-strcasecmp.c: New file.
72772         * tests/test-c-strncasecmp.c: New file.
72773
72774         * modules/atexit-tests: New file.
72775         * tests/test-atexit.sh: New file.
72776         * tests/test-atexit.c: New file.
72777
72778 2007-03-10  Bruno Haible  <bruno@clisp.org>
72779
72780         * tests/test-binary-io.sh: Use temporary filenames that are not so
72781         likely to clash with those of other tests (in a parallel make).
72782         * tests/test-binary-io.c: Likewise.
72783
72784 2007-03-10  Bruno Haible  <bruno@clisp.org>
72785
72786         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72787         fallback; use #error instead.
72788         Suggested by Simon Josefsson.
72789
72790 2007-03-10  Bruno Haible  <bruno@clisp.org>
72791
72792         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72793         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72794         first and the last.
72795
72796 2007-03-10  Bruno Haible  <bruno@clisp.org>
72797
72798         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72799
72800 2007-03-10  Bruno Haible  <bruno@clisp.org>
72801
72802         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72803         "make distcheck".
72804         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72805         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72806         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72807
72808 2007-03-10  Bruno Haible  <bruno@clisp.org>
72809
72810         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72811         variable.
72812         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72813         variable.
72814
72815 2007-03-09  Eric Blake  <ebb9@byu.net>
72816         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72817
72818         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72819         types are not being provided by gnulib.
72820         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72821         types are supported.
72822
72823 2007-03-10  Bruno Haible  <bruno@clisp.org>
72824
72825         * lib/stdio_.h (__attribute__): New macro.
72826         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72827         vsprintf): Specify __attribute__ __format__ for GCC.
72828         Suggested by Eric Blake.
72829
72830 2007-03-09  Bruno Haible  <bruno@clisp.org>
72831
72832         * modules/printf-posix-tests: New file.
72833         * tests/test-printf-posix.sh: New file.
72834         * tests/test-printf-posix.c: New file.
72835
72836         * modules/printf-posix: New file.
72837         * lib/printf.c: New file.
72838         * m4/printf-posix-rpl.m4: New file.
72839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72840         REPLACE_PRINTF.
72841         * lib/stdio_.h (printf): New declaration.
72842         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72843         ____strfmon____): New macros.
72844         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72845         REPLACE_PRINTF.
72846
72847 2007-03-09  Bruno Haible  <bruno@clisp.org>
72848
72849         * tests/test-vasnprintf-posix2.sh: New file.
72850         * tests/test-vasnprintf-posix2.c: New file.
72851         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72852         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72853         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72854
72855         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72856         a locale dependent decimal point, rather than always '.'.
72857
72858 2007-03-09  Eric Blake  <ebb9@byu.net>
72859
72860         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72861         spite of platforms like Tandem/NSK that define it to -1.
72862
72863 2007-03-08  Bruno Haible  <bruno@clisp.org>
72864
72865         * modules/vprintf-posix-tests: New file.
72866         * tests/test-vprintf-posix.sh: New file.
72867         * tests/test-vprintf-posix.c: New file.
72868         * tests/test-printf-posix.h: New file.
72869
72870         * modules/vprintf-posix: New file.
72871         * lib/vprintf.c: New file.
72872         * m4/vprintf-posix.m4: New file.
72873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72874         REPLACE_VPRINTF.
72875         * lib/stdio_.h (vprintf): New declaration.
72876         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72877         REPLACE_VPRINTF.
72878
72879 2007-03-08  Bruno Haible  <bruno@clisp.org>
72880
72881         * modules/fprintf-posix-tests: New file.
72882         * tests/test-fprintf-posix.sh: New file.
72883         * tests/test-fprintf-posix.c: New file.
72884
72885         * modules/fprintf-posix: New file.
72886         * lib/fprintf.c: New file.
72887         * m4/fprintf-posix.m4: New file.
72888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72889         REPLACE_FPRINTF.
72890         * lib/stdio_.h (fprintf): New declaration.
72891         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72892         REPLACE_FPRINTF.
72893
72894 2007-03-08  Bruno Haible  <bruno@clisp.org>
72895
72896         * modules/vfprintf-posix-tests: New file.
72897         * tests/test-vfprintf-posix.sh: New file.
72898         * tests/test-vfprintf-posix.c: New file.
72899         * tests/test-fprintf-posix.h: New file.
72900         * tests/test-fprintf-posix.out: New file.
72901
72902         * modules/vfprintf-posix: New file.
72903         * lib/vfprintf.c: New file.
72904         * m4/vfprintf-posix.m4: New file.
72905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72906         REPLACE_VFPRINTF.
72907         * lib/stdio_.h (vfprintf): New declaration.
72908         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72909         REPLACE_VFPRINTF.
72910
72911 2007-03-08  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72914
72915 2007-03-08  Bruno Haible  <bruno@clisp.org>
72916
72917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72918         instead of 'expr' invocations.
72919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72924         Suggested by Paul Eggert.
72925
72926 2007-03-08  Bruno Haible  <bruno@clisp.org>
72927
72928         * modules/fseterr-tests: New file.
72929         * tests/test-fseterr.c: New file.
72930
72931         * modules/fseterr: New file.
72932         * lib/fseterr.h: New file.
72933         * lib/fseterr.c: New file.
72934
72935 2007-03-08  Bruno Haible  <bruno@clisp.org>
72936
72937         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72938         * lib/getopt_.h: Likewise.
72939         * lib/mbswidth.h: Likewise.
72940         * lib/setenv.h: Likewise.
72941         * lib/vasnprintf.h: Likewise.
72942         * lib/vasprintf.h: Likewise.
72943         * lib/verror.h: Likewise.
72944         * lib/xsetenv.h: Likewise.
72945         * lib/xvasprintf.h: Likewise.
72946
72947 2007-03-08  Jim Meyering  <jim@meyering.net>
72948
72949         * users.txt: Add parted.
72950
72951         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72952
72953 2007-03-07  Bruno Haible  <bruno@clisp.org>
72954
72955         * m4/printf.m4: Make the shell script snippets copy&pastable.
72956
72957 2007-03-02  Bruno Haible  <bruno@clisp.org>
72958
72959         * lib/netinet_in_.h: New file.
72960         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72961         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72962         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72963         (Depends-on): Add absolute-header.
72964         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72965         into netinet/in.h.
72966
72967 2007-03-03  Bruno Haible  <bruno@clisp.org>
72968
72969         * lib/sys_select_.h: New file.
72970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72971         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72972         * modules/sys_select (Files): Add lib/sys_select_.h.
72973         (Depends-on): Add absolute-header.
72974         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72975         into sys/select.h.
72976
72977 2007-03-02  Bruno Haible  <bruno@clisp.org>
72978
72979         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72980         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72981         values.
72982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72983         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72984         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72985         * modules/sys_socket (Depends-on): Add absolute-header.
72986         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72987         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72988         (Include): Remove requirement of inclusion of <sys/types.h>.
72989
72990 2007-03-02  Bruno Haible  <bruno@clisp.org>
72991
72992         * lib/byteswap_.h (bswap_32): Fix formula.
72993
72994 2007-03-06  Bruno Haible  <bruno@clisp.org>
72995
72996         * modules/sprintf-posix-tests: New file.
72997         * tests/test-sprintf-posix.c: New file.
72998
72999         * modules/sprintf-posix: New file.
73000         * lib/sprintf.c: New file.
73001         * m4/sprintf-posix.m4: New file.
73002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73003         REPLACE_SPRINTF.
73004         * lib/stdio_.h (sprintf): New declaration.
73005         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73006         REPLACE_SPRINTF.
73007
73008 2007-03-06  Bruno Haible  <bruno@clisp.org>
73009
73010         * modules/vsprintf-posix-tests: New file.
73011         * tests/test-vsprintf-posix.c: New file.
73012         * tests/test-sprintf-posix.h: New file.
73013
73014         * modules/vsprintf-posix: New file.
73015         * lib/vsprintf.c: New file.
73016         * m4/vsprintf-posix.m4: New file.
73017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73018         REPLACE_VSPRINTF.
73019         * lib/stdio_.h (vsprintf): New declaration.
73020         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73021         REPLACE_VSPRINTF.
73022
73023 2007-03-06  Bruno Haible  <bruno@clisp.org>
73024
73025         * modules/vsnprintf (Depend-on): Remove minmax.
73026
73027 2007-03-06  Bruno Haible  <bruno@clisp.org>
73028
73029         * modules/snprintf-posix-tests: New file.
73030         * tests/test-snprintf-posix.c: New file.
73031
73032         * modules/snprintf-posix: New file.
73033         * m4/snprintf-posix.m4: New file.
73034         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73035         gl_FUNC_SNPRINTF.
73036         (gl_FUNC_SNPRINTF): Invoke it.
73037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73038         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73039         is set.
73040         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73041
73042 2007-03-06  Bruno Haible  <bruno@clisp.org>
73043
73044         * modules/vsnprintf-posix-tests: New file.
73045         * tests/test-vsnprintf-posix.c: New file.
73046         * tests/test-snprintf-posix.h: New file.
73047
73048         * modules/vsnprintf-posix: New file.
73049         * m4/vsnprintf-posix.m4: New file.
73050         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73051         gl_FUNC_VSNPRINTF.
73052         (gl_FUNC_VSNPRINTF): Invoke it.
73053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73054         * lib/stdio_.h (vsnprintf): Define as a replacement if
73055         REPLACE_VSNPRINTF is set.
73056         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73057
73058 2007-03-06  Bruno Haible  <bruno@clisp.org>
73059
73060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73062
73063 2007-03-06  Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73066         (asinl): Declare also if HAVE_DECL_ASINL is set.
73067         (atanl): Declare also if HAVE_DECL_ATANL is set.
73068         (ceill): Declare also if HAVE_DECL_CEILL is set.
73069         (cosl): Declare also if HAVE_DECL_COSL is set.
73070         (expl): Declare also if HAVE_DECL_EXPL is set.
73071         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73072         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73073         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73074         (logl): Declare also if HAVE_DECL_LOGL is set.
73075         (sinl): Declare also if HAVE_DECL_SINL is set.
73076         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73077         (tanl): Declare also if HAVE_DECL_TANL is set.
73078         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73081         declaration of frexpl, ldexpl.
73082         * modules/printf-frexpl (Depends-on): Add math.
73083         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73084
73085 2007-03-05  Bruno Haible  <bruno@clisp.org>
73086
73087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73088         frexpl and ldexpl are declared.
73089         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73090
73091 2007-03-05  Bruno Haible  <bruno@clisp.org>
73092
73093         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73094         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73095
73096 2007-03-05  Bruno Haible  <bruno@clisp.org>
73097
73098         * lib/stdio_.h: Include <stddef.h>.
73099
73100 2007-03-05  Bruno Haible  <bruno@clisp.org>
73101
73102         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73103
73104 2007-03-05  Bruno Haible  <bruno@clisp.org>
73105
73106         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73107         NetBSD 4, from Ralf Wildenhues.
73108
73109 2007-03-04  Bruno Haible  <bruno@clisp.org>
73110
73111         * lib/vasprintf.h: Update #if logic for the case when the functions
73112         exist but are overridden.
73113
73114 2007-03-04  Bruno Haible  <bruno@clisp.org>
73115
73116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73117         implementations: glibc-2.4 and MacOS X 10.3.
73118         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73119         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73120         * tests/test-vasprintf-posix.c (test_function): Likewise.
73121
73122 2007-03-04  Bruno Haible  <bruno@clisp.org>
73123
73124         * modules/vasprintf-posix-tests: New file.
73125         * tests/test-vasprintf-posix.c: New file.
73126
73127         * modules/vasprintf-posix: New file.
73128         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73129         defined.
73130         * m4/vasprintf-posix.m4: New file.
73131         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73132         gl_FUNC_VASPRINTF.
73133         (gl_FUNC_VASPRINTF): Invoke it.
73134         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73135         here.
73136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73137
73138 2007-03-04  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73141         REPLACE_GETTIMEOFDAY.
73142         * modules/sys_time (Makefile.am): Likewise.
73143         * m4/sys_time_h.m4: Likewise.
73144         * m4/gettimeofday.m4: Likewise.
73145
73146 2007-03-04  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/vasnprintf-posix-tests: New file.
73149         * tests/test-vasnprintf-posix.c: New file.
73150
73151         * modules/vasnprintf-posix: New file.
73152         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73153         printf-frexpl.h.
73154         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73155         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73156         REPLACE_VASNPRINTF is defined.
73157         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73158         gl_FUNC_VASNPRINTF.
73159         (gl_FUNC_VASNPRINTF): Invoke it.
73160         * m4/vasnprintf-posix.m4: New file.
73161         * m4/printf.m4: New file.
73162
73163 2007-03-04  Bruno Haible  <bruno@clisp.org>
73164
73165         Compile progreloc.c only if --enable-relocatable is specified.
73166         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73167         if --enable-relocatable was specified.
73168         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73169         lib_SOURCES.
73170
73171 2007-03-04  Jim Meyering  <jim@meyering.net>
73172
73173         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73174         Use it consistently, rather than enumerating errno constants.
73175
73176 2007-03-04  Bruno Haible  <bruno@clisp.org>
73177
73178         * modules/xvasprintf-tests: New file.
73179         * tests/test-xvasprintf.c: New file.
73180
73181         * modules/vasprintf-tests: New file.
73182         * tests/test-vasprintf.c: New file.
73183
73184         * modules/vasnprintf-tests: New file.
73185         * tests/test-vasnprintf.c: New file.
73186
73187         * modules/vsnprintf-tests: New file.
73188         * tests/test-vsnprintf.c: New file.
73189
73190         * modules/snprintf-tests: New file.
73191         * tests/test-snprintf.c: New file.
73192
73193 2007-03-04  Bruno Haible  <bruno@clisp.org>
73194
73195         Compile relocatable.c only if --enable-relocatable is specified.
73196         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73197         gl_RELOCATABLE_LIBRARY.
73198         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73199         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73200         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73201         gl_RELOCATABLE_LIBRARY.
73202         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73203         (Makefile.am): Remove lib_SOURCES.
73204         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73205         gl_RELOCATABLE_LIBRARY.
73206         (Makefile.am): Remove lib_SOURCES.
73207         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73208         always.
73209         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73210         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73211
73212 2007-03-04  Bruno Haible  <bruno@clisp.org>
73213
73214         * modules/argmatch-tests: New file.
73215         * tests/test-argmatch.c: New file.
73216
73217         * tests/test-allocsa.c (main): Halve the number of loop runs.
73218
73219         * modules/alloca-opt-tests: New file.
73220         * tests/test-alloca-opt.c: New file.
73221
73222 2007-03-04  Jim Meyering  <jim@meyering.net>
73223
73224         Work around difference between Linux ACLs and Solaris 10 ZFS.
73225         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73226         for EINVAL.
73227
73228 2007-03-03  Bruno Haible  <bruno@clisp.org>
73229
73230         * modules/relocatable-prog (Depends-on): Add back progreloc's
73231         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73232
73233 2007-03-03  Bruno Haible  <bruno@clisp.org>
73234
73235         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73236         * modules/relocatable-lib: New file.
73237
73238 2007-03-03  Bruno Haible  <bruno@clisp.org>
73239
73240         * modules/relocatable-prog: Renamed from modules/relocatable.
73241         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73242
73243 2007-03-03  Bruno Haible  <bruno@clisp.org>
73244
73245         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73246         m4/relocatable-lib.m4.
73247         (Depends-on): Remove 'relocatable'.
73248         (configure.ac): Add gl_RELOCATABLE_NOP.
73249
73250 2007-03-03  Bruno Haible  <bruno@clisp.org>
73251
73252         * modules/relocatable-prog-wrapper: New file.
73253         * modules/relocatable (Depends-on): Add it. Remove all other
73254         dependencies except progname.
73255         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73256
73257         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73258         (gl_FUNC_STRERROR): Nop.
73259         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73260
73261         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73262         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73263
73264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73265         (gl_FUNC_READLINK): Update.
73266
73267         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73268
73269 2007-03-03  Bruno Haible  <bruno@clisp.org>
73270
73271         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73272         * modules/xreadlink (Depends-on): Add unistd.
73273         * modules/xreadlink-with-size (Depends-on): Likewise.
73274
73275 2007-03-03  Bruno Haible  <bruno@clisp.org>
73276
73277         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73278         extracted from gt_FUNC_SETENV.
73279         (gt_FUNC_SETENV): Remove macro.
73280         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73281         remove gt_FUNC_SETENV.
73282
73283 2007-03-03  Bruno Haible  <bruno@clisp.org>
73284
73285         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73286         ENABLE_RELOCATABLE here.
73287         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73288
73289 2007-03-03  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73292         * tests/test-rbtreehash_list.c: Include progname.h.
73293         (main): Call set_program_name.
73294
73295         * modules/rbtree-oset-tests (Depends-on): Add progname.
73296         * tests/test-rbtree_oset.c: Include progname.h.
73297         (main): Call set_program_name.
73298
73299         * modules/rbtree-list-tests (Depends-on): Add progname.
73300         * tests/test-rbtree_list.c: Include progname.h.
73301         (main): Call set_program_name.
73302
73303         * modules/linked-list-tests (Depends-on): Add progname.
73304         * tests/test-linked_list.c: Include progname.h.
73305         (main): Call set_program_name.
73306
73307 2007-03-03  Bruno Haible  <bruno@clisp.org>
73308
73309         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73310         All uses of __restrict changed to _Restrict_.
73311         * lib/glob_.h (__restrict): Remove macro.
73312
73313 2007-03-02  Bruno Haible  <bruno@clisp.org>
73314
73315         * modules/gettext (configure.ac): Require gettext infrastructure
73316         from version 0.16.1.
73317
73318 2007-03-02  Bruno Haible  <bruno@clisp.org>
73319
73320         * modules/linkedhash-list-tests (Depends-on): Add progname.
73321         * tests/test-linkedhash_list.c: Include progname.h.
73322         (main): Call set_program_name.
73323
73324         * modules/carray-list-tests (Depends-on): Add progname.
73325         * tests/test-carray_list.c: Include progname.h.
73326         (main): Call set_program_name.
73327
73328         * modules/avltreehash-list-tests (Depends-on): Add progname.
73329         * tests/test-avltreehash_list.c: Include progname.h.
73330         (main): Call set_program_name.
73331
73332         * modules/avltree-oset-tests (Depends-on): Add progname.
73333         * tests/test-avltree_oset.c: Include progname.h.
73334         (main): Call set_program_name.
73335
73336         * modules/avltree-list-tests (Depends-on): Add progname.
73337         * tests/test-avltree_list.c: Include progname.h.
73338         (main): Call set_program_name.
73339
73340         * modules/array-oset-tests (Depends-on): Add progname.
73341         * tests/test-array_oset.c: Include progname.h.
73342         (main): Call set_program_name.
73343
73344         * modules/array-list-tests (Depends-on): Add progname.
73345         * tests/test-array_list.c: Include progname.h.
73346         (main): Call set_program_name.
73347
73348         * modules/argp-tests (Depends-on): Add progname.
73349         * tests/test-argp.c: Include argp.h first. Include progname.h.
73350         (main): Call set_program_name.
73351
73352 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * doc/gnulib-tool.texi (Initial import): Reword description of
73355         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73356         limited effect even if defined after the first system include.
73357
73358 2007-03-01  Bruno Haible  <bruno@clisp.org>
73359
73360         * build-aux/config.libpath: Update to libtool-1.5.22.
73361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73362
73363 2007-03-01  Bruno Haible  <bruno@clisp.org>
73364
73365         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73366         foo_CFLAGS.
73367         Reported by Ralf Wildenhues.
73368
73369 2007-03-01  Bruno Haible  <bruno@clisp.org>
73370
73371         * build-aux/install-reloc: Remove object files left over by some
73372         compilers.
73373         Reported by Ralf Wildenhues.
73374
73375 2007-03-01  Bruno Haible  <bruno@clisp.org>
73376
73377         * build-aux/install-reloc: Break long lines.
73378
73379 2007-03-01  Bruno Haible  <bruno@clisp.org>
73380
73381         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73382         Reported by Ralf Wildenhues.
73383
73384 2007-03-01  Bruno Haible  <bruno@clisp.org>
73385
73386         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73387         include ordering constraints.
73388
73389 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73390
73391         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73393         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73394         as another example.
73395         * lib/time_.h: Fix misspelling.
73396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73397         Require gl_HEADER_TIME_H_DEFAULTS.
73398         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73399         * m4/time_r.m4 (gl_TIME_R): Likewise.
73400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73401
73402 2007-03-01  Bruno Haible  <bruno@clisp.org>
73403
73404         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73405         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73406
73407 2007-03-01  Jim Meyering  <jim@meyering.net>
73408
73409         * modules/xreadlink (Maintainer): Add my name.
73410         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73411
73412 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73413             Bruno Haible  <bruno@clisp.org>
73414
73415         * build-aux/install-reloc: Compile also c-ctype.c.
73416         * build-aux/relocatable.sh.in: New file.
73417         * doc/relocatable.texi: New file.
73418         * doc/relocatable-maint.texi: New file.
73419         * doc/gnulib.texi: Include relocatable-maint.texi.
73420         * lib/progreloc.c: Include unistd.h unconditionally.
73421         * lib/relocwrapper.c: Include unistd.h unconditionally.
73422         Include c-ctype.h.
73423         (add_dotbin): Use c_tolower.
73424         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73425         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73426         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73427         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73428         to m4/relocatable-lib.m4.
73429         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73430         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73431         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73432         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73433         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73434         * modules/relocatable: New file.
73435         * modules/relocatable-lib: New file.
73436         * modules/relocatable-script: New file.
73437
73438 2007-02-28  Bruno Haible  <bruno@clisp.org>
73439
73440         Import --enable-relocatable infrastructure.
73441         * build-aux/config.libpath: New file, from GNU gettext.
73442         * build-aux/install-reloc: New file, from GNU gettext.
73443         * build-aux/reloc-ldflags: New file, from GNU gettext.
73444         * lib/relocatable.h: New file, from GNU gettext.
73445         * lib/relocatable.c: New file, from GNU gettext.
73446         * lib/relocwrapper.c: New file, from GNU gettext.
73447         * m4/relocatable.m4: New file, from GNU gettext.
73448
73449 2007-02-28  Bruno Haible  <bruno@clisp.org>
73450
73451         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73452
73453         * modules/xreadlink: New file, from GNU gettext with modifications.
73454         * lib/xreadlink.c: New file, from GNU gettext.
73455         * lib/xreadlink.h: Add comments.
73456         (xreadlink): New declaration.
73457
73458         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73459         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73460         lib/xreadlink-with-size.c.
73461         (configure.ac): Remove gl_XREADLINK invocation.
73462         (Makefile.am): Augment lib_SOURCES.
73463         * m4/xreadlink.m4: Remove file.
73464         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73465         (xreadlink_with_size): Renamed from xreadink.
73466         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73467         * modules/canonicalize (Depends-on): Replace xreadlink with
73468         xreadlink-with-size.
73469         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73470
73471 2007-02-25  Jim Meyering  <jim@meyering.net>
73472
73473         * build-aux/announce-gen: When complaining about excess arguments,
73474         list them.
73475
73476 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         * README: Document signed integer overflow situation more
73479         accurately.
73480
73481 2007-02-25  Bruno Haible  <bruno@clisp.org>
73482
73483         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73484         'a' or 'A' conversion.
73485
73486 2007-02-25  Bruno Haible  <bruno@clisp.org>
73487
73488         * modules/filename: Renamed from modules/pathname.
73489         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73490         lib/concatpath.c with lib/concat-filename.c.
73491         (Makefile.am): Update.
73492         (Include): Replace pathname.h with filename.h.
73493         * lib/filename.h: Renamed from lib/pathname.h.
73494         (concatenated_filename): Renamed from concatenated_pathname.
73495         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73496         (concatenated_filename): Renamed from concatenated_pathname.
73497         * lib/findprog.c: Include filename.h instead of pathname.h.
73498         (find_in_path): Update.
73499         * lib/javacomp.c: Include filename.h instead of pathname.h.
73500         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73501         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73502         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73503         is_oldgcj_14_13_usable, is_javac_usable): Update.
73504         * lib/javaexec.c: Include filename.h instead of pathname.h.
73505         (execute_java_class): Update.
73506         * modules/findprog: Update.
73507         * modules/javacomp: Update.
73508         * modules/javaexec: Update.
73509         * MODULES.html.sh (File system functions): Add 'filename', remove
73510         'pathname'.
73511
73512 2007-02-25  Bruno Haible  <bruno@clisp.org>
73513
73514         * modules/printf-frexpl-tests: New file.
73515         * tests/test-printf-frexpl.c: New file.
73516
73517         * modules/printf-frexpl: New file.
73518         * lib/printf-frexpl.h: New file.
73519         * lib/printf-frexpl.c: New file.
73520         * m4/printf-frexpl.m4: New file.
73521
73522 2007-02-25  Bruno Haible  <bruno@clisp.org>
73523
73524         * modules/printf-frexp-tests: New file.
73525         * tests/test-printf-frexp.c: New file.
73526
73527         * modules/printf-frexp: New file.
73528         * lib/printf-frexp.h: New file.
73529         * lib/printf-frexp.c: New file.
73530         * m4/printf-frexp.m4: New file.
73531
73532 2007-02-25  Bruno Haible  <bruno@clisp.org>
73533
73534         Assume automake >= 1.10 for the tests.
73535         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73536         * modules/arctwo-tests: Likewise.
73537         * modules/argp-tests: Likewise.
73538         * modules/avltree-list-tests: Likewise.
73539         * modules/avltree-oset-tests: Likewise.
73540         * modules/avltreehash-list-tests: Likewise.
73541         * modules/carray-list-tests: Likewise.
73542         * modules/crc-tests: Likewise.
73543         * modules/des-tests: Likewise.
73544         * modules/gc-arcfour-tests: Likewise.
73545         * modules/gc-arctwo-tests: Likewise.
73546         * modules/gc-des-tests: Likewise.
73547         * modules/gc-hmac-md5-tests: Likewise.
73548         * modules/gc-hmac-sha1-tests: Likewise.
73549         * modules/gc-md2-tests: Likewise.
73550         * modules/gc-md4-tests: Likewise.
73551         * modules/gc-md5-tests: Likewise.
73552         * modules/gc-pbkdf2-sha1-tests: Likewise.
73553         * modules/gc-rijndael-tests: Likewise.
73554         * modules/gc-sha1-tests: Likewise.
73555         * modules/gc-tests: Likewise.
73556         * modules/getaddrinfo-tests: Likewise.
73557         * modules/hmac-md5-tests: Likewise.
73558         * modules/hmac-sha1-tests: Likewise.
73559         * modules/linked-list-tests: Likewise.
73560         * modules/linkedhash-list-tests: Likewise.
73561         * modules/lock-tests: Likewise.
73562         * modules/md2-tests: Likewise.
73563         * modules/md4-tests: Likewise.
73564         * modules/md5-tests: Likewise.
73565         * modules/rbtree-list-tests: Likewise.
73566         * modules/rbtree-oset-tests: Likewise.
73567         * modules/rbtreehash-list-tests: Likewise.
73568         * modules/read-file-tests: Likewise.
73569         * modules/rijndael-tests: Likewise.
73570         * modules/stdint-tests: Likewise.
73571         * modules/tls-tests: Likewise.
73572
73573 2007-02-24  Bruno Haible  <bruno@clisp.org>
73574
73575         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73576         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73577         function; instead check whether isnan with a double argument links.
73578         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73579         function; instead check whether isnan with a 'long double' argument
73580         links.
73581         Reported by Eric Blake <ebb9@byu.net>.
73582
73583 2007-02-24  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73586         defined.
73587         * lib/isnanl.c: Remove all code. Just include isnan.c.
73588         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73589
73590 2007-02-25  Jim Meyering  <jim@meyering.net>
73591
73592         Avoid conflicting types for 'unsetenv' on FreeBSD.
73593         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73594         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73595         in stdlib.h.
73596
73597 2007-02-24  Bruno Haible  <bruno@clisp.org>
73598
73599         * modules/isnanl-nolibm-tests: New file.
73600         * tests/test-isnanl.c: New file.
73601
73602         * modules/isnanl-nolibm: New file.
73603         * lib/isnanl.h: New file.
73604         * lib/isnanl.c: New file.
73605         * m4/isnanl.m4: New file.
73606
73607 2007-02-24  Bruno Haible  <bruno@clisp.org>
73608
73609         * modules/isnan-nolibm-tests: New file.
73610         * tests/test-isnan.c: New file.
73611
73612         * modules/isnan-nolibm: New file.
73613         * lib/isnan.h: New file.
73614         * lib/isnan.c: New file.
73615         * m4/isnan.m4: New file.
73616
73617 2007-02-24  Bruno Haible  <bruno@clisp.org>
73618
73619         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73620         assume that an exponent fits in 20 bits.
73621
73622 2007-02-24  Jim Meyering  <jim@meyering.net>
73623
73624         * m4/regex.m4: Update the description of the configure-time option,
73625         --without-included-regex, to state accurately what the defaults are,
73626         and perhaps to give people an idea why using this option is risky.
73627
73628 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73631         loops on small arguments.  This attempts to avoid the problem
73632         Bruno Haible reported for AIX 4.3.2 in
73633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73634
73635 2007-02-23  Bruno Haible  <bruno@clisp.org>
73636
73637         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73638         Needed for help2man.
73639
73640 2007-02-23  Karl Berry  <karl@gnu.org>
73641
73642         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73643         exists, foo.h should be cvs-ignored, not committed.
73644
73645 2007-02-23  Eric Blake  <ebb9@byu.net>
73646
73647         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73648         * lib/stat-time.h (includes): Likewise.
73649         * lib/utimecmp.c (includes): Likewise.
73650         * lib/utimens.h (includes): Likewise.
73651         * lib/getdate.y (includes): Also include "timespec.h" for use
73652         internal to the module.
73653         * modules/utimens (Depends-on): Revert yesterday's patch.
73654         * modules/nanosleep (Depends-on): Add missing dependency.
73655
73656 2007-02-22  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/glob.c: Don't include getlogin_r.h.
73659
73660 2007-02-22  Jim Meyering  <jim@meyering.net>
73661
73662         * modules/utimens (Depends-on): Add timespec, required for
73663         utimens.h's inclusion of timespec.h.
73664
73665 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73668         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73669         Schwab in
73670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73671         I'll try to think of a better way to fix the Solaris problem.
73672
73673         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73674         like glibc; on Solaris 10, it fails with errno == EINVAL.
73675         POSIX says the behavior is unspecified if the first argument is NULL,
73676         so play it safe and never pass NULL to the system getcwd.
73677
73678 2007-02-21  Jim Meyering  <jim@meyering.net>
73679
73680         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73681         of gettimeofday.  It would conflict with the one now always
73682         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73683         an IRIX 6.5 build failure.
73684
73685 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         Minor fixups to port to Solaris 10 with Sun C 5.8.
73688         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73689         * modules/getcwd (Depends-on): Add dirfd.
73690         * lib/putenv.c (putenv): #undef it.
73691         (rpl_putenv): New decl.
73692         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73693
73694 2007-02-20  Bruno Haible  <bruno@clisp.org>
73695
73696         * modules/stdio-tests: New file.
73697         * tests/test-stdio.c: New file.
73698
73699         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73700         (Depends-on): Add stdio.
73701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73702         (Include): Use <stdio.h> instead of vsnprintf.h.
73703         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73704         HAVE_DECL_VSNPRINTF.
73705         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73706
73707         * modules/snprintf (Files): Remove lib/snprintf.h.
73708         (Depends-on): Add stdio.
73709         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73710         (Include): Use <stdio.h> instead of snprintf.h.
73711         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73712         HAVE_DECL_SNPRINTF.
73713         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73714         * lib/getaddrinfo.c: Likewise.
73715
73716         * modules/stdio: New file.
73717         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73718         * lib/snprintf.h: Remove file.
73719         * lib/vsnprintf.h: Remove file.
73720         * lib/.cppi-disable: Remove snprintf.h.
73721         * m4/stdio_h.m4: New file.
73722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73723
73724 2007-02-20  Jim Meyering  <jim@meyering.net>
73725
73726         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73727         used by e.g., mingw.  From Bruno Haible.
73728
73729 2007-02-19  Bruno Haible  <bruno@clisp.org>
73730
73731         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73732         warnings.
73733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73734
73735 2007-02-19  Bruno Haible  <bruno@clisp.org>
73736
73737         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73738         from mingw users.
73739
73740 2007-02-19  Bruno Haible  <bruno@clisp.org>
73741
73742         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73743         warnings.
73744         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73745
73746 2007-02-19  Jim Meyering  <jim@meyering.net>
73747
73748         Don't use FD after a successful "fdopendir (fd)".
73749         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73750         Reset it by calling dirfd on the just-obtained DIR*.
73751
73752         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73753         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73754
73755 2007-02-18  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/readlink.c: Include <unistd.h>.
73758         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73759         HAVE_READLINK.
73760         * modules/readlink (Depends-on): Add unistd.
73761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73762         (Include): Add <unistd.h>.
73763
73764         * lib/getlogin_r.h: Remove file.
73765         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73766         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73767         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73768         HAVE_DECL_GETLOGIN_R.
73769         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73771         (Include): Use <unistd.h> instead of getlogin_r.h.
73772
73773         * lib/getcwd.h: Remove file.
73774         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73775         * lib/xgetcwd.c: Likewise.
73776         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73777         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73778         * modules/getcwd (Files): Remove lib/getcwd.h.
73779         (Depends-on): Add unistd.
73780         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73781         (Include): Use <unistd.h> instad of getcwd.h.
73782
73783         * lib/ftruncate.c: Include <unistd.h> first.
73784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73785         Set HAVE_FTRUNCATE.
73786         * modules/ftruncate (Depends-on): Add unistd.
73787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73788
73789         * lib/fchdir.c: Include <unistd.h> first.
73790         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73792         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73793         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73794         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73795
73796         * lib/dup2.c: Include <unistd.h> first.
73797         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73798         HAVE_DUP2.
73799         * modules/dup2 (Depends-on): Add unistd.
73800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73801
73802         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73803         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73804         REPLACE_CHOWN. Don't define chown as a macro here.
73805         * modules/chown (Depends-on): Add unistd.
73806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73807
73808         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73809         Add definition for GL_LINK_WARNING.
73810         (chown, dup2): New declarations.
73811         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73812         link warning.
73813         (ftruncate): New declaration.
73814         (getcwd): New declaration, taken from old getcwd.h.
73815         (getlogin_r): New declaration, taken from old getlogin_r.h.
73816         (readlink): New declaration.
73817         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73818         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73819         (gl_PREREQ_UNISTD): Remove macro.
73820         (gl_UNISTD_MODULE_INDICATOR): New macro.
73821         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73822         many new variables. Don't set UNISTD_H.
73823         * modules/unistd (Description): Change.
73824         (Depends-on): Add link-warning.
73825         (configure.ac): Update.
73826         (Makefile.am): Create unistd.h always. Substitute many new variables
73827         into it.
73828
73829 2007-02-18  Bruno Haible  <bruno@clisp.org>
73830
73831         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73832         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73833         HAVE_GETSUBOPT.
73834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73835         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73836         * lib/getsubopt.h: Remove file.
73837         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73838         (Depends-on): Add stdlib.
73839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73840         (Includes): Use <stdlib.h> instead of getsubopt.h.
73841         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73842         Set HAVE_GETSUBOPT.
73843         * lib/getsubopt.c: Don't include getsubopt.h.
73844
73845 2007-02-18  Bruno Haible  <bruno@clisp.org>
73846
73847         * modules/fchdir (Depends-on): Add dup2.
73848
73849 2007-02-18  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/stdlib_.h: Handle glibc's special invocation convention
73852         specially.
73853
73854 2007-02-18  Bruno Haible  <bruno@clisp.org>
73855
73856         * modules/stdlib-tests: New file.
73857         * tests/test-stdlib.c: New file.
73858
73859         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73860         (Depends-on): Add stdlib.
73861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73862         (Includes): Use <stdlib.h> instead of mkstemp.h.
73863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73864         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73865         * lib/mkstemp.c: Don't include mkstemp.h.
73866         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73867         * lib/stdlib--.h: Don't include mkstemp.h.
73868
73869         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73870         (Depends-on): Add stdlib.
73871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73872         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73873         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73874         HAVE_MKDTEMP.
73875         * lib/mkdtemp.c: Don't include mkdtemp.h.
73876         * lib/clean-temp.c: Don't include mkdtemp.h.
73877
73878         * modules/exit (Files): Remove lib/exit.h.
73879         (Depends-on): Add stdlib.
73880         (Makefile.am): Remove lib_SOURCES.
73881         (Include): Use <stdlib.h> instead of exit.h.
73882         * lib/argmatch.c: Don't include exit.h.
73883         * lib/execute.c: Likewise.
73884         * lib/pagealign_alloc.c: Likewise.
73885         * lib/pipe.c: Likewise.
73886         * lib/wait-process.c: Likewise.
73887         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73888         * lib/exitfail.c: Likewise.
73889         * lib/savewd.c: Likewise.
73890         * lib/xsetenv.c: Likewise.
73891
73892         * modules/stdlib: New file.
73893         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73894         and extra comments about mkstemp().
73895         * lib/exit.h: Remove file.
73896         * lib/mkdtemp.h: Remove file.
73897         * lib/mkstemp.h: Remove file.
73898         * m4/stdlib_h.m4: New file.
73899         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73900
73901 2007-02-18  Bruno Haible  <bruno@clisp.org>
73902
73903         * modules/math-tests: New file.
73904         * tests/test-math.c: New file.
73905
73906         * modules/math: New file.
73907         * modules/mathl (Files): Remove lib/mathl.h.
73908         (Depends-on): Add math.
73909         (Makefile.am): Don't mention mathl.h.
73910         (Include): Use <math.h> instead of mathl.h.
73911         * lib/math_.h: New file.
73912         * lib/mathl.h: Remove file.
73913         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73914         mathl.h.
73915         * lib/asinl.c: Likewise.
73916         * lib/atanl.c: Likewise.
73917         * lib/ceill.c: Likewise.
73918         * lib/cosl.c: Likewise.
73919         * lib/expl.c: Likewise.
73920         * lib/floorl.c: Likewise.
73921         * lib/frexpl.c: Likewise.
73922         * lib/ldexpl.c: Likewise.
73923         * lib/logl.c: Likewise.
73924         * lib/sincosl.c: Likewise.
73925         * lib/sinl.c: Likewise.
73926         * lib/sqrtl.c: Likewise.
73927         * lib/tanl.c: Likewise.
73928         * lib/trigl.c: Likewise.
73929         * m4/math_h.m4: New file.
73930         * MODULES.html.sh (Mathematics): Add math.
73931
73932 2007-02-17  Bruno Haible  <bruno@clisp.org>
73933
73934         * modules/wctype-tests: New file.
73935         * tests/test-wctype.c: New file.
73936
73937         * modules/wchar-tests: New file.
73938         * tests/test-wchar.c: New file.
73939
73940         * modules/unistd-tests: New file.
73941         * tests/test-unistd.c: New file.
73942
73943         * modules/time-tests: New file.
73944         * tests/test-time.c: New file.
73945
73946         * modules/sysexits-tests: New file.
73947         * tests/test-sysexits.c: New file.
73948
73949         * modules/sys_time-tests: New file.
73950         * tests/test-sys_time.c: New file.
73951
73952         * modules/sys_stat-tests: New file.
73953         * tests/test-sys_stat.c: New file.
73954
73955         * modules/sys_socket-tests: New file.
73956         * tests/test-sys_socket.c: New file.
73957
73958         * modules/sys_select-tests: New file.
73959         * tests/test-sys_select.c: New file.
73960
73961         * modules/string-tests: New file.
73962         * tests/test-string.c: New file.
73963
73964         * modules/stdbool-tests: New file.
73965         * tests/test-stdbool.c: New file.
73966
73967         * modules/netinet_in-tests: New file.
73968         * tests/test-netinet_in.c: New file.
73969
73970         * modules/inttypes-tests: New file.
73971         * tests/test-inttypes.c: New file.
73972
73973         * modules/fcntl-tests: New file.
73974         * tests/test-fcntl.c: New file.
73975
73976         * modules/byteswap-tests: New file.
73977         * tests/test-byteswap.c: New file.
73978
73979         * modules/arpa_inet-tests: New file.
73980         * tests/test-arpa_inet.c: New file.
73981
73982 2007-02-17  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73985         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73986         if the corresponding module is not enabled. Emit link warnings if
73987         the function is used nevertheless.
73988         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73989         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73990         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73991         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73992         * modules/inttypes (Depends-on): Add link-warning.
73993         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73994         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73995         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73996         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73997         * modules/imaxdiv (configure.ac): Likewise.
73998         * modules/strtoimax (configure.ac): Likewise.
73999         * modules/strtoumax (configure.ac): Likewise.
74000
74001 2007-02-17  Bruno Haible  <bruno@clisp.org>
74002
74003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74004         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74005         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74006         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74007
74008 2007-02-17  Bruno Haible  <bruno@clisp.org>
74009
74010         * modules/link-warning: New file.
74011         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74012         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74013         * modules/string (Depends-on): Add link-warning.
74014         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74015         string.h.
74016         * MODULES.html.sh (Support for building libraries and executables): Add
74017         link-warning.
74018
74019 2007-02-17  Bruno Haible  <bruno@clisp.org>
74020
74021         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74022         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74023         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74024         long lines.
74025
74026 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74027             Bruno Haible  <bruno@clisp.org>
74028
74029         * modules/tmpfile: New file.
74030         * lib/tmpfile.c: New file.
74031         * m4/tmpfile.m4: New file.
74032         * MODULES.html.sh (func_all_modules): New section "Input/output".
74033
74034 2007-02-15  Bruno Haible  <bruno@clisp.org>
74035
74036         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74037         (supports_delete_on_close): New function.
74038         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74039
74040 2007-02-14  Bruno Haible  <bruno@clisp.org>
74041
74042         * modules/mbspcasecmp-tests: New file.
74043         * tests/test-mbspcasecmp.sh: New file.
74044         * tests/test-mbspcasecmp.c: New file.
74045
74046         New module mbspcasecmp.
74047         * modules/mbspcasecmp: New file.
74048         * lib/mbspcasecmp.c: New file.
74049         * lib/string_.h (strncasecmp): Change warning message.
74050         (mbspcasecmp): New declaration.
74051         * m4/mbspcasecmp.m4: New file.
74052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74053         GNULIB_MBSPCASECMP.
74054         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74055         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74056
74057 2007-02-14  Bruno Haible  <bruno@clisp.org>
74058
74059         * modules/mbsncasecmp-tests: New file.
74060         * tests/test-mbsncasecmp.sh: New file.
74061         * tests/test-mbsncasecmp.c: New file.
74062
74063         New module mbsncasecmp.
74064         * modules/mbsncasecmp: New file.
74065         * lib/mbsncasecmp.c: New file.
74066         * lib/string_.h (mbsncasecmp): New declaration.
74067         * m4/mbsncasecmp.m4: New file.
74068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74069         GNULIB_MBSNCASECMP.
74070         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74071         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74072
74073 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74074
74075         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74076         Verify that it doesn't overlap with our flags.
74077         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74078         do not have the desired effect in multibyte locales; instead, use
74079         mbscasecmp.
74080         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74081         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74082         we don't require GNU fnmatch ourselves (if our users require it, they
74083         should do so explicitly).
74084
74085         Fix regex code so it doesn't rely on strcasecmp.
74086         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74087         Otherwise, include gnulib's langinfo.h.
74088         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74089         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74090         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74091         * modules/regex (FILES): Remove m4/codeset.m4.
74092         (Depends-on): Add localcharset.  Remove strcase.
74093
74094 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74095
74096         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74097         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74098
74099 2007-02-13  Bruno Haible  <bruno@clisp.org>
74100
74101         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74103
74104 2007-02-12  Bruno Haible  <bruno@clisp.org>
74105
74106         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74107         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74108         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74109         time warning rather than a link error.
74110
74111 2007-02-12  Bruno Haible  <bruno@clisp.org>
74112
74113         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74114         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74116
74117 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74120         args, not 2.
74121
74122 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74123
74124         New module 'time', so that apps can include <time.h> as per
74125         POSIX and GNU instead of separate include files like time_r.h
74126         and timegm.h.  This implementation tries out a simpler approach
74127         for replacing decls in standard include files (as compared to
74128         the string module), somewhat as an experiment.
74129
74130         * config/srclist.txt: Comment out mktime.c for now.
74131         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74132         since it doesn't apply any more.  Use generic wording instead.
74133         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74134         'time'.
74135         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74136         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74137         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74138         Don't include <sys/types.h>; no longer needed since we assume C89.
74139         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74140         * lib/strftime.c: Likewise.
74141         * lib/time_r.c: Likewise.
74142         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74143         * lib/nanosleep.c: Include <time.h> first, to check interface.
74144         * lib/strptime.c: Likewise.
74145         * lib/time_r.c: Likewise.
74146         * lib/timegm.c: Likewise.
74147         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74148         needed.
74149         * lib/timegm.c: Don't include timegm.h; no longer needed.
74150         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74151         time.h now handles any problems in that area.
74152         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74153         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74154         that time.h defines struct timespec.
74155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74156         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74157         handles that.
74158         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74159         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74160         needed.  Set REPLACE_LOCALTIME.
74161         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74162         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74163         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74164         nanosleep; time_h.m4 now does that.  Don't require
74165         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74166         module handles this now.
74167         * modules/getdate (Depends-on): Remove timespec.  Add time.
74168         * modules/nanosleep (Depends-on): Likewise.
74169         * modules/stat-time (Depends-on): Likewise.
74170         * modules/nanosleep (Include): Include time.h, not timespec.h.
74171         * modules/strptime (Files): Remove lib/strptime.h.
74172         (Depends-on): Add extensions, time.
74173         (Include): Include time.h, not strptime.h.
74174         * modules/time_r (Files): Remove lib/time_r.h.
74175         (Depends-on): Add time.
74176         (Include): Include time.h, not time_r.h.
74177         * modules/timegm: Likewise.
74178         * modules/timespec (Description): Now does timespec-related decls
74179         of our own, instead of struct timespec itself.
74180         (Depends-on): Add time; remove extensions.
74181         (Maintainer): Add self.
74182         * modules/utimecmp (Depends-on): Add time; remove timespec.
74183         * modules/utimens (Depends-on): Likewise.
74184         * modules/xnanosleep (Depends-on): Likewise.
74185
74186 2007-02-11  Bruno Haible  <bruno@clisp.org>
74187
74188         * lib/c-strstr.c: Include allocsa.h.
74189         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74190         * lib/c-strcasestr.c: Include allocsa.h.
74191         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74192         * lib/strcasestr.c: Include allocsa.h.
74193         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74194         * lib/mbsstr.c: Include allocsa.h.
74195         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74196         allocsa/freesa instead of malloc/free.
74197         * lib/mbscasestr.c: Include allocsa.h.
74198         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74199         allocsa/freesa instead of malloc/free.
74200         * modules/c-strstr (Depends-on): Add allocsa.
74201         * modules/c-strcasestr (Depends-on): Likewise.
74202         * modules/strcasestr (Depends-on): Likewise.
74203         * modules/mbsstr (Depends-on): Likewise.
74204         * modules/mbscasestr (Depends-on): Likewise.
74205
74206 2007-02-11  Bruno Haible  <bruno@clisp.org>
74207
74208         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74209
74210         * modules/mbsspn-tests: New file.
74211         * tests/test-mbsspn.sh: New file.
74212         * tests/test-mbsspn.c: New file.
74213
74214 2007-02-11  Bruno Haible  <bruno@clisp.org>
74215
74216         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74217
74218         * modules/mbspbrk-tests: New file.
74219         * tests/test-mbspbrk.sh: New file.
74220         * tests/test-mbspbrk.c: New file.
74221
74222 2007-02-11  Bruno Haible  <bruno@clisp.org>
74223
74224         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74225         unneeded cast.
74226
74227         * modules/mbscspn-tests: New file.
74228         * tests/test-mbscspn.sh: New file.
74229         * tests/test-mbscspn.c: New file.
74230
74231 2007-02-11  Bruno Haible  <bruno@clisp.org>
74232
74233         * modules/mbscasecmp-tests: New file.
74234         * tests/test-mbscasecmp.sh: New file.
74235         * tests/test-mbscasecmp.c: New file.
74236
74237 2007-02-11  Bruno Haible  <bruno@clisp.org>
74238
74239         Ensure O(n) worst-case complexity of mbscasestr.
74240         * lib/mbscasestr.c: Include stdbool.h.
74241         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74242         functions.
74243         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74244         the bookkeeping indicates that it's worth it.
74245         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74246
74247         * modules/mbscasestr-tests: New file.
74248         * tests/test-mbscasestr1.c: New file.
74249         * tests/test-mbscasestr2.sh: New file.
74250         * tests/test-mbscasestr2.c: New file.
74251         * tests/test-mbscasestr3.sh: New file.
74252         * tests/test-mbscasestr3.c: New file.
74253         * tests/test-mbscasestr4.sh: New file.
74254         * tests/test-mbscasestr4.c: New file.
74255         * m4/locale-tr.m4: New file.
74256
74257 2007-02-11  Bruno Haible  <bruno@clisp.org>
74258
74259         Ensure O(n) worst-case complexity of mbsstr.
74260         * lib/mbsstr.c: Include stdbool.h.
74261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74262         functions.
74263         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74264         bookkeeping indicates that it's worth it.
74265         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74266
74267         * modules/mbsstr-tests: New file.
74268         * tests/test-mbsstr1.c: New file.
74269         * tests/test-mbsstr2.sh: New file.
74270         * tests/test-mbsstr2.c: New file.
74271         * tests/test-mbsstr3.sh: New file.
74272         * tests/test-mbsstr3.c: New file.
74273         * m4/locale-fr.m4: New file.
74274
74275 2007-02-11  Bruno Haible  <bruno@clisp.org>
74276
74277         * lib/mbsrchr.c (mbsrchr): Fix bug.
74278
74279         * modules/mbsrchr-tests: New file.
74280         * tests/test-mbsrchr.sh: New file.
74281         * tests/test-mbsrchr.c: New file.
74282
74283 2007-02-11  Bruno Haible  <bruno@clisp.org>
74284
74285         * lib/mbschr.c (mbschr): Fix bug.
74286
74287         * modules/mbschr-tests: New file.
74288         * tests/test-mbschr.sh: New file.
74289         * tests/test-mbschr.c: New file.
74290         * m4/locale-zh.m4: New file.
74291
74292 2007-02-11  Bruno Haible  <bruno@clisp.org>
74293
74294         Support for copying multibyte string iterators.
74295         * lib/mbiter.h: Include <string.h>.
74296         (mbiter_multi_copy): New function.
74297         (mbi_copy): New macro.
74298         * lib/mbuiter.h: Include <string.h>.
74299         (mbuiter_multi_copy): New function.
74300         (mbui_copy): New macro.
74301
74302 2007-02-11  Bruno Haible  <bruno@clisp.org>
74303
74304         New module mbslen.
74305         * modules/mbslen: New file.
74306         * lib/mbslen.c: New file.
74307         * lib/string_.h (mbslen): New declaration.
74308         * m4/mbslen.m4: New file.
74309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74310         GNULIB_MBSLEN.
74311         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74312         * MODULES.html.sh (Internationalization functions): Add mbslen.
74313
74314 2007-02-11  Bruno Haible  <bruno@clisp.org>
74315
74316         Ensure O(n) worst-case complexity of strcasestr substitute.
74317         * lib/strcasestr.c: Include stdbool.h.
74318         (knuth_morris_pratt): New function.
74319         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74320         bookkeeping indicates that it's worth it.
74321         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74322
74323         * modules/strcasestr-tests: New file.
74324         * tests/test-strcasestr.c: New file.
74325
74326 2007-02-11  Bruno Haible  <bruno@clisp.org>
74327
74328         Ensure O(n) worst-case complexity of c_strcasestr.
74329         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74330         (knuth_morris_pratt): New function.
74331         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74332         the bookkeeping indicates that it's worth it.
74333         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74334
74335         * modules/c-strcasestr-tests: New file.
74336         * tests/test-c-strcasestr.c: New file.
74337
74338 2007-02-11  Bruno Haible  <bruno@clisp.org>
74339
74340         Ensure O(n) worst-case complexity of c_strstr.
74341         * lib/c-strstr.c: Include stdbool.h, string.h.
74342         (knuth_morris_pratt): New function.
74343         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74344         bookkeeping indicates that it's worth it.
74345         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74346
74347         * lib/c-strstr.c: Complete rewrite for maintainability.
74348
74349         * modules/c-strstr-tests: New file.
74350         * tests/test-c-strstr.c: New file.
74351
74352 2007-02-11  Bruno Haible  <bruno@clisp.org>
74353
74354         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74355         5.2.1 and earlier, whereby \055 was treated just like the range
74356         delimiter '-'.
74357         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74358
74359 2007-02-08  Bruno Haible  <bruno@clisp.org>
74360
74361         * modules/regex (Depends-on): Add stdbool.
74362         Reported by Dalibor Topic <robilad@kaffe.org>.
74363
74364 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74367         Prefer returning from main to exiting from it.
74368         Remove unnecessary parens after sizeof.
74369
74370 2007-02-05  Bruno Haible  <bruno@clisp.org>
74371
74372         New module mbssep.
74373         * modules/mbssep: New file.
74374         * lib/mbssep.c: New file.
74375         * lib/string_.h (strsep): Add a conditional link warning.
74376         (mbssep): New declaration.
74377         * m4/mbssep.m4: New file.
74378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74379         GNULIB_MBSSEP.
74380         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74381         * MODULES.html.sh (Internationalization functions): Add mbssep.
74382
74383 2007-02-05  Bruno Haible  <bruno@clisp.org>
74384
74385         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74386         Optimize search in case of 1 delimiter.
74387
74388 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74389
74390         * lib/acl.h: Include sys/types.h before sys/acl.h.
74391
74392 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74393
74394         Merge upstream fix for glibc bugzilla #3957:
74395
74396         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74397
74398         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74399         bit for RE_HAT_LISTS_NOT_NEWLINE.
74400         (build_charclass_op): Remove bogus comment.
74401
74402 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74403
74404         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74405
74406 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74409         * lib/memmem.c [!defined _LIBC]: Include config.h.
74410
74411 2007-02-04  Bruno Haible  <bruno@clisp.org>
74412
74413         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74414         warning message.
74415
74416 2007-02-04  Bruno Haible  <bruno@clisp.org>
74417
74418         New module mbstok_r.
74419         * modules/mbstok_r: New file.
74420         * lib/mbstok_r.c: New file.
74421         * lib/string_.h (strtok_r): Change argument names to match the
74422         comments. Add a conditional link warning.
74423         (mbstok_r): New declaration.
74424         * m4/mbstok_r.m4: New file.
74425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74426         GNULIB_MBSTOK_R.
74427         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74428         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74429
74430 2007-02-04  Bruno Haible  <bruno@clisp.org>
74431
74432         New module mbsspn.
74433         * modules/mbsspn: New file.
74434         * lib/mbsspn.c: New file.
74435         * lib/string_.h (strspn): Add a conditional link warning.
74436         (mbsspn): New declaration.
74437         * m4/mbsspn.m4: New file.
74438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74439         GNULIB_MBSSPN.
74440         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74441         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74442
74443 2007-02-04  Bruno Haible  <bruno@clisp.org>
74444
74445         New module mbspbrk.
74446         * modules/mbspbrk: New file.
74447         * lib/mbspbrk.c: New file.
74448         * lib/string_.h (strpbrk): Add a conditional link warning.
74449         (mbspbrk): New declaration.
74450         * m4/mbspbrk.m4: New file.
74451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74452         GNULIB_MBSPBRK.
74453         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74454         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74455
74456 2007-02-04  Bruno Haible  <bruno@clisp.org>
74457
74458         New module mbscspn.
74459         * modules/mbscspn: New file.
74460         * lib/mbscspn.c: New file.
74461         * lib/string_.h (strcspn): Add a conditional link warning.
74462         (mbscspn): New declaration.
74463         * m4/mbscspn.m4: New file.
74464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74465         GNULIB_MBSCSPN.
74466         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74467         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74468
74469 2007-02-04  Bruno Haible  <bruno@clisp.org>
74470
74471         New module mbscasestr, reduced goal of strcasestr.
74472         * modules/mbscasestr: New file.
74473         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74474         (mbscasestr): Renamed from strcasestr.
74475         * lib/strcasestr.c: Don't include mbuiter.h.
74476         (strcasestr): Remove support for multibyte locales.
74477         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74478         Change the conditional link warning.
74479         (mbscasestr): New declaration.
74480         * m4/mbscasestr.m4: New file.
74481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74482         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74483         REPLACE_STRCASESTR.
74484         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74486         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74488         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74489         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74490         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74491         (Depends-on): Remove mbuiter.
74492         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74493
74494 2007-02-04  Bruno Haible  <bruno@clisp.org>
74495
74496         Simplify handling of strncasecmp.
74497         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74498         the conditional link warning.
74499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74500         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74501         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74502         * modules/strcase (configure.ac): Don't invoke
74503         gl_STRING_MODULE_INDICATOR.
74504         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74505
74506 2007-02-04  Bruno Haible  <bruno@clisp.org>
74507
74508         New module mbscasecmp, reduced goal of strcasecmp.
74509         * modules/mbscasecmp: New file.
74510         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74511         (mbscasecmp): Renamed from strcasecmp.
74512         * lib/strcasecmp.c: Don't include mbuiter.h.
74513         (strcasecmp): Remove support for multibyte locales.
74514         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74515         Change the conditional link warning.
74516         (mbscasecmp): New declaration.
74517         * m4/mbscasecmp.m4: New file.
74518         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74519         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74520         REPLACE_STRCASECMP.
74521         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74523         GNULIB_MBSCASECMP.
74524         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74525         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74526         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74527         (Depends-on): Remove mbuiter.
74528         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74529
74530 2007-02-04  Bruno Haible  <bruno@clisp.org>
74531
74532         New module mbsstr. Remove module strstr.
74533         * modules/mbsstr: New file.
74534         * modules/strstr: Remove file.
74535         * lib/mbsstr.c: Renamed from lib/strstr.c.
74536         (mbsstr): Renamed from strstr.
74537         * lib/string_.h (strstr): Remove declaration. Change the conditional
74538         link warning.
74539         (mbsstr): New declaration.
74540         * m4/mbsstr.m4: New file.
74541         * m4/strstr.m4: Remove file.
74542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74543         REPLACE_STRSTR.
74544         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74545         Don't initialize GNULIB_STRSTR.
74546         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74547         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74548         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74549         (Support for systems lacking ANSI C 89): Remove strstr.
74550
74551 2007-02-04  Bruno Haible  <bruno@clisp.org>
74552
74553         New module mbsrchr.
74554         * modules/mbsrchr: New file.
74555         * lib/mbsrchr.c: New file.
74556         * lib/string_.h (strrchr): Add a conditional link warning.
74557         (mbsrchr): New declaration.
74558         * m4/mbsrchr.m4: New file.
74559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74560         GNULIB_MBSRCHR.
74561         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74562         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74563
74564 2007-02-04  Bruno Haible  <bruno@clisp.org>
74565
74566         New module mbschr.
74567         * modules/mbschr: New file.
74568         * lib/mbschr.c: New file.
74569         * lib/string_.h (strchr): Add a conditional link warning.
74570         (mbschr): New declaration.
74571         * m4/mbschr.m4: New file.
74572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74573         GNULIB_MBSCHR.
74574         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74575         * MODULES.html.sh (Internationalization functions): Add mbschr.
74576
74577 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74580
74581         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74582
74583 2007-02-04  Bruno Haible  <bruno@clisp.org>
74584
74585         New module description section 'configure.ac-early'.
74586         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74587         (func_get_autoconf_early_snippet): New function.
74588         (func_import, func_create_testdir): Use it. Remove special cases for
74589         modules 'extensions' and 'lock'.
74590         * modules/extensions (configure.ac-early): Require
74591         gl_USE_SYSTEM_EXTENSIONS.
74592         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74593
74594 2007-02-04  Bruno Haible  <bruno@clisp.org>
74595
74596         Make use of gcj-4.3's -fsource and -ftarget option.
74597         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74598         and if so try the options -fsource and -ftarget.
74599         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74600         source_version, ftarget_option, target_version arguments.
74601         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74602         (is_envjavac_oldgcj_14_14_usable): Renamed from
74603         is_envjavac_gcj_14_14_usable.
74604         (is_envjavac_oldgcj_14_13_usable): Renamed from
74605         is_envjavac_gcj_14_13_usable.
74606         (is_gcj_present): Update.
74607         (is_gcj_43, is_gcj43_usable): New functions.
74608         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74609         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74610         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74611         try the options -fsource and -ftarget.
74612
74613 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74616         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74617         larger value.
74618
74619 2007-02-03  Jim Meyering  <jim@meyering.net>
74620
74621         Give tools a better chance to allocate space for very large buffers.
74622         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74623
74624         Make pwd and readlink work also when run with an unreadable parent dir
74625         on systems with openat support.
74626         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74627         provided getcwd function, even when we have openat support.
74628         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74629
74630 2007-02-02  Bruno Haible  <bruno@clisp.org>
74631
74632         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74633         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74634         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74635         portability problems if one of these functions is only used on specific
74636         platforms.
74637         Reported by Paul Eggert.
74638
74639 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74640
74641         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74642         is causing more trouble than it's curing.
74643         * lib/regex_internal.h (__mempcpy): Remove.
74644         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74645         (and make the code a tad smaller to boot).
74646         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74647
74648 2007-02-02  Jim Meyering  <jim@meyering.net>
74649
74650         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74651         section, not in the Makefile.am: one.
74652
74653 2007-02-02  Eric Blake  <ebb9@byu.net>
74654
74655         * lib/strchrnul.c: Always include config.h first.
74656
74657         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74658         gnulib strstr is not necessary here.
74659
74660 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74661
74662         * m4/socklen.m4: Fix typo.
74663
74664 2007-02-02  Eric Blake  <ebb9@byu.net>
74665
74666         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74667         * modules/netinet_in (Makefile.am): Likewise.
74668
74669 2007-02-01  Bruno Haible  <bruno@clisp.org>
74670
74671         * lib/string_.h (GL_LINK_WARNING): New macro.
74672         (strcasecmp, strstr, strcasestr): If provided by the system,
74673         conditionally define as a macro that leads to a warning instead of to
74674         an error.
74675         (strncasecmp): Conditionally define as a macro that leads to a warning.
74676
74677 2007-02-01  Karl Berry  <karl@gnu.org>
74678
74679         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74680
74681 2007-02-01  Bruno Haible  <bruno@clisp.org>
74682
74683         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74684         renamings.
74685
74686 2007-02-01  Eric Blake  <ebb9@byu.net>
74687
74688         * modules/regex (Depends-on): Revert dependence on mempcpy.
74689         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74690         module's definition of mempcpy.
74691         Reported by Paul Eggert.
74692
74693 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74696         the symbol XYZ before redefining it.  This fixes a problem with
74697         programs that don't use XYZ, when compiled on systems that define
74698         XYZ to something else.
74699
74700 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74701
74702         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74703         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74704         writeable to group or other and (2) is intended to have a special
74705         mode bit that is set or cleared.  In such a case, the directory
74706         should be neither group- nor other-writeable until the special
74707         mode bits are right.
74708
74709 2007-01-31  Eric Blake  <ebb9@byu.net>
74710
74711         * modules/mountlist (Depends-on): Add strstr.
74712
74713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74714         bug.
74715         * modules/string (Makefile.am): Remove redundant replacement.
74716         * modules/regex (Depends-on): Add mempcpy.
74717
74718 2007-01-31  Bruno Haible  <bruno@clisp.org>
74719
74720         New module description field 'Link'.
74721         * gnulib-tool (func_usage): Document --extract-link-directive.
74722         (sed_extract_prog): Recognize 'Link' directive.
74723         (func_get_link_directive): New function.
74724         (func_import): Show summary of link directives.
74725         Handle --extract-link-directive option.
74726         * modules/acl (Link): New section.
74727         * modules/clock-time (Link): New section.
74728         * modules/euidaccess (Link): New section.
74729         * modules/gettext (Link): New section.
74730         * modules/iconv (Link): New section.
74731         * modules/lock (Link): New section.
74732         * modules/nanosleep (Link): New section.
74733         * modules/readline (Link): New section.
74734
74735 2007-01-27  Bruno Haible  <bruno@clisp.org>
74736
74737         Enforce the use of gnulib modules for unportable <string.h> functions.
74738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74739         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74740         (gl_HEADER_STRING_H_BODY): Require it.
74741         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74742         the symbol XYZ to one that gives a link error.
74743         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74744         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74745         * modules/mempcpy (configure.ac): Likewise.
74746         * modules/memrchr (configure.ac): Likewise.
74747         * modules/stpcpy (configure.ac): Likewise.
74748         * modules/stpncpy (configure.ac): Likewise.
74749         * modules/strcase (configure.ac): Likewise.
74750         * modules/strcasestr (configure.ac): Likewise.
74751         * modules/strchrnul (configure.ac): Likewise.
74752         * modules/strdup (configure.ac): Likewise.
74753         * modules/strndup (configure.ac): Likewise.
74754         * modules/strnlen (configure.ac): Likewise.
74755         * modules/strpbrk (configure.ac): Likewise.
74756         * modules/strsep (configure.ac): Likewise.
74757         * modules/strstr (configure.ac): Likewise.
74758         * modules/strtok_r (configure.ac): Likewise.
74759
74760 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74761
74762         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74763
74764 2007-01-30  Jim Meyering  <jim@meyering.net>
74765
74766         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74767
74768 2007-01-29  Bruno Haible  <bruno@clisp.org>
74769
74770         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74771         * lib/execute.c: Likewise.
74772         * lib/pipe.c: Likewise.
74773         * lib/printf-args.h: Likewise.
74774         * lib/printf-args.c: Likewise.
74775         * lib/printf-parse.c: Likewise.
74776         * lib/vasnprintf.c: Likewise.
74777
74778 2007-01-29  Eric Blake  <ebb9@byu.net>
74779
74780         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74781         declaration.
74782
74783 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74784
74785         * lib/strptime.h (strptime): Use 'restrict' for args where
74786         POSIX requires this.
74787         * lib/strptime.c (strptime): Likewise.
74788         Change license notice from LGPL to GPL, since gnulib-tool will
74789         change this as needed.
74790         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74791         defined.
74792         Include "strptime.h" first, to check interface.
74793         Do not #undef _LIBC and _NL_CURRENT.
74794         Do not include <stdlib.h>; no longer needed.
74795         Include "time_r.h" and declare ptime_locale_status
74796         only if _LIBC is not defined.
74797         (__P): Remove unused macro.
74798         (match_string): Bring back glibc version, but use it only if _LIBC
74799         is defined.
74800         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74801         Remove unnecessary assertion and abort() call.
74802         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74803         * m4/strptime.m4: Fix serial number comment.
74804         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74805         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74806         (Depends-on): Add time_r.
74807
74808 2007-01-29  Bruno Haible  <bruno@clisp.org>
74809
74810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74811         strptime.
74812         * modules/strptime (Depends-on): Add stdbool.
74813         * lib/strptime.h: Include <time.h> always. Add comments.
74814
74815 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74816
74817         * modules/strptime: New file.
74818         * lib/strptime.h: New file.
74819         * lib/strptime.c: New file.
74820         * m4/strptime.m4: New file.
74821
74822 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * MODULES.html.sh: New module mpsort.
74825         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74826
74827         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74828         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74830         All uses changed.
74831         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74832         All uses changed.
74833         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74834         to _Restrict_.
74835         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74836         the parameter matches the prototype.
74837
74838 2007-01-28  Jim Meyering  <jim@meyering.net>
74839
74840         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74841         sys/time.h here, reverting that part of the previous patch:
74842         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74843
74844 2007-01-28  Bruno Haible  <bruno@clisp.org>
74845
74846         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74847         value of $(SYS_TIME_H).
74848         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74849         remove it conditionally, too. [added by Jim Meyering]
74850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74852         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74853         GETTIMEOFDAY_REPLACEMENT to 1.
74854
74855 2007-01-28  Bruno Haible  <bruno@clisp.org>
74856
74857         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74858         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74860         Set UNISTD_H instead of UNISTD_H2.
74861         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74862
74863 2007-01-28  Bruno Haible  <bruno@clisp.org>
74864
74865         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74866         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74867
74868 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74869
74870         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74871         (func_create_testdir): Ensure C locale for `grep' and `tr'
74872         character ranges.
74873         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74874         ACLOCAL_AMFLAGS parsing state machine.
74875
74876 2007-01-27  Bruno Haible  <bruno@clisp.org>
74877
74878         * modules/unistr/base: Update.
74879
74880 2007-01-27  Bruno Haible  <bruno@clisp.org>
74881
74882         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74883         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74884         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74885         modules/unistr/u32-mbtouc.
74886         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74887         * lib/unistr.h: Update.
74888         * lib/linebreak.c: Update.
74889         * modules/unistr/u32-mbtouc: Renamed from
74890         modules/unistr/u32-mbtouc-safe.
74891         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74892         * lib/unistr.h: Update.
74893         * lib/unistr/u32-to-u8.c: Update.
74894         * lib/unistr/u32-to-u16.c: Update.
74895
74896 2007-01-27  Bruno Haible  <bruno@clisp.org>
74897
74898         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74899         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74900         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74901         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74902         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74903         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74904         modules/unistr/u16-mbtouc.
74905         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74906         * lib/unistr.h: Update.
74907         * lib/linebreak.c: Update.
74908         * modules/linebreak: Update.
74909         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74910         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74911         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74912         * modules/unistr/u16-mbtouc: Renamed from
74913         modules/unistr/u16-mbtouc-safe.
74914         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74915         * lib/unistr.h: Update.
74916         * lib/unistr/u16-to-u8.c: Update.
74917         * modules/unistr/u16-to-u8: Update.
74918         * lib/unistr/u16-to-u32.c: Update.
74919         * modules/unistr/u16-to-u32: Update.
74920
74921 2007-01-27  Bruno Haible  <bruno@clisp.org>
74922
74923         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74924         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74925         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74926         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74927         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74928         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74929         modules/unistr/u8-mbtouc.
74930         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74931         * lib/unistr.h: Update.
74932         * lib/striconveh.c: Update.
74933         * modules/striconveh: Update.
74934         * lib/linebreak.c: Update.
74935         * modules/linebreak: Update.
74936         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74937         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74938         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74939         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74940         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74941         * lib/unistr.h: Update.
74942         * lib/striconveh.c: Update.
74943         * modules/striconveh: Update.
74944         * lib/unistr/u8-to-u16.c: Update.
74945         * modules/unistr/u8-to-u16: Update.
74946         * lib/unistr/u8-to-u32.c: Update.
74947         * modules/unistr/u8-to-u32: Update.
74948
74949 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74950
74951         Sync from Libtool.
74952         * lib/argz.c: Do not include strings.h nor memory.h, include
74953         string.h unconditionally.  Patch by Simon Josefsson.
74954
74955 2007-01-27  Bruno Haible  <bruno@clisp.org>
74956
74957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74958         from gl_HEADER_STRING_H_BODY.
74959         (gl_HEADER_STRING_H_BODY): Require it.
74960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74963         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74965         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74968         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74972         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74973         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74975
74976 2007-01-27  Bruno Haible  <bruno@clisp.org>
74977
74978         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74979         check_PROGRAMS into noinst_PROGRAMS.
74980         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74981         check_PROGRAMS in this case.
74982         (func_import): Set for_test to false.
74983         (func_create_testdir): Set for_test to true.
74984
74985 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74986             Bruno Haible  <bruno@clisp.org>
74987
74988         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74989         (Depends-on): Add string.
74990         (Includes): Use <string.h> instead of strcasestr.h.
74991         * modules/string (Makefile.am): Also substitute the value of
74992         REPLACE_STRCASESTR.
74993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74994         assume strcasestr is declared in <string.h> not <strings.h>. Also
74995         set REPLACE_STRCASESTR.
74996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74997         REPLACE_STRCASESTR.
74998         * lib/strcasestr.h: Remove file.
74999         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75000         * lib/string_.h (strcasestr): New declaration.
75001
75002 2007-01-27  Bruno Haible  <bruno@clisp.org>
75003
75004         * lib/string_.h: Use 'extern'.
75005
75006 2007-01-27  Jim Meyering  <jim@meyering.net>
75007
75008         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75009         of set-but-not-used local, "q".
75010
75011         * lib/mempcpy.c: Include <config.h> before <string.h>.
75012         This fixes a compilation error on HP-UX, due to the system's
75013         "restrict"-using mempcpy prototype.
75014
75015 2007-01-26  Bruno Haible  <bruno@clisp.org>
75016
75017         Small optimization.
75018         * lib/javacomp.c: Include c-strstr.h.
75019          (is_envjavac_gcj): Use c_strstr instead of strstr.
75020         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75021
75022 2007-01-26  Bruno Haible  <bruno@clisp.org>
75023
75024         * MODULES.html.sh (Unicode string functions): Add the new modules.
75025
75026         * modules/uniconv/u32-strconv-to-locale: New file.
75027         * lib/uniconv/u32-strconv-to-locale.c: New file.
75028
75029         * modules/uniconv/u16-strconv-to-locale: New file.
75030         * lib/uniconv/u16-strconv-to-locale.c: New file.
75031
75032         * modules/uniconv/u8-strconv-to-locale: New file.
75033         * lib/uniconv/u8-strconv-to-locale.c: New file.
75034
75035         * modules/uniconv/u32-strconv-from-locale: New file.
75036         * lib/uniconv/u32-strconv-from-locale.c: New file.
75037
75038         * modules/uniconv/u16-strconv-from-locale: New file.
75039         * lib/uniconv/u16-strconv-from-locale.c: New file.
75040
75041         * modules/uniconv/u8-strconv-from-locale: New file.
75042         * lib/uniconv/u8-strconv-from-locale.c: New file.
75043
75044         * modules/uniconv/u32-strconv-to-enc: New file.
75045         * lib/uniconv/u32-strconv-to-enc.c: New file.
75046         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75047         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75048
75049         * modules/uniconv/u16-strconv-to-enc: New file.
75050         * lib/uniconv/u16-strconv-to-enc.c: New file.
75051         * lib/uniconv/u-strconv-to-enc.h: New file.
75052         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75053         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75054
75055         * modules/uniconv/u8-strconv-to-enc: New file.
75056         * lib/uniconv/u8-strconv-to-enc.c: New file.
75057         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75058         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75059
75060         * modules/uniconv/u32-strconv-from-enc: New file.
75061         * lib/uniconv/u32-strconv-from-enc.c: New file.
75062         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75063         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75064
75065         * modules/uniconv/u16-strconv-from-enc: New file.
75066         * lib/uniconv/u16-strconv-from-enc.c: New file.
75067         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75068         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75069
75070         * modules/uniconv/u8-strconv-from-enc: New file.
75071         * lib/uniconv/u8-strconv-from-enc.c: New file.
75072         * lib/uniconv/u-strconv-from-enc.h: New file.
75073         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75074         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75075
75076         * modules/uniconv/u32-conv-from-enc: New file.
75077         * lib/uniconv/u32-conv-from-enc.c: New file.
75078         * modules/uniconv/u32-conv-from-enc-tests: New file.
75079         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75080
75081         * modules/uniconv/u16-conv-from-enc: New file.
75082         * lib/uniconv/u16-conv-from-enc.c: New file.
75083         * lib/uniconv/u-conv-from-enc.h: New file.
75084         * modules/uniconv/u16-conv-from-enc-tests: New file.
75085         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75086
75087         * modules/uniconv/u8-conv-from-enc: New file.
75088         * lib/uniconv/u8-conv-from-enc.c: New file.
75089         * modules/uniconv/u8-conv-from-enc-tests: New file.
75090         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75091
75092         * modules/uniconv/base: New file.
75093         * lib/uniconv.h: New file.
75094
75095 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         * doc/gnulib-tool.texi (Initial import): Update to match current
75098         behavior with strdup module.
75099         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75100         * lib/memmem.h: Remove; all uses removed.  This is now done
75101         by <string.h>.
75102         * lib/mempcpy.h: Likewise.
75103         * lib/memrchr.h: Likewise.
75104         * lib/stpcpy.h: Likewise.
75105         * lib/stpncpy.h: Likewise.
75106         * lib/strcase.h: Likewise.
75107         * lib/strchrnul.h: Likewise.
75108         * lib/strdup.h: Likewise.
75109         * lib/strndup.h: Likewise.
75110         * lib/strnlen.h: Likewise.
75111         * lib/strpbrk.h: Likewise.
75112         * lib/strsep.h: Likewise.
75113         * lib/strstr.h: Likewise.
75114         * lib/strtok_r.h: Likewise.
75115         * lib/string_.h: New file.
75116         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75117         Rely on <string.h> instead.
75118         * lib/canon-host.c: Likewise.
75119         * lib/chdir-long.c: Likewise.
75120         * lib/concatpath.c: Likewise.
75121         * lib/exclude.c: Likewise.
75122         * lib/fchdir.c: Likewise.
75123         * lib/getaddrinfo.c: Likewise.
75124         * lib/getcwd.c: Likewise.
75125         * lib/getsubopt.c: Likewise.
75126         * lib/glob.c: Likewise.
75127         * lib/hard-locale.c: Likewise.
75128         * lib/iconvme.c: Likewise.
75129         * lib/javacomp.c: Likewise.
75130         * lib/mempcpy.c: Likewise.
75131         * lib/memrchr.c: Likewise.
75132         * lib/regex_internal.h: Likewise.
75133         * lib/stpncpy.c: Likewise.
75134         * lib/strcasecmp.c: Likewise.
75135         * lib/strchrnul.c: Likewise.
75136         * lib/strdup.c: Likewise.
75137         * lib/striconv.c: Likewise.
75138         * lib/striconveh.c: Likewise.
75139         * lib/striconveha.c: Likewise.
75140         * lib/strncasecmp.c: Likewise.
75141         * lib/strndup.c: Likewise.
75142         * lib/strnlen.c: Likewise.
75143         * lib/strsep.c: Likewise.
75144         * lib/strstr.c: Likewise.
75145         * lib/strtok_r.c: Likewise.
75146         * lib/userspec.c: Likewise.
75147         * lib/w32spawn.h: Likewise.
75148         * lib/xstrndup.c: Likewise.
75149         * lib/mountlist.c (strstr): Remove decl.
75150         * m4/string_h.m4: New file.
75151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75155         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75156         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75157         Set REPLACE_STRCASECMP if necessary.
75158         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75159         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75160         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75162         HAVE_DECL_STRDUP if necessary.
75163         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75164         since gl_FUNC_STRNDUP does that now.
75165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75166         Check for decl here...
75167         (gl_PREREQ_STRNLEN): ... not here.
75168         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75169         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75170         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75172         necessary.
75173         * modules/string: New file.
75174         * modules/memmem (Files): Remove special-purpose include file.
75175         (Depends-on): Add string.
75176         (Include): Include <string.h>, not the removed file.
75177         * modules/mempcpy: Likewise.
75178         * modules/memrchr: Likewise.
75179         * modules/stpcpy: Likewise.
75180         * modules/stpncpy: Likewise.
75181         * modules/strcase: Likewise.
75182         * modules/strchrnul: Likewise.
75183         * modules/strdup: Likewise.
75184         * modules/strndup: Likewise.
75185         * modules/strnlen: Likewise.
75186         * modules/strpbrk: Likewise.
75187         * modules/strsep: Likewise.
75188         * modules/strstr: Likewise.
75189         * modules/strtok_r: Likewise.
75190         * tests/test-dirname.c: Don't include "strdup.h", since
75191         <string.h> now suffices.
75192         * tests/test-memmem.c: Don't include "memmem.h", since
75193         <string.h> now suffices.
75194
75195 2007-01-25  Bruno Haible  <bruno@clisp.org>
75196
75197         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75198         *resultp is 0.
75199
75200         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75201         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75202         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75203         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75204
75205         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75206         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75207         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75208         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75209         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75210         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75211
75212 2007-01-24  Bruno Haible  <bruno@clisp.org>
75213
75214         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75216         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75217         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75218         gl_FUNC_FTS_CORE.
75219         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75220         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75222         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75223         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75224         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75225         gl_FUNC_FCHOWNAT.
75226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75227         gl_FUNC_STRFTIME.
75228         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75229         Reported by Ralf Wildenhues.
75230
75231 2007-01-24  Bruno Haible  <bruno@clisp.org>
75232
75233         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75234         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75235         gl_GETADDRINFO.
75236         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75237         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75238         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75239
75240 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75243         Don't use 'exit'; just return from 'main'.
75244         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75245
75246         * lib/fnmatch_.h: Readjust white space and comments to match
75247         glibc, to avoid spurious diffs.
75248
75249 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75252         2004-12-01 change by Jakub Jelinek, since this code won't compile
75253         if !LIBC.  Problem reported by Bob Proulx.
75254
75255 2007-01-23  Bruno Haible  <bruno@clisp.org>
75256
75257         * lib/striconveh.c: Include c-strcaseeq.h.
75258         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75259         * modules/striconveh (Depends-on): Add c-strcaseeq.
75260
75261 2007-01-23  Bruno Haible  <bruno@clisp.org>
75262
75263         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75264
75265         * modules/c-strcaseeq: New file.
75266         * lib/c-strcaseeq.h: New file.
75267
75268         * modules/streq: New file.
75269         * lib/streq.h: New file.
75270
75271 2007-01-23  Bruno Haible  <bruno@clisp.org>
75272
75273         * modules/striconveha-tests: New file.
75274         * tests/test-striconveha.c: New file.
75275
75276         * lib/striconveha.h: Include <stdbool.h>.
75277         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75278         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75279         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75280         (mem_iconveha): New function.
75281         (str_iconveha_notranslit): Renamed from str_iconveha.
75282         (str_iconveha): New function.
75283         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75284         c-strcase.
75285
75286 2007-01-23  Bruno Haible  <bruno@clisp.org>
75287
75288         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75289         encodings without forgiving before trying any encoding with handler.
75290         (str_iconveha): Try all encodings without forgiving before trying any
75291         encoding with handler.
75292
75293 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75294
75295         Import the following changes from libc.
75296
75297         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75298
75299         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75300
75301         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75302
75303         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75304         normal_bracket label.
75305
75306         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75307
75308         [BZ #361]
75309         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75310         to normal_bracket after fetching the next character.
75311
75312 2007-01-22  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75315         argument.
75316         * lib/striconveh.c (iconv_carefully_1): New function.
75317         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75318         argument.
75319         (str_cd_iconveh): Update.
75320         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75321         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75322         * tests/test-striconveh.c (MAGIC): New macro.
75323         (new_offsets): New function.
75324         (main): Test call with and without offsets.
75325
75326 2007-01-22  Bruno Haible  <bruno@clisp.org>
75327
75328         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75329         * modules/sys_select (Makefile.am): Likewise.
75330         * modules/sys_socket (Makefile.am): Likewise.
75331         * modules/sys_time (Makefile.am): Likewise.
75332
75333 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         * modules/gettimeofday (License): Change from GPL to LGPL, since
75336         gettimeofday is a library function.
75337
75338 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75339
75340         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75341
75342 2007-01-21  Bruno Haible  <bruno@clisp.org>
75343
75344         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75345
75346 2007-01-21  Bruno Haible  <bruno@clisp.org>
75347
75348         * modules/striconveha: New file.
75349         * lib/striconveha.h: New file.
75350         * lib/striconveha.c: New file.
75351         * MODULES.html.sh (Internationalization functions): Add striconveha.
75352         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75353         string.
75354         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75355
75356 2007-01-21  Bruno Haible  <bruno@clisp.org>
75357
75358         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75359         * lib/striconveh.c (str_iconveh): Likewise.
75360
75361 2007-01-21  Bruno Haible  <bruno@clisp.org>
75362
75363         * lib/striconveh.h (mem_iconveh): New declaration.
75364         * lib/striconveh.c (mem_iconveh): New function.
75365         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75366
75367 2007-01-21  Bruno Haible  <bruno@clisp.org>
75368
75369         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75370
75371         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75372         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75373         original result buffer.
75374         (str_cd_iconveh): Update.
75375         * tests/test-striconveh.c (main): Update.
75376
75377         * lib/striconv.h (mem_cd_iconv): Change specification.
75378         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75379         result buffer.
75380         (str_cd_iconv): Update.
75381         * tests/test-striconv.c (main): Update.
75382
75383 2007-01-21  Bruno Haible  <bruno@clisp.org>
75384
75385         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75386
75387 2007-01-20  Jim Meyering  <jim@meyering.net>
75388
75389         * lib/userspec.c (parse_with_separator): If a user or group string
75390         starts with "+", skip the corresponding name-to-ID look-up, since
75391         such a look-up must fail: user and group names may not include "+".
75392
75393 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75394
75395         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75396         since we now assume the sys_time module.
75397         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75398         check for sys/time.h; no longer needed.
75399         * modules/poll (Depends-on): Depend on sys_time.
75400
75401 2007-01-18  Bruno Haible  <bruno@clisp.org>
75402
75403         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75404         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75405
75406         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75407         gettimeofday.
75408
75409         * tests/test-gettimeofday.c: Include <time.h>.
75410         (dummy): Remove variable.
75411
75412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75413         gl_HEADER_SYS_TIME_H.
75414         (gl_HEADER_SYS_TIME_H): New macro.
75415
75416         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75417         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75419         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75420         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75422         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75423         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75424         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75425         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75426         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75427
75428         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75429         last change; it caused a compilation error when cross-compiling to
75430         Cygwin.
75431
75432 2007-01-18  Jim Meyering  <jim@meyering.net>
75433
75434         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75435         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75436         than the race-prone "test -d sys || mkdir sys".
75437         (configure.ac): Use AC_PROG_MKDIR_P.
75438         * modules/sys_select: Likewise.
75439         * modules/sys_socket: Likewise.
75440         * modules/sys_time: Likewise.
75441
75442 2007-01-18  Eric Blake  <ebb9@byu.net>
75443
75444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75445         replace gettimeofday.
75446         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75447         name, to avoid infinite recursion.
75448
75449 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75452         module sys_time.
75453         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75454         assume timespec.h defines struct timeval.
75455         * lib/settime.c: Likewise.
75456         * lib/utimens.c: Likewise.
75457         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75458         since we now assume the gettimeofday module.
75459         * lib/tempname.c (__gen_tempname): Likewise.
75460         * lib/gettimeofday.h: Remove.
75461         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75462         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75463         Include <time.h>, for 'time()'.
75464         (localtime_buffer_addr): Also use this workaround if
75465         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75466         to simplify the uses.  All uses changed.
75467         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75468         that #undef is inside {}, and 'const' follows type name consistently.
75469         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75470         (gettimeofday): Do not use the maximum possible value for
75471         tv->tv_usec, since that might break usages other than ls.c.
75472         Instead, we'll leave ls.c alone.  This undoes today's patch
75473         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75474         we've never observed the problem but might as well keep the
75475         canary.
75476         * lib/nanosleep.c: Include timespec.h first, for interface check.
75477         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75478         now assume the sys_time module.
75479         * lib/tempname.c: Likewise.
75480         * lib/timespec.h: Likewise.
75481         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75482         needed.
75483         * lib/strftime.c: Likewise.
75484         * lib/timespec.h: Likewise.
75485         * lib/posixtm.c: Include posixtm.h first, for interface check.
75486         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75487         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75488         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75489         * lib/sys_time_.h: New file.
75490         * lib/timespec.h (struct timespec): Use long int, not long.
75491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75492         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75493         Remove obsolescent call to AC_HEADER_TIME.
75494         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75497         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75498         Likewise.
75499         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75500         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75501         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75502         into the sys_time module.  Check for gettimeofday just once.
75503         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75504         for gettimeofday signature to just check the signature.  Merely
75505         compile it, since linking doesn't test signature.  Improve test for
75506         whether gettimeofday.o is actually needed.
75507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75508         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75509         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75510         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75511         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75512         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75513         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75514         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75515         than worrying about sys/time.h.
75516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75517         Don't bother worrying about TIME_WITH_SYS_TIME.
75518         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75519         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75520         * m4/sys_time_h.m4: New file.
75521         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75522         Don't include sys/time.h.  Return from main rather than exiting.
75523         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75524         all uses changed.
75525         * modules/gethrxtime (Depends-on): Add sys_time.
75526         * modules/gettime (Depends-on): Likewise.
75527         * modules/gettimeofday (Depends-on): Likewise.
75528         * modules/nanosleep (Depends-on): Likewise.
75529         * modules/settime (Depends-on): Likewise.
75530         * modules/tempname (Depends-on): Likewise.
75531         * modules/utimens (Depends-on): Likewise.
75532         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75533         (Include): Change back to <sys/time.h>.
75534         (Maintainer): Add self.
75535         * modules/sys_time: New file.
75536         * modules/tempname (Depends-on): Add gettimeofday.
75537         * tests/test-gettimeofday.c: Include <sys/time.h>
75538         rather than gettimeofday.h.
75539
75540 2007-01-17  Bruno Haible  <bruno@clisp.org>
75541
75542         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75543         the license default to GPL.
75544         (func_create_testdir): Don't complain if a module is LGPL and its
75545         tests module depends on GPLed modules.
75546
75547 2007-01-17  Bruno Haible  <bruno@clisp.org>
75548
75549         * lib/gettimeofday.c (gettimeofday): Add code for the case
75550         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75551         maximum possible value for tv->tv_usec, rather than the minimum one.
75552
75553 2005-10-08  Martin Lambers  <marlam@marlam.de>
75554 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75555 2007-01-16  Bruno Haible  <bruno@clisp.org>
75556
75557         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75558         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75559         gl_FUNC_GETTIMEOFDAY.
75560         (Include): Add gettimeofday.h.
75561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75562         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75563         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75564         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75565         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75566         * lib/gettimeofday.h: New file.
75567         * lib/gettimeofday.c: Include <sys/timeb.h>.
75568         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75569         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75570         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75571         fall back on time().
75572
75573         * tests/test-gettimeofday.c: New file.
75574         * modules/gettimeofday-tests: New file.
75575
75576 2007-01-16  Eric Blake  <ebb9@byu.net>
75577
75578         * modules/fnmatch (Depends-on): Depend on wchar.
75579         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75580         * m4/fnmatch.m4: Likewise.
75581         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75582         * m4/mbchar.m4: Likewise.
75583         * modules/mbswidth (Depends-on): Depend on wchar.
75584         * lib/mbswidth.c: Assume <wchar.h>.
75585         * m4/mbswidth.m4: Likewise.
75586         * modules/quotearg (Depends-on): Depend on wchar.
75587         * lib/quotearg.c: Assume <wchar.h>.
75588         * m4/quotearg.m4: Likewise.
75589         * modules/regex (Depends-on): Depend on wchar.
75590         * lib/regex_internal.h: Assume <wchar.h>.
75591         * m4/regex.m4: Likewise.
75592         * modules/stdint (Depends-on): Depend on wchar.
75593         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75594         * m4/stdint.m4: Likewise.
75595         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75596         * modules/strftime (Depends-on): Depend on wchar.
75597         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75598         * modules/strtol (Depends-on): Depend on wchar.
75599         * lib/strtol.c: Assume <wchar.h>.
75600         * modules/wcwidth (Depends-on): Depend on wchar.
75601         * lib/wcwidth.h: Assume <wchar.h>.
75602         * m4/wcwidth.m4: Likewise.
75603
75604 2007-01-16  Bruno Haible  <bruno@clisp.org>
75605
75606         * modules/csharpexec-script: New, created from...
75607         * modules/csharpexec: ... this.
75608
75609 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75610
75611         * modules/javaexec-script: New, created from...
75612         * modules/javaexec: ... this.
75613
75614 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75615
75616         * modules/poll (Dependencies): Add sys_select.
75617
75618 2007-01-15  Jim Meyering  <jim@meyering.net>
75619
75620         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75621         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75622         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75623         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75624
75625 2007-01-15  Bruno Haible  <bruno@clisp.org>
75626
75627         * modules/striconveh: New file.
75628         * lib/striconveh.h: New file.
75629         * lib/striconveh.c: New file.
75630         * MODULES.html.sh (Internationalization functions): Add striconveh.
75631
75632         * modules/striconveh-tests: New file.
75633         * tests/test-striconveh.c: New file.
75634
75635 2007-01-15  Bruno Haible  <bruno@clisp.org>
75636
75637         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75638         not from GNU libiconv or GNU libc.
75639
75640 2007-01-15  Bruno Haible  <bruno@clisp.org>
75641
75642         * doc/gnulib-intro.texi (Copyright): Explain the different license
75643         terms for module descriptions, autoconf macros, tests, documentation.
75644
75645 2007-01-14  Bruno Haible  <bruno@clisp.org>
75646
75647         * modules/striconv-tests: New file.
75648         * tests/test-striconv.c: New file.
75649
75650 2007-01-14  Bruno Haible  <bruno@clisp.org>
75651
75652         * modules/iconv-tests: New file.
75653         * tests/test-iconv.c: New file.
75654
75655 2007-01-14  Bruno Haible  <bruno@clisp.org>
75656
75657         * gnulib-tool (func_get_license): For test modules, use the license of
75658         the main module.
75659
75660 2007-01-14  Bruno Haible  <bruno@clisp.org>
75661
75662         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75663         if iconv is found to exist.
75664
75665 2007-01-14  Bruno Haible  <bruno@clisp.org>
75666
75667         * modules/c-ctype-tests: New file.
75668         * tests/test-c-ctype.c: New file.
75669
75670 2007-01-14  Bruno Haible  <bruno@clisp.org>
75671
75672         * modules/binary-io-tests: New file.
75673         * tests/test-binary-io.sh: New file.
75674         * tests/test-binary-io.c: New file.
75675
75676 2007-01-14  Bruno Haible  <bruno@clisp.org>
75677
75678         * modules/array-oset-tests: New file.
75679         * tests/test-array_oset.c: New file.
75680
75681 2007-01-14  Bruno Haible  <bruno@clisp.org>
75682
75683         * modules/array-list-tests: New file.
75684         * tests/test-array_list.c: New file.
75685
75686 2007-01-14  Bruno Haible  <bruno@clisp.org>
75687
75688         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75689         and make.
75690         Reported by Simon Josefsson in
75691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75692
75693 2007-01-14  Bruno Haible  <bruno@clisp.org>
75694
75695         * modules/allocsa-tests: New file.
75696         * tests/test-allocsa.c: New file.
75697
75698 2007-01-14  Bruno Haible  <bruno@clisp.org>
75699
75700         * modules/fchdir (Depends-on): Add absolute-header.
75701         * modules/unistd (Depends-on): Likewise.
75702
75703 2006-12-30  Bruno Haible  <bruno@clisp.org>
75704
75705         * modules/fchdir: New file.
75706         * modules/unistd (Files): Add lib/unistd_.h.
75707         (Makefile.am): Generate unistd.h from unistd_.h.
75708         * lib/fchdir.c: New file.
75709         * lib/dirent_.h: New file.
75710         * lib/unistd_.h: New file.
75711         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75712         * m4/fchdir.m4: New file.
75713         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75714         (gl_HEADER_UNISTD): Invoke it.
75715         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75716         function.
75717         * lib/backupfile.c (opendir, closedir): Undefine.
75718         * lib/chown.c (open, close): Undefine.
75719         * lib/clean-temp.c (open, close): Undefine.
75720         * lib/copy-file.c (open, close): Undefine.
75721         * lib/execute.c (open, close): Undefine.
75722         * lib/fsusage.c (open, close): Undefine.
75723         * lib/gc-gnulib.c (open, close): Undefine.
75724         * lib/getcwd.c (opendir, closedir): Undefine.
75725         * lib/glob.c (opendir, closedir): Undefine.
75726         * lib/javacomp.c (open, close): Undefine.
75727         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75728         * lib/openat-proc.c (open, close): Undefine.
75729         * lib/pagealign_alloc.c (open, close): Undefine.
75730         * lib/pipe.c (open, close): Undefine.
75731         * lib/progreloc.c (open, close): Undefine.
75732         * lib/savedir.c (opendir, closedir): Undefine.
75733         * lib/utime.c (open, close): Undefine.
75734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75735
75736 2007-01-10  Bruno Haible  <bruno@clisp.org>
75737
75738         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75739
75740 2007-01-12  Eric Blake  <ebb9@byu.net>
75741
75742         Provide a robust <wchar.h>.  Further simplifications are now
75743         possible in other modules, but not included here.
75744         * modules/wchar: New module.
75745         * m4/wchar.m4: New file.
75746         * lib/wchar_.h: Likewise.
75747         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75748         of the new module.
75749         * MODULES.html.sh (Extended multibyte and wide character utilities):
75750         New section.
75751
75752 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75755         to a reasonable default for memory allocation.
75756         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75757         file system that reports garbage st_size values for symlinks.
75758         Problem reported by Liyang Hu.
75759
75760 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75761
75762         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75763         Emacs .#* auto-save files).
75764
75765 2007-01-11  Bruno Haible  <bruno@clisp.org>
75766
75767         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75768         directory.
75769
75770 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         Use @...@ consistently in lib/wctype_.h.
75773         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75774         on it being set to 1 or 0.
75775         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75776         go back to AC_SUBSTing it.
75777         * modules/wctype (Makefile.am): Undo previous change.
75778
75779 2007-01-10  Eric Blake  <ebb9@byu.net>
75780
75781         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75782         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75783         * modules/wctype (Makefile.am): Likewise.
75784         Reported by Chris McGuire.
75785
75786 2007-01-10  Jim Meyering  <jim@meyering.net>
75787
75788         fts.c: a small readability/maintainability improvement
75789         * lib/fts.c (fts_read): Make this code slightly more readable and
75790         maintainable by hoisting the "sp->fts_cur = p" assignments to
75791         immediately follow the statements that set P.  Derived from
75792         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75793
75794 2007-01-10  Eric Blake  <ebb9@byu.net>
75795
75796         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75797         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75799         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75800         Reported by Chris McGuire.
75801
75802 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75803
75804         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75805         in sed script.
75806
75807 2007-01-09  Bruno Haible  <bruno@clisp.org>
75808
75809         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75810         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75811         variables.
75812         (func_module): Use them.
75813
75814 2007-01-09  Bruno Haible  <bruno@clisp.org>
75815
75816         * modules/unistr/base: New file.
75817         * lib/unistr.h: New file.
75818
75819         * modules/unistr/u8-to-u16: New file.
75820         * lib/unistr/u8-to-u16.c: New file.
75821
75822         * modules/unistr/u8-to-u32: New file.
75823         * lib/unistr/u8-to-u32.c: New file.
75824
75825         * modules/unistr/u16-to-u8: New file.
75826         * lib/unistr/u16-to-u8.c: New file.
75827
75828         * modules/unistr/u16-to-u32: New file.
75829         * lib/unistr/u16-to-u32.c: New file.
75830
75831         * modules/unistr/u32-to-u8: New file.
75832         * lib/unistr/u32-to-u8.c: New file.
75833
75834         * modules/unistr/u32-to-u16: New file.
75835         * lib/unistr/u32-to-u16.c: New file.
75836
75837         * modules/unistr/u8-check: New file.
75838         * modules/unistr/u16-check: New file.
75839         * modules/unistr/u32-check: New file.
75840         * lib/unistr/u8-check.c: New file.
75841         * lib/unistr/u16-check.c: New file.
75842         * lib/unistr/u32-check.c: New file.
75843
75844         * modules/unistr/u8-chr: New file.
75845         * modules/unistr/u16-chr: New file.
75846         * modules/unistr/u32-chr: New file.
75847         * lib/unistr/u8-chr.c: New file.
75848         * lib/unistr/u16-chr.c: New file.
75849         * lib/unistr/u32-chr.c: New file.
75850
75851         * modules/unistr/u8-cmp: New file.
75852         * modules/unistr/u16-cmp: New file.
75853         * modules/unistr/u32-cmp: New file.
75854         * lib/unistr/u8-cmp.c: New file.
75855         * lib/unistr/u16-cmp.c: New file.
75856         * lib/unistr/u32-cmp.c: New file.
75857
75858         * modules/unistr/u8-cpy: New file.
75859         * modules/unistr/u16-cpy: New file.
75860         * modules/unistr/u32-cpy: New file.
75861         * lib/unistr/u8-cpy.c: New file.
75862         * lib/unistr/u16-cpy.c: New file.
75863         * lib/unistr/u32-cpy.c: New file.
75864         * lib/unistr/u-cpy.h: New file.
75865
75866         * modules/unistr/u8-cpy-alloc: New file.
75867         * modules/unistr/u16-cpy-alloc: New file.
75868         * modules/unistr/u32-cpy-alloc: New file.
75869         * lib/unistr/u8-cpy-alloc.c: New file.
75870         * lib/unistr/u16-cpy-alloc.c: New file.
75871         * lib/unistr/u32-cpy-alloc.c: New file.
75872         * lib/unistr/u-cpy-alloc.h: New file.
75873
75874         * modules/unistr/u8-endswith: New file.
75875         * modules/unistr/u16-endswith: New file.
75876         * modules/unistr/u32-endswith: New file.
75877         * lib/unistr/u8-endswith.c: New file.
75878         * lib/unistr/u16-endswith.c: New file.
75879         * lib/unistr/u32-endswith.c: New file.
75880         * lib/unistr/u-endswith.h: New file.
75881
75882         * modules/unistr/u8-mblen: New file.
75883         * modules/unistr/u16-mblen: New file.
75884         * modules/unistr/u32-mblen: New file.
75885         * lib/unistr/u8-mblen.c: New file.
75886         * lib/unistr/u16-mblen.c: New file.
75887         * lib/unistr/u32-mblen.c: New file.
75888
75889         * modules/unistr/u8-mbtouc: New file.
75890         * modules/unistr/u16-mbtouc: New file.
75891         * modules/unistr/u32-mbtouc: New file.
75892         * lib/unistr/u8-mbtouc.c: New file.
75893         * lib/unistr/u16-mbtouc.c: New file.
75894         * lib/unistr/u32-mbtouc.c: New file.
75895
75896         * modules/unistr/u8-mbtouc-safe: New file.
75897         * modules/unistr/u16-mbtouc-safe: New file.
75898         * modules/unistr/u32-mbtouc-safe: New file.
75899         * lib/unistr/u8-mbtouc-safe.c: New file.
75900         * lib/unistr/u16-mbtouc-safe.c: New file.
75901         * lib/unistr/u32-mbtouc-safe.c: New file.
75902
75903         * modules/unistr/u8-move: New file.
75904         * modules/unistr/u16-move: New file.
75905         * modules/unistr/u32-move: New file.
75906         * lib/unistr/u8-move.c: New file.
75907         * lib/unistr/u16-move.c: New file.
75908         * lib/unistr/u32-move.c: New file.
75909         * lib/unistr/u-move.h: New file.
75910
75911         * modules/unistr/u8-next: New file.
75912         * modules/unistr/u16-next: New file.
75913         * modules/unistr/u32-next: New file.
75914         * lib/unistr/u8-next.c: New file.
75915         * lib/unistr/u16-next.c: New file.
75916         * lib/unistr/u32-next.c: New file.
75917
75918         * modules/unistr/u8-prev: New file.
75919         * modules/unistr/u16-prev: New file.
75920         * modules/unistr/u32-prev: New file.
75921         * lib/unistr/u8-prev.c: New file.
75922         * lib/unistr/u16-prev.c: New file.
75923         * lib/unistr/u32-prev.c: New file.
75924
75925         * modules/unistr/u8-set: New file.
75926         * modules/unistr/u16-set: New file.
75927         * modules/unistr/u32-set: New file.
75928         * lib/unistr/u8-set.c: New file.
75929         * lib/unistr/u16-set.c: New file.
75930         * lib/unistr/u32-set.c: New file.
75931         * lib/unistr/u-set.h: New file.
75932
75933         * modules/unistr/u8-startswith: New file.
75934         * modules/unistr/u16-startswith: New file.
75935         * modules/unistr/u32-startswith: New file.
75936         * lib/unistr/u8-startswith.c: New file.
75937         * lib/unistr/u16-startswith.c: New file.
75938         * lib/unistr/u32-startswith.c: New file.
75939         * lib/unistr/u-startswith.h: New file.
75940
75941         * modules/unistr/u8-stpcpy: New file.
75942         * modules/unistr/u16-stpcpy: New file.
75943         * modules/unistr/u32-stpcpy: New file.
75944         * lib/unistr/u8-stpcpy.c: New file.
75945         * lib/unistr/u16-stpcpy.c: New file.
75946         * lib/unistr/u32-stpcpy.c: New file.
75947         * lib/unistr/u-stpcpy.h: New file.
75948
75949         * modules/unistr/u8-stpncpy: New file.
75950         * modules/unistr/u16-stpncpy: New file.
75951         * modules/unistr/u32-stpncpy: New file.
75952         * lib/unistr/u8-stpncpy.c: New file.
75953         * lib/unistr/u16-stpncpy.c: New file.
75954         * lib/unistr/u32-stpncpy.c: New file.
75955         * lib/unistr/u-stpncpy.h: New file.
75956
75957         * modules/unistr/u8-strcat: New file.
75958         * modules/unistr/u16-strcat: New file.
75959         * modules/unistr/u32-strcat: New file.
75960         * lib/unistr/u8-strcat.c: New file.
75961         * lib/unistr/u16-strcat.c: New file.
75962         * lib/unistr/u32-strcat.c: New file.
75963         * lib/unistr/u-strcat.h: New file.
75964
75965         * modules/unistr/u8-strchr: New file.
75966         * modules/unistr/u16-strchr: New file.
75967         * modules/unistr/u32-strchr: New file.
75968         * lib/unistr/u8-strchr.c: New file.
75969         * lib/unistr/u16-strchr.c: New file.
75970         * lib/unistr/u32-strchr.c: New file.
75971
75972         * modules/unistr/u8-strcmp: New file.
75973         * modules/unistr/u16-strcmp: New file.
75974         * modules/unistr/u32-strcmp: New file.
75975         * lib/unistr/u8-strcmp.c: New file.
75976         * lib/unistr/u16-strcmp.c: New file.
75977         * lib/unistr/u32-strcmp.c: New file.
75978
75979         * modules/unistr/u8-strcpy: New file.
75980         * modules/unistr/u16-strcpy: New file.
75981         * modules/unistr/u32-strcpy: New file.
75982         * lib/unistr/u8-strcpy.c: New file.
75983         * lib/unistr/u16-strcpy.c: New file.
75984         * lib/unistr/u32-strcpy.c: New file.
75985         * lib/unistr/u-strcpy.h: New file.
75986
75987         * modules/unistr/u8-strcspn: New file.
75988         * modules/unistr/u16-strcspn: New file.
75989         * modules/unistr/u32-strcspn: New file.
75990         * lib/unistr/u8-strcspn.c: New file.
75991         * lib/unistr/u16-strcspn.c: New file.
75992         * lib/unistr/u32-strcspn.c: New file.
75993         * lib/unistr/u-strcspn.h: New file.
75994
75995         * modules/unistr/u8-strdup: New file.
75996         * modules/unistr/u16-strdup: New file.
75997         * modules/unistr/u32-strdup: New file.
75998         * lib/unistr/u8-strdup.c: New file.
75999         * lib/unistr/u16-strdup.c: New file.
76000         * lib/unistr/u32-strdup.c: New file.
76001         * lib/unistr/u-strdup.h: New file.
76002
76003         * modules/unistr/u8-strlen: New file.
76004         * modules/unistr/u16-strlen: New file.
76005         * modules/unistr/u32-strlen: New file.
76006         * lib/unistr/u8-strlen.c: New file.
76007         * lib/unistr/u16-strlen.c: New file.
76008         * lib/unistr/u32-strlen.c: New file.
76009         * lib/unistr/u-strlen.h: New file.
76010
76011         * modules/unistr/u8-strmblen: New file.
76012         * modules/unistr/u16-strmblen: New file.
76013         * modules/unistr/u32-strmblen: New file.
76014         * lib/unistr/u8-strmblen.c: New file.
76015         * lib/unistr/u16-strmblen.c: New file.
76016         * lib/unistr/u32-strmblen.c: New file.
76017
76018         * modules/unistr/u8-strmbtouc: New file.
76019         * modules/unistr/u16-strmbtouc: New file.
76020         * modules/unistr/u32-strmbtouc: New file.
76021         * lib/unistr/u8-strmbtouc.c: New file.
76022         * lib/unistr/u16-strmbtouc.c: New file.
76023         * lib/unistr/u32-strmbtouc.c: New file.
76024
76025         * modules/unistr/u8-strncat: New file.
76026         * modules/unistr/u16-strncat: New file.
76027         * modules/unistr/u32-strncat: New file.
76028         * lib/unistr/u8-strncat.c: New file.
76029         * lib/unistr/u16-strncat.c: New file.
76030         * lib/unistr/u32-strncat.c: New file.
76031         * lib/unistr/u-strncat.h: New file.
76032
76033         * modules/unistr/u8-strncmp: New file.
76034         * modules/unistr/u16-strncmp: New file.
76035         * modules/unistr/u32-strncmp: New file.
76036         * lib/unistr/u8-strncmp.c: New file.
76037         * lib/unistr/u16-strncmp.c: New file.
76038         * lib/unistr/u32-strncmp.c: New file.
76039
76040         * modules/unistr/u8-strncpy: New file.
76041         * modules/unistr/u16-strncpy: New file.
76042         * modules/unistr/u32-strncpy: New file.
76043         * lib/unistr/u8-strncpy.c: New file.
76044         * lib/unistr/u16-strncpy.c: New file.
76045         * lib/unistr/u32-strncpy.c: New file.
76046         * lib/unistr/u-strncpy.h: New file.
76047
76048         * modules/unistr/u8-strnlen: New file.
76049         * modules/unistr/u16-strnlen: New file.
76050         * modules/unistr/u32-strnlen: New file.
76051         * lib/unistr/u8-strnlen.c: New file.
76052         * lib/unistr/u16-strnlen.c: New file.
76053         * lib/unistr/u32-strnlen.c: New file.
76054         * lib/unistr/u-strnlen.h: New file.
76055
76056         * modules/unistr/u8-strpbrk: New file.
76057         * modules/unistr/u16-strpbrk: New file.
76058         * modules/unistr/u32-strpbrk: New file.
76059         * lib/unistr/u8-strpbrk.c: New file.
76060         * lib/unistr/u16-strpbrk.c: New file.
76061         * lib/unistr/u32-strpbrk.c: New file.
76062         * lib/unistr/u-strpbrk.h: New file.
76063
76064         * modules/unistr/u8-strrchr: New file.
76065         * modules/unistr/u16-strrchr: New file.
76066         * modules/unistr/u32-strrchr: New file.
76067         * lib/unistr/u8-strrchr.c: New file.
76068         * lib/unistr/u16-strrchr.c: New file.
76069         * lib/unistr/u32-strrchr.c: New file.
76070
76071         * modules/unistr/u8-strspn: New file.
76072         * modules/unistr/u16-strspn: New file.
76073         * modules/unistr/u32-strspn: New file.
76074         * lib/unistr/u8-strspn.c: New file.
76075         * lib/unistr/u16-strspn.c: New file.
76076         * lib/unistr/u32-strspn.c: New file.
76077         * lib/unistr/u-strspn.h: New file.
76078
76079         * modules/unistr/u8-strstr: New file.
76080         * modules/unistr/u16-strstr: New file.
76081         * modules/unistr/u32-strstr: New file.
76082         * lib/unistr/u8-strstr.c: New file.
76083         * lib/unistr/u16-strstr.c: New file.
76084         * lib/unistr/u32-strstr.c: New file.
76085         * lib/unistr/u-strstr.h: New file.
76086
76087         * modules/unistr/u8-strtok: New file.
76088         * modules/unistr/u16-strtok: New file.
76089         * modules/unistr/u32-strtok: New file.
76090         * lib/unistr/u8-strtok.c: New file.
76091         * lib/unistr/u16-strtok.c: New file.
76092         * lib/unistr/u32-strtok.c: New file.
76093         * lib/unistr/u-strtok.h: New file.
76094
76095         * modules/unistr/u8-uctomb: New file.
76096         * modules/unistr/u16-uctomb: New file.
76097         * modules/unistr/u32-uctomb: New file.
76098         * lib/unistr/u8-uctomb.c: New file.
76099         * lib/unistr/u16-uctomb.c: New file.
76100         * lib/unistr/u32-uctomb.c: New file.
76101
76102         * MODULES.html.sh (Unicode string functions): Add the new modules.
76103
76104 2007-01-08  Bruno Haible  <bruno@clisp.org>
76105
76106         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76107         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76108         subdirectories.
76109
76110 2007-01-08  Karl Berry  <karl@gnu.org>
76111
76112         * doc/error.texi: mention that main() fns must set program_name
76113         when progname is used.
76114
76115 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76116
76117         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76118         WCTYPE_H is empty, for the benefit of builds from non-distclean
76119         directories.  Problem reported by Eric Blake in
76120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76121
76122 2007-01-08  Bruno Haible  <bruno@clisp.org>
76123
76124         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76125         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76126         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76127         PROVIDE_CANONICALIZE_FILENAME_MODE.
76128         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76129
76130 2007-01-08  Bruno Haible  <bruno@clisp.org>
76131
76132         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76133         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76134         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76135         * lib/fts.c: Likewise.
76136         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76137
76138 2006-12-25  Bruno Haible  <bruno@clisp.org>
76139
76140         * modules/utf8-ucs4-safe: New file.
76141         * lib/utf8-ucs4-safe.h: New file.
76142         * lib/unistr/utf8-ucs4-safe.c: New file.
76143
76144         * modules/utf16-ucs4-safe: New file.
76145         * lib/utf16-ucs4-safe.h: New file.
76146         * lib/unistr/utf16-ucs4-safe.c: New file.
76147
76148         * MODULES.html.sh (Unicode string functions): Add the new modules.
76149
76150 2007-01-08  Bruno Haible  <bruno@clisp.org>
76151
76152         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76153         (Depends-on): Add unitypes.
76154         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76155         (u8_mbtouc_aux): Move out to separate file.
76156         (u8_mbtouc): Use ucs4_t, uint8_t types.
76157         * lib/unistr/utf8-ucs4.c: New file.
76158
76159         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76160         (Depends-on): Add unitypes.
76161         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76162         (u16_mbtouc_aux): Move out to separate file.
76163         (u16_mbtouc): Use ucs4_t, uint16_t types.
76164         * lib/unistr/utf16-ucs4.c: New file.
76165
76166         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76167         (Depends-on): Add unitypes.
76168         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76169         (u8_uctomb_aux): Move out to separate file.
76170         (u8_uctomb): Use ucs4_t, uint8_t types.
76171         * lib/unistr/ucs4-utf8.c: New file.
76172
76173         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76174         (Depends-on): Add unitypes.
76175         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76176         (u16_uctomb_aux): Move out to separate file.
76177         (u16_uctomb): Use ucs4_t, uint16_t types.
76178         * lib/unistr/ucs4-utf16.c: New file.
76179
76180 2006-12-25  Bruno Haible  <bruno@clisp.org>
76181
76182         * modules/unitypes: New file.
76183         * lib/unitypes.h: New file.
76184         * MODULES.html.sh (func_all_modules): New section "Unicode string
76185         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76186         this section. Add unitypes.
76187
76188 2007-01-08  Bruno Haible  <bruno@clisp.org>
76189
76190         Avoid variable names that conflict with those from libtool.
76191         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76192         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76193         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76194         library_names_spec to acl_library_names_spec, hardcode_* to
76195         acl_hardcode_*.
76196         Reported by Ralf Wildenhues.
76197
76198 2007-01-08  Bruno Haible  <bruno@clisp.org>
76199
76200         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76201         definition.
76202         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76203         definition.
76204         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76205         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76206         definition.
76207         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76208         definition.
76209         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76210         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76211         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76212         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76213         definition.
76214         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76215         definition.
76216         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76217         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76218         GC_USE_<algorithm>.
76219         * lib/gc-libgcrypt.c: Likewise.
76220         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76221         * modules/gc-arctwo (configure.ac): Likewise.
76222         * modules/gc-des (configure.ac): Likewise.
76223         * modules/gc-hmac-md5 (configure.ac): Likewise.
76224         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76225         * modules/gc-md2 (configure.ac): Likewise.
76226         * modules/gc-md4 (configure.ac): Likewise.
76227         * modules/gc-md5 (configure.ac): Likewise.
76228         * modules/gc-random (configure.ac): Likewise.
76229         * modules/gc-rijndael (configure.ac): Likewise.
76230         * modules/gc-sha1 (configure.ac): Likewise.
76231
76232 2007-01-08  Bruno Haible  <bruno@clisp.org>
76233
76234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76235         macro definition.
76236         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76237         definition.
76238         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76239         definition.
76240         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76241         * modules/fcntl-safer (configure.ac): Likewise.
76242         * modules/fopen-safer (configure.ac): Likewise.
76243         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76244         GNULIB_FWRITEERROR macro definition.
76245
76246 2007-01-08  Bruno Haible  <bruno@clisp.org>
76247
76248         * m4/gnulib-common.m4: New file.
76249         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76250         (func_get_filelist): Add m4/gnulib-common.m4.
76251
76252 2007-01-08  Bruno Haible  <bruno@clisp.org>
76253
76254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76255         command.
76256
76257 2007-01-08  Jim Meyering  <jim@meyering.net>
76258
76259         Use a more robust test for a "can't happen" condition.
76260         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76261         narrowed the st_size value.  Presuming the "can't happen" condition
76262         is true, that narrowing could conceivably convert an invalid st_size
76263         value into a valid one.  Instead, use a change based on Matthew
76264         Woehlke's original patch.
76265
76266         Slight readability improvement: use an assert-like macro
76267         in place of literal "abort ()" uses.
76268         * lib/fts.c (fts_assert): Define.
76269         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76270         Use this macro instead of a bare 'abort'.
76271
76272 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76275         simply work around them.
76276         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76277         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76278         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76279         declaring.
76280         Don't bother to define as macros, since the standard doesn't require it.
76281         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76282         longer worry about IRIX 5.3.
76283         (HAVE_WCTYPE_CTMP_BUG): Remove.
76284
76285 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76288         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76289         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76290         Problems reported by Georg Schwarz for IRIX 5.3.
76291
76292         * gnulib-tool (autoconf_minversion): Take the maximum version number
76293         found, not the minimum.  Problem reported by James Youngman.
76294
76295 2007-01-03  Karl Berry  <karl@gnu.org>
76296
76297         * doc/error.texi: new file, explaining interaction with progname.
76298         * doc/gnulib.texi: include it.  Update copyright.
76299
76300 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76301
76302         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76303         AC_CANONICAL_HOST, to improve autobuild outputs.
76304
76305 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76306             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76307
76308         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76309         sockets, server sockets, and other file descriptors.  Count errors
76310         to compute the return value.  Reorder the code a bit to be easier
76311         to follow.  Don't set event bits that were not requested (except
76312         POLLERR and POLLHUP).
76313
76314 2007-01-01  Bruno Haible  <bruno@clisp.org>
76315
76316         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76317
76318 2007-01-03  Jim Meyering  <jim@meyering.net>
76319
76320         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76321
76322 2007-01-02  Bruno Haible  <bruno@clisp.org>
76323
76324         * modules/settime (Include): Require timespec.h.
76325         * modules/nanosleep (Include): Likewise.
76326
76327 2007-01-01  Bruno Haible  <bruno@clisp.org>
76328
76329         * gnulib-tool (func_emit_copyright_notice): Bump year.
76330         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76331
76332 2007-01-01  Bruno Haible  <bruno@clisp.org>
76333
76334         Improve support for OpenBSD.
76335         * build-aux/config.rpath (libname_spec): Export.
76336         (library_names_spec): New variable. Export.
76337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76338         library_names_spec from the config.rpath output. Locate shared library
76339         through the name pattern in library_names_spec.
76340
76341 2007-01-01  Eric Blake  <ebb9@byu.net>
76342
76343         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76344
76345 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76348         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76349         assume the C locale, and avoid an "eval" that could cause trouble.
76350         Problem with SORT reported by Bob Proulx.
76351
76352         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76353         Define.  Trivial patch from Henning Nielsen Lund, originally
76354         sent to bug-grep@gnu.org today.
76355
76356 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76359         struct stat.  Problem reported by Henning Nielsen Lund.
76360         * lib/acl.c: Include acl.h first, to check interface.  Don't
76361         bother to include sys/types.h and sys/stat.h again.
76362
76363 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76364
76365         Import the following change from libc; problem reported by
76366         Sven Verdoolaege.
76367
76368         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76369
76370         [BZ #1373]
76371         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76372
76373 2006-12-28  Jim Meyering  <jim@meyering.net>
76374
76375         * build-aux/announce-gen: Do not assume that the package
76376         builds any of tar.gz, tar.bz2, and .xdelta files.
76377         Suggestion from Simon Josefsson.
76378
76379 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76380
76381         * modules/announce-gen: New file.
76382
76383 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76386         handles its gotchas now.
76387         * lib/mbswidth.c: Likewise.
76388         * lib/wcwidth.h: Likewise.
76389         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76390         and iswcntrl; the wctype module does this stuff now.
76391         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76393         * modules/mbchar (Depends-on): Add wctype.
76394         * modules/mbswidth (Depends-on): Likewise.
76395         * modules/wcwidth (Depends-on): Likewise.
76396
76397 2006-12-27  Eric Blake  <ebb9@byu.net>
76398
76399         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76400         module uses more than what <wctype.h> is required to provide.
76401
76402 2006-12-26  Eric Blake  <ebb9@byu.net>
76403
76404         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76405
76406 2006-12-26  Eric Blake  <ebb9@byu.net>
76407
76408         * modules/absolute-header: New module.
76409         * modules/fcntl (Depends-on): Depend on it.
76410         * modules/inttypes (Depends-on): Likewise.
76411         * modules/stdint (Depends-on): Likewise.
76412         * modules/sys_stat (Depends-on): Likewise.
76413         * modules/wctype (Depends-on): Likewise.
76414         * MODULES.html.sh (Support for building libraries and
76415         executables): Document it.
76416
76417 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         * gnulib-tool (SED): Remove, undoing previous change.
76420         The problem was that it broke coreutils on Solaris, because
76421         "sed --posix" leaked into a makefile.
76422         (sed): New alias, if 'alias' and GNU sed.
76423
76424 2006-12-24  Jim Meyering  <jim@meyering.net>
76425
76426         Work around an fchownat bug in glibc-2.4:
76427         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76428         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76429         in spite of the -P option.
76430         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76431         New macros.
76432         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76433         * modules/openat (Files): Add lib/fchownat.c.
76434         * lib/openat.c (fchownat): Don't define here.  Move to...
76435         * lib/fchownat.c: ...this new file.
76436
76437 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         Fix bug reported by Bruno Haible in
76440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76441         where quotearg.c didn't compile on Mac OS X 10.2 because it
76442         lacks <wchar.h> and wint_t.
76443         * lib/wctype_.h (__wctype_wint_t): New type.
76444         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76445         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76446         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76447         Arg is now of type __wctype_wint_t, not wint_t.
76448         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76449         substitute HAVE_WINT_T.
76450         * modules/wctype (Files): Add m4/wint_t.m4.
76451         (wctype.h): Substitute HAVE_WINT_T.
76452
76453 2006-12-23  Bruno Haible  <bruno@clisp.org>
76454
76455         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76456
76457 2006-12-23  Bruno Haible  <bruno@clisp.org>
76458
76459         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76460         S_ISLNK.
76461         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76462         mingw.
76463
76464 2006-12-22  Bruno Haible  <bruno@clisp.org>
76465
76466         * lib/copy-file.c: Include acl.h.
76467         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76468         Close the file descriptors only after being done with copy_acl.
76469         * modules/copy-file (Depends-on): Add acl.
76470
76471 2006-12-22  Bruno Haible  <bruno@clisp.org>
76472
76473         * gnulib-tool (SED): New variable.
76474         Use $SED instead of sed everywhere.
76475
76476 2006-12-22  Bruno Haible  <bruno@clisp.org>
76477
76478         * modules/no-c++: New file.
76479         * m4/no-c++.m4: New file.
76480         * MODULES.html.sh (Support for building libraries and executables):
76481         Add no-c++.
76482
76483 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76486         Include <limits.h>, and use its INT_MAX to rewrite the
76487         j loop so that it does not overflow 'int'.  Problem reported by
76488         Ralf Wildenhues in
76489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76490         Play it safe by shifting left by 1 rather than multiplying by 2,
76491         as GCC is less likely to optimize this away when the value
76492         is signed (when it assumes overflow leads to undefined behavior).
76493         Also, don't assume time_t uses two's complement.
76494
76495 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76496
76497         * MODULES.html.sh: New module wctype.
76498         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76499         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76500         <wctype.h>, since the new wctype module should fix this.
76501         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76502         the wctype module should arrange for it.
76503         * lib/regex_internal.h: Likewise.
76504         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76505         since the wctype module should handle this now.
76506         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76507         * modules/fnmatch (Depends-on): Add wctype.
76508         * modules/quotearg (Depends-on): Likewise.
76509         * modules/regex (Depends-on): Likewise.
76510
76511 2006-12-19  Bruno Haible  <bruno@clisp.org>
76512
76513         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76514         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76515
76516 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76517
76518         * modules/savewd (Depends-on): Fix dependency on fcntl.
76519
76520 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76523         conforms to C99, rather than relying on the user's environment
76524         setting of STDINT_H.
76525
76526 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76527         and Eric Blake  <ebb9@byu.net>
76528
76529         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76530         This is more consistent with the other defines here.
76531         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76532         Port to z/OS.  Problem reported by Paul Gilmartin.
76533         Change local vars to use gl_ prefix rather than ac_.
76534         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76535         with other defines.
76536         * modules/double-slash-root: New module.
76537         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76538         (Depends-on): Add double-slash-root.
76539         * MODULES.html.sh (File system functions): Mention new module.
76540
76541 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76544         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76545         This is for the benefit of gzip, which doesn't do i18n.
76546
76547 2006-12-12  Jim Meyering  <jim@meyering.net>
76548
76549         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76550         Reported by Andreas Schwab <schwab@suse.de>.
76551
76552 2006-12-12  Bruno Haible  <bruno@clisp.org>
76553
76554         Merge these changes.
76555         2006-09-05  Bruno Haible  <bruno@clisp.org>
76556         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76557         iconv_alloc succeeded.
76558         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76559         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76560         test for " && dest " at the end - dest is always != NULL there. Call
76561         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76562         with 2xNULL arguments, also to flush the state storage. Handle the
76563         IRIX iconv behaviour. Realloc the final result, to throw away unused
76564         memory.
76565
76566 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76567
76568         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76569         and fchmodat unconditionally, since glibc 2.4 has them.
76570         Problem reported by Arkadiusz Miskiewicz.
76571
76572 2006-12-10  Bruno Haible  <bruno@clisp.org>
76573
76574         * gnulib-tool (func_import): Show the include files only for those
76575         modules that are copied and specified.
76576         Reported by Karl Berry.
76577
76578 2006-12-08  Jim Meyering  <jim@meyering.net>
76579
76580         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76581         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76582
76583         * build-aux/announce-gen: Add two new options, both optional:
76584         --bootstrap-tools=TOOL_LIST
76585               a comma-separated list of tools, e.g.,
76586               autoconf,automake,bison,gnulib
76587         --gnulib-snapshot-date=DATE
76588               if gnulib is in the bootstrap tool list,
76589               then report this as the snapshot date.
76590               If not specified, use the current date/time.
76591               If you specify a date here, be sure it's UTC.
76592
76593 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76594
76595         * tests/test-argp-2.sh: Fix test to match actual output.
76596         (func_compare): Fix sed script to be portable.
76597
76598 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76601         workaround for this case.  It is not autoconfigured now; offhand
76602         it's hard to see how to autoconfigure it.
76603
76604 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76605
76606         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76607         a directory that is about to be chowned.  Such a directory's
76608         initial file permissions should permit the owner only and this
76609         should not be changed until after the chown, since the group and
76610         other bits would be incorrect if they granted permission before
76611         the chown.
76612
76613         Fix porting problem for iswctype reported by Georg Schwarz in:
76614         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76615         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76616         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76619
76620 2006-12-03  Jim Meyering  <jim@meyering.net>
76621
76622         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76623         p->fts_statp may not yet be defined.
76624         (fts_read): Instead, set it in the caller, once p->fts_statp is
76625         sure to be defined, and corresponds to a top-level directory.
76626         This bug made du -x fail.  Here's the coreutils test case:
76627         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76628         Reported by Mike Frysinger.
76629
76630 2006-12-01  Jim Meyering  <jim@meyering.net>
76631
76632         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76633         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76634         Reported by Simon Josefsson.
76635
76636 2006-11-30  Jim Meyering  <jim@meyering.net>
76637
76638         * m4/warning.m4: Use the all-permissive copyright notice
76639         recommended by RMS (rather than LGPL).
76640         * m4/vararrays.m4: Likewise.
76641         * m4/flexmember.m4: Likewise.
76642
76643 2006-11-29  Bruno Haible  <bruno@clisp.org>
76644
76645         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76646         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76647         using +=.
76648         Reported by Simon Josefsson <simon@josefsson.org>.
76649
76650 2006-11-28  James Youngman <jay@gnu.org>
76651
76652         * README: Advise users that they might find the bug-gnulib@gnu.org
76653         and autotools-announce@gnu.org mailing lists useful.
76654
76655 2006-11-28  Bruno Haible  <bruno@clisp.org>
76656
76657         * m4/ptrdiff_max.m4: Remove file.
76658
76659 2006-11-21  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76662         _AC_COMPUTE_INT.
76663         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76664         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76665         _AC_COMPUTE_INT.
76666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76667         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76668         _AC_COMPUTE_INT.
76669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76670
76671 2006-11-28  Jim Meyering  <jim@meyering.net>
76672
76673         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76674         warning from "gcc -Wshadow" about shadowing the builtin.
76675
76676 2006-11-27  Bruno Haible  <bruno@clisp.org>
76677
76678         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76679         _AC_COMPUTE_INT.
76680         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76681
76682 2006-11-27  Bruno Haible  <bruno@clisp.org>
76683             Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76686
76687 2006-11-26  Bruno Haible  <bruno@clisp.org>
76688
76689         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76690         noinst_LTLIBRARIES.
76691
76692 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76693             Bruno Haible  <bruno@clisp.org>
76694
76695         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76696         if compiling with "gcc -ansi".
76697
76698 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76699
76700         Fix some incompatibilities with gcc -ansi -pedantic.
76701         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76702         if compiling pedantically with GCC, unless it's C99 or later.
76703         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76704         it mishandles gcc -ansi -pedantic as well.
76705         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76706         if gcc -pedantic.
76707         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76708         initializers for struct if -pedantic, unless it's C99 or later.
76709
76710 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76711
76712         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76713         Don't close an fd more than once. Identical atimes indicate
76714         success, not failure.
76715
76716 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76717
76718         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76719
76720 2006-11-23  Jim Meyering  <jim@meyering.net>
76721
76722         * build-aux/announce-gen: New file.  From coreutils.
76723
76724 2006-11-22  Jim Meyering  <jim@meyering.net>
76725
76726         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76727         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76728         (fts_read): Use a temporary to narrow the overused st_size member
76729         before using it in a switch statement.  Reported by Matthew Woehlke.
76730
76731         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76732         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76733
76734 2006-11-20  Bruno Haible  <bruno@clisp.org>
76735
76736         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76737         changequote instead of pairs of brackets.
76738         Reported by Andreas Schwab <schwab@suse.de>.
76739
76740 2006-11-21  Jim Meyering  <jim@meyering.net>
76741
76742         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76743         so as to remain compatible with older compilers.
76744         Patch from Michael Deutschmann.
76745
76746 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * MODULES.html.sh (File system functions): Add openat.
76749
76750         * lib/openat.h (rpl_fstatat): New macro, if
76751         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76752         (fstatat): Define to rpl_fstatat under the same conditions,
76753         unless COMPILING_FSTATAT.
76754         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76755         seems to have the bug.
76756         * lib/fstatat.c: New file.
76757         * modules/openat (Files): Add it.
76758
76759 2006-11-20  Bruno Haible  <bruno@clisp.org>
76760
76761         * Makefile: New file.
76762
76763 2006-11-20  Jim Meyering  <jim@meyering.net>
76764
76765         The beginnings of syntax-related checks for gnulib.
76766         * lib/Makefile: New file.
76767         * lib/t-idcache: New script.  Ensure that the two halves of
76768         idcache.c stay in sync.
76769
76770         * lib/idcache.c: Adjust comments in user- and group- portions to
76771         be more accurate, and to be consistent with one another.
76772
76773 2006-11-20  Jim Meyering  <jim@meyering.net>
76774
76775         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76776         continue using the flexible array member (thus, this module performs
76777         half as many malloc calls), with the addition that...
76778         (getgroup, getuser): Consistently record a non-match via an empty
76779         "name" string, and map an empty string match to a NULL return value.
76780         * modules/idcache (Depends-on): Re-add flexmember.
76781
76782         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76783         (getuidbyname, getgroup, getgidbyname): Likewise.
76784
76785         Use cleaner syntax: NULL rather than 0.
76786         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76787
76788 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76791         It mishandled the case where the group was missing.
76792         Problem reported by Greg Schafer.
76793         * modules/idcache: Likewise.
76794
76795 2006-11-18  Jim Meyering  <jim@meyering.net>
76796
76797         * check-module (%exempt_header): Add exception for some
76798         conditionally-included headers.
76799
76800         * modules/i-ring (Depends-on): Add verify.
76801         (License): Change to LGPL.
76802
76803 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76806         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76807         and inttostr.h.  Use snprintf rather than uinttostr, so that
76808         LGPLed code doesn't depend on GPLed.
76809
76810 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         * modules/inline (License): Change from GPL to LGPL.
76813
76814 2006-11-17  Jim Meyering  <jim@meyering.net>
76815
76816         * modules/d-type (License): Switch to LGPL.
76817
76818 2006-11-15  Bruno Haible  <bruno@clisp.org>
76819
76820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76821
76822 2006-11-15  Eric Blake  <ebb9@byu.net>
76823
76824         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76825         the module dependency.
76826
76827 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76828             Bruno Haible  <bruno@clisp.org>
76829
76830         * gnulib-tool (func_create_testdir): Add license consistency check.
76831
76832 2006-11-15  Eric Blake  <ebb9@byu.net>
76833
76834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76835         random "(cached)" in configure output.
76836
76837 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76838
76839         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76840         test for conforming inttypes.h is both announced and cached.
76841
76842         * MODULES.html.sh (seen_modules, seen_files): New variables.
76843         (func_module): Rewrite to use a few less gnulib-tool and sed
76844         invocations.  Avoid a couple of quadratic algorithms for ...
76845         (missed_modules, missed_files): ... these, with ...
76846         (func_append, func_tmpdir): ... these new functions, from
76847         gnulib-tool.  Analogously, install traps for cleanup.
76848
76849         * tests/test-gc.c (main): Remove unused variables.
76850         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76851
76852 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * modules/inttostr (License): Change to LGPL.
76855
76856 2006-11-14  Eric Blake  <ebb9@byu.net>
76857
76858         * modules/tempname (License): Change to LGPL.
76859
76860 2006-11-14  Eric Blake  <ebb9@byu.net>
76861
76862         * doc/functions.texi (Function Portability): *printf functions on
76863         Cygwin now understand all POSIX size specifiers.
76864
76865 2006-11-14  Bruno Haible  <bruno@clisp.org>
76866
76867         * modules/c-ctype (License): Change to LGPL.
76868
76869 2006-11-12  Bruno Haible  <bruno@clisp.org>
76870
76871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76872         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76873         for GNOME libraries, for which the include files are installed in
76874         subdirectories of $prefix/include.
76875
76876 2006-11-12  Bruno Haible  <bruno@clisp.org>
76877
76878         * m4/lib-link.m4: Require at least autoconf-2.54.
76879         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76880         name to underscores for the --with option.
76881
76882 2006-11-13  Bruno Haible  <bruno@clisp.org>
76883
76884         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76885         the tests directory.
76886         Reported by Ralf Wildenhues.
76887
76888 2006-11-13  Bruno Haible  <bruno@clisp.org>
76889
76890         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76891         (func_emit_initmacro_end): Undo the override here.
76892         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76893         Works around the famous automake error in coreutils.
76894
76895 2006-11-13  Eric Blake  <ebb9@byu.net>
76896
76897         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76898         element, not its node.
76899
76900 2006-11-12  Bruno Haible  <bruno@clisp.org>
76901
76902         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76903         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76904
76905 2006-11-12  Bruno Haible  <bruno@clisp.org>
76906
76907         * gnulib-tool: New option --local-symlink.
76908         (func_usage): Document it.
76909         (lsymbolic): New variable.
76910         (func_import, func_create_testdir): If --symlink was not specified,
76911         test whether --local-symlink was specified and the file comes from
76912         the local_gnulib_dir.
76913
76914 2006-11-12  Bruno Haible  <bruno@clisp.org>
76915
76916         * gnulib-tool (func_ln): New function.
76917         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76918
76919 2006-11-12  Bruno Haible  <bruno@clisp.org>
76920
76921         Finish support for source files in subdirectories.
76922         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76923         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76924         AUTOMAKE_OPTIONS.
76925         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76926
76927 2006-11-12  Bruno Haible  <bruno@clisp.org>
76928
76929         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76930         EXTRA_lib_SOURCES augmentation.
76931         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76932
76933 2006-11-12  Jim Meyering  <jim@meyering.net>
76934
76935         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76936         file descriptors.  This also averts a failure on systems with
76937         native openat support when a traversed directory lacks "x" access.
76938         * lib/fts_.h: Include "i-ring.h"
76939         (struct FTS) [fts_fd_ring]: New member.
76940         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76941         (FCHDIR): Add parentheses.
76942         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76943         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76944         When descending, rather than simply closing the previous
76945         fts_cwd_fd value, push that file descriptor onto the ring.
76946         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76947         (fts_open): Initialize the new fd_ring member.
76948         (fts_close): Clear the ring.
76949         (fts_safe_changedir): When possible, use our new fd_ring to skip
76950         the diropen and fstat and dev/ino comparison that would normally
76951         accompany a virtual `chdir ("..")'.
76952
76953         * modules/fts (Depends-on): Add i-ring.
76954         * modules/i-ring: New module.
76955         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76956         * m4/i-ring.m4: New file.
76957
76958 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76959
76960         * gnulib-tool (func_create_testdir): Fix replacement of
76961         `build-aux' in configure.ac.  Run autotools in gltests
76962         subdirectory.
76963         (func_create_testdir, func_create_megatestdir, test): There is
76964         no need for '--force' in most autotool invocations in a new
76965         tree.  Actually fail the whole test if any of the tools, or the
76966         configure or make stages fail.
76967
76968         Sync from Automake.
76969         * build-aux/gnupload: Revert last change.  Add pointer to upload
76970         instructions of the GNU Maintenance Instructions.
76971         Suggestion by Karl Berry.
76972
76973 2006-11-10  Jim Meyering  <jim@meyering.net>
76974
76975         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76976
76977 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76980         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76981         (bind_textdomain_codeset) [! ENABLE_NLS]:
76982         Evaluate all the arguments.  That way, callers get compatible behavior
76983         if the arguments have side effects.  Also, it avoids some GCC
76984         diagnostics in some cases; Joel E. Denny reported problems when Bison
76985         was configured with --enable-gcc-warnigs.
76986
76987 2006-11-10  Jim Meyering  <jim@meyering.net>
76988
76989         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76990         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76991         account.
76992
76993 2006-11-10  Jim Meyering  <jim@meyering.net>
76994
76995         * modules/inline: New file/module.
76996         * modules/xalloc (Files): Remove m4/inline.m4.
76997         (Depends-on): Add inline, instead.
76998         * modules/oset: Likewise.
76999         * modules/list: Likewise.
77000
77001 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77002
77003         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77004         Problem reported by Matthew Woehlke.
77005
77006 2006-11-09  Bruno Haible  <bruno@clisp.org>
77007
77008         * lib/tempname.c (gen_tempname): Remove variant that invokes
77009         __gen_tempname.
77010         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77011         __gen_tempname.
77012
77013 2006-11-08  Bruno Haible  <bruno@clisp.org>
77014
77015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77016         to 'yes' instead of 'cross-compiling'.
77017
77018 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         * lib/quotearg.h (quotearg_free): New decl.
77021         * lib/quotearg.c (quotearg_free): New function.
77022         (slot0, nslots, slotvec0, slotvec):
77023         Now file-scope so that quotearg_free can get at them.
77024
77025 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77026
77027         Sync from Automake.
77028         * build-aux/gnupload: Add missing 'gnu' to example URL.
77029         Report by Karl Berry.
77030
77031 2006-11-08  Bruno Haible  <bruno@clisp.org>
77032
77033         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77034         Suggested by Paul Eggert.
77035
77036 2006-11-08  Jim Meyering  <jim@meyering.net>
77037
77038         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77039         It's already included if !_LIBC.
77040         (fts_safe_changedir): Add a comment.
77041
77042 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77045         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77046         Matthew Woehlke.
77047
77048         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77049         definitions up, to avoid colliding with change below.
77050         (static_inline) [HAVE_INLINE]: New macro.
77051         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77052         Provide extern decls when !HAVE_INLINE.  Do not define unless
77053         static_inline is defined, either by us or by xmalloc.c.  Use
77054         static_inline rather than static inline.
77055         (XCALLOC): Optimize sizeof(T) = 1 case.
77056         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77057
77058 2006-11-07  Bruno Haible  <bruno@clisp.org>
77059
77060         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77061         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77062         AC_C_INLINE.
77063         * modules/xalloc (Files): Add m4/inline.m4.
77064
77065 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77066
77067         * README: Fix typo.
77068         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77069         (Miscellanous Notes): ...from this.
77070
77071 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77074         Mention that offsetof should be used instead of sizeof.
77075         From Bruno Haible.
77076
77077 2006-11-07  Bruno Haible  <bruno@clisp.org>
77078
77079         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77080
77081 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77084         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77085         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77086         (gl_tree_add_before, gl_tree_add_after):
77087         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77088         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77089         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77090         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77091         (gl_linked_add_after, gl_linked_add_at): Likewise.
77092         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77093         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77094         (gl_tree_add_before, gl_tree_add_after): Likewise.
77095         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77096         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77097         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77098
77099 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77100
77101         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77102
77103 2006-11-06  Bruno Haible  <bruno@clisp.org>
77104
77105         * m4/inline.m4: New file.
77106         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77107         * modules/list (Files): Add m4/inline.m4.
77108         * modules/oset (Files): Likewise.
77109
77110 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77111
77112         * lib/idcache.c: Include <stddef.h>, for offsetof.
77113         (struct userid.name): Change from char * to a flexible array member.
77114         All uses changed.
77115         * modules/idcache (Depends-on): Add flexmember.
77116
77117         * MODULES.html.sh (Core language properties): New module flexmember.
77118         * modules/flexmember, m4/flexmember.m4: New files.
77119
77120         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77121         inline functions that are identical with the old xnmalloc_inline,
77122         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77123         that we can avoid some unnecessary integer multiplications and
77124         divisions in the common case where the element size is known at
77125         compile time.
77126         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77127         needed.
77128         (xnboundedmalloc): Remove.
77129         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77130         arguments, for consistency with rest of this header.
77131         (xcharalloc): Rewrite using XNMALLOC.
77132         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77133         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77134         versions have been moved to lib/xalloc.h and renamed to be the
77135         non-*_inline versions.
77136         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77137         and xnrealloc functions, since those functions are now inline and
77138         now call us.
77139         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77140         renaming described above.
77141         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77142         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77143         captures the dependency in AC_C_INLINE.
77144
77145         New module canonicalize-lgpl, proposed by Charles Wilson in
77146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77147         with a few small changes afterwards.
77148         * MODULES.html.sh (File system functions): New module
77149         canonicalize-lgpl.
77150         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77151         and canonicalize_file_name.
77152         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77153         * modules/canonicalize-lgpl: New files.
77154
77155 2006-11-05  Bruno Haible  <bruno@clisp.org>
77156
77157         * gnulib-tool (func_import, func_create_testdir): Create directories
77158         also for files in subdirectories of lib/.
77159
77160 2006-11-05  Bruno Haible  <bruno@clisp.org>
77161
77162         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77163         ANSI C compliant.
77164
77165 2006-11-03  Bruno Haible  <bruno@clisp.org>
77166
77167         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77169         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77170         (xnboundedmalloc): New inline function.
77171         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77172         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77173         xmalloc.
77174         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77175         xmalloc.
77176         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77177         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77178         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77179         xmalloc.
77180         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77181         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77182         xmalloc.
77183         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77185         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77186         xmalloc.
77187         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77188         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77189         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77190         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77191         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77192         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77193         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77194
77195 2006-11-03  Bruno Haible  <bruno@clisp.org>
77196
77197         * lib/c-ctype.h [C++]: Define functions without name mangling.
77198         * lib/fwriteerror.h [C++]: Likewise.
77199         * lib/gcd.h [C++]: Likewise.
77200         * lib/linebreak.h [C++]: Likewise.
77201
77202 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77205         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77206         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77208         Check for functions and headers just once.
77209         Check for declaration of canonicalize_file_name.
77210         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77211
77212 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77213
77214         * gnulib-tool (func_import): Fix typo in actioncmd.
77215
77216 2006-11-02  Bruno Haible  <bruno@clisp.org>
77217
77218         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77219         newline sequence in the Makefile.am snippet as a space, like "make"
77220         does.
77221         Reported by Roger Persson <perrog@gmail.com>.
77222
77223 2006-11-01  Bruno Haible  <bruno@clisp.org>
77224
77225         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77226         already declared in <string.h>.
77227         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77228
77229 2006-11-01  Bruno Haible  <bruno@clisp.org>
77230
77231         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77232         * lib/strcase.h: Include <string.h>.
77233         (strcasecmp): Define to rpl_strcasecmp here.
77234
77235 2006-11-01  Bruno Haible  <bruno@clisp.org>
77236
77237         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77238
77239 2006-11-01  Eric Blake  <ebb9@byu.net>
77240
77241         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77242
77243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77244
77245 2006-10-29  Bruno Haible  <bruno@clisp.org>
77246
77247         Make it compile in C++ mode.
77248         * lib/full-write.c (full_rw): Add a cast.
77249
77250 2006-11-01  Bruno Haible  <bruno@clisp.org>
77251
77252         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77253         be POSIX compliant.
77254         Reported by Roger Persson <perrog@gmail.com>.
77255
77256 2006-11-01  Eric Blake  <ebb9@byu.net>
77257
77258         * lib/getopt_.h: Fix comments.
77259
77260 2006-10-31  Eric Blake  <ebb9@byu.net>
77261
77262         * modules/tmpdir (Depends-on): Add sys_stat.
77263         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77264         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77265         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77266         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77267         tempname.
77268
77269 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         Avoid some C++ diagnostics reported by Bruno Haible.
77272         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77273         xmalloc.
77274         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77275         (struct slotvec): Move to top level.
77276         (quotearg_n_options): Rewrite to avoid xmalloc.
77277         * lib/xalloc.h (xcharalloc): New function.
77278         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77279         [defined __cplusplus]: Add function template that provides result
77280         type propagation.  This part of the change is from Bruno Haible.
77281
77282 2006-10-29  Bruno Haible  <bruno@clisp.org>
77283
77284         Make it compile in C++ mode.
77285         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77286         * lib/strnlen1.c (strnlen1): Cast memchr result.
77287         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77288         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77289         (create_temp_dir): Rename local variable 'template'.
77290         (compile_csharp_using_sscli): Add cast.
77291         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77292         * lib/findprog.c (find_in_path): Likewise.
77293         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77294         * lib/wait-process.c (register_slave_subprocess): Likewise.
77295
77296 2006-10-22  Bruno Haible  <bruno@clisp.org>
77297
77298         * modules/tsearch: New file.
77299         * lib/tsearch.h: New file.
77300         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77301         * m4/tsearch.m4: New file.
77302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77303
77304 2006-10-29  Eric Blake  <ebb9@byu.net>
77305
77306         * lib/arcfour.c: Assume config.h.
77307         * lib/arctwo.c: Likewise.
77308         * lib/base64.c: Likewise.
77309         * lib/check-version.c: Likewise.
77310         * lib/crc.c: Likewise.
77311         * lib/des.c: Likewise.
77312         * lib/gc-gnulib.c: Likewise.
77313         * lib/gc-libgcrypt.c: Likewise.
77314         * lib/gc-pbkdf2-sha1.c: Likewise.
77315         * lib/getaddrinfo.c: Likewise.
77316         * lib/getdelim.c: Likewise.
77317         * lib/getline.c: Likewise.
77318         * lib/hmac-md5.c: Likewise.
77319         * lib/hmac-sha1.c: Likewise.
77320         * lib/iconvme.c: Likewise.
77321         * lib/md2.c: Likewise.
77322         * lib/md4.c: Likewise.
77323         * lib/memxor.c: Likewise.
77324         * lib/read-file.c: Likewise.
77325         * lib/readline.c: Likewise.
77326         * lib/rijndael-alg-fst.c: Likewise.
77327         * lib/rijndael-api-fst.c: Likewise.
77328         * lib/xgetdomainname.c: Likewise.
77329
77330 2006-10-28  Eric Blake  <ebb9@byu.net>
77331
77332         * lib/xstrndup.c: Assume config.h.
77333
77334 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77337         stat-macros.h is now for our own macros, whereas stat_h is for
77338         macros in the <sys/stat.h> name space.
77339         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77340         (STAT_MACROS_H): Remove.
77341         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77342         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77343         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77344         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77345         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77346         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77347         Move these macros to ...
77348         * lib/stat_.h: here.  Don't include stat-macros.h.
77349         * lib/canonicalize.c: Don't include stat-macros.h.
77350         * lib/chown.c: Likewise.
77351         * lib/euidaccess.c: Likewise.
77352         * lib/file-type.c: Likewise.
77353         * lib/filemode.c: Likewise.
77354         * lib/glob.c: Likewise.
77355         * lib/isapipe.c: Likewise.
77356         * lib/lchown.c: Likewise.
77357         * lib/lstat.c: Likewise.
77358         * lib/mkdir-p.c: Likewise.
77359         * lib/rmdir.c: Likewise.
77360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77361         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77362         unless mkdir isn't declared, to speed up 'configure'.
77363         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77364         would define all the S_* symbols.
77365         * modules/canonicalize (Depends-on):
77366         Depend on sys_stat, not stat-macros.
77367         * modules/chown: Likewise.
77368         * modules/euidaccess: Likewise.
77369         * modules/filemode: Likewise.
77370         * modules/file-type: Likewise.
77371         * modules/glob: Likewise.
77372         * modules/isapipe: Likewise.
77373         * modules/lchown: Likewise.
77374         * modules/lstat: Likewise.
77375         * modules/mkancesdirs: Likewise.
77376         * modules/rmdir: Likewise.
77377         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77378         * modules/modechange: Likewise.
77379         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77380         (configure.ac): Remove gl_STAT_MACROS.
77381         * modules/sys_stat (Depends-on): Remove stat-macros.
77382
77383 2006-10-27  Bruno Haible  <bruno@clisp.org>
77384
77385         * m4/signed.m4: Remove file.
77386         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77387         invocation.
77388         * modules/vasnprintf (Files): Remove m4/signed.m4.
77389
77390 2006-10-27  Bruno Haible  <bruno@clisp.org>
77391
77392         Update to GNU gettext 0.16.
77393         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77394         m4/inttypes-h.m4, m4/signed.m4.
77395         * m4/gettext.m4: Update to GNU gettext 0.16.
77396         * m4/intl.m4: New file, from GNU gettext.
77397         * m4/intldir.m4: New file, from GNU gettext.
77398         * config/srclist.txt: Update
77399
77400 2006-10-27  Eric Blake  <ebb9@byu.net>
77401
77402         * MODULES.html.sh: Document tempname.
77403         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77404         dependencies.
77405         (Files): Move lib/tempname.c...
77406         * modules/tempname: ...to this new module.
77407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77408         (gl_PREREQ_TEMPNAME): Move...
77409         * m4/tempname.m4: ...to this new file.
77410         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77411         * modules/sys_stat (Depends-on): Add stat-macros.
77412         * lib/stat_.h (includes): Pick up stat macros.
77413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77414         if stat macros are broken.
77415         * lib/tempname.c (includes): No need to include "stat-macros.h".
77416         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77417         (direxists, __path_search) [!_LIBC]: Don't compile these in
77418         gnulib; the tmpdir module covers that.
77419         * lib/tempname.h: New file.
77420
77421 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         * COPYING: Explain how gnulib-tool converts licence headers.
77424         Almost all wording by Eric Blake.
77425
77426 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77427
77428         * lib/mbchar.h (is_basic_table): Make read-only.
77429         * lib/mbchar.c (is_basic_table): Likewise.
77430         Reported by John Darrington.
77431
77432 2006-10-25  Bruno Haible  <bruno@clisp.org>
77433
77434         * lib/progname.h (set_program_name): Undefine before defining.
77435
77436 2006-10-25  Bruno Haible  <bruno@clisp.org>
77437
77438         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77439         false for non-gcc C++ compilers.
77440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77441
77442 2006-10-24  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77445         iconv implementations like Irix iconv.
77446
77447 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77448
77449         * modules/vararrays: New file.
77450         * m4/vararrays.m4: New file, taken from diffutils.
77451         * MODULES.html.sh: New module vararrays.
77452
77453 2006-10-24  Karl Berry  <karl@gnu.org>
77454
77455         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77456         Don't call GNU Unix.
77457
77458 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77459
77460         * users.txt: Add Libtool.
77461
77462         Sync from Libtool:
77463
77464         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77467         to gnulib's policy of including config.h unconditionally.
77468
77469 2006-10-24  Bruno Haible  <bruno@clisp.org>
77470
77471         * modules/wcwidth (Files): Add m4/wint_t.m4.
77472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77473         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77474
77475 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77478         to pacify GCC with some -W flags enabled.  Problem reported by
77479         Bruno Haible.
77480
77481 2006-10-24  Jim Meyering  <jim@meyering.net>
77482
77483         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77484         Reported by Karl Berry.
77485
77486 2006-10-23  Bruno Haible  <bruno@clisp.org>
77487
77488         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77489
77490 2006-10-24  Bruno Haible  <bruno@clisp.org>
77491
77492         * lib/gl_list.h: Use C comment style, not C++ comment style.
77493
77494 2006-10-23  Eric Blake  <ebb9@byu.net>
77495
77496         * lib/getaddrinfo.c (includes): Add missing include.
77497
77498 2006-10-23  Bruno Haible  <bruno@clisp.org>
77499             Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         Ability to rename obstack_free.
77502         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77503         obstack_free.
77504         (obstack_free): Invoke the __obstack_free macro.
77505         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77506
77507 2006-10-23  Bruno Haible  <bruno@clisp.org>
77508             Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77511         __argc, __argv from the declaration. (They are defined as macros on
77512         mingw.)
77513
77514 2006-10-22  Bruno Haible  <bruno@clisp.org>
77515
77516         * doc/gnulib-intro.texi: New file.
77517         * doc/gnulib.texi: Include it.
77518
77519 2006-10-21  Bruno Haible  <bruno@clisp.org>
77520
77521         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77522         "Introduction", "Miscellanous Notes", "Particular Modules".
77523
77524 2006-10-21  Bruno Haible  <bruno@clisp.org>
77525
77526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77527         Change mostlyclean-local rule to avoid sh syntax error from bash
77528         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77529
77530 2006-10-23  Jim Meyering  <jim@meyering.net>
77531
77532         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77533         in place of snprintf.
77534
77535         * modules/inttostr (Files): Add lib/uinttostr.c.
77536         * lib/uinttostr.c (inttostr): New file/function.
77537         * lib/inttostr.h (uinttostr): Declare.
77538         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77539         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77540         Add uinttostr.
77541         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77542
77543 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * lib/canonicalize.c (ELOOP): Define if not already defined.
77546         Problem reported by Bruno Haible in
77547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77548
77549 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77550
77551         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77552         Problem reported by Perry Smith and Ville Laurikari.
77553
77554         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77555         uses.
77556
77557 2006-10-19  Bruno Haible  <bruno@clisp.org>
77558
77559         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77560         for mingw.
77561
77562 2006-10-19  Bruno Haible  <bruno@clisp.org>
77563
77564         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77565         Needed for mingw.
77566
77567 2006-10-19  Bruno Haible  <bruno@clisp.org>
77568
77569         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77570
77571 2006-10-19  Bruno Haible  <bruno@clisp.org>
77572
77573         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77574         it.
77575
77576 2006-10-19  Bruno Haible  <bruno@clisp.org>
77577
77578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77579         invocation.
77580
77581 2006-10-19  Bruno Haible  <bruno@clisp.org>
77582
77583         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77584         mountlist by default.
77585
77586 2006-10-16  Bruno Haible  <bruno@clisp.org>
77587
77588         * lib/c-strstr.c: Include c-strstr.h.
77589
77590 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77591
77592         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77593         in a slash.
77594
77595 2006-10-18  Bruno Haible  <bruno@clisp.org>
77596
77597         * lib/lock.h [C++]: Wrap definitions in extern "C".
77598
77599 2006-10-18  Bruno Haible  <bruno@clisp.org>
77600
77601         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77602         gl_LIBOBJS list.
77603
77604 2006-10-18  Bruno Haible  <bruno@clisp.org>
77605
77606         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77607
77608 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77609
77610         * lib/xstrtol.h: Include gettext.h.
77611         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77612         Problem reported by Eric Blake.
77613         * modules/xstrtol (Depends-on): Add gettext-h.
77614
77615 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77616
77617         * lib/strftime.c (advance): New macro.
77618         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77619         incomplete type, so you can't add 0 to it.  Problem and patch
77620         reported by Eelco Dolstra for dietlibc.
77621
77622 2006-10-18  Jim Meyering  <jim@meyering.net>
77623
77624         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77625         type for a local, and rename it: s/up/user_proc/.
77626
77627 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77628
77629         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77630         READ_UTMP_USER_PROCESS.
77631         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77632
77633 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77636         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77637
77638 2006-10-17  Eric Blake  <ebb9@byu.net>
77639
77640         * lib/sigprocmask.c (sigprocmask): Fix typo.
77641
77642         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77643
77644         * modules/clean-temp (Makefile.am): Don't add to make output...
77645         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77646         config.h.
77647
77648 2006-10-17  Bruno Haible  <bruno@clisp.org>
77649
77650         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77651         differently if DEFAULT_TEXT_DOMAIN is set.
77652
77653 2006-10-16  Bruno Haible  <bruno@clisp.org>
77654
77655         * lib/clean-temp.c: Include fwriteerror.h.
77656
77657 2006-10-16  Bruno Haible  <bruno@clisp.org>
77658
77659         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77660
77661 2006-10-16  Bruno Haible  <bruno@clisp.org>
77662
77663         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77664         * lib/sigprocmask.h: Include <sys/types.h>.
77665         (sigset_t): Use the system's definition if present.
77666
77667 2006-10-17  Eric Blake  <ebb9@byu.net>
77668
77669         * lib/xvasprintf.c (includes): Assume config.h.
77670         * lib/xasprintf.c (includes): Likewise.
77671
77672 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77673
77674         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77675         at least as wide as intmax_t.
77676
77677 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77678
77679         (Imported from Automake.)
77680         * build-aux/gnupload: Update to version 1.1 of directive file.
77681
77682 2006-10-16  Eric Blake  <ebb9@byu.net>
77683
77684         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77685         match Automake 1.10a.
77686
77687 2006-10-14  Bruno Haible  <bruno@clisp.org>
77688
77689         * modules/sigprocmask: New file.
77690         * lib/sigprocmask.h: New file.
77691         * lib/sigprocmask.c: New file.
77692         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77693         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77694         request sigprocmask.o.
77695         (gl_PREREQ_SIGPROCMASK): New macro.
77696         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77697         (Depends-on): Add sigprocmask.
77698         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77699         gt_SIGNALBLOCKING. Test for 'raise' only once.
77700         * lib/fatal-signal.c: Include sigprocmask.h.
77701         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77702         unblock_fatal_signals): Define always.
77703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77704         sigprocmask.
77705
77706 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         Sync from Automake.
77709         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77710         which incorrectly sets the mode of an existing destination
77711         directory.  In some cases the unpatched install-sh could do the
77712         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77713         system.  We hope this is rare in practice, but it's clearly worth
77714         fixing.  Problem reported by Alex Unleashed in
77715         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77716         Also, don't bother to check for -m bugs unless we're using -m;
77717         suggested by Stepan Kasal.
77718
77719 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77720
77721         Sync from Automake.
77722         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77723         `-c' flag, so they appear at the same position as in %FASTDEP%
77724         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77725         which ignores unknown options only after the first non-option.
77726         Bug report against M4 by Nelson H. F. Beebe.
77727
77728 2006-10-13  Jim Meyering  <jim@meyering.net>
77729
77730         Fix a bug in yesterday's change.
77731         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77732         p->fts_statp->st_dev would be used uninitialized.
77733         Ensures that we always call fts_stat on the very first entry.
77734         Miklos Szeredi reported that find -xdev stopped working.
77735
77736 2006-10-12  Bruno Haible  <bruno@clisp.org>
77737
77738         * gnulib-tool (func_get_automake_snippet): Append an automatically
77739         computed EXTRA_DIST augmentation.
77740         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77741         * modules/alloca-opt (Makefile.am): Likewise.
77742         * modules/allocsa (Makefile.am): Likewise.
77743         * modules/arcfour (Makefile.am): Likewise.
77744         * modules/arctwo (Makefile.am): Likewise.
77745         * modules/argmatch (Makefile.am): Likewise.
77746         * modules/argz (Makefile.am): Likewise.
77747         * modules/atexit (Makefile.am): Likewise.
77748         * modules/backupfile (Makefile.am): Likewise.
77749         * modules/byteswap (Makefile.am): Likewise.
77750         * modules/c-strtod (Makefile.am): Likewise.
77751         * modules/c-strtold (Makefile.am): Likewise.
77752         * modules/calloc (Makefile.am): Likewise.
77753         * modules/canon-host (Makefile.am): Likewise.
77754         * modules/canonicalize (Makefile.am): Likewise.
77755         * modules/chdir-long (Makefile.am): Likewise.
77756         * modules/chdir-safer (Makefile.am): Likewise.
77757         * modules/check-version (Makefile.am): Likewise.
77758         * modules/chown (Makefile.am): Likewise.
77759         * modules/cloexec (Makefile.am): Likewise.
77760         * modules/close-stream (Makefile.am): Likewise.
77761         * modules/closeout (Makefile.am): Likewise.
77762         * modules/crc (Makefile.am): Likewise.
77763         * modules/csharpexec (Makefile.am): Likewise.
77764         * modules/cycle-check (Makefile.am): Likewise.
77765         * modules/des (Makefile.am): Likewise.
77766         * modules/dev-ino (Makefile.am): Likewise.
77767         * modules/dirfd (Makefile.am): Likewise.
77768         * modules/dirname (Makefile.am): Likewise.
77769         * modules/dup2 (Makefile.am): Likewise.
77770         * modules/eealloc (Makefile.am): Likewise.
77771         * modules/error (Makefile.am): Likewise.
77772         * modules/euidaccess (Makefile.am): Likewise.
77773         * modules/exclude (Makefile.am): Likewise.
77774         * modules/exitfail (Makefile.am): Likewise.
77775         * modules/fcntl-safer (Makefile.am): Likewise.
77776         * modules/fcntl (Makefile.am): Likewise.
77777         * modules/file-type (Makefile.am): Likewise.
77778         * modules/fileblocks (Makefile.am): Likewise.
77779         * modules/filemode (Makefile.am): Likewise.
77780         * modules/filenamecat (Makefile.am): Likewise.
77781         * modules/fnmatch (Makefile.am): Likewise.
77782         * modules/fopen-safer (Makefile.am): Likewise.
77783         * modules/fpending (Makefile.am): Likewise.
77784         * modules/fprintftime (Makefile.am): Likewise.
77785         * modules/free (Makefile.am): Likewise.
77786         * modules/fsusage (Makefile.am): Likewise.
77787         * modules/ftruncate (Makefile.am): Likewise.
77788         * modules/fts (Makefile.am): Likewise.
77789         * modules/gc-arcfour (Makefile.am): Likewise.
77790         * modules/gc-des (Makefile.am): Likewise.
77791         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77792         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77793         * modules/gc-md4 (Makefile.am): Likewise.
77794         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77795         * modules/gc-sha1 (Makefile.am): Likewise.
77796         * modules/gc (Makefile.am): Likewise.
77797         * modules/getaddrinfo (Makefile.am): Likewise.
77798         * modules/getcwd (Makefile.am): Likewise.
77799         * modules/getdelim (Makefile.am): Likewise.
77800         * modules/getdomainname (Makefile.am): Likewise.
77801         * modules/getgroups (Makefile.am): Likewise.
77802         * modules/gethostname (Makefile.am): Likewise.
77803         * modules/gethrxtime (Makefile.am): Likewise.
77804         * modules/getline (Makefile.am): Likewise.
77805         * modules/getloadavg (Makefile.am): Likewise.
77806         * modules/getlogin_r (Makefile.am): Likewise.
77807         * modules/getndelim2 (Makefile.am): Likewise.
77808         * modules/getopt (Makefile.am): Likewise.
77809         * modules/getpagesize (Makefile.am): Likewise.
77810         * modules/getpass-gnu (Makefile.am): Likewise.
77811         * modules/getpass (Makefile.am): Likewise.
77812         * modules/getsubopt (Makefile.am): Likewise.
77813         * modules/gettime (Makefile.am): Likewise.
77814         * modules/gettimeofday (Makefile.am): Likewise.
77815         * modules/getugroups (Makefile.am): Likewise.
77816         * modules/getusershell (Makefile.am): Likewise.
77817         * modules/glob (Makefile.am): Likewise.
77818         * modules/group-member (Makefile.am): Likewise.
77819         * modules/hard-locale (Makefile.am): Likewise.
77820         * modules/hash (Makefile.am): Likewise.
77821         * modules/hmac-md5 (Makefile.am): Likewise.
77822         * modules/hmac-sha1 (Makefile.am): Likewise.
77823         * modules/human (Makefile.am): Likewise.
77824         * modules/idcache (Makefile.am): Likewise.
77825         * modules/imaxabs (Makefile.am): Likewise.
77826         * modules/imaxdiv (Makefile.am): Likewise.
77827         * modules/inet_ntop (Makefile.am): Likewise.
77828         * modules/inet_pton (Makefile.am): Likewise.
77829         * modules/intprops (Makefile.am): Likewise.
77830         * modules/inttostr (Makefile.am): Likewise.
77831         * modules/inttypes (Makefile.am): Likewise.
77832         * modules/isapipe (Makefile.am): Likewise.
77833         * modules/javaversion (Makefile.am): Likewise.
77834         * modules/lchmod (Makefile.am): Likewise.
77835         * modules/lchown (Makefile.am): Likewise.
77836         * modules/localcharset (Makefile.am): Likewise.
77837         * modules/long-options (Makefile.am): Likewise.
77838         * modules/lstat (Makefile.am): Likewise.
77839         * modules/malloc (Makefile.am): Likewise.
77840         * modules/mathl (Makefile.am): Likewise.
77841         * modules/mbchar (Makefile.am): Likewise.
77842         * modules/md2 (Makefile.am): Likewise.
77843         * modules/md4 (Makefile.am): Likewise.
77844         * modules/md5 (Makefile.am): Likewise.
77845         * modules/memcasecmp (Makefile.am): Likewise.
77846         * modules/memchr (Makefile.am): Likewise.
77847         * modules/memcmp (Makefile.am): Likewise.
77848         * modules/memcoll (Makefile.am): Likewise.
77849         * modules/memcpy (Makefile.am): Likewise.
77850         * modules/memmem (Makefile.am): Likewise.
77851         * modules/memmove (Makefile.am): Likewise.
77852         * modules/mempcpy (Makefile.am): Likewise.
77853         * modules/memrchr (Makefile.am): Likewise.
77854         * modules/memset (Makefile.am): Likewise.
77855         * modules/memxor (Makefile.am): Likewise.
77856         * modules/mkancesdirs (Makefile.am): Likewise.
77857         * modules/mkdir-p (Makefile.am): Likewise.
77858         * modules/mkdir (Makefile.am): Likewise.
77859         * modules/mkdtemp (Makefile.am): Likewise.
77860         * modules/mkstemp (Makefile.am): Likewise.
77861         * modules/mktime (Makefile.am): Likewise.
77862         * modules/modechange (Makefile.am): Likewise.
77863         * modules/mountlist (Makefile.am): Likewise.
77864         * modules/nanosleep (Makefile.am): Likewise.
77865         * modules/obstack (Makefile.am): Likewise.
77866         * modules/openat (Makefile.am): Likewise.
77867         * modules/pagealign_alloc (Makefile.am): Likewise.
77868         * modules/pathmax (Makefile.am): Likewise.
77869         * modules/physmem (Makefile.am): Likewise.
77870         * modules/poll (Makefile.am): Likewise.
77871         * modules/posixtm (Makefile.am): Likewise.
77872         * modules/posixver (Makefile.am): Likewise.
77873         * modules/putenv (Makefile.am): Likewise.
77874         * modules/quote (Makefile.am): Likewise.
77875         * modules/quotearg (Makefile.am): Likewise.
77876         * modules/raise (Makefile.am): Likewise.
77877         * modules/read-file (Makefile.am): Likewise.
77878         * modules/readline (Makefile.am): Likewise.
77879         * modules/readlink (Makefile.am): Likewise.
77880         * modules/readtokens (Makefile.am): Likewise.
77881         * modules/readutmp (Makefile.am): Likewise.
77882         * modules/realloc (Makefile.am): Likewise.
77883         * modules/regex (Makefile.am): Likewise.
77884         * modules/rename-dest-slash (Makefile.am): Likewise.
77885         * modules/rename (Makefile.am): Likewise.
77886         * modules/rijndael (Makefile.am): Likewise.
77887         * modules/rmdir (Makefile.am): Likewise.
77888         * modules/rpmatch (Makefile.am): Likewise.
77889         * modules/safe-read (Makefile.am): Likewise.
77890         * modules/safe-write (Makefile.am): Likewise.
77891         * modules/same-inode (Makefile.am): Likewise.
77892         * modules/same (Makefile.am): Likewise.
77893         * modules/save-cwd (Makefile.am): Likewise.
77894         * modules/savedir (Makefile.am): Likewise.
77895         * modules/setenv (Makefile.am): Likewise.
77896         * modules/settime (Makefile.am): Likewise.
77897         * modules/sha1 (Makefile.am): Likewise.
77898         * modules/sig2str (Makefile.am): Likewise.
77899         * modules/snprintf (Makefile.am): Likewise.
77900         * modules/stat-macros (Makefile.am): Likewise.
77901         * modules/stat-time (Makefile.am): Likewise.
77902         * modules/stdbool (Makefile.am): Likewise.
77903         * modules/stdint (Makefile.am): Likewise.
77904         * modules/stdlib-safer (Makefile.am): Likewise.
77905         * modules/stpcpy (Makefile.am): Likewise.
77906         * modules/stpncpy (Makefile.am): Likewise.
77907         * modules/strcase (Makefile.am): Likewise.
77908         * modules/strcasestr (Makefile.am): Likewise.
77909         * modules/strchrnul (Makefile.am): Likewise.
77910         * modules/strcspn (Makefile.am): Likewise.
77911         * modules/strdup (Makefile.am): Likewise.
77912         * modules/strerror (Makefile.am): Likewise.
77913         * modules/strftime (Makefile.am): Likewise.
77914         * modules/strndup (Makefile.am): Likewise.
77915         * modules/strnlen (Makefile.am): Likewise.
77916         * modules/strpbrk (Makefile.am): Likewise.
77917         * modules/strsep (Makefile.am): Likewise.
77918         * modules/strstr (Makefile.am): Likewise.
77919         * modules/strtod (Makefile.am): Likewise.
77920         * modules/strtoimax (Makefile.am): Likewise.
77921         * modules/strtok_r (Makefile.am): Likewise.
77922         * modules/strtol (Makefile.am): Likewise.
77923         * modules/strtoll (Makefile.am): Likewise.
77924         * modules/strtoul (Makefile.am): Likewise.
77925         * modules/strtoull (Makefile.am): Likewise.
77926         * modules/strtoumax (Makefile.am): Likewise.
77927         * modules/strverscmp (Makefile.am): Likewise.
77928         * modules/sys_socket (Makefile.am): Likewise.
77929         * modules/sys_stat (Makefile.am): Likewise.
77930         * modules/sysexits (Makefile.am): Likewise.
77931         * modules/time_r (Makefile.am): Likewise.
77932         * modules/timegm (Makefile.am): Likewise.
77933         * modules/timespec (Makefile.am): Likewise.
77934         * modules/tmpfile-safer (Makefile.am): Likewise.
77935         * modules/trim (Makefile.am): Likewise.
77936         * modules/unistd-safer (Makefile.am): Likewise.
77937         * modules/unlinkdir (Makefile.am): Likewise.
77938         * modules/unlocked-io (Makefile.am): Likewise.
77939         * modules/userspec (Makefile.am): Likewise.
77940         * modules/utime (Makefile.am): Likewise.
77941         * modules/utimecmp (Makefile.am): Likewise.
77942         * modules/utimens (Makefile.am): Likewise.
77943         * modules/vasnprintf (Makefile.am): Likewise.
77944         * modules/vasprintf (Makefile.am): Likewise.
77945         * modules/vsnprintf (Makefile.am): Likewise.
77946         * modules/xalloc (Makefile.am): Likewise.
77947         * modules/xgetcwd (Makefile.am): Likewise.
77948         * modules/xnanosleep (Makefile.am): Likewise.
77949         * modules/xreadlink (Makefile.am): Likewise.
77950         * modules/xstrtod (Makefile.am): Likewise.
77951         * modules/xstrtol (Makefile.am): Likewise.
77952         * modules/xstrtold (Makefile.am): Likewise.
77953         * modules/yesno (Makefile.am): Likewise.
77954         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77955
77956 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         * modules/error (Makefile.am): Distribute files through
77959         EXTRA_DIST, not lib_SOURCES.
77960
77961 2006-10-12  Eric Blake  <ebb9@byu.net>
77962
77963         * modules/error (Makefile.am): Distribute files in /lib.
77964         * modules/obstack (Makefile.am): Likewise.
77965
77966 2006-10-12  Bruno Haible  <bruno@clisp.org>
77967
77968         * modules/acl (Makefile.am): Distribute all files in lib/ through
77969         EXTRA_DIST.
77970         * modules/arcfour (Makefile.am): Likewise.
77971         * modules/arctwo (Makefile.am): Likewise.
77972         * modules/argmatch (Makefile.am): Likewise.
77973         * modules/argz (Makefile.am): Likewise.
77974         * modules/atexit (Makefile.am): Likewise.
77975         * modules/backupfile (Makefile.am): Likewise.
77976         * modules/c-strtod (Makefile.am): Likewise.
77977         * modules/c-strtold (Makefile.am): Likewise.
77978         * modules/calloc (Makefile.am): Likewise.
77979         * modules/canon-host (Makefile.am): Likewise.
77980         * modules/canonicalize (Makefile.am): Likewise.
77981         * modules/chdir-long (Makefile.am): Likewise.
77982         * modules/chdir-safer (Makefile.am): Likewise.
77983         * modules/check-version (Makefile.am): Likewise.
77984         * modules/chown (Makefile.am): Likewise.
77985         * modules/cloexec (Makefile.am): Likewise.
77986         * modules/close-stream (Makefile.am): Likewise.
77987         * modules/closeout (Makefile.am): Likewise.
77988         * modules/crc (Makefile.am): Likewise.
77989         * modules/cycle-check (Makefile.am): Likewise.
77990         * modules/des (Makefile.am): Likewise.
77991         * modules/dirfd (Makefile.am): Likewise.
77992         * modules/dirname (Makefile.am): Likewise.
77993         * modules/dup2 (Makefile.am): Likewise.
77994         * modules/euidaccess (Makefile.am): Likewise.
77995         * modules/exclude (Makefile.am): Likewise.
77996         * modules/exitfail (Makefile.am): Likewise.
77997         * modules/fcntl-safer (Makefile.am): Likewise.
77998         * modules/file-type (Makefile.am): Likewise.
77999         * modules/fileblocks (Makefile.am): Likewise.
78000         * modules/filemode (Makefile.am): Likewise.
78001         * modules/filenamecat (Makefile.am): Likewise.
78002         * modules/fnmatch (Makefile.am): Likewise.
78003         * modules/fopen-safer (Makefile.am): Likewise.
78004         * modules/fpending (Makefile.am): Likewise.
78005         * modules/fprintftime (Makefile.am): Likewise.
78006         * modules/free (Makefile.am): Likewise.
78007         * modules/fsusage (Makefile.am): Likewise.
78008         * modules/ftruncate (Makefile.am): Likewise.
78009         * modules/fts (Makefile.am): Likewise.
78010         * modules/gc (Makefile.am): Likewise.
78011         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78012         * modules/getaddrinfo (Makefile.am): Likewise.
78013         * modules/getcwd (Makefile.am): Likewise.
78014         * modules/getdelim (Makefile.am): Likewise.
78015         * modules/getdomainname (Makefile.am): Likewise.
78016         * modules/getgroups (Makefile.am): Likewise.
78017         * modules/gethostname (Makefile.am): Likewise.
78018         * modules/gethrxtime (Makefile.am): Likewise.
78019         * modules/getline (Makefile.am): Likewise.
78020         * modules/getloadavg (Makefile.am): Likewise.
78021         * modules/getlogin_r (Makefile.am): Likewise.
78022         * modules/getopt (Makefile.am): Likewise.
78023         * modules/getpass (Makefile.am): Likewise.
78024         * modules/getpass-gnu (Makefile.am): Likewise.
78025         * modules/getsubopt (Makefile.am): Likewise.
78026         * modules/gettime (Makefile.am): Likewise.
78027         * modules/gettimeofday (Makefile.am): Likewise.
78028         * modules/getugroups (Makefile.am): Likewise.
78029         * modules/getusershell (Makefile.am): Likewise.
78030         * modules/glob (Makefile.am): Likewise.
78031         * modules/group-member (Makefile.am): Likewise.
78032         * modules/hard-locale (Makefile.am): Likewise.
78033         * modules/hash (Makefile.am): Likewise.
78034         * modules/hmac-md5 (Makefile.am): Likewise.
78035         * modules/hmac-sha1 (Makefile.am): Likewise.
78036         * modules/human (Makefile.am): Likewise.
78037         * modules/idcache (Makefile.am): Likewise.
78038         * modules/imaxabs (Makefile.am): Likewise.
78039         * modules/imaxdiv (Makefile.am): Likewise.
78040         * modules/inet_ntop (Makefile.am): Likewise.
78041         * modules/inet_pton (Makefile.am): Likewise.
78042         * modules/inttostr (Makefile.am): Likewise.
78043         * modules/isapipe (Makefile.am): Likewise.
78044         * modules/lchown (Makefile.am): Likewise.
78045         * modules/long-options (Makefile.am): Likewise.
78046         * modules/lstat (Makefile.am): Likewise.
78047         * modules/malloc (Makefile.am): Likewise.
78048         * modules/mathl (Makefile.am): Likewise.
78049         * modules/mbchar (Makefile.am): Likewise.
78050         * modules/md2 (Makefile.am): Likewise.
78051         * modules/md4 (Makefile.am): Likewise.
78052         * modules/md5 (Makefile.am): Likewise.
78053         * modules/memcasecmp (Makefile.am): Likewise.
78054         * modules/memchr (Makefile.am): Likewise.
78055         * modules/memcmp (Makefile.am): Likewise.
78056         * modules/memcoll (Makefile.am): Likewise.
78057         * modules/memcpy (Makefile.am): Likewise.
78058         * modules/memmem (Makefile.am): Likewise.
78059         * modules/memmove (Makefile.am): Likewise.
78060         * modules/mempcpy (Makefile.am): Likewise.
78061         * modules/memrchr (Makefile.am): Likewise.
78062         * modules/memset (Makefile.am): Likewise.
78063         * modules/memxor (Makefile.am): Likewise.
78064         * modules/mkancesdirs (Makefile.am): Likewise.
78065         * modules/mkdir (Makefile.am): Likewise.
78066         * modules/mkdir-p (Makefile.am): Likewise.
78067         * modules/mkdtemp (Makefile.am): Likewise.
78068         * modules/mkstemp (Makefile.am): Likewise.
78069         * modules/mktime (Makefile.am): Likewise.
78070         * modules/modechange (Makefile.am): Likewise.
78071         * modules/mountlist (Makefile.am): Likewise.
78072         * modules/nanosleep (Makefile.am): Likewise.
78073         * modules/openat (Makefile.am): Likewise.
78074         * modules/pagealign_alloc (Makefile.am): Likewise.
78075         * modules/physmem (Makefile.am): Likewise.
78076         * modules/poll (Makefile.am): Likewise.
78077         * modules/posixtm (Makefile.am): Likewise.
78078         * modules/posixver (Makefile.am): Likewise.
78079         * modules/putenv (Makefile.am): Likewise.
78080         * modules/quote (Makefile.am): Likewise.
78081         * modules/quotearg (Makefile.am): Likewise.
78082         * modules/raise (Makefile.am): Likewise.
78083         * modules/read-file (Makefile.am): Likewise.
78084         * modules/readline (Makefile.am): Likewise.
78085         * modules/readlink (Makefile.am): Likewise.
78086         * modules/readtokens (Makefile.am): Likewise.
78087         * modules/readutmp (Makefile.am): Likewise.
78088         * modules/realloc (Makefile.am): Likewise.
78089         * modules/regex (Makefile.am): Likewise.
78090         * modules/rename (Makefile.am): Likewise.
78091         * modules/rename-dest-slash (Makefile.am): Likewise.
78092         * modules/rijndael (Makefile.am): Likewise.
78093         * modules/rmdir (Makefile.am): Likewise.
78094         * modules/rpmatch (Makefile.am): Likewise.
78095         * modules/safe-read (Makefile.am): Likewise.
78096         * modules/safe-write (Makefile.am): Likewise.
78097         * modules/same (Makefile.am): Likewise.
78098         * modules/save-cwd (Makefile.am): Likewise.
78099         * modules/savedir (Makefile.am): Likewise.
78100         * modules/setenv (Makefile.am): Likewise.
78101         * modules/settime (Makefile.am): Likewise.
78102         * modules/sha1 (Makefile.am): Likewise.
78103         * modules/sig2str (Makefile.am): Likewise.
78104         * modules/snprintf (Makefile.am): Likewise.
78105         * modules/stdlib-safer (Makefile.am): Likewise.
78106         * modules/stpcpy (Makefile.am): Likewise.
78107         * modules/stpncpy (Makefile.am): Likewise.
78108         * modules/strcase (Makefile.am): Likewise.
78109         * modules/strcasestr (Makefile.am): Likewise.
78110         * modules/strchrnul (Makefile.am): Likewise.
78111         * modules/strcspn (Makefile.am): Likewise.
78112         * modules/strdup (Makefile.am): Likewise.
78113         * modules/strerror (Makefile.am): Likewise.
78114         * modules/strftime (Makefile.am): Likewise.
78115         * modules/strndup (Makefile.am): Likewise.
78116         * modules/strnlen (Makefile.am): Likewise.
78117         * modules/strpbrk (Makefile.am): Likewise.
78118         * modules/strsep (Makefile.am): Likewise.
78119         * modules/strstr (Makefile.am): Likewise.
78120         * modules/strtod (Makefile.am): Likewise.
78121         * modules/strtoimax (Makefile.am): Likewise.
78122         * modules/strtok_r (Makefile.am): Likewise.
78123         * modules/strtol (Makefile.am): Likewise.
78124         * modules/strtoll (Makefile.am): Likewise.
78125         * modules/strtoul (Makefile.am): Likewise.
78126         * modules/strtoull (Makefile.am): Likewise.
78127         * modules/strtoumax (Makefile.am): Likewise.
78128         * modules/strverscmp (Makefile.am): Likewise.
78129         * modules/time_r (Makefile.am): Likewise.
78130         * modules/timegm (Makefile.am): Likewise.
78131         * modules/tmpfile-safer (Makefile.am): Likewise.
78132         * modules/unistd-safer (Makefile.am): Likewise.
78133         * modules/unlinkdir (Makefile.am): Likewise.
78134         * modules/userspec (Makefile.am): Likewise.
78135         * modules/utime (Makefile.am): Likewise.
78136         * modules/utimecmp (Makefile.am): Likewise.
78137         * modules/utimens (Makefile.am): Likewise.
78138         * modules/vasnprintf (Makefile.am): Likewise.
78139         * modules/vasprintf (Makefile.am): Likewise.
78140         * modules/vsnprintf (Makefile.am): Likewise.
78141         * modules/xalloc (Makefile.am): Likewise.
78142         * modules/xgetcwd (Makefile.am): Likewise.
78143         * modules/xnanosleep (Makefile.am): Likewise.
78144         * modules/xreadlink (Makefile.am): Likewise.
78145         * modules/xstrtod (Makefile.am): Likewise.
78146         * modules/xstrtol (Makefile.am): Likewise.
78147         * modules/xstrtold (Makefile.am): Likewise.
78148         * modules/yesno (Makefile.am): Likewise.
78149
78150 2006-10-12  Jim Meyering  <jim@meyering.net>
78151
78152         * m4/getloadavg.m4: Revert the change below.
78153
78154         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78155         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78156         fail with a symlink, which is what coreutils' ./bootstrap now
78157         creates by default.
78158
78159 2006-10-12  Bruno Haible  <bruno@clisp.org>
78160
78161         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78162         mingw.
78163         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78164         MSVC and mingw explicitly.
78165
78166 2006-10-11  Simon Josefsson  <jas@extundo.com>
78167             Bruno Haible  <bruno@clisp.org>
78168
78169         Add support for multiple gnulib-tool invocations in the scope of a
78170         single configure.ac file.
78171         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78172         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78173         with the same contents as the _LIBADD variable.
78174         (func_emit_initmacro_start, func_emit_initmacro_end,
78175         func_emit_initmacro_done): New functions.
78176         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78177         gl_LIBOBJS and gl_LTLIBOBJS.
78178
78179 2006-10-11  Bruno Haible  <bruno@clisp.org>
78180
78181         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78182         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78183         autoreconf. Instead, invoke autopoint explicitly but move back the
78184         *.m4 files from gnulib.
78185
78186 2006-10-11  Bruno Haible  <bruno@clisp.org>
78187
78188         * gnulib-tool (func_usage): Make module names after --create-testdir
78189         optional.
78190         (func_create_testdir): If no module was specified, use nearly all
78191         modules.
78192
78193 2006-10-12  Jim Meyering  <jim@meyering.net>
78194
78195         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78196         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78197         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78198         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78199         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78200         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78201         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78202         (fts_set_stat_required): New function.
78203         (fts_open): Defer the calls to fts_stat, if possible or requested.
78204         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78205         into fts_stat itself.
78206         (fts_read): Perform any required (deferred) fts_stat call.
78207         (fts_build): Likewise, for the directory we're about to open and read.
78208         In the readdir loop, carefully decide whether each entry will require
78209         an eventual call to fts_stat, using dirent.d_type info if available.
78210         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78211         a command line argument into this function.  Update all callers.
78212         Map a return value of FTS_DOT to FTS_D for a command line argument.
78213         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78214         Thanks to Miklos Szeredi for his tenacity and for the initial
78215         bug report about "find" failing on a FUSE-based file system.
78216
78217         * lib/fts.c (fts_open): Use consistent indentation.
78218
78219 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78222         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78223         reported by Jim Meyering.  All uses of cache variables renamed
78224         to match Autoconf's.
78225         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78226         the other one.
78227
78228         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78229         Fix misspelling in diagnostic.
78230
78231 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78234         defined.  Problem reported by Matthew Woehlke.
78235
78236         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78237         Add support for Tandem NonStop R series.
78238         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78239         Use new macro.
78240
78241         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78242         (has_trailing_slash): Omit size arg; all callers changed.
78243         Omit 'inline', since it doesn't help performance and we'd
78244         need to configure it.
78245         Don't count //, ///, etc. as having a trailing slash.
78246         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78247         (rpl_rename_dest_slash): On failure, use rename's errno rather
78248         than (in some cases) an incorrect or junk errno.
78249         Simplify code by removing need to compute length; this does
78250         cause it to make two passes instead of one over the file name,
78251         but it's worth it.
78252
78253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78254         change, since Autoconf's version may no longer be appropriate now
78255         that we are using CVS Autoconf's version.  Add support for Tandem.
78256
78257 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78258             Bruno Haible  <bruno@clisp.org>
78259
78260         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78261         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78262         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78263         gl_AC_TYPE_LONG_LONG.
78264
78265         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78266         instead of HAVE_LONG_LONG.
78267         * lib/printf-args.c (printf_fetchargs): Likewise.
78268         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78269         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78271         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78272         gl_AC_TYPE_LONG_LONG.
78273
78274 2006-10-11  Bruno Haible  <bruno@clisp.org>
78275
78276         * m4/longlong.m4: Add comments.
78277         * m4/ulonglong.m4: Likewise.
78278
78279 2006-10-10  Bruno Haible  <bruno@clisp.org>
78280
78281         Make it possible to #define stpcpy, strdup to aliases.
78282         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78283         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78284
78285 2006-10-10  Bruno Haible  <bruno@clisp.org>
78286
78287         Make it possible to #define gcd to an alias.
78288         * lib/gcd.c: Include config.h.
78289
78290 2006-10-10  Bruno Haible  <bruno@clisp.org>
78291
78292         Make it possible to #define c_isascii to an alias.
78293         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78294         defined. Undefine the macros before defining them, to avoid gcc
78295         warnings.
78296         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78297         define NO_C_CTYPE_MACROS early.
78298
78299 2006-10-10  Bruno Haible  <bruno@clisp.org>
78300
78301         Make it possible to #define set_program_name to an alias.
78302         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78303         ENABLE_RELOCATABLE early.
78304
78305 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78306
78307         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78308         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78309         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78310         More generally, don't assume that 64-bit signed int is available
78311         if unsigned int is, and vice versa.
78312         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78313         unsigned symbols, not on their signed counterparts.
78314         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78315         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78316         (UINT64_C, UINTMAX_C):
78317         Likewise.
78318         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78319         unsigned counterparts.
78320         (Have_long_long, Unsigned): New macros.
78321         (Int): Renamed from INT.
78322         (strtoimax): Use the new macros.
78323         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78324         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78325         * modules/inttypes (inttypes.h): Substitute
78326         HAVE_UNSIGNED_LONG_LONG_INT.
78327         * modules/stdint (stdint.h): Likewise.
78328         (Files): Add m4/ulonglong.m4.
78329
78330 2006-10-10  Bruno Haible  <bruno@clisp.org>
78331
78332         Fix a gcc -Wshadow warning.
78333         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78334         to 'bucket'.
78335         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78336         gl_linked_indexof_from_to): Likewise.
78337         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78338         Likewise.
78339         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78340         Likewise.
78341         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78342         Reported by Eric Blake.
78343
78344 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78347         for NetBSD.  Problem reported by Bruno Haible.
78348
78349 2006-10-09  Jim Meyering  <jim@meyering.net>
78350
78351         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78352         Patch from Bruno Haible.
78353
78354 2006-10-09  Jim Meyering  <jim@meyering.net>
78355
78356         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78357         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78358         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78359
78360 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78361
78362         Don't include <config.h> twice; this doesn't work in some cases,
78363         e.g., when config.h has "#define intmax_t long long int" and
78364         we include <config.h>, <inttypes.h>, <config.h> in that order.
78365         Problem reported by Matthew Woehlke in:
78366         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78367         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78368         * lib/fts-cycle.c: Don't include config.h.
78369         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78370         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78371         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78372         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78373         inttypes.h.
78374         * lib/xstrtoumax.c: Likewise.
78375         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78376         __strtol and the like, so that this module is more like its siblings.
78377         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78378         Remove; no longer needed now that we assume gnulib inttypes.h.
78379
78380 2006-10-08  Bruno Haible  <bruno@clisp.org>
78381
78382         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78383         option.
78384
78385 2006-10-07  Jim Meyering  <jim@meyering.net>
78386
78387         * modules/inttypes (inttypes.h): Revert what seems to have been
78388         an inadvertent part of today's change: use "|", not "/" in the
78389         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78390
78391 2006-10-07  Bruno Haible  <bruno@clisp.org>
78392
78393         * modules/sublist: New file.
78394
78395 2006-10-07  Bruno Haible  <bruno@clisp.org>
78396
78397         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78398         * modules/argz (argz.h): Likewise.
78399         * modules/arpa_inet (arpa/inet.h): Likewise.
78400         * modules/byteswap (byteswap.h): Likewise.
78401         * modules/configmake (configmake.h): Likewise.
78402         * modules/fcntl (fcntl.h): Likewise.
78403         * modules/fnmatch (fnmatch.h): Likewise.
78404         * modules/getopt (getopt.h): Likewise.
78405         * modules/glob (glob.h): Likewise.
78406         * modules/inttypes (inttypes.h): Likewise.
78407         * modules/netinet_in (netinet/in.h): Likewise.
78408         * modules/poll (poll.h): Likewise.
78409         * modules/stdbool (stdbool.h): Likewise.
78410         * modules/stdint (stdint.h): Likewise.
78411         * modules/sys_select (sys/select.h): Likewise.
78412         * modules/sys_socket (sys/socket.h): Likewise.
78413         * modules/sys_stat (sys/stat.h): Likewise.
78414         * modules/sysexits (sysexits.h): Likewise.
78415         * modules/unistd (unistd.h): Likewise.
78416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78417         Add a "DO NOT EDIT" comment to the generated file.
78418         (func_import): Likewise for gnulib-comp.m4.
78419
78420 2006-10-07  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/gl_sublist.h: New file.
78423         * lib/gl_sublist.c: New file.
78424
78425 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78426
78427         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78428         name (relative to the original working directory) and the file
78429         name component (relative to the temporary working directory).  All
78430         callers changed.
78431         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78432         * lib/mkdir-p.c (make_dir_parents): Likewise.
78433         * lib/mkdir-p.h (make_dir_parents): Likewise.
78434
78435 2006-10-06  Eric Blake  <ebb9@byu.net>
78436
78437         Define several macros for use by the clean-temp module.
78438         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78441
78442         * lib/clean-temp.h (close_stream_temp): New declaration.
78443         * lib/clean-temp.c (includes): Pull in headers according to what
78444         other modules are in use.
78445         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78446
78447 2006-10-06  Bruno Haible  <bruno@clisp.org>
78448
78449         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78450         instead of fopen, fwriteerror.
78451
78452 2006-10-06  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78455         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78456         int.
78457         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78458         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78459         Return an error indicator.
78460         Suggested by Eric Blake.
78461
78462 2006-10-06  Bruno Haible  <bruno@clisp.org>
78463
78464         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78465         Reported by Eric Blake.
78466
78467 2006-10-06  Bruno Haible  <bruno@clisp.org>
78468
78469         * modules/closeout (Description): Mention stderr too.
78470
78471 2006-10-06  Bruno Haible  <bruno@clisp.org>
78472         and Paul Eggert  <eggert@cs.ucla.edu>
78473
78474         * lib/closeout.c (close_stdout): Also close stderr.
78475         * lib/closeout.h: Update comment.
78476
78477 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78480         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78481         * lib/dirchownmod.c: Include lchown.h.
78482         * lib/lchown.c: Don't include files that lchown.h now includes.
78483         Don't declare chown, since lchown.h now does that.
78484         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78485         (lchown): Define to rpl_chown if lchown is declared but
78486         does not exist.  Declare using a prototype if lchown is not
78487         declared.  Add a copyright notice.
78488         * lib/mkstemp.h: Include <unistd.h>.
78489         * lib/openat.c: Include lchown.h.
78490
78491         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78492         we now test for that separately.
78493         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78494         rather than O_NOFOLLOW, when testing whether it's possible to
78495         avoid a race condition reliably.
78496         * lib/savewd.c (savewd_chdir): Likewise.
78497
78498         Remove macros that are no longer needed now that stdint.h is
78499         reliable.
78500         * lib/fsusage.c (UINTMAX_MAX): Remove.
78501         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78502         * lib/utimecmp.c (SIZE_MAX): Remove.
78503
78504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78505
78506         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78507         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78508         O_NOATIME works.
78509
78510 2006-10-05  Bruno Haible  <bruno@clisp.org>
78511
78512         * lib/gl_list.h (gl_sortedlist_search_from_to,
78513         gl_sortedlist_indexof_from_to): New declarations.
78514         (gl_list_implementation): New fields sortedlist_search_from_to,
78515         sortedlist_indexof_from_to.
78516         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78517         inline functions.
78518         * lib/gl_list.c (gl_sortedlist_search_from_to,
78519         gl_sortedlist_indexof_from_to): New functions.
78520         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78521         function.
78522         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78523         (gl_array_sortedlist_search_from_to): New function.
78524         (gl_array_list_implementation): Update.
78525         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78526         function.
78527         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78528         (gl_carray_sortedlist_search_from_to): New function.
78529         (gl_carray_list_implementation): Update.
78530         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78531         gl_linked_sortedlist_indexof_from_to): New functions.
78532         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78533         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78534         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78535         gl_tree_sortedlist_indexof_from_to): New functions.
78536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78537         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78538         Update.
78539         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78540         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78541         Update.
78542
78543 2006-10-05  Bruno Haible  <bruno@clisp.org>
78544
78545         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78546         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78547         (struct gl_list_implementation): Add fields search_from_to,
78548         indexof_from_to. Remove fields search, indexof.
78549         (gl_list_search): Use the search_from_to method.
78550         (gl_list_search_from, gl_list_search_from_to): New functions.
78551         (gl_list_indexof): Use the indexof_from_to method.
78552         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78553         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78554         (gl_list_search_from, gl_list_search_from_to): New functions.
78555         (gl_list_indexof): Use the indexof_from_to method.
78556         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78557         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78558         gl_array_indexof. Add start_index, end_index arguments.
78559         (gl_array_search_from_to): Renamed from gl_array_search. Add
78560         start_index, end_index arguments.
78561         (gl_array_remove, gl_array_list_implementation): Update.
78562         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78563         gl_carray_indexof. Add start_index, end_index arguments.
78564         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78565         start_index, end_index arguments.
78566         (gl_carray_remove, gl_carray_list_implementation): Update.
78567         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78568         gl_linked_search. Add start_index, end_index arguments.
78569         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78570         start_index, end_index arguments.
78571         (gl_linked_remove): Update.
78572         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78573         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78574         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78575         field to 'size_t'.
78576         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78577         gl_tree_search. Add start_index, end_index arguments.
78578         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78579         start_index, end_index arguments.
78580         (gl_tree_remove): Update.
78581         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78582         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78583         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78584         function.
78585         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78586         gl_tree_search. Add start_index, end_index arguments.
78587         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78588         start_index, end_index arguments.
78589         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78590         Update.
78591         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78592
78593 2006-10-05  Bruno Haible  <bruno@clisp.org>
78594
78595         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78596
78597         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78598         fwriteerror_temp): New declarations.
78599         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78600         (descriptors): New variable.
78601         (cleanup): First, close the descriptors.
78602         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78603         fclose_temp, fwriteerror_temp): New functions.
78604
78605 2006-10-04  Jim Meyering  <jim@meyering.net>
78606
78607         * lib/fts.c (fts_open): Tiny comment change.
78608
78609 2006-10-04  Bruno Haible  <bruno@clisp.org>
78610
78611         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78612         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78613         gl_LOCK_BODY.
78614         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78615         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78616         gl_LOCK_EARLY_BODY.
78617         (gl_LOCK): Require gl_LOCK_BODY.
78618
78619 2006-10-04  Bruno Haible  <bruno@clisp.org>
78620
78621         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78622         (gl_oset_search_atleast): New declaration.
78623         (struct gl_oset_implementation): Add field 'search_atleast'.
78624         (gl_oset_search_atleast): New inline function.
78625         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78626         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78627         (gl_array_oset_implementation): Update.
78628         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78629         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78630         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78631
78632 2006-10-04  Bruno Haible  <bruno@clisp.org>
78633
78634         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78635
78636 2006-10-03  Bruno Haible  <bruno@clisp.org>
78637
78638         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78639         from gl_avltreehash_list_implementation.
78640
78641 2006-10-03  Bruno Haible  <bruno@clisp.org>
78642
78643         * lib/gl_oset.c (gl_oset_add): Fix return type.
78644
78645 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78646
78647         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78648
78649 2006-10-02  Eric Blake  <ebb9@byu.net>
78650
78651         * modules/strnlen (Depends-on): Add extensions.
78652
78653 2006-10-02  Eric Blake  <ebb9@byu.net>
78654
78655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78656         definition in 2.60+.
78657
78658 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78659
78660         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78661         checks.
78662
78663 2006-10-02  Bruno Haible  <bruno@clisp.org>
78664
78665         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78666         to the AUTOMAKE_OPTIONS.
78667         Reported by Jim Meyering.
78668
78669 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         Work around bug in Solaris 10 /proc file system:
78672         /proc/self/fd/NNN/.. isn't the parent directory of
78673         the directory whose file descriptor is NNN.  This needs to
78674         be worked around at run time, not compile time, since a
78675         program might be built on Solaris 8, where things work, and
78676         run on Solaris 10.
78677         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78678         to use the following interface instead:
78679         (OPENAT_BUFFER_SIZE): New macro.
78680         (openat_proc_name): New function.
78681         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78682         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78683         Likewise.
78684         * lib/openat-proc.c: New file.
78685         * modules/openat (Files): Add lib/openat-proc.c.
78686         (Depends-on): Add same-inode, stdbool.
78687         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78688
78689 2006-09-29  Bruno Haible  <bruno@clisp.org>
78690
78691         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78692         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78693         argument. Set stdout_closed before testing for ferror, not after.
78694         (fwriteerror, fwriteerror_no_ebadf): New functions.
78695
78696 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78697
78698         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78699
78700 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78701
78702         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78703         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78704
78705 2006-09-28  Jim Meyering  <jim@meyering.net>
78706
78707         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78708         Include <unistd.h>.
78709
78710 2006-09-28  Bruno Haible  <bruno@clisp.org>
78711
78712         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78713         * modules/linkedhash-list (Depends-on): Likewise.
78714         * modules/rbtreehash-list (Depends-on): Likewise.
78715
78716 2006-09-28  Bruno Haible  <bruno@clisp.org>
78717
78718         * lib/strndup.h: Simplify the redefinition of strndup.
78719         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78721
78722 2006-09-28  Bruno Haible  <bruno@clisp.org>
78723
78724         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78725         * lib/gl_linkedhash_list.c: Likewise.
78726         * lib/gl_rbtreehash_list.c: Likewise.
78727
78728 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78731         getaddrinfo.
78732
78733         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78734         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78735         it causes <stdio_ext.h> to cause a compile-time error.
78736         Problem reported by Nelson H. F. Beebe.
78737         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78738         of HAVE_DECL___PENDING.
78739
78740         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78742         declaration.
78743
78744 2006-09-27  Jim Meyering  <jim@meyering.net>
78745
78746         This file could end up with a definition for a function
78747         named __strndup, rather than rpl_strndup on a system with
78748         incomplete weak_alias support.
78749         * lib/strndup.c (strndup): Rename from __strndup.
78750         Remove #defines that used to map __strndup to strndup.
78751         Don't use K&R prototypes.
78752         Remove LIBC-related code, since this file is not sync'd with glibc.
78753         * lib/strndup.h: Revamp, accordingly.
78754         * m4/strndup.m4: Modernize.
78755
78756 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * modules/savewd (Depends-on): Add 'raise'.
78759         * lib/savewd.c: Include <signal.h>, for 'raise'.
78760
78761 2006-09-26  Jim Meyering  <jim@meyering.net>
78762
78763         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78764         when we detect Darwin 8.7.0's acl_get_file bug.
78765         Rearrange to perform the new (below) run-test while $LIBS
78766         contains any acl-related library.  Set USE_ACL at the end.
78767         (gl_ACL_GET_FILE): New function.
78768
78769 2006-09-26  Eric Blake  <ebb9@byu.net>
78770
78771         * lib/verror.c: Include <config.h> unconditionally.
78772
78773 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * modules/clock-time (Maintainer): Add self.
78776         * modules/getlogin_r (Depends-on): Add extensions.
78777
78778 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78779
78780         * modules/clock-time: New module.
78781         * modules/nanosleep (Depends-on): Add clock-time.
78782         * modules/gethrxtime (Depends-on): Likewise.
78783         * modules/gettime (Depends-on): Likewise.
78784         * modules/settime (Depends-on): Likewise.
78785
78786         * modules/fts-lgpl: Depend on openat.
78787         * modules/mkancesdirs: Depend on savewd.
78788         * modules/mkdir-p: Likewise.
78789
78790 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78791
78792         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78793
78794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78795         `gl_have_arbitrary_file_name_length_limit' to
78796         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78797         actually works between configure runs.
78798
78799 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78800             Bruno Haible  <bruno@clisp.org>
78801
78802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78803
78804 2006-09-25  Jim Meyering  <jim@meyering.net>
78805
78806         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78807         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78808
78809 2006-09-25  Eric Blake  <ebb9@byu.net>
78810
78811         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78812         exec's in 2006-09-18 patch when shuffling fds.
78813
78814 2006-09-25  Bruno Haible  <bruno@clisp.org>
78815
78816         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78817         Reported by Jim Meyering.
78818
78819 2006-09-24  Jim Meyering  <jim@meyering.net>
78820
78821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78822         compare a pointer against a literal "0".  That caused failures with
78823         at least HP-UX's hpcc.
78824
78825 2006-09-22  Simon Josefsson  <jas@extundo.com>
78826
78827         * modules/gc-sha1:
78828         * modules/gc-md4:
78829         * modules/gc-hmac-sha1:
78830         * modules/gc-hmac-md5:
78831         * modules/gc-des:
78832         * modules/gc-arcfour: Distribute more files.
78833
78834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78835
78836         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78837         (gl_linked_iterator_from_to): Initialize struct completely.
78838         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78839         (gl_tree_iterator_from_to): Likewise
78840         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78841         * lib/gl_array_list.c [lint] (gl_array_iterator)
78842         (gl_array_iterator_from_to): Likewise.
78843         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78844         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78845         (gl_carray_iterator_from_to): Likewise.
78846
78847         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78848         * lib/md4.c (md4_process_block): Remove unused variable.
78849         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78850         parentheses for clarity.
78851
78852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78853
78854         * modules/bison-i18n (Depends-on): Add gettext.
78855
78856 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78857
78858         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78860         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78861         also add missing comma that caused broken test.
78862         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78863         stdlib.h, for `abort'.
78864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78865         variables.
78866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78867         include unistd.h if present, for `rmdir'.
78868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78869         variables.
78870         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78871         in the process include standard headers for prototypes.
78872         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78873         gets declared on GNU/Linux.
78874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78875         unistd.h, for `rmdir'.
78876         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78877
78878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78879         always true.
78880         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78881
78882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78883
78884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78885
78886         * gnulib-tool (func_version): Create output all at once.  This
78887         may help avoid triggering unnecessary SIGPIPEs, and at any
78888         rate it doesn't hurt.
78889
78890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78891             Bruno Haible  <bruno@clisp.org>
78892
78893         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78894         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78895         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78896
78897         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78898         (gl_FUNC_VASPRINTF): Invoke it.
78899
78900 2006-09-22  Bruno Haible  <bruno@clisp.org>
78901
78902         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78903         getloadavg.c as first argument.
78904
78905 2006-09-22  Bruno Haible  <bruno@clisp.org>
78906
78907         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78908         at the beginning of the gl_INIT macro.
78909         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78910         gl_GETLOADAVG.
78911
78912 2006-09-22  Bruno Haible  <bruno@clisp.org>
78913
78914         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78915         module.
78916         Suggested by Ralf Wildenhues.
78917
78918 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78919
78920         Import this patch from libc:
78921
78922         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78923
78924         * lib/regex_internal.c (re_string_reconstruct): Handle
78925         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78926         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78927         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78928         re_string_context_at.
78929
78930         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78931         now requires it.
78932         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78933         gl_REGEX now does it for us.
78934         (gl_REGEX): Add test taken from
78935         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78936
78937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78938         Check that large offsets work.  Modernize Autoconf usages.
78939         Prefer "yes" to mean a good thing rather than a bad.
78940         Don't put "#define mkstemp" in config.h, as this might interfere
78941         with standard system headers that "#define mkstemp mkstemp64".
78942
78943         * modules/mkstemp (Depends-on): Add extensions, so that
78944         mkstemp is visible on some platforms.
78945         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78946         (Include): Change to "mkstemp.h" from <stdlib.h>.
78947         (Files): Add mkstemp.h.
78948
78949         * lib/mkstemp.h: New file, since some standard headers
78950         #define mkstemp.
78951         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78952         Include "mkstemp.h".
78953         Make the _LIBC code resemble glibc original more,
78954         e.g., use K&R style.
78955         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78956         (mkstemp): Remove, since mkstemp.h does this for us.
78957         * lib/stdlib--.h: Include mkstemp.h.
78958
78959         Import this patch from libc:
78960
78961         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78962
78963         * lib/tempname.c (__gen_tempname): Change attempts_min
78964         into a macro.  Use preprocessor to decide how to initialize
78965         attempts [Coverity CID 67].
78966
78967 2006-09-20  Bruno Haible  <bruno@clisp.org>
78968
78969         * lib/mkdtemp.c: Import from libc.
78970         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78971                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78972                 attempts_min into a macro.  Use preprocessor to decide how to
78973                 initialize attempts [Coverity CID 67].
78974         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78975                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78976                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78977
78978 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78979
78980         * gnulib-tool (func_exit): New function, to allow to pass the
78981         exit status portably through the trap.  Use everywhere.
78982         (--help, --version): Signal a write error.
78983         (trap): catch SIGPIPE, for write errors.
78984         Exit at the end of the trap, with the correct exit status.
78985
78986 2006-09-19  Karl Berry  <karl@gnu.org>
78987
78988         * doc/gnulib.texi: note about the license texinfo files.
78989
78990 2006-09-19  Eric Blake  <ebb9@byu.net>
78991
78992         * gnulib-tool: Avoid space-tab.
78993
78994 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78997         that prevented coreutils 6.1 from building.  Problem reported
78998         by Petter Reinholdtsen.
78999
79000 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         * gnulib-tool (avoidlist): Fix typo that broke options like
79003         --avoid=lock that are used by coreutils bootstrap.
79004
79005 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79006
79007         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79008         more systematically.
79009
79010 2006-09-18  Jim Meyering  <jim@meyering.net>
79011
79012         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79013
79014 2006-09-18  Bruno Haible  <bruno@clisp.org>
79015
79016         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79017
79018 2006-09-18  Bruno Haible  <bruno@clisp.org>
79019
79020         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79021         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79022         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79023         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79024         * m4/gettext.m4: Require autoconf >= 2.52.
79025         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79026         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79027         of gl_cv_header_inttypes_h.
79028
79029 2006-09-18  Bruno Haible  <bruno@clisp.org>
79030
79031         * lib/javaversion.c: Include configmake.h.
79032
79033 2006-09-18  Bruno Haible  <bruno@clisp.org>
79034
79035         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79036         avoid that the while loops be executed in a subshell.
79037
79038 2006-09-18  Bruno Haible  <bruno@clisp.org>
79039
79040         * MODULES.html.sh (func_module): Break long lines.
79041         Suggested by Bruce Korb <bkorb@gnu.org>.
79042
79043 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79044
79045         Speed up by a factor of 1.12.
79046         * gnulib-tool (nl): New variable.
79047         (func_import): Rewrite include directive extraction to only read each
79048         directive once.
79049
79050 2006-09-17  Bruno Haible  <bruno@clisp.org>
79051
79052         * modules/javaversion (Makefile.am): Remove DEFS setting.
79053         (Depends-on): Add configmake, for PKGDATADIR definition.
79054
79055 2006-09-17  Bruno Haible  <bruno@clisp.org>
79056
79057         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79058
79059 2006-09-17  Bruno Haible  <bruno@clisp.org>
79060
79061         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79062         (func_modules_transitive_closure, func_modules_add_dummy,
79063         func_modules_to_filelist, func_import, func_create_testdir,
79064         func_create_megatestdir, ...): Use it wherever possible.
79065         Suggested by Ralf Wildenhues.
79066
79067 2006-09-16  Karl Berry  <karl@gnu.org>
79068
79069         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79070         to avoid sectioning errors.
79071         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79072         [ifinfo]: blank line after @center-ed titles.
79073         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79074         Spell FSF address consistently with others.
79075         (These changes approved by rms.)
79076
79077 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79078
79079         Speed up by a factor of 1.61.
79080         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79081         already checked module names again.
79082
79083 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79084
79085         Speed up by a factor of 1.13.
79086         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79087         for new_files, and the input to func_add_or_update.
79088
79089 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79090
79091         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79092         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79093
79094 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * modules/mkancesdirs (Depends-on): Add fcntl.
79097         * modules/savewd: New file.
79098         * MODULES.html.sh (File system functions): Add savewd.
79099
79100         * modules/configmake (Makefile.am): Add support for the
79101         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79102
79103 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * m4/savewd.m4: New file.
79106
79107 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79108
79109         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79110         (dirchownmod): New arg FD.  All callers changed.
79111         Use FD rather than opening the directory ourself, as opening is
79112         now the caller's responsibility.
79113         * lib/dirchownmod.h: Likewise.
79114         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79115         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79116         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79117         (test_dir): Remove.
79118         (mkancesdirs): Return length of prefix of FILE that has already
79119         been made, or -2 if there is a child doing the work.  Redo
79120         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79121         ".", and treat ".." specially since it might stray back into
79122         already-created areas.  Use a subprocess if necessary.  New arg
79123         WD; all users changed.  MAKE_DIR function should now return 1
79124         if it creates a directory that is not readable.  Return -2 if
79125         a child process is spun off.
79126         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79127         Adjust signature to match code.
79128         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79129         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79130         all users changed.
79131         * lib/savewd.c, lib/savewd.h: New files.
79132
79133 2006-09-15  Jim Meyering  <jim@meyering.net>
79134
79135         * modules/rename-dest-slash: New module.
79136         * MODULES.html.sh (posix_compat): Add it here.
79137
79138         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79139
79140 2006-09-15  Jim Meyering  <jim@meyering.net>
79141
79142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79143         file.
79144
79145         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79146
79147 2006-09-15  Jim Meyering  <jim@meyering.net>
79148
79149         * lib/rename-dest-slash.c (has_trailing_slash): Use
79150         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79151         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79152         test before testing whether SRC is a directory.
79153         Suggestions from Bruno Haible.
79154
79155         Avoid a warning about an unused variable.
79156         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79157         into the #ifdef block where it's used.
79158
79159         * lib/rename-dest-slash.c: New file.
79160
79161 2006-09-14  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/allocsa.c: Include <config.h> unconditionally.
79164         * lib/asnprintf.c: Likewise.
79165         * lib/asprintf.c: Likewise.
79166         * lib/c-strcasecmp.c: Likewise.
79167         * lib/c-strcasestr.c: Likewise.
79168         * lib/c-strncasecmp.c: Likewise.
79169         * lib/c-strstr.c: Likewise.
79170         * lib/classpath.c: Likewise.
79171         * lib/clean-temp.c: Likewise.
79172         * lib/concatpath.c: Likewise.
79173         * lib/copy-file.c: Likewise.
79174         * lib/csharpcomp.c: Likewise.
79175         * lib/csharpexec.c: Likewise.
79176         * lib/execute.c: Likewise.
79177         * lib/fatal-signal.c: Likewise.
79178         * lib/findprog.c: Likewise.
79179         * lib/fwriteerror.c: Likewise.
79180         * lib/gl_array_list.c: Likewise.
79181         * lib/gl_array_oset.c: Likewise.
79182         * lib/gl_avltree_list.c: Likewise.
79183         * lib/gl_avltree_oset.c: Likewise.
79184         * lib/gl_avltreehash_list.c: Likewise.
79185         * lib/gl_carray_list.c: Likewise.
79186         * lib/gl_linked_list.c: Likewise.
79187         * lib/gl_linkedhash_list.c: Likewise.
79188         * lib/gl_list.c: Likewise.
79189         * lib/gl_oset.c: Likewise.
79190         * lib/gl_rbtree_list.c: Likewise.
79191         * lib/gl_rbtree_oset.c: Likewise.
79192         * lib/gl_rbtreehash_list.c: Likewise.
79193         * lib/imaxabs.c: Likewise.
79194         * lib/imaxdiv.c: Likewise.
79195         * lib/javacomp.c: Likewise.
79196         * lib/javaexec.c: Likewise.
79197         * lib/javaversion.c: Likewise.
79198         * lib/linebreak.c: Likewise.
79199         * lib/localcharset.c: Likewise.
79200         * lib/lock.c: Likewise.
79201         * lib/mbchar.c: Likewise.
79202         * lib/mbswidth.c: Likewise.
79203         * lib/mkdtemp.c: Likewise.
79204         * lib/pipe.c: Likewise.
79205         * lib/printf-args.c: Likewise.
79206         * lib/printf-parse.c: Likewise.
79207         * lib/progname.c: Likewise.
79208         * lib/progreloc.c: Likewise.
79209         * lib/readlink.c: Likewise.
79210         * lib/sh-quote.c: Likewise.
79211         * lib/stpcpy.c: Likewise.
79212         * lib/stpncpy.c: Likewise.
79213         * lib/strcasecmp.c: Likewise.
79214         * lib/strcasestr.c: Likewise.
79215         * lib/strcspn.c: Likewise.
79216         * lib/striconv.c: Likewise.
79217         * lib/strncasecmp.c: Likewise.
79218         * lib/strnlen1.c: Likewise.
79219         * lib/strstr.c: Likewise.
79220         * lib/strtok_r.c: Likewise.
79221         * lib/tls.c: Likewise.
79222         * lib/tmpdir.c: Likewise.
79223         * lib/unicodeio.c: Likewise.
79224         * lib/unsetenv.c: Likewise.
79225         * lib/vasnprintf.c: Likewise.
79226         * lib/vasprintf.c: Likewise.
79227         * lib/wait-process.c: Likewise.
79228         * lib/xallocsa.c: Likewise.
79229         * lib/xsetenv.c: Likewise.
79230         * lib/xstriconv.c: Likewise.
79231
79232 2006-09-13  Simon Josefsson  <jas@extundo.com>
79233
79234         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79235         that internally, suggested by Ralf Wildenhues
79236         <Ralf.Wildenhues@gmx.de>.
79237
79238 2006-09-13  Simon Josefsson  <jas@extundo.com>
79239
79240         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79241         @LIBOBJS@.
79242         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79243
79244 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79247         longer worry about uses that don't define HAVE_CONFIG_H.
79248         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79249         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79250         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79251         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79252         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79253         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79254         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79255         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79256         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79257         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79258         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79259         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79260         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79261         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79262         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79263         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79264         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79265         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79266         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79267         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79268         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79269         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79270         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79271         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79272         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79273         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79274         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79275         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79276         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79277         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79278         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79279         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79280         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79281         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79282         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79283         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79284         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79285         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79286         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79287         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79288         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79289         Likewise.
79290
79291 2006-09-13  Eric Blake  <ebb9@byu.net>
79292
79293         * lib/getopt.c: Fix typo in last commit.
79294
79295 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79296
79297         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79298         dgettext.
79299
79300 2006-09-12  Jim Meyering  <jim@meyering.net>
79301
79302         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79303         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79304         Reported by Nelson H. F. Beebe.
79305
79306 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79307
79308         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79309         program_invocation_name and program_invocation_short_name are
79310         initialized.
79311         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79312         and program_invocation_short_name to argp.h, so they are visible
79313         to user programs.
79314         * lib/argp.h: Likewise
79315
79316 2006-09-10  Bruno Haible  <bruno@clisp.org>
79317
79318         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79319         m4/inttypes_h.m4, m4/uintmax_t.m4.
79320
79321 2006-09-10  Bruno Haible  <bruno@clisp.org>
79322
79323         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79324         gl_AC_TYPE_UINTMAX_T.
79325
79326 2006-09-10  Bruno Haible  <bruno@clisp.org>
79327
79328         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79329
79330 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79331
79332         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79333         convention.  Text proposed by Bruno Haible.
79334         (struct argp_option): Document the use of N_() wrappers.
79335
79336         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79337         '\v', and translate the two parts separately, instead of feeding
79338         the whole string to gettext.  This allows to exclude
79339         '\v' from the strings visible to the translator by writing doc
79340         strings as N_("..") "\v" N_("..").
79341
79342 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         * config/srclist.txt: Undo latest change; the bug was fixed.
79345
79346 2006-09-09  Bruno Haible  <bruno@clisp.org>
79347
79348         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79349         assignments if building a library without libtool.
79350         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79351         in func_emit_lib_Makefile_am.
79352         (func_import): When building a static library libfoo.a, arrange to
79353         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79354         (func_create_testdir): Likewise.
79355         * modules/gc (configure.ac, Makefile.am): If building statically,
79356         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79357         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79358         * modules/striconv (configure.ac, Makefile.am): Likewise.
79359         Based on a suggestion by Ralf Wildenhues.
79360
79361 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79364         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79365         Also:
79366
79367         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79368         Add year_2050_test to catch glibc bug 2821
79369         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79370
79371         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79372         Prefer #ifdef to #if.
79373
79374         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79375         Return from 'main' instead of calling 'exit'.
79376
79377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79380         returned the maximum time_t value rather than (time_t) -1.
79381         Problem originally reported by William Bardwell
79382         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79383
79384         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79385         Moved to here ...
79386         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79387         ... from here.
79388
79389 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79392         2821 is fixed.
79393
79394 2006-09-08  Jim Meyering  <jim@meyering.net>
79395
79396         Don't make generated files read-only.  That would bother too many
79397         people.  However, do retain the ability to work when targets are
79398         read-only: remove the destination and temporary files before writing
79399         them (when generated via sed or echo), or by using the -f option for
79400         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79401         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79402         * modules/byteswap, modules/configmake, modules/fcntl:
79403         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79404         * modules/localcharset, modules/netinet_in, modules/poll:
79405         * modules/stdbool, modules/stdint, modules/sys_select:
79406         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79407
79408 2006-09-08  Jim Meyering  <jim@meyering.net>
79409
79410         Avoid new build failure on FreeBSD 6.0.
79411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79412         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79413         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79414
79415 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79416
79417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79418
79419 2006-09-07  Jim Meyering  <jim@meyering.net>
79420
79421         Fix global typo in last change: use chmod u-w, not chmod u-x.
79422         Spotted by Paul Eggert and Bruce Korb.
79423         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79424         * modules/byteswap, modules/configmake, modules/fcntl:
79425         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79426         * modules/localcharset, modules/netinet_in, modules/poll:
79427         * modules/stdbool, modules/stdint, modules/sys_select:
79428         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79429
79430 2006-09-06  Jim Meyering  <jim@meyering.net>
79431
79432         Make generated files be read-only.
79433         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79434         Ensure that each generated file is now read-only.
79435         * modules/argz: Likewise.
79436         * modules/arpa_inet: Likewise.
79437         * modules/byteswap: Likewise.
79438         * modules/configmake: Likewise.
79439         * modules/fcntl: Likewise.
79440         * modules/fnmatch: Likewise.
79441         * modules/getopt: Likewise.
79442         * modules/glob: Likewise.
79443         * modules/inttypes: Likewise.
79444         * modules/netinet_in: Likewise.
79445         * modules/poll: Likewise.
79446         * modules/stdbool: Likewise.
79447         * modules/stdint: Likewise.
79448         * modules/sys_select: Likewise.
79449         * modules/sys_socket: Likewise.
79450         * modules/sys_stat: Likewise.
79451         * modules/sysexits: Likewise.
79452         * modules/localcharset: Same as above, but continue using temporary
79453         file named "t-$@" (why different?) rather than the "$@-t" used
79454         everywhere else.
79455
79456         * modules/sysexits (Makefile.am): Replace literal occurrences
79457         of "sysexit.h" more readable, and more consistent, "$@".
79458
79459 2006-09-06  Bruno Haible  <bruno@clisp.org>
79460
79461         * modules/striconv: New file.
79462         * modules/xstriconv: New file.
79463         * MODULES.html.sh (Internationalization functions): Add striconv,
79464         xstriconv.
79465
79466 2006-09-06  Bruno Haible  <bruno@clisp.org>
79467
79468         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79469         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79470         not using libtool correctly.
79471
79472 2006-09-06  Bruno Haible  <bruno@clisp.org>
79473
79474         * lib/striconv.h: New file.
79475         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79476         iconvstring.c.
79477         * lib/xstriconv.h: New file.
79478         * lib/xstriconv.c: New file.
79479
79480 2006-09-06  Bruno Haible  <bruno@clisp.org>
79481
79482         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79483         lib_..._LDFLAGS.
79484
79485 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79486
79487         * lib/argz_.h: Sync from Libtool.
79488
79489         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79490                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79491
79492         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79493
79494 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79495
79496         * modules/trim: New file.
79497
79498 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79499
79500         * lib/trim.h: New file.
79501         * lib/trim.c: New file.
79502
79503 2006-09-05  Bruno Haible  <bruno@clisp.org>
79504
79505         * MODULES.html.sh (String handling): Add trim.
79506
79507 2006-09-04  Karl Berry  <karl@gnu.org>
79508
79509         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79510         until next release.
79511
79512 2006-09-03  Bruno Haible  <bruno@clisp.org>
79513
79514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79515         correctly.
79516
79517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79520         not gl_GETLOADAVG.  Omit unneeded semicolons.
79521         Problems reported by Ralf Wildenhues in
79522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79523         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79524         at the end, which is the usual gnulib style.
79525
79526         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79527         of doing all the work ourselves.
79528         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79529         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79530
79531 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79532
79533         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79534         Problem reported by Ralf Wildenhues in
79535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79536
79537         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79538         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79539
79540 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79543         yesterday's patch by changing test -n to test -z.
79544
79545 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79548         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79549         the former is now obsolescent.
79550
79551         * modules/chdir-long (Depends-on): Add fcntl.
79552
79553 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79556         obsolescent, and programs should use gnulib instead.
79557         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79558         but with prefixes changed.
79559
79560 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79563         or stdbool.h, because they might not exist while configuring.
79564
79565         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79566         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79567         does that for us.
79568         (O_DIRECTORY): Remove.
79569
79570 2006-08-31  Eric Blake  <ebb9@byu.net>
79571
79572         * gnulib-tool: Don't let emacs change spaces to TAB.
79573
79574 2006-08-31  Bruno Haible  <bruno@clisp.org>
79575
79576         * gnulib-tool: When calling func_import more than once, do it in a
79577         subshell.
79578         Reported by Eric Blake <ebb9@byu.net>.
79579
79580 2006-08-31  Bruno Haible  <bruno@clisp.org>
79581
79582         * gnulib-tool (nl): Remove variable.
79583         (sed_transform_lib_file): Use more robust test for config-h module.
79584         (func_import): Fix typo in 2006-08-25 patch.
79585
79586 2006-08-31  Bruno Haible  <bruno@clisp.org>
79587
79588         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79589         specified, augment Makefile.am variables instead of assigning them.
79590
79591 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         Work around a bug in both the Linux and SunOS 64-bit kernels:
79594         nanosleep mishandles sleeps for longer than 2**31 seconds.
79595         Problem reported by Frank v Waveren in
79596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79598         Check for nanosleep bug.
79599         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79600
79601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79602
79603         Work around a bug in both the Linux and SunOS 64-bit kernels:
79604         nanosleep mishandles sleeps for longer than 2**31 seconds.
79605         Problem reported by Frank v Waveren in
79606         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79607         * lib/nanosleep.c (BILLION): New constant.
79608         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79609         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79610         implementation.
79611
79612 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         * modules/nanosleep (Depends-on): Add gettime.
79615
79616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79617         and Simon Josefsson  <jas@extundo.com>
79618         and Oskar Liljeblad  <oskar@osk.mine.nu>
79619
79620         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79621         * gnulib-tool (func_import): New license type 'unmodifiable license
79622         text'.
79623         * modules/fdl: Use it.  Longer description.
79624         * module/gpl, module/lgpl: New files.
79625
79626 2006-08-30  Jim Meyering  <jim@meyering.net>
79627
79628         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79629         shadowing the parameter.
79630
79631 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79632
79633         Sync from Libtool:
79634
79635         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79636
79637         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79638         sharing with gnulib.  Report by Eric Blake.
79639
79640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * modules/isapipe: New file.
79643         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79644
79645 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * modules/configmake (Makefile.am): Add a comment, and omit
79648         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79649         by Bruno Haible.
79650
79651 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         * m4/isapipe.m4: New file.
79654
79655 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79656
79657         * lib/isapipe.c, lib/isapipe.h: New files.
79658
79659 2006-08-29  Jim Meyering  <jim@meyering.net>
79660
79661         * modules/configmake (Makefile.am): Make configmake.h depend on
79662         Makefile.  Otherwise, a stale configmake.h could hang around.
79663
79664 2006-08-29  Eric Blake  <ebb9@byu.net>
79665
79666         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79667         resolution of upstream bug 3044.
79668
79669 2006-08-29  Bruno Haible  <bruno@clisp.org>
79670
79671         * modules/localcharset (Depends-on): Add configmake.
79672         (Makefile.am): Remove setting of LIBDIR through DEFS.
79673
79674 2006-08-29  Bruno Haible  <bruno@clisp.org>
79675
79676         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79677         defined.
79678
79679 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         * modules/fcntl: New file.
79682         * modules/chdir-safer (Depends-on): Add fcntl.
79683         * modules/fts: Likewise.
79684         * modules/mkdir-p: Likewise.
79685
79686         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79687         This undoes the most recent change, since we're now addressing the
79688         problem in a different way.
79689
79690         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79691         into output, since the output might be called Makefile.am even
79692         if $makefile_name is something different.
79693         (func_import): Use $makefile_am rather than
79694         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79695         empty.
79696
79697         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79698
79699 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79700
79701         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79702         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79703         recent change to stdint.m4, since we're now addressing the problem in a
79704         different way.
79705
79706 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * m4/fcntl_h.m4: New file.
79709
79710 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * lib/fcntl_.h: New file.
79713         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79714         the fcntl module.
79715         * lib/dirchownmod.c: Likewise.
79716         * lib/fts.c: Likewise.
79717
79718         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79719         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79720         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79721         just before including <inttypes.h>, to avoid circular inclusion.
79722
79723 2006-08-28  Jim Meyering  <jim@meyering.net>
79724
79725         * doc/visibility.texi: Actually read and correct the grammar of the
79726         sentence affected by yesterday's change.
79727
79728 2006-08-28  Eric Blake  <ebb9@byu.net>
79729
79730         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79731         needs wrapper.
79732
79733 2006-08-28  Eric Blake  <ebb9@byu.net>
79734
79735         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79736
79737 2006-08-28  Eric Blake  <ebb9@byu.net>
79738
79739         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79740
79741 2006-08-28  Bruno Haible  <bruno@clisp.org>
79742
79743         * modules/c-strstr: New file, from GNU gettext.
79744         * MODULES.html.sh (String handling): Add c-strstr.
79745
79746 2006-08-28  Bruno Haible  <bruno@clisp.org>
79747
79748         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79749         macros.
79750         Reported by Eric Blake.
79751
79752 2006-08-28  Bruno Haible  <bruno@clisp.org>
79753
79754         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79755         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79756         * lib/vasprintf.c: Include errno.h, limits.h.
79757         (EOVERFLOW): New fallback definition.
79758         (vasprintf): Test here whether the string length is > INT_MAX.
79759         * lib/vsnprintf.c: Include errno.h, limits.h.
79760         (EOVERFLOW): New fallback definition.
79761         (vsnprintf): Fix bug when generated string was too long for the buffer.
79762         Test here whether the string length is > INT_MAX.
79763
79764 2006-08-28  Bruno Haible  <bruno@clisp.org>
79765
79766         * lib/inttypes_.h (SCNX*): Remove definitions.
79767         Reported by Eric Blake.
79768
79769 2006-08-28  Bruno Haible  <bruno@clisp.org>
79770
79771         * lib/c-strstr.h: New file, from GNU gettext.
79772         * lib/c-strstr.c: New file, from GNU gettext.
79773
79774 2006-08-28  Bruno Haible  <bruno@clisp.org>
79775
79776         * gnulib-tool: Reorder some statements.
79777
79778 2006-08-28  Bruno Haible  <bruno@clisp.org>
79779
79780         * gnulib-tool: New option --makefile-name.
79781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79782         $makefile_name.
79783         (func_import): Write $makefile_name to the cache file, and read it from
79784         there unless explicitly specified. Use $makefile_name as file name
79785         instead of Makefile.am. Adjust the recommendations accordingly.
79786
79787 2006-08-28  Bruno Haible  <bruno@clisp.org>
79788
79789         * gnulib-tool (func_verify_module): Check against misapplying patch.
79790
79791 2006-08-28  Bruno Haible  <bruno@clisp.org>
79792
79793         * gnulib-tool (func_relativize, func_relconcat): New functions.
79794         Give an error if --local-dir is given with --update.
79795         Remove trailing slashes from $local_gnulib_dir.
79796         (func_import): Store the relativized $local_gnulib_dir in
79797         gnulib-cache.m4, and read it from there if not specified explicitly.
79798
79799 2006-08-28  Bruno Haible  <bruno@clisp.org>
79800
79801         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79802         is the current directory. Respect also $local_gnulib_dir.
79803
79804 2006-08-28  Bruno Haible  <bruno@clisp.org>
79805             Simon Josefsson  <jas@extundo.com>
79806
79807         BeOS portability.
79808         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79809
79810 2006-08-27  Jim Meyering  <jim@meyering.net>
79811
79812         * doc/visibility.texi: Remove duplicate word: "pointer".
79813
79814 2006-08-26  Bruno Haible  <bruno@clisp.org>
79815
79816         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79817         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79818         (Makefile.am): Create inttypes.h from inttypes_.h.
79819         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79820
79821         * modules/imaxabs: New file.
79822
79823         * modules/imaxdiv: New file.
79824
79825 2006-08-26  Bruno Haible  <bruno@clisp.org>
79826
79827         * m4/inttypes.m4: New file.
79828         * m4/_inttypes_h.m4: Remove file.
79829         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79830         PRI_MACROS_BROKEN.
79831         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79832
79833         * m4/imaxabs.m4: New file.
79834
79835         * m4/imaxdiv.m4: New file.
79836
79837 2006-08-26  Bruno Haible  <bruno@clisp.org>
79838
79839         * lib/inttypes_.h: New file.
79840         * lib/inttypes.h: Remove file.
79841         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79842
79843         * lib/imaxabs.c: New file.
79844
79845         * lib/imaxdiv.c: New file.
79846
79847 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         New config-h module, so that "make" output needn't be cluttered
79850         by -DHAVE_CONFIG_H.
79851         * MODULES.html.sh (Support for building libraries and executables):
79852         Add config-h.
79853         * modules/config-h: New file.
79854         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79855         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79856         the config-h module is used.
79857
79858         New configmake module, so that "make" output needn't be cluttered
79859         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79860         * MODULES.html.sh (Support for building libraries and executables):
79861         Add configmake.
79862         * modules/configmake: New file.
79863
79864 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79865
79866         * m4/config-h.m4: New file.
79867
79868 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * config/srclist.txt: Add elisp-comp.
79871
79872 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * MODULES.html.sh (Support for building libraries and executables):
79875         Add elisp-comp.
79876         * build-aux/elisp-comp: New file.
79877         * modules/elisp-comp: New file.
79878
79879 2006-08-24  Bruno Haible  <bruno@clisp.org>
79880
79881         * gnulib-tool (func_create_testdir): Use non-default values of
79882         sourcebase and m4base.
79883
79884 2006-08-24  Bruno Haible  <bruno@clisp.org>
79885
79886         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79887         HTML structure.
79888
79889 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * modules/openat (Depends-on): Add lchown.
79892
79893 2006-08-23  Bruno Haible  <bruno@clisp.org>
79894
79895         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79896         of gl_LOCK_EARLY instead of gl_LOCK.
79897
79898 2006-08-23  Bruno Haible  <bruno@clisp.org>
79899
79900         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79901         on OSF/1 to no.
79902         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79903
79904 2006-08-23  Bruno Haible  <bruno@clisp.org>
79905
79906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79907         as unusable.
79908
79909         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79910         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79911         (gl_LOCK): New macro.
79912
79913 2006-08-22  Simon Josefsson  <jas@extundo.com>
79914
79915         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79916         to md5 module.
79917
79918 2006-08-22  Simon Josefsson  <jas@extundo.com>
79919
79920         * MODULES.html.sh: Add "Support for maintaining and release
79921         projects".
79922
79923         * build-aux/gnupload: New file, from coreutils.
79924
79925 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79926
79927         Avoid the need for AC_LIBSOURCES in m4 macros.
79928         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79929         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79930         * modules/check-version (EXTRA_DIST): Add check-version.h.
79931         * modules/crc (EXTRA_DIST): Add crc.h.
79932         * modules/des (EXTRA_DIST): Add des.h.
79933         * modules/gc (EXTRA_DIST): Add gc.h.
79934         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79935         * modules/getline (EXTRA_DIST): Add getline.h.
79936         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79937         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79938         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79939         * modules/md2 (EXTRA_DIST): Add md2.h.
79940         * modules/md4 (EXTRA_DIST): Add md4.h.
79941         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79942         * modules/read-file (EXTRA_DIST): Add read-file.h.
79943         * modules/readline (EXTRA_DIST): Add readline.h.
79944         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79945         rijndael-api-fst.h.
79946
79947 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * m4/rijndael.m4 (gl_ARCFOUR):
79950         * m4/arctwo.m4 (gl_ARCTWO):
79951         * m4/check-version.m4 (gl_CHECK_VERSION):
79952         * m4/crc.m4 (gl_CRC):
79953         * m4/des.m4 (gl_DES):
79954         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79955         * m4/gc.m4 (gl_GC):
79956         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79957         * m4/getline.m4 (gl_FUNC_GETLINE):
79958         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79959         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79960         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79961         * m4/md2.m4 (gl_MD2):
79962         * m4/md4.m4 (gl_MD4):
79963         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79964         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79965         * m4/readline.m4 (gl_FUNC_READLINE):
79966         * m4/rijndael.m4 (gl_RIJNDAEL):
79967         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79968         to get the necessary .h files and whatnot.
79969
79970 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79973         gnulib rather than the other way around.
79974         * config/srclistvars.sh (COREUTILS): Remove.
79975
79976 2006-08-22  Jim Meyering  <jim@meyering.net>
79977
79978         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79979
79980         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79981
79982 2006-08-22  Eric Blake  <ebb9@byu.net>
79983
79984         * modules/regexprops-generic: New file.
79985         * MODULES.html.sh (Support for building documentation): List it.
79986
79987 2006-08-22  Eric Blake  <ebb9@byu.net>
79988
79989         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79990         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79992         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79993
79994 2006-08-22  Bruno Haible  <bruno@clisp.org>
79995
79996         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79997         and lib_LTLIBRARIES like the other lib_* variables.
79998
79999 2006-08-22  Bruno Haible  <bruno@clisp.org>
80000
80001         * build-aux/x-to-1.in: New file, from GNU gettext.
80002
80003 2006-08-22  Bruno Haible  <bruno@clisp.org>
80004
80005         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80006         <utmpx.h> exists.
80007
80008 2006-08-22  Bruno Haible  <bruno@clisp.org>
80009
80010         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80011         <utmpx.h> exists.
80012
80013 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80014
80015         BeOS portability.
80016         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80017         exist.
80018         Problem reported by Bruno Haible.
80019
80020 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         Avoid the need for AC_LIBSOURCES in m4 macros.
80023         * modules/acl (EXTRA_DIST): Add acl.h.
80024         * modules/argmatch (Files): Add m4/argmatch.m4.
80025         (configure.ac): Add gl_ARGMATCH.
80026         (EXTRA_DIST): Renamed from lib_SOURCES, for
80027         consistency with the other modules.  Remove argmatch.c.
80028         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80029         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80030         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80031         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80032         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80033         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80034         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80035         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80036         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80037         * modules/closeout (EXTRA_DIST): Add closeout.h.
80038         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80039         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80040         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80041         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80042         dirname.h; remove basename.c and stripslash.c.
80043         * modules/exclude (EXTRA_DIST): Add exclude.h.
80044         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80045         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80046         * modules/file-type (EXTRA_DIST): Add file-type.h.
80047         * modules/filemode (EXTRA_DIST): Add filemode.h.
80048         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80049         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80050         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80051         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80052         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80053         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80054         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80055         * modules/getdate (EXTRA_DIST): Add getdate.c.
80056         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80057         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80058         * modules/getpass (EXTRA_DIST): Add getpass.h.
80059         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80060         * modules/group-member (EXTRA_DIST): Add group-member.h.
80061         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80062         * modules/hash (EXTRA_DIST): Add hash.h.
80063         * modules/human (EXTRA_DIST): Add human.h.
80064         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80065         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80066         * modules/lchown (EXTRA_DIST): Add lchown.h.
80067         * modules/long-options (EXTRA_DIST): Add long-options.h.
80068         * modules/lstat (EXTRA_DIST): Add lstat.h.
80069         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80070         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80071         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80072         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80073         * modules/memxor (EXTRA_DIST): Add memxor.h.
80074         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80075         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80076         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80077         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80078         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80079         * modules/physmem (EXTRA_DIST): Add physmem.h.
80080         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80081         * modules/posixver (EXTRA_DIST): Add posixver.h.
80082         * modules/quote (EXTRA_DIST): Add quote.h.
80083         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80084         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80085         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80086         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80087         regex_internal.h regexec.c.
80088         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80089         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80090         * modules/same (EXTRA_DIST): Add same.h.
80091         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80092         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80093         * modules/savedir (EXTRA_DIST): Add savedir.h.
80094         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80095         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80096         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80097         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80098         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80099         * modules/strdup (EXTRA_DIST): Add strdup.h.
80100         * modules/strftime (EXTRA_DIST): Add strftime.h.
80101         * modules/strndup (EXTRA_DIST): Add strndup.h.
80102         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80103         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80104         * modules/time_r (EXTRA_DIST): Add time_r.h.
80105         * modules/timespec (EXTRA_DIST): Add timespec.h.
80106         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80107         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80108         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80109         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80110         * modules/userspec (EXTRA_DIST): Add userspec.h.
80111         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80112         * modules/utimens (EXTRA_DIST): Add utimens.h.
80113         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80114         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80115         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80116         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80117         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80118         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80119         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80120         * modules/yesno (EXTRA_DIST): Add yesno.h.
80121
80122 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80125
80126         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80127         * m4/dev-ino.m4, same-inode.m4: Remove.
80128
80129         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80130         * m4/acl.m4 (AC_FUNC_ACL):
80131         * m4/backupfile.m4 (gl_BACKUPFILE):
80132         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80133         * m4/canon-host.m4 (gl_CANON_HOST):
80134         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80136         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80137         * m4/cloexec.m4 (gl_CLOEXEC):
80138         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80139         * m4/closeout.m4 (gl_CLOSEOUT):
80140         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80141         * m4/dirname.m4 (gl_DIRNAME):
80142         * m4/exclude.m4 (gl_EXCLUDE):
80143         * m4/exitfail.m4 (gl_EXITFAIL):
80144         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80145         * m4/file-type.m4 (gl_FILE_TYPE):
80146         * m4/filemode.m4 (gl_FILEMODE):
80147         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80148         * m4/fpending.m4 (gl_FUNC_FPENDING):
80149         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80150         * m4/fts.m4 (gl_FUNC_FTS):
80151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80152         * m4/getdate.m4 (gl_GETDATE):
80153         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80154         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80155         * m4/getpass.m4 (gl_FUNC_GETPASS):
80156         * m4/gettime.m4 (gl_GETTIME):
80157         * m4/getugroups.m4 (gl_GETUGROUPS):
80158         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80159         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80160         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80161         * m4/hash.m4 (gl_HASH):
80162         * m4/idcache.m4 (gl_IDCACHE):
80163         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80164         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80165         * m4/long-options.m4 (gl_LONG_OPTIONS):
80166         * m4/lstat.m4 (gl_FUNC_LSTAT):
80167         * m4/md5.m4 (gl_MD5):
80168         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80169         * m4/memcoll.m4 (gl_MEMCOLL):
80170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80172         * m4/memxor.m4 (gl_MEMXOR):
80173         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80175         * m4/modechange.m4 (gl_MODECHANGE):
80176         * m4/mountlist.m4 (gl_MOUNTLIST):
80177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80178         * m4/openat.m4 (gl_FUNC_OPENAT):
80179         * m4/pathmax.m4 (gl_PATHMAX):
80180         * m4/physmem.m4 (gl_PHYSMEM):
80181         * m4/posixtm.m4 (gl_POSIXTM):
80182         * m4/posixver.m4 (gl_POSIXVER):
80183         * m4/quote.m4 (gl_QUOTE):
80184         * m4/quotearg.m4 (gl_QUOTEARG):
80185         * m4/readtokens.m4 (gl_READTOKENS):
80186         * m4/readutmp.m4 (gl_READUTMP):
80187         * m4/regex.m4 (gl_REGEX):
80188         * m4/safe-read.m4 (gl_SAFE_READ):
80189         * m4/safe-write.m4 (gl_SAFE_WRITE):
80190         * m4/same.m4 (gl_SAME):
80191         * m4/save-cwd.m4 (gl_SAVE_CWD):
80192         * m4/savedir.m4 (gl_SAVEDIR):
80193         * m4/settime.m4 (gl_SETTIME):
80194         * m4/sha1.m4 (gl_SHA1):
80195         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80196         * m4/stat-macros.m4 (gl_STAT_MACROS):
80197         * m4/stat-time.m4 (gl_STAT_TIME):
80198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80199         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80200         * m4/strdup.m4 (gl_FUNC_STRDUP):
80201         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80202         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80203         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80204         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80205         * m4/time_r.m4 (gl_TIME_R):
80206         * m4/timespec.m4 (gl_TIMESPEC):
80207         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80208         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80209         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80210         * m4/userspec.m4 (gl_USERSPEC):
80211         * m4/utimecmp.m4 (gl_UTIMECMP):
80212         * m4/utimens.m4 (gl_UTIMENS):
80213         * m4/xalloc.m4 (gl_XALLOC):
80214         * m4/xgetcwd.m4 (gl_XGETCWD):
80215         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80216         * m4/xreadlink.m4 (gl_XREADLINK):
80217         * m4/xstrtod.m4 (gl_XSTRTOD):
80218         * m4/yesno.m4 (gl_YESNO):
80219         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80220         to get the necessary .h files and whatnot.
80221
80222 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80223             Bruno Haible  <bruno@clisp.org>
80224
80225         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80226         /bin/sh understanding of '!' conditional negation.
80227
80228 2006-08-21  Jim Meyering  <jim@meyering.net>
80229
80230         * modules/openat (Depends-on): Really alphabetize.
80231
80232         * modules/acl (Depends-on): Add error and quote.
80233
80234         * check-module (find_included_lib_files): Add at-func.c to the
80235         ok-to-include-more-than-once white list.
80236
80237         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80238
80239 2006-08-21  Bruno Haible  <bruno@clisp.org>
80240
80241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80242         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80243         Reported by Martin Lambers <marlam@marlam.de>.
80244
80245 2006-08-21  Bruno Haible  <bruno@clisp.org>
80246
80247         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80248         specify an installation location, don't emit a noinst_LIBRARIES or
80249         noinst_LTLIBRARIES assignment.
80250
80251 2006-08-21  Bruno Haible  <bruno@clisp.org>
80252
80253         BeOS portability.
80254         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80255         BeOS has mbrtowc() but no <wctype.h>.
80256
80257 2006-08-21  Bruno Haible  <bruno@clisp.org>
80258
80259         BeOS portability.
80260         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80261         exist.
80262
80263 2006-08-21  Bruno Haible  <bruno@clisp.org>
80264
80265         BeOS portability.
80266         * lib/mbchar.h: Include <wctype.h> only if it exists.
80267
80268 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         Remove files that are no longer needed by their respective modules.
80271         * m4/obstack.m4: Remove.
80272         * m4/strerror_r.m4: Remove.
80273         * m4/uint32_t.m4: Remove.
80274         * m4/uintptr_t.m4: Remove.
80275         * m4/ullong_max.m4: Remove.
80276         * m4/xstrtoimax.m4: Remove.
80277         * m4/xstrtoumax.m4: Remove.
80278
80279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80280         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80281         dependencies now capture this.
80282
80283         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80284         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80285         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80286         * m4/human.m4 (gl_HUMAN): Likewise.
80287         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80288         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80289
80290         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80291
80292         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80293         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80294         stdint.
80295         * m4/human.m4 (gl_HUMAN): Likewise.
80296         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80297         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80298         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80299         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80300         * m4/xstrtol (gl_XSTRTOL): Likewise.
80301
80302         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80303         AC_TYPE_LONG_LONG_INT.
80304         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80305         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80306         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80307         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80308
80309         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80310         on stdbool.
80311
80312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80313         (gl_PREREQ_XSTRTOUL): Remove.
80314
80315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80316
80317         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80318         mode.
80319
80320 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80321
80322         Add and change modules to make it easier for coreutils to use
80323         gnulib-tool.
80324         * modules/backupfile (Files): Remove m4/d-ino.m4.
80325         (Depends-on): Add d-ino.
80326         * modules/cycle-check (Depends-on): Add stdint.
80327         (lib_SOURCES): Add cycle-check.h.
80328         * modules/d-ino: New module.
80329         * modules/d-type: New module.
80330         * modules/error (Files): Remove m4/strerror_r.m4.
80331         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80332         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80333         m4/inttypes_h.m4, m4/uintmax_t.m4.
80334         (Depends-on): Add stdint.
80335         (lib_SOURCES): Add fsusage.h.
80336         * modules/getcwd (Files): Remove d-ino.m4.
80337         (Depends-on): Add d-ino.
80338         * modules/getndelim2 (Depends-on): Add stdint.
80339         * modules/glob (Files): Remove m4/d-type.m4.
80340         (Depends-on): Add d-type.
80341         * modules/host-os: New module.
80342         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80343         m4/inttypes_h.m4, m4/uintmax_t.m4.
80344         * Depends-on: Add stdint.
80345         (lib_SOURCES): Add human.h.
80346         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80347         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80348         m4/uintmax_t.m4, m4/ulonglong.m4.
80349         (Depends-on): Add stdint.
80350         (EXTRA_DIST): Add inttostr.h.
80351         * modules/lchmod: New module.
80352         * modules/link-follow: New module.
80353         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80354         (Depends-on): Add lchmod.
80355         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80356         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80357         (Depends-on): Add stdint.
80358         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80359         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80360         (Depends-on): Add stdint.
80361         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80362         * modules/perl: New module.
80363         * modules/regex (Depends-on): Add stdint.
80364         * modules/rmdir-errno: New module.
80365         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80366         m4/intmax_t.m4.
80367         (Depends-on): Add stdint.
80368         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80369         m4/uintmax_t.m4.
80370         (Depends-on): Add stdint.
80371         * modules/unlink-busy: New module.
80372         * modules/utimecmp (Depends-on): Add stdint.
80373         * modules/uptime: New module.
80374         * modules/winsz-ioctl: New module.
80375         * modules/winsz-termios: New module.
80376         * modules/xnanosleep (Depends-on): Add nanosleep.
80377         * modules/ullong_max: Remove.
80378         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80379         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80380         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80382         (Depends-on): Add inttypes.
80383         (lib_SOURCES): Add xstrtol.h.
80384         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80385         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80386         * MODULES.html.sh: Move 'assert' into the assert section.
80387         Move 'dummy' into the linking section.
80388         Remove ullong_max.
80389         Add section for compatibility checks for POSIX:2001 functions,
80390         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80391         winsz-ioctl, and winsz-termios into it.
80392         Add lchmod.
80393         Add top-level Misc section and put host-os, perl, and uptime
80394         into it.
80395
80396 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80399         now assume the stdint module.  Do not include inttypes.h.
80400         * lib/fsusage.h: Likewise.
80401         * lib/getndelim2.c: Likewise.
80402         * lib/human.h: Likewise.
80403         * lib/inttostr.h: Likewise.
80404         * lib/obstack.c: Likewise.
80405         * lib/regex_internal.h: Likewise.
80406         * lib/tempname.c: Likewise.
80407         * lib/utimecmp.c: Likewise.
80408         * lib/xstrtol.h: Likewise.
80409
80410         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80411
80412         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80413         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80414         * lib/xtime.h: Likewise.
80415
80416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         * modules/openat (Files): Add lib/fchmodat.c.
80419         Fixes problem reported by Jay Youngman.
80420
80421 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80424         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80425
80426 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80427             Bruno Haible  <bruno@clisp.org>
80428
80429         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80430         and is a script that invokes bison. Tighten the code. Add comments.
80431
80432 2006-08-18  Jim Meyering  <jim@meyering.net>
80433
80434         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80435         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80436         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80437         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80438
80439 2006-08-18  Bruno Haible  <bruno@clisp.org>
80440
80441         * modules/bison-i18n: New file.
80442         * MODULES.html.sh (Internationalization functions): Add it.
80443
80444 2006-08-18  Bruno Haible  <bruno@clisp.org>
80445
80446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80447         sys/statvfs.h. When getmntinfo was found, check its declaration and
80448         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80449
80450 2006-08-18  Bruno Haible  <bruno@clisp.org>
80451
80452         * m4/bison-i18n.m4: New file, from bison.
80453
80454 2006-08-18  Bruno Haible  <bruno@clisp.org>
80455
80456         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80457         (ME_DUMMY): Treat "kernfs" as a dummy.
80458         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80459
80460 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         Update from coreutils.
80463
80464         2006-08-15  Jim Meyering  <jim@meyering.net>
80465
80466         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80467
80468         2006-01-17  Jim Meyering  <jim@meyering.net>
80469
80470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80471
80472         2006-01-11  Jim Meyering  <jim@meyering.net>
80473
80474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80475         Check for the lchmod function.
80476
80477 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80478
80479         Update from coreutils.
80480
80481         * lib/__fpending.h: Add copyright notice.
80482         * lib/fprintftime.h: Likewise.
80483         * lib/savedir.c: Use (C) in copyright notice.
80484         * lib/savedir.h: Likewise.
80485
80486         2006-08-15  Jim Meyering  <jim@meyering.net>
80487
80488         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80489         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80490         in support of the EXPECTED_ERRNO macro.
80491         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80492         definitions.  Instead, define the appropriate symbols and include
80493         "at-func.c".
80494         * lib/mkdirat.c (mkdirat): Likewise.
80495         * lib/fchmodat.c (fchmodat): Likewise.
80496         (ENOSYS): Remove definition.
80497         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80498         it.  Don't include "unistd--.h" -- it wasn't ever used.
80499
80500         2006-01-17  Jim Meyering  <jim@meyering.net>
80501
80502         Rewrite fts.c not to change the current working directory,
80503         by using openat, fstatat, fdopendir, etc..
80504
80505         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80506         (HAVE_OPENAT_SUPPORT): Define.
80507         [_LIBC] (fchdir): Don't undef or define; no longer used.
80508         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80509         Now, this `function' always succeeds, and consumes its file descriptor
80510         parameter -- so callers must not close such FDs.  Update callers.
80511         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80512         (diropen): Add parameter, SP.  Adjust all callers.
80513         Implement using diropen_fd, rather than open.
80514         (fts_open): Initialize new member, fts_cwd_fd.
80515         Remove fts_rft-setting code.
80516         (fts_close): Close fts_cwd_fd, if necessary.
80517         (__opendir2): Define in terms of opendir or opendirat,
80518         depending on whether the FST_NOCHDIR flag is set.
80519         (fts_build): Since fts_safe_changedir consumes its FD, and since
80520         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80521         and close the dup'd file descriptor upon failure.
80522         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80523         (fts_safe_changedir): Tweak semantics to reflect that this function
80524         now calls cwd_advance_fd and hence consumes its FD argument.
80525         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80526         [struct FTS] (fts_rft): Remove now-unused member.
80527         [struct FTS] (fts_cycle.state): Improve comment.
80528
80529         * lib/openat.c (openat_needs_fchdir): New function.
80530         * lib/openat.h (openat_needs_fchdir): Declare it.
80531
80532 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80533
80534         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80535         Problem and fix reported by Pádraig Brady in
80536         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80537
80538 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80539
80540         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80541
80542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         * lib/memcoll.c (memcoll): Optimize for the common case where the
80545         arguments are bytewise equal.
80546
80547 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80548
80549         * doc/regexprops-generic.texi: Add a copyright notice.
80550
80551 2006-08-15  Bruno Haible  <bruno@clisp.org>
80552
80553         * modules/tmpdir (License): Change to LGPL.
80554
80555 2006-08-15  Bruno Haible  <bruno@clisp.org>
80556
80557         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80558         module.
80559
80560 2006-08-14  Simon Josefsson  <jas@extundo.com>
80561
80562         * config/srclist.txt: Add gnupload.
80563
80564 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80565
80566         Change copyright notice from LGPL 2 to GPL 2, since that's the
80567         standard form used in the gnulib repository.
80568         * tests/test-lock.c: Likewise.
80569         * tests/test-stdint.c: Likewise.
80570         * tests/test-tls.c: Likewise.
80571
80572         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80573         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80574         Add copyright notice.
80575
80576         * check-module: Add copyright notice.  Output a copyright
80577         notice if "--version" is specified.
80578         * modules/COPYING: New file.
80579         * tests/test-getaddrinfo.c: Add copyright notice.
80580         * tests/test-verify.c: Likewise.
80581
80582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         Change copyright notice from LGPL 2 to GPL 2, since that's the
80585         standard form used in the gnulib repository.
80586         * lib/lock.c: LGPL -> GPL.
80587         * lib/lock.h: Likewise.
80588         * lib/strnlen1.c: Likewise.
80589         * lib/strnlen1.h: Likewise.
80590         * lib/tls.c: Likewise.
80591         * lib/tls.h: Likewise.
80592         * lib/tmpdir.c: Likewise.
80593
80594         * lib/TODO: Remove; this belongs only in coreutils.
80595
80596 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80597
80598         Add copyright notices to long-enough files that lack them, since
80599         otherwise the files aren't clearly free.  Use the same notice that
80600         getdate.texi already uses.
80601         * doc/alloca-opt.texi: Add copyright notice.
80602         * doc/alloca.texi: Likewise.
80603         * doc/ctime.texi: Likewise.
80604         * doc/functions.texi: Likewise.
80605         * doc/gcd.texi: Likewise.
80606         * doc/gnulib-tool.texi: Likewise.
80607         * doc/inet_ntoa.texi: Likewise.
80608         * doc/visibility.texi: Likewise.
80609
80610         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80611         * doc/quote.texi: Add copyright notice.
80612
80613         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80614         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80615         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80616         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80617         is now obsolete, and give a pointer to the Sun list.
80618         Add copyright notice.
80619
80620 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80621
80622         * config/srclistvars.sh: Add copyright notice.
80623
80624 2006-08-14  Eric Blake  <ebb9@byu.net>
80625
80626         Import the following change from libc:
80627
80628         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80629
80630         Upstream bug 2997.
80631         * lib/misc/error.c: Add space between program name and message if file
80632         name is missing.
80633
80634 2006-08-12  Karl Berry  <karl@gnu.org>
80635
80636         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80637         remove, these originate in gnulib now.
80638
80639 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80640
80641         * doc/Makefile (standards.info standards.html standards.dvi):
80642         Also depend on make-stds.texi.
80643
80644 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80647         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80648
80649         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80650         in wchar_t.  Problem reported by Eric Blake.
80651
80652         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80653         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80654         Also, help the compiler to keep LEN in a register.
80655
80656 2006-08-11  Eric Blake  <ebb9@byu.net>
80657
80658         * users.txt: Sort.  Add tar.
80659
80660 2006-08-11  Bruno Haible  <bruno@clisp.org>
80661
80662         * users.txt: New file.
80663
80664 2006-08-11  Bruno Haible  <bruno@clisp.org>
80665
80666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80667         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80668
80669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80670
80671         * modules/snprintf (Depends-on): Remove minmax.
80672         (Maintainer): Add self and Bruno.
80673
80674 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80675
80676         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80677         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80678         (EOVERFLOW): Define if the system does not.
80679         Do not include "minmax.h"; it wasn't used.
80680         (snprintf): Don't assume size_t promotes to an unsigned type.
80681         Fix bug when generated string was too long for the buffer: the
80682         buffer's contents are supposed to be the initial prefix of the
80683         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80684         exceeds INT_MAX; do the check ourselves.
80685
80686         Import the following changes from libc:
80687
80688         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80689
80690         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80691         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80692         set wc to the byte which couldn't be converted.
80693         (re_string_reconstruct): Don't clear valid_raw_len before calling
80694         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80695         tip_context using re_string_context_at.
80696
80697         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80698
80699         * lib/posix/regex.h: g++ still cannot handled [restrict].
80700
80701         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80702
80703         * lib/posix/regex.h: Remove special handling for VMS.
80704
80705 2006-08-10  Jim Meyering  <jim@meyering.net>
80706
80707         * modules/same-inode: New module.
80708         * modules/dev-ino: New module.
80709         * modules/cycle-check: Depend on these modules, rather than simply
80710         including their .h files.
80711         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80712         required via m4/cycle-check.m4.
80713         * modules/same: Depend on new same-inode module, rather than
80714         including same-inode.h.
80715         * modules/chdir-safer: New file.
80716
80717         * modules/chown (Depends-on): Add stat-macros.
80718
80719 2006-08-10  Jim Meyering  <jim@meyering.net>
80720
80721         * m4/cycle-check.m4: New file.
80722         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80723         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80724
80725 2006-08-10  Eric Blake  <ebb9@byu.net>
80726
80727         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80728         in from original proposal.
80729
80730 2006-08-10  Eric Blake  <ebb9@byu.net>
80731         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80732
80733         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80734         namespace.
80735
80736 2006-08-10  Bruno Haible  <bruno@clisp.org>
80737
80738         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80739         as well.
80740
80741 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80742
80743         Sync from coreutils.
80744
80745         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80746
80747         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80748         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80749
80750 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * modules/restrict: Remove; no longer needed now that we assume
80753         Autoconf 2.59 or later.
80754         * MODULES.html.sh: Remove 'restrict'.
80755         * modules/argp (Depends-on): Remove 'restrict'.
80756         * modules/base64 (Depends-on): Likewise.
80757         * modules/gc (Depends-on): Likewise.
80758         * modules/getaddrinfo (Depends-on): Likewise.
80759         * modules/glob (Depends-on): Likewise.
80760         * modules/inet_ntop (Depends-on): Likewise.
80761         * modules/inet_pton (Depends-on): Likewise.
80762         * modules/memxor (Depends-on): Likewise.
80763         * modules/regex (Depends-on): Likewise.
80764         * modules/strtok_r (Depends-on): Likewise.
80765         * modules/time_r (Depends-on): Likewise.
80766
80767 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80768
80769         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80770         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80771         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80772         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80773         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80774         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80775         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80776         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80777
80778         Merge from coreutils.
80779         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80780         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80782         * m4/time_r.m4 (gl_TIME_R): Likewise.
80783
80784 2006-08-09  Karl Berry  <karl@gnu.org>
80785
80786         * config/srclist.txt: no more gettext-tools, per Bruno.
80787
80788 2006-08-08  Eric Blake  <ebb9@byu.net>
80789
80790         * modules/verror: New module.
80791         * MODULES.html.sh: Document it.
80792
80793 2006-08-08  Eric Blake  <ebb9@byu.net>
80794
80795         * lib/verror.h, lib/verror.c: New files.
80796
80797 2006-08-08  Eric Blake  <ebb9@byu.net>
80798
80799         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80800         verror_at_line output complies with GNU Coding Standards even when
80801         file is NULL.
80802
80803 2006-08-07  Bruno Haible  <bruno@clisp.org>
80804
80805         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80806         versions of AIX.
80807         Reported by Ralf Wildenhues.
80808
80809 2006-08-07  Bruno Haible  <bruno@clisp.org>
80810
80811         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80812         in an AC_DEFUN. Needed so that the autoconf snippets can use
80813         AC_REQUIRE.
80814
80815 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80816
80817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80818         Initialize pkgdata_DATA.
80819         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80820         overriding it.
80821
80822 2006-08-06  Eric Blake  <ebb9@byu.net>
80823
80824         * lib/error.h: Fold in some upstream changes from glibc.
80825         * lib/error.c: Likewise.
80826
80827 2006-08-04  Bruno Haible  <bruno@clisp.org>
80828
80829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80830         Make the mostlyclean-local rule depend on mostlyclean-generic.
80831         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80832
80833 2006-07-31  Bruno Haible  <bruno@clisp.org>
80834
80835         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80836         <stdlib.h>, <string.h>.
80837
80838 2006-07-30  Bruno Haible  <bruno@clisp.org>
80839
80840         * modules/readlink (License): Change to LGPL.
80841
80842 2006-07-30  Bruno Haible  <bruno@clisp.org>
80843
80844         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80845         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80846         set PKGDATADIR to point to it.
80847
80848 2006-07-30  Bruno Haible  <bruno@clisp.org>
80849
80850         * modules/csharpexec (configure.ac): Comment out macro invocation.
80851         * modules/javaexec (configure.ac): Likewise.
80852         * modules/javacomp-script (configure.ac): Likewise.
80853
80854         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80855
80856 2006-07-30  Bruno Haible  <bruno@clisp.org>
80857
80858         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80859         linked-list.
80860
80861 2006-07-30  Bruno Haible  <bruno@clisp.org>
80862
80863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80864
80865 2006-07-30  Bruno Haible  <bruno@clisp.org>
80866
80867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80868         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80869         get removed.
80870
80871 2006-07-29  Bruno Haible  <bruno@clisp.org>
80872
80873         Make it possible for gnulib-tool to work with locally modified or
80874         augmented gnulib repositories.
80875         * gnulib-tool (func_usage): Document --local-dir option.
80876         (local_gnulib_dir): New variable.
80877         Handle --local-dir option.
80878         (func_lookup_file): New function.
80879         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80880         (func_get_description, func_get_filelist, func_get_description,
80881         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80882         func_get_automake_snippet, func_get_include_directive,
80883         func_get_license, func_get_maintainer): Use func_lookup_file.
80884         (func_import, func_create_testdir): Use func_lookup_file.
80885
80886 2006-07-29  Bruno Haible  <bruno@clisp.org>
80887
80888         * modules/setenv (Depends-on): Add unistd.
80889
80890 2006-07-29  Bruno Haible  <bruno@clisp.org>
80891
80892         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80893
80894 2006-07-29  Bruno Haible  <bruno@clisp.org>
80895
80896         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80897
80898 2006-07-29  Bruno Haible  <bruno@clisp.org>
80899
80900         * gnulib-tool (import, update): If there is no Makefile.am, look at
80901         aclocal.m4, instead of bailing out.
80902
80903 2006-07-29  Bruno Haible  <bruno@clisp.org>
80904
80905         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80906         Categorize the options by when they are useful.
80907
80908 2006-07-29  Bruno Haible  <bruno@clisp.org>
80909
80910         * gnulib-tool (func_usage): Document option --no-libtool.
80911         Handle option --no-libtool.
80912         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80913         for changed semantics of $libtool variable.
80914         (func_import): Likewise. If libtool is not used, show this through
80915         an option --no-libtool.
80916         (func_create_testdir): Update.
80917
80918 2006-07-29  Bruno Haible  <bruno@clisp.org>
80919
80920         * gnulib-tool (func_import): Extend error message about missing
80921         --doc-base.
80922
80923 2006-07-29  Bruno Haible  <bruno@clisp.org>
80924
80925         * gnulib-tool (func_import): Don't create the $docbase directory if
80926         there is no file to store there.
80927
80928 2006-07-29  Bruno Haible  <bruno@clisp.org>
80929
80930         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80931         relevant, look for configure.ac there, not in the current directory.
80932         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80933
80934 2006-07-29  Bruno Haible  <bruno@clisp.org>
80935
80936         * gnulib-tool (SORT): New variable.
80937         (func_usage): Undocument --assume-autoconf option.
80938         Remove --assume-autoconf option handling.
80939         (autoconf_minversion): Determine from the contents of configure.ac.
80940         (func_import): Remove autoconf_minversion handling.
80941         Suggested by Eric Blake.
80942
80943 2006-07-29  Bruno Haible  <bruno@clisp.org>
80944
80945         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80946
80947 2006-07-29  Bruno Haible  <bruno@clisp.org>
80948
80949         * config/srclist.txt (*setenv.[ch]): Remove rules.
80950
80951 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80952
80953         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80954
80955 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80956
80957         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80958         arpa/inet.h.
80959
80960 2006-07-28  Simon Josefsson  <jas@extundo.com>
80961
80962         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80963         * modules/inet_pton (Depends-on): Likewise.
80964
80965 2006-07-28  Simon Josefsson  <jas@extundo.com>
80966
80967         * m4/netinet_in_h.m4: New file.
80968
80969 2006-07-28  Simon Josefsson  <jas@extundo.com>
80970
80971         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80972         #include's.
80973
80974 2006-07-28  Simon Josefsson  <jas@extundo.com>
80975
80976         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80977         #include's.
80978
80979 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80982         setgid on directories only if they set these bits.
80983         * lib/modechange.h: Remove obsolete comment about masks.
80984
80985 2006-07-28  Eric Blake  <ebb9@byu.net>
80986
80987         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80988         macro expansion.
80989
80990 2006-07-28  Bruno Haible  <bruno@clisp.org>
80991
80992         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80993
80994 2006-07-28  Bruno Haible  <bruno@clisp.org>
80995
80996         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80997
80998 2006-07-28  Bruno Haible  <bruno@clisp.org>
80999
81000         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81001         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81002         Define fallbacks.
81003         Avoids link error on FreeBSD 4.x.
81004         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81005
81006         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81007         encoding.
81008         * lib/mbswidth.c (iswcntrl): Likewise.
81009
81010 2006-07-27  Bruno Haible  <bruno@clisp.org>
81011
81012         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81013         test.
81014
81015 2006-07-27  Bruno Haible  <bruno@clisp.org>
81016
81017         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81018         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81019         defined.
81020
81021 2006-07-26  Eric Blake  <ebb9@byu.net>
81022
81023         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81024
81025 2006-07-26  Eric Blake  <ebb9@byu.net>
81026
81027         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81028         like mingw that lack mkstemp.
81029         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81030         avoid compilation warning on mingw.
81031
81032 2006-07-26  Bruno Haible  <bruno@clisp.org>
81033
81034         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81035         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81036         INT_FAST*_MIN, INTPTR_MIN.
81037
81038 2006-07-25  Bruno Haible  <bruno@clisp.org>
81039
81040         * modules/version-etc (Depends-on): Add stdarg.
81041
81042 2006-07-25  Bruno Haible  <bruno@clisp.org>
81043
81044         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81045         complex commands.
81046
81047 2006-07-25  Bruno Haible  <bruno@clisp.org>
81048
81049         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81050         defined in <stdarg.h> or config.h.
81051
81052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81053
81054         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81055         (gl_STDIO_SAFER): Remove.
81056
81057 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81058
81059         * MODULES.html.sh (File stream based Input/Output):
81060         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81061         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81062         * modules/fopen-safer, modules/tmpfile-safer: New files.
81063         * modules/stdio-safer: Remove.
81064
81065 2006-07-24  Bruno Haible  <bruno@clisp.org>
81066
81067         * modules/tmpdir: New file.
81068         * MODULES.html.sh (File system functions): Add it.
81069
81070 2006-07-24  Bruno Haible  <bruno@clisp.org>
81071
81072         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81073         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81074
81075 2006-07-24  Bruno Haible  <bruno@clisp.org>
81076
81077         * modules/clean-temp: New file.
81078
81079 2006-07-24  Bruno Haible  <bruno@clisp.org>
81080
81081         * m4/tmpdir.m4: New file, from GNU gettext.
81082
81083 2006-07-24  Bruno Haible  <bruno@clisp.org>
81084
81085         * lib/tmpdir.h: New file, from GNU gettext.
81086         * lib/tmpdir.c: New file, from GNU gettext.
81087
81088 2006-07-24  Bruno Haible  <bruno@clisp.org>
81089
81090         * lib/clean-temp.h: New file, from GNU gettext.
81091         * lib/clean-temp.c: New file, from GNU gettext.
81092
81093 2006-07-23  Eric Blake  <ebb9@byu.net>
81094
81095         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81096         (Depends-on): Add binary-io.
81097
81098 2006-07-23  Eric Blake  <ebb9@byu.net>
81099
81100         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81101
81102 2006-07-23  Eric Blake  <ebb9@byu.net>
81103
81104         * lib/tmpfile-safer.c: New file.
81105         * lib/stdio-safer.h (fopen_safer): Add prototype.
81106         * lib/stdio--.h (tmpfile): Make safer.
81107
81108 2006-07-23  Bruno Haible  <bruno@clisp.org>
81109
81110         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81111         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81112         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81113         gl_linked_remove_at): Use it.
81114
81115 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81116         and Simon Josefsson <jas@extundo.com>
81117
81118         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81119
81120         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81121
81122 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81123
81124         * modules/close-stream: New file.
81125         * modules/closeout (Description): Make it clear that it exits
81126         with a diagnostic on error.
81127         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81128         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81129
81130 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         * m4/close-stream.m4: New file.
81133
81134 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         * lib/close-stream.c, lib/close-stream.h: New files.
81137
81138 2006-07-22  Bruno Haible  <bruno@clisp.org>
81139
81140         Merge from GNU gettext 0.15.
81141
81142         2006-05-01  Bruno Haible  <bruno@clisp.org>
81143
81144                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81145
81146         2006-07-22  Bruno Haible  <bruno@clisp.org>
81147
81148                 * modules/javaversion: New file.
81149                 * MODULES.html.sh (Java): Add javaversion.
81150
81151         2006-03-12  Bruno Haible  <bruno@clisp.org>
81152
81153                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81154
81155         2005-12-04  Bruno Haible  <bruno@clisp.org>
81156
81157                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81158                 (untested).
81159
81160         2006-06-21  Bruno Haible  <bruno@clisp.org>
81161
81162                 Avoid warnings from recent versions of mcs.
81163                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81164                 -o, -L, -r any more. Use options documented since mcs-1.0
81165                 instead. Similarly for -g.
81166
81167         2005-12-04  Bruno Haible  <bruno@clisp.org>
81168
81169                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81170                 .resources, not .resource.
81171
81172         2005-07-09  Bruno Haible  <bruno@clisp.org>
81173
81174                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81175                 add a .dll suffix.
81176                 Reported by Mark Junker <mjscod@gmx.de>.
81177
81178         2006-07-22  Bruno Haible  <bruno@clisp.org>
81179
81180                 * modules/gettext: Upgrade to gettext-0.15.
81181                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81182                 m4/visibility.m4.
81183                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81184
81185 2006-07-22  Bruno Haible  <bruno@clisp.org>
81186
81187         Merge from GNU gettext 0.15.
81188
81189         2006-03-25  Bruno Haible  <bruno@clisp.org>
81190
81191                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81192
81193         2006-07-21  Bruno Haible  <bruno@clisp.org>
81194
81195                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81196                 "1.1".
81197
81198         2006-05-09  Bruno Haible  <bruno@clisp.org>
81199
81200                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81201                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81202                 for the conftestver execution.
81203
81204         2006-05-01  Bruno Haible  <bruno@clisp.org>
81205
81206                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81207                 optional target-version argument. Verify that the compiler
81208                 groks source of the specified source-version, or add -source
81209                 option as necessary. Verify that the compiler produces
81210                 bytecode in the specified target-version, or add -target and
81211                 -source options as necessary. Make the result of the test
81212                 available as variable CONF_JAVAC. Also log error output in
81213                 config.log.
81214
81215         2006-03-11  Bruno Haible  <bruno@clisp.org>
81216
81217                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81218
81219         2006-05-09  Bruno Haible  <bruno@clisp.org>
81220
81221                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81222                 CLASSPATH_SEPARATOR to a semicolon.
81223
81224         2006-03-12  Bruno Haible  <bruno@clisp.org>
81225
81226                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81227                 available as variable CONF_JAVA, for subsequent autoconf
81228                 tests. Also log error output in config.log.
81229
81230         2006-07-19  Bruno Haible  <bruno@clisp.org>
81231
81232                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81233                 that getline works on glibc2 systems. Needed to avoid trouble
81234                 in relocatable.c.
81235                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81236
81237         2005-12-04  Bruno Haible  <bruno@clisp.org>
81238
81239                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81240                 launcher (untested).
81241
81242         2005-12-04  Bruno Haible  <bruno@clisp.org>
81243
81244                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81245
81246         2006-07-22  Bruno Haible  <bruno@clisp.org>
81247
81248                 * gettext.m4: Update from GNU gettext-0.15.
81249                 * nls.m4: Likewise.
81250                 * po.m4: Likewise.
81251                 * inttypes-pri.m4: Likewise.
81252                 * inttypes-h.m4: Renamed from inttypes.m4.
81253                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81254
81255 2006-07-22  Bruno Haible  <bruno@clisp.org>
81256
81257         Merge from GNU gettext 0.15.
81258
81259         2005-07-05  Bruno Haible  <bruno@clisp.org>
81260
81261                 * printf-args.c (printf_fetchargs): Work around broken
81262                 definition of wint_t on mingw.
81263
81264         2005-02-12  Bruno Haible  <bruno@clisp.org>
81265
81266                 * xallocsa.h: Add extern "C" for C++.
81267
81268         2006-05-17  Bruno Haible  <bruno@clisp.org>
81269
81270                 Cygwin portability.
81271                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81272
81273         2006-04-30  Bruno Haible  <bruno@clisp.org>
81274
81275                 * progreloc.c: Include <mach-o/dyld.h> if available.
81276                 (find_executable): Use _NSGetExecutablePath when possible.
81277
81278         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81279
81280                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81281                 function.
81282
81283         2005-12-29  Bruno Haible  <bruno@clisp.org>
81284
81285                 * progreloc.c (set_program_name_and_installdir): Fix
81286                 compilation error.
81287
81288         2005-12-04  Bruno Haible  <bruno@clisp.org>
81289
81290                 Cygwin portability.
81291                 * progreloc.c: Include <windows.h> also on Cygwin.
81292                 (find_executable): Add support for Cygwin.
81293                 (set_program_name_and_installdir): Handle also platforms with
81294                 nonempty EXEEXT.
81295
81296         2006-07-11  Bruno Haible  <bruno@clisp.org>
81297
81298                 * javacomp.c: Fix a comment.
81299                 Reported by Jim Meyering.
81300
81301         2006-04-30  Bruno Haible  <bruno@clisp.org>
81302
81303                 * javacomp.h (compile_java_class): Add source_version,
81304                 target_version arguments.
81305                 * javacomp.c: Rewritten to choose only a compiler that
81306                 respects the specified source_version and target_version.
81307
81308         2006-06-27  Bruno Haible  <bruno@clisp.org>
81309
81310                 Assume correct S_ISDIR macro.
81311                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81312
81313         2006-07-22  Bruno Haible  <bruno@clisp.org>
81314
81315                 * javaversion.h: New file, from GNU gettext.
81316                 * javaversion.c: New file, from GNU gettext.
81317                 * javaversion.java: New file, from GNU gettext.
81318                 * javaversion.class: New file, from GNU gettext.
81319
81320         2006-05-17  Bruno Haible  <bruno@clisp.org>
81321
81322                 Cygwin portability.
81323                 * javaexec.c (execute_java_class): Test for jview program
81324                 also on Cygwin.
81325
81326         2006-04-09  Bruno Haible  <bruno@clisp.org>
81327
81328                 * fatal-signal.c: Don't include string.h.
81329                 (at_fatal_signal): Use a copying loop instead of memcpy.
81330
81331         2005-12-04  Bruno Haible  <bruno@clisp.org>
81332
81333                 * csharpexec.c: Add support for 'clix' launcher (untested).
81334                 (execute_csharp_using_sscli): New function.
81335                 (execute_csharp_program): Call it.
81336
81337         2006-06-21  Bruno Haible  <bruno@clisp.org>
81338
81339                 Avoid warnings from recent versions of mcs.
81340                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81341                 -o, -L, -r any more. Use options documented since mcs-1.0
81342                 instead. Similarly for -g.
81343
81344         2005-07-09  Bruno Haible  <bruno@clisp.org>
81345
81346                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81347                 add a .dll suffix.
81348                 Reported by Mark Junker <mjscod@gmx.de>.
81349
81350         2006-06-17  Bruno Haible  <bruno@clisp.org>
81351
81352                 * config.charset: Update for NetBSD 3.0.
81353
81354         2006-05-17  Bruno Haible  <bruno@clisp.org>
81355
81356                 Cygwin portability.
81357                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81358
81359         2006-05-16  Bruno Haible  <bruno@clisp.org>
81360
81361                 * localcharset.c [CYGWIN]: Include <windows.h>.
81362                 (get_charset_aliases): For Cygwin, return the same CPxxx
81363                 aliases list as under WIN32.
81364                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81365                 the environment variables. Fall back to GetACP().
81366
81367         2006-04-05  Bruno Haible  <bruno@clisp.org>
81368
81369                 * config.charset: Update Juan Manuel Guerrero's address.
81370
81371         2005-02-12  Bruno Haible  <bruno@clisp.org>
81372
81373                 * allocsa.h: Add extern "C" for C++.
81374
81375         2005-02-10  Bruno Haible  <bruno@clisp.org>
81376
81377                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81378                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81379
81380         2006-07-22  Bruno Haible  <bruno@clisp.org>
81381
81382                 * gettext.h: Update to GNU gettext-0.15.
81383
81384 2006-07-22  Bruno Haible  <bruno@clisp.org>
81385
81386         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81387         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81388         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81389
81390 2006-07-21  Eric Blake  <ebb9@byu.net>
81391
81392         * modules/stdlib-safer: New file.
81393         * MODULES.html.sh (File stream based Input/Output): Add
81394         stdlib-safer.
81395
81396 2006-07-21  Eric Blake  <ebb9@byu.net>
81397
81398         * lib/stdlib-safer.h: New file from coreutils, required by
81399         stdlib--.h.
81400
81401 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81402
81403         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81404
81405 2006-07-20  Bruno Haible  <bruno@clisp.org>
81406
81407         * gnulib-tool: Recognize new option --assume-autoconf.
81408         (autoconf_minversion): New variable.
81409         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81410
81411 2006-07-20  Bruno Haible  <bruno@clisp.org>
81412
81413         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81414
81415 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81416
81417         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81418         Reindent and repaginate.
81419
81420 2006-07-19  Derek Price  <derek@ximbiot.com>
81421
81422         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81423         Correct grammar.
81424
81425 2006-07-17  Bruno Haible  <bruno@clisp.org>
81426
81427         * modules/list: New file.
81428         * modules/array-list: New file.
81429         * modules/carray-list, modules/carray-list-tests: New files.
81430         * modules/linked-list, modules/linked-list-tests: New files.
81431         * modules/avltree-list, modules/avltree-list-tests: New files.
81432         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81433         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81434         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81435         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81436         * modules/oset: New file.
81437         * modules/array-oset: New file.
81438         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81439         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81440         * tests/test-carray_list.c: New file.
81441         * tests/test-linked_list.c: New file.
81442         * tests/test-avltree_list.c: New file.
81443         * tests/test-rbtree_list.c: New file.
81444         * tests/test-linkedhash_list.c: New file.
81445         * tests/test-avltreehash_list.c: New file.
81446         * tests/test-rbtreehash_list.c: New file.
81447         * tests/test-avltree_oset.c: New file.
81448         * tests/test-rbtree_oset.c: New file.
81449         * MODULES.html.sh (Container data structures): New section.
81450
81451 2006-07-17  Bruno Haible  <bruno@clisp.org>
81452
81453         * m4/gl_list.m4: New file.
81454
81455 2006-07-17  Bruno Haible  <bruno@clisp.org>
81456
81457         * lib/gl_list.h: New file.
81458         * lib/gl_list.c: New file.
81459         * lib/gl_array_list.h: New file.
81460         * lib/gl_array_list.c: New file.
81461         * lib/gl_carray_list.h: New file.
81462         * lib/gl_carray_list.c: New file.
81463         * lib/gl_linked_list.h: New file.
81464         * lib/gl_linked_list.c: New file.
81465         * lib/gl_anylinked_list1.h: New file.
81466         * lib/gl_anylinked_list2.h: New file.
81467         * lib/gl_avltree_list.h: New file.
81468         * lib/gl_avltree_list.c: New file.
81469         * lib/gl_anyavltree_list1.h: New file.
81470         * lib/gl_anyavltree_list2.h: New file.
81471         * lib/gl_rbtree_list.h: New file.
81472         * lib/gl_rbtree_list.c: New file.
81473         * lib/gl_anyrbtree_list1.h: New file.
81474         * lib/gl_anyrbtree_list2.h: New file.
81475         * lib/gl_anytree_list1.h: New file.
81476         * lib/gl_anytree_list2.h: New file.
81477         * lib/gl_linkedhash_list.h: New file.
81478         * lib/gl_linkedhash_list.c: New file.
81479         * lib/gl_anyhash_list1.h: New file.
81480         * lib/gl_anyhash_list2.h: New file.
81481         * lib/gl_avltreehash_list.h: New file.
81482         * lib/gl_avltreehash_list.c: New file.
81483         * lib/gl_rbtreehash_list.h: New file.
81484         * lib/gl_rbtreehash_list.c: New file.
81485         * lib/gl_anytreehash_list1.h: New file.
81486         * lib/gl_anytreehash_list2.h: New file.
81487
81488         * lib/gl_oset.h: New file.
81489         * lib/gl_oset.c: New file.
81490         * lib/gl_array_oset.h: New file.
81491         * lib/gl_array_oset.c: New file.
81492         * lib/gl_avltree_oset.h: New file.
81493         * lib/gl_avltree_oset.c: New file.
81494         * lib/gl_rbtree_oset.h: New file.
81495         * lib/gl_rbtree_oset.c: New file.
81496         * lib/gl_anytree_oset.h: New file.
81497
81498 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81499
81500         * m4/mkancesdirs.m4: New file.
81501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81502         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81503         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81504         it.
81505
81506 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81507
81508         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81509         * lib/mkancesdirs.h: New files.
81510         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81511         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81512         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81513         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81514         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81515         callers changed.  Revamp internals significantly, by not
81516         attempting to create directories that are temporarily more
81517         permissive than the final results.  Do not attempt to use
81518         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81519         This removes some race conditions, fixes some bugs, and simplifies
81520         things.  Use new dirchownmod function to do owner and mode changes.
81521         * lib/mkdir-p.h: Likewise.
81522         * lib/modechange.c (octal_to_mode): New function.
81523         (struct mode_change): New member mentioned.
81524         (make_node_op_equals): New arg mentioned.  All callers changed.
81525         (mode_compile): Keep track of which mode bits the user has explicitly
81526         mentioned.
81527         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81528         New arg PMODE_BITS, to keep track of which mode bits the user
81529         mentioned; it treats S_ISUID and S_ISGID speciall.
81530         All callers changed.
81531         * lib/modechange.h: Likewise.
81532
81533 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81534
81535         * MODULES.html.sh: Add mkancestors.
81536         * modules/mkancesdirs: New module.
81537         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81538         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81539         The chdir-safer and afs files are now orphans; I'll remove them
81540         unless someone speaks up.
81541         Add lib/dirchownmod.c, lib/dirchownmod.h.
81542         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81543         Add lchown, mkancesdirs.
81544         (Maintainer): Add self.
81545
81546 2006-07-15  Karl Berry  <karl@gnu.org>
81547
81548         * gnulib-tool: help message wording/arrangement.
81549
81550 2006-07-14  Simon Josefsson  <jas@extundo.com>
81551
81552         * doc/gnulib.texi (Libtool and Windows): New section.
81553
81554 2006-07-12  Simon Josefsson  <jas@extundo.com>
81555
81556         * modules/gendocs (License): Fix license, approved by Karl.
81557
81558 2006-07-12  Eric Blake  <ebb9@byu.net>
81559
81560         * MODULES.html.sh: Add gendocs.
81561
81562 2006-07-11  Eric Blake  <ebb9@byu.net>
81563
81564         * modules/fdl: New module, to install doc/fdl.texi.
81565         * MODULES.html.sh: Add new section for documentation modules.
81566         * gnulib-tool: Avoid space-tab.
81567         (--doc-base): New option, to manage files from doc.
81568
81569 2006-07-11  Eric Blake  <ebb9@byu.net>
81570
81571         * m4/absolute-header.m4: Fix comments to match recent change.
81572
81573 2006-07-11  Eric Blake  <ebb9@byu.net>
81574
81575         * gnulib-tool: List --doc-base before --tests-base.
81576
81577 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81578
81579         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81580
81581 2006-07-11  Bruno Haible  <bruno@clisp.org>
81582
81583         * README: Mention where to put documentation.
81584
81585 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81586
81587         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81588
81589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81592         to stdint.m4.
81593
81594 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81595
81596         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81597         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81598         "no/such/file/stdint.h" when there is no such file, so that
81599         the resulting C code can be parsed by dodgy compilers.
81600         Problems reported by Bob Proulx.
81601
81602 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81603
81604         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81605         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81606         macros into the GNU _D_EXACT_NAMLEN.
81607         * lib/savedir.c:  Likewise.
81608         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81609
81610 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81611         and Paul Eggert  <eggert@cs.ucla.edu>
81612
81613         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81614         * m4/savedir.m4:
81615         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81616         macros into the GNU _D_EXACT_NAMLEN.
81617
81618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81619
81620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81621         around the absolute name, to work around a problem with the HP-UX
81622         11.23 native C compiler, reported by Bob Proulx.
81623
81624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * doc/maintain.texi, make-stds.texi: Sync from
81627         <http://savannah.gnu.org/projects/gnustandards>.
81628
81629 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81630
81631         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81632
81633 2006-07-09  Jim Meyering  <jim@meyering.net>
81634
81635         * m4/glob.m4: Remove a doubled word in a comment.
81636
81637 2006-07-09  Jim Meyering  <jim@meyering.net>
81638
81639         * lib/argp-pv.c: Remove a doubled word in a comment.
81640         * lib/check-version.c (check_version): Likewise.
81641         * lib/javacomp.c (compile_java_class): Likewise.
81642
81643 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81646         for the benefit of people using Autoconf 2.60.  If you want to
81647         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81648         (or m4/onceonly.m4, if pre-2.57) manually.
81649
81650 2006-07-08  Jim Meyering  <jim@meyering.net>
81651
81652         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81653         comment.
81654         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81655         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81656         comment.
81657
81658 2006-07-08  Jim Meyering  <jim@meyering.net>
81659
81660         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81661
81662 2006-07-07  Simon Josefsson  <jas@extundo.com>
81663
81664         * tests/test-crc.c: Change expected crc value, the test vector
81665         were probably computed using the old broken crc.c?
81666
81667 2006-07-06  Simon Josefsson  <jas@extundo.com>
81668
81669         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81670         now the canonical place for the M4 file).
81671
81672         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81673         from the sys_socket dependency now.
81674
81675         * modules/inet_pton (Files): Ditto.
81676
81677         * modules/inet_ntop (Files): Ditto.
81678
81679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81680
81681         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81682         not gl_PREREQ_GETUSERSHELL.
81683
81684 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81685
81686         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81687         with only one argument, for Autoconf 2.60.
81688         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81689         expand to nothing, so add a shell command to avoid syntax error.
81690         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81691
81692 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81693
81694         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81695
81696 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81697
81698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81699         no longer needed.  Check for isblank decl.
81700         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81701         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81702         of existence.
81703
81704 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         * lib/getloadavg.c: Use __VMS, not VMS.
81707         * lib/getopt.c: Likewise.
81708         * lib/getpagesize.h: Likewise.
81709         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81710         and probably does not work.
81711
81712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81713
81714         * lib/.cppi-disable: Add wcwidth.
81715         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81716         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81717         (ISGRAPH): Remove.  All uses changed to isgraph.
81718         (FOLD) [!defined _LIBC]: Remove special case.
81719         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81720         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81721         HAVE_ISBLANK.
81722         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81723         case.
81724
81725 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81726
81727         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81728         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81729         brackets.  Other minor changes to suppress some compiler
81730         warnings.
81731
81732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81733         and Paul Eggert  <eggert@cs.ucla.edu>
81734
81735         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81736         of invoking obsolescent AC_HEADER_DIRENT macro.
81737         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81738         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81741         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81742         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81743         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81744         * m4/readdir.m4: Remove; no longer needed.
81745
81746 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81747         and Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81750         Don't worry about this obsolete case any more.
81751         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81752         directories.
81753         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81754         worry about this obsolete case any more.
81755         * lib/fts.c: Likewise.
81756         * lib/getcwd.c: Likewise.
81757         * lib/glob.h: Likewise.
81758         * lib/savedir.c: Likewise.
81759
81760 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81761
81762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81763         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81765         needed.
81766         All uses removed.
81767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81768         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81769         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81770         needed.
81771         * m4/getdate.m4 (gl_GETDATE): Likewise.
81772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81773         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81776         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81778         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81779         needed.
81780
81781 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * lib/memcasecmp.c: Include <limits.h>.
81784         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81785         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81786         Don't assume isdigit succeeds only on '0' through '9'.
81787
81788 2006-07-05  Eric Blake  <ebb9@byu.net>
81789
81790         * modules/getaddrinfo (Depends-on): Add snprintf.
81791
81792 2006-07-05  Eric Blake  <ebb9@byu.net>
81793
81794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81795         to avoid 'header present but could not be compiled' on cygwin.
81796
81797 2006-07-05  Eric Blake  <ebb9@byu.net>
81798
81799         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81800         missing from netdb.h.
81801         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81802
81803 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81804
81805         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81806         no longer needed.
81807         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81808         * m4/getdate.m4 (gl_GETDATE): Likewise.
81809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81810         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81811         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81814
81815 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81816
81817         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81818         All uses of is_space replaced by isspace.
81819         * lib/exit.h: Don't talk about STDC_HEADERS.
81820         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81821         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81822         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81823         replaced by isprint etc.
81824         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81825         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81826         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81827         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81828         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81829         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81830
81831 2006-07-05  Bruno Haible  <bruno@clisp.org>
81832
81833         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81834         the function exists, before testing against AIX.
81835         Reported by Martin Lambers <marlam@marlam.de>.
81836
81837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81838
81839         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81840         From Mark D. Baushke.
81841
81842 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81843
81844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81845         to the absolute name, not just one, to bypass Sun C 5.8's
81846         "warning: #include of /usr/include/... may be non-portable".
81847
81848 2006-07-04  Eric Blake  <ebb9@byu.net>
81849
81850         * modules/dirname-tests: New test module.
81851         * tests/test-dirname.c: New file, replacing dirname.c
81852         TEST_DIRNAME section that was recently deleted.
81853
81854 2006-07-04  Bruno Haible  <bruno@clisp.org>
81855
81856         Assume ANSI C header files and <ctype.h> functions.
81857         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81858         (mbsnwidth): Use isprint, iscntrl instead.
81859
81860 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         Merge from coreutils.
81863         * MODULES.html.sh: Add xstrtold.
81864         * modules/xstrtold: New file.
81865         * modules/cycle-check (Files): Add lib/same-inode.h.
81866         * modules/dirname (Files): Add m4/double-slash-root.m4.
81867         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81868         * modules/mkdir-p (Files): Add lib/same-inode.h.
81869         * modules/same (Files): Add lib/same-inode.h.
81870
81871 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81872
81873         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81874         This is to keep the terminology clean; POSIX talks about
81875         "absolute pathnames", not "full pathnames", but the GNU
81876         Coding Standards say to use "path" for something else;
81877         so use "absolute" to keep both sides happy.
81878         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81879         Set gl_absolute_header, not gl_full_header_path.
81880         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81881         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81882         All uses changed.
81883
81884         Merge from coreutils.
81885
81886         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81887
81888         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81889         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81890         want to require the building of c-strtod.o.
81891         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81892         needs -lm directly.
81893         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81894
81895         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81896
81897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81898         --as-needed option if available.  Problem reported by Albert Chin in
81899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81900         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81901         cc merely issues a bunch of annoying warnings for --as-needed
81902         (this problem was reported by Bob Proulx).  Also, try linking with
81903         -lm to detect a bug in binutils 2.16 (this problem was reported
81904         by Ralf Wildenhues).
81905
81906         2006-06-18  Jim Meyering  <jim@meyering.net>
81907
81908         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81909         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81910         macro.
81911         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81912         also check for glibc-2.4's abort-inducing bug.
81913
81914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81915         Low-probability clean-up should be to use rmdir to get rid of
81916         the just-created directory, not unlink.
81917
81918         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81919         configure fail, and request a bug report to inform us about it.
81920         Add a comment that, barring reports to the contrary, in 2007 we'll
81921         assume ftruncate is universally available.
81922
81923         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81926
81927         2006-03-12  Jim Meyering  <jim@meyering.net>
81928
81929         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81931         * m4/same.m4 (gl_SAME): Likewise.
81932         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81933
81934         2006-03-11  Eric Blake  <ebb9@byu.net>
81935
81936         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81937         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81938         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81939         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81940
81941 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81942
81943         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81944         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81945         reported by Mark D. Baushke, one in
81946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81947
81948         Merge from coreutils.
81949
81950         * lib/.cppi-disable: Add stdint_.h.
81951         * lib/.cvsignore: Add stdint.h.
81952
81953         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81954
81955         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81956         both double and long double versions.
81957         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81958         * lib/xstrtold.c: New file.
81959         * lib/xstrtod.h (xstrtold): New decl.
81960
81961         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81962
81963         * lib/filemode.c (setst): Remove.
81964         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81965         (arguably) clearer, and the generated code is a bit smaller on my
81966         Debian GNU/Linux stable x86 host.
81967
81968         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81971         Assume that filemode.h includes sys/types.h and sys/stat.h.
81972         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81973         (ftypelet): Reorder to put common cases first, for efficiency.
81974         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81975         to do 'M'.
81976         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81977         of 10, for compatibility with FreeBSD.  All callers changed.
81978         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81979         types that can't be deduced solely from st_mode.  First arg is now a
81980         const pointer.
81981         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81982         (strmode): Renamed from mode_string.
81983         (filemodestring): New decl.
81984         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81985         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81986         needed.
81987         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81988
81989         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81992         fsusage.h now does that.  Include fsusage.h first, to test interface.
81993         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81994         at most one method (the old code could have generated decls that
81995         didn't conform to C89, not that this was ever exercised).
81996         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81997
81998         2006-03-19  Jim Meyering  <jim@meyering.net>
81999
82000         Work even in a chroot where d_ino values for entries in "/"
82001         don't match the stat.st_ino values for the same names.
82002         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82003         number, iterate through all entries again, using lstat instead.
82004         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82005         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82006
82007         * lib/getcwd.c (__getcwd): Clarify a comment.
82008         Use memcpy in place of a call to strcpy.
82009
82010         2006-03-12  Jim Meyering  <jim@meyering.net>
82011
82012         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82013         matches that of the current directory (which we're about to chdir ".."
82014         out of), then save the dev-ino of the parent, instead.
82015
82016         * lib/same-inode.h (SAME_INODE): New file/macro.
82017         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82018         Include "same-inode.h", instead.
82019         * lib/same.c: Likewise.
82020         * lib/cycle-check.h: Include "same-inode.h".
82021         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82022         * lib/cycle-check.c (SAME_INODE): Remove definition.
82023         * lib/root-dev-ino.h: Include "same-inode.h".
82024
82025         2006-03-11  Eric Blake  <ebb9@byu.net>
82026
82027         * lib/same.c (same_name): s/base_name/last_component/
82028         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82029         * lib/filenamecat.c (file_name_concat): Likewise.
82030
82031         2006-03-11  Eric Blake  <ebb9@byu.net>,
82032                     Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82035         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82036         drive prefix.
82037         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82038         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82039         (last_component): New method.
82040         * lib/dirname.c (dir_len): Determine when drive letters need a
82041         subsequent slash.  Preserve // when it is special.
82042         (dir_name): Don't append dot when drive letter is absolute.
82043         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82044         * lib/basename.c (base_name): New semantics - malloc the result.
82045         Preserve // when it is special.  Preserve relative files that look
82046         like drive letters.
82047         (base_len): Preserve // when it is special.
82048         (last_component): New method, similar to old base_name semantics.
82049         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82050         base_name.  Strip redundant slashes from ///.
82051
82052 2006-07-03  Jim Meyering  <jim@meyering.net>
82053
82054         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82055         macro is used before the first cycle_check call.
82056
82057 2006-07-03  Eric Blake  <ebb9@byu.net>
82058
82059         * modules/dirname (Depends-on): Add xstrndup.
82060
82061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82064         test cases, so that config.log is a bit easier to follow.
82065
82066 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82067
82068         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82069         both are 64 bits, since this seems to be the tradition, and this
82070         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82071         we ever run into a host that prefers long long to long in this
82072         case, we'll need another configure-time test.  Problem reported by
82073         Jim Meyering.
82074
82075 2006-07-02  Eric Blake  <ebb9@byu.net>
82076
82077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82078
82079 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         * modules/inttypes (Depends-on): No longer depends on stdint.
82082         * modules/stdint (Description): Say more about assumptions.
82083         Say that the fast types might differ.  Say macros are used.
82084         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82085         (Makefile.am): Revise list of substituted symbols to match
82086         new stdint.m4.
82087         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82088         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82089         * tests/test-stdint.c (verify_same_types)
82090         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82091         the code conforms to C99/C89.
82092         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82093         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82094
82095 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82096
82097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82098         but fix a bug, by requiring at least 64 bits.
82099         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82100         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82101         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82102         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82103
82104         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82105         changes.  Make 2.59 a prerequisite.  Check and substitute for
82106         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82107         inttypes.h.  Do not use special include files; just use the
82108         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82109         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82110         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82111         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82112         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82113         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82114         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82115         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82116         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82117         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82118         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82119         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82120         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82121         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82122         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82123         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82124         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82125         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82126         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82127         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82128         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82129         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82130         not check for things that C99 does not require, e.g., int8_t.  If
82131         a test isn't needed unless <stdint.h> isn't working, and is
82132         unlikely to be needed for any other reason, then don't do it
82133         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82134         size_t, since we assume C89 freestanding at least.  Do not check
82135         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82136         the right thing even if the types are not defined.  Instead use:
82137         (gl_STDINT_TYPE_PROPERTIES): New macro.
82138         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82139         testing whether <sys/types.h> clashes, as Autoconf does this for
82140         us now.  All uses removed.
82141         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82142         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82143         (gl_CHECK_TYPE_SAME):
82144         Remove; no longer needed.
82145         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82146         exists, since we'll return 0 anyway in that case.
82147         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82148
82149 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82150
82151         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82152         possible collision with system files.
82153         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82154         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82155         WCHAR_MIN and WCHAR_MAX in this case.
82156         (<stddef.h>): Do not include; no longer needed.
82157         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82158         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82159         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82160         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82161         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82162         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82163         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82164         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82165         !defined(__c99))]: Include in this case too, since it's harmless
82166         now.
82167         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82168         dangerous to do so.
82169         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82170         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82171         (_STDINT_MIN, _STDINT_MAX): New macros.
82172         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82173         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82174         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82175         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82176         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82177         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82178         macros, not typedefs; this simplifies things quite a bit.
82179         Use long int for all types narrower than int64_t.
82180         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82181         Define in terms of long long int or int64_t or long int,
82182         not int64_t or int32_t.  This saves some compile-time testing.
82183         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82184         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82185         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82186         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82187         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82188         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82189         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82190         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82191         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82192         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82193         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82194         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82195         undef any previous version and define our own version, for
82196         simplicity and consistency with the new macros for types.
82197         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82198         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82199         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82200         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82201         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82202         @WINT_T_SUFFIX@ to keep things simple here.
82203         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82204         Simplify by assuming typical 8/16/32/64 host, since we're
82205         already doing that elsewhere anyway.
82206         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82207         and assume long long int is 64 bits if available.  This
82208         speeds up 'configure'.
82209
82210 2006-07-01  Eric Blake  <ebb9@byu.net>
82211
82212         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82213         Reported by Andreas Buening.
82214
82215 2006-07-01  Eric Blake  <ebb9@byu.net>
82216
82217         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82218
82219 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82220
82221         * lib/getaddrinfo.c: fixed typo
82222
82223 2006-06-29  Jim Meyering  <jim@meyering.net>
82224
82225         * modules/strftime (Maintainer): Add my name, since with the
82226         FPRINTFTIME changes strftime.c has forked from glibc.
82227
82228 2006-06-29  Eric Blake  <ebb9@byu.net>
82229
82230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82231
82232 2006-06-29  Eric Blake  <ebb9@byu.net>
82233
82234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82235
82236 2006-06-29  Eric Blake  <ebb9@byu.net>
82237
82238         * lib/stat_.h: New file.
82239
82240 2006-06-29  Eric Blake  <ebb9@byu.net>
82241
82242         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82243         unused static function.
82244
82245 2006-06-29  Eric Blake  <ebb9@byu.net>
82246
82247         * doc/functions.texi (Function Portability): Document missing lstat
82248         on mingw.
82249
82250 2006-06-29  Eric Blake  <ebb9@byu.net>
82251
82252         * MODULES.html.sh: Add sys_stat.
82253         * modules/sys_stat: New module.
82254         * modules/mkstemp (Depends-on): Add sys_stat.
82255
82256 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82257
82258         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82259
82260 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82261
82262         * m4/c-bs-a.m4: Removed.
82263
82264 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82265
82266         * lib/strftime.c: Assume strftime() exists.
82267
82268 2006-06-29  Derek Price  <derek@ximbiot.com>
82269
82270         * modules/c-bs-a: Removed - \a is C89.
82271         * MODULES.html.sh: Remove c-bs-a.
82272
82273 2006-06-29  Bruno Haible  <bruno@clisp.org>
82274
82275         * modules/wcwidth (License): Change to LGPL.
82276
82277 2006-06-28  Simon Josefsson  <jas@extundo.com>
82278
82279         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82280         on _WIN32.
82281
82282         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82283         getnameinfo.
82284
82285 2006-06-28  Simon Josefsson  <jas@extundo.com>
82286
82287         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82288
82289 2006-06-28  Simon Josefsson  <jas@extundo.com>
82290
82291         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82292         functions there.  It will succeed on Windows XP, but on Windows
82293         2000 and (presumably) earlier, it will fail, and use the internal
82294         re-implementation.
82295         (use_win32_p): New function.
82296         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82297         Support AI_NUMERICSERV to disable getservbyname.
82298         (getnameinfo): New function, only supports
82299         NI_NUMERICHOST|NI_NUMERICSERV for now.
82300
82301         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82302         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82303         getnameinfo.
82304
82305 2006-06-28  Eric Blake  <ebb9@byu.net>
82306
82307         * modules/wcwidth: New file.
82308         * modules/mbchar (Depends-on): Add wcwidth.
82309         * modules/mbswidth (Depends-on): Add wcwidth.
82310         * MODULES.html.sh: Add wcwidth.
82311
82312 2006-06-28  Eric Blake  <ebb9@byu.net>
82313
82314         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82316
82317 2006-06-28  Eric Blake  <ebb9@byu.net>
82318
82319         * lib/xvasprintf.h: Fix comments.
82320
82321 2006-06-28  Eric Blake  <ebb9@byu.net>
82322
82323         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82324         * lib/mbswidth.c (wcwidth): Move from here...
82325         * lib/wcwidth.h: ...to this new file.
82326
82327 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82328
82329         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82330
82331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82332         it's obsolete.
82333         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82334
82335 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82336
82337         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82338         Autoconf 2.60 says this stuff was obsolete.
82339
82340 2006-06-28  Bruno Haible  <bruno@clisp.org>
82341
82342         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82343
82344 2006-06-28  Bruno Haible  <bruno@clisp.org>
82345
82346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82347         gt_TYPE_WCHAR_T.
82348
82349 2006-06-28  Bruno Haible  <bruno@clisp.org>
82350
82351         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82352         declaration for wcwidth.
82353         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82354
82355 2006-06-28  Bruno Haible  <bruno@clisp.org>
82356
82357         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82358         (mkdir): Define using _mkdir.
82359
82360 2006-06-28  Bruno Haible  <bruno@clisp.org>
82361
82362         * lib/getaddrinfo.h: Fix POSIX URL.
82363         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82364         _WIN32.
82365         (use_win32_p): Make static.
82366         (getaddrinfo): Reject service name if it is empty or does not consist
82367         solely of decimal digits, or if its value is > 65535.
82368         (getnameinfo): Remove useless casts.
82369
82370 2006-06-27  Simon Josefsson  <jas@extundo.com>
82371
82372         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82373         Eggert and Martin Lambers.
82374
82375 2006-06-27  Simon Josefsson  <jas@extundo.com>
82376
82377         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82378         Eggert and Martin Lambers.
82379
82380 2006-06-27  Bruno Haible  <bruno@clisp.org>
82381
82382         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82383         result to 0, not to empty.
82384         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82385
82386 2006-06-27  Bruno Haible  <bruno@clisp.org>
82387
82388         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82389
82390 2006-06-26  Simon Josefsson  <jas@extundo.com>
82391
82392         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82393         present.
82394
82395 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82396
82397         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82398         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82400
82401 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82402
82403         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82404
82405 2006-06-26  Bruno Haible  <bruno@clisp.org>
82406
82407         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82408
82409 2006-06-26  Bruno Haible  <bruno@clisp.org>
82410
82411         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82412
82413 2006-06-26  Bruno Haible  <bruno@clisp.org>
82414
82415         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82416         SGI C compiler in pre-C99 mode.
82417         Suggested by Mark D. Baushke and Larry Jones.
82418
82419 2006-06-26  Bruno Haible  <bruno@clisp.org>
82420
82421         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82422         WCHAR_MAX.
82423         Reported by Mark D. Baushke and Larry Jones.
82424
82425 2006-06-26  Bruno Haible  <bruno@clisp.org>
82426
82427         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82428         in pre-C99 mode.
82429         Suggested by Mark D. Baushke and Larry Jones.
82430
82431 2006-06-23  Simon Josefsson  <jas@extundo.com>
82432             Bruno Haible  <bruno@clisp.org>
82433
82434         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82435         Emit mostlyclean-local rule.
82436         (func_emit_tests_Makefile_am): Likewise.
82437         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82438
82439 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82440
82441         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82442
82443 2006-06-23  Bruno Haible  <bruno@clisp.org>
82444
82445         * tests/test-stdint.c: Update to match ISO C 99 Technical
82446         Corrigendum 1.
82447
82448 2006-06-23  Bruno Haible  <bruno@clisp.org>
82449
82450         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82451
82452 2006-06-23  Bruno Haible  <bruno@clisp.org>
82453
82454         * lib/stdint_.h: Treat IRIX like OpenBSD.
82455
82456 2006-06-23  Bruno Haible  <bruno@clisp.org>
82457
82458         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82459         ISO C 99 Technical Corrigendum 1.
82460
82461 2006-06-22  Simon Josefsson  <jas@extundo.com>
82462
82463         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82464         MinGW.
82465
82466 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82467
82468         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82469         needed.  Some compiler complained about some of them.  Problem reported
82470         by Larry Jones in
82471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82472
82473 2006-06-21  Simon Josefsson  <jas@extundo.com>
82474
82475         * tests/test-getaddrinfo.c: New file.
82476
82477         * modules/getaddrinfo-tests: New file.
82478
82479         * MODULES.html.sh: Add inet_pton.
82480
82481         * modules/inet_pton: New file.
82482
82483 2006-06-21  Simon Josefsson  <jas@extundo.com>
82484
82485         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82486         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82487         of using the (limited) gnulib implementation on Windows XP.
82488
82489         * m4/inet_pton.m4: New file.
82490
82491 2006-06-21  Simon Josefsson  <jas@extundo.com>
82492
82493         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82494         variable.
82495
82496         * lib/socket_.h: Don't define WINVER.
82497
82498         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82499         slightly modified to work in gnulib.
82500
82501 2006-06-21  Simon Josefsson  <jas@extundo.com>
82502
82503         * doc/gnulib.texi (Windows sockets): Add.
82504
82505 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82506
82507         * lib/read-file.c (fread_file): Start with buffer allocation of
82508         0 bytes rather than 1 byte; this simplifies the code.
82509         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82510         code to free buffer and save/restore errno.
82511         (internal_read_file): Remove unused local.
82512
82513 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82514
82515         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82516         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82517         Problem reported by Denis Excoffier in
82518         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82519
82520 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82521
82522         * modules/sys_socket, modules/socklen: Include sys/types since
82523         FreeBSD 4.x's sys/socket.h needs it.
82524
82525 2006-06-19  Simon Josefsson  <jas@extundo.com>
82526
82527         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82528
82529 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82530
82531         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82532
82533 2006-06-19  Bruno Haible  <bruno@clisp.org>
82534
82535         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82536         and FULL_PATH_INTTYPES_H in angle brackets.
82537         Reported by Mark D. Baushke <mdb@gnu.org>.
82538
82539 2006-06-17  Eric Blake  <ebb9@byu.net>
82540
82541         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82542         errno.
82543
82544 2006-06-17  Bruno Haible  <bruno@clisp.org>
82545
82546         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82547         <sys/inttypes.h>.
82548
82549 2006-06-17  Bruno Haible  <bruno@clisp.org>
82550
82551         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82552         whether errno is declared. Assume <errno.h> declares errno.
82553
82554 2006-06-17  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82557
82558 2006-06-17  Bruno Haible  <bruno@clisp.org>
82559
82560         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82561         problem on Solaris 2.5.1.
82562
82563 2006-06-16  Eric Blake  <ebb9@byu.net>
82564
82565         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82566         * lib/unicodeio.c [!defined errno]: Likewise.
82567         * lib/strtol.c [!defined errno]: Likewise.
82568         * lib/strtod.c [!defined errno]: Likewise.
82569
82570 2006-06-15  Eric Blake  <ebb9@byu.net>
82571
82572         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82573
82574 2006-06-15  Eric Blake  <ebb9@byu.net>
82575
82576         * config/srclist.txt (ssize_t.m4): Lose sync.
82577
82578 2006-06-15  Bruno Haible  <bruno@clisp.org>
82579
82580         * modules/stdint (Files): Include m4/full-header-path.m4,
82581         m4/size_max.m4, m4/wchar_t.m4.
82582         (Makefile.am): Many more substitutions.
82583         * modules/stdint-tests: New file.
82584         * tests/test-stdint.c: New file.
82585
82586 2006-06-15  Bruno Haible  <bruno@clisp.org>
82587
82588         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82589         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82590         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82591         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82592         gl_CHECK_TYPE_SAME): New macros.
82593
82594 2006-06-15  Bruno Haible  <bruno@clisp.org>
82595
82596         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82597
82598 2006-06-15  Bruno Haible  <bruno@clisp.org>
82599
82600         * lib/stdint_.h: Rewritten to be fully auto-configured.
82601         Fixes bug on HP-UX/IA64.
82602
82603 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82604
82605         * lib/getdate.y (__attribute__): Don't define if already defined.
82606         Problem reported by Larry Jones.
82607         * lib/utimens.c (__attribute__): Likewise.
82608
82609 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82612         reported by Andreas Schwab.
82613
82614 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82615             Bruno Haible  <bruno@clisp.org>
82616
82617         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82618         check for the declaration of strnlen and a run test that exposes the
82619         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82620         rpl_strndup.
82621
82622 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82623             Bruno Haible  <bruno@clisp.org>
82624
82625         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82626
82627 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82628
82629         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82630         compile test, for Tru64 4.0D.
82631
82632 2006-05-28  Karl Berry  <karl@gnu.org>
82633
82634         * config/srclist.txt (printf-args.c): lose sync.
82635
82636 2006-05-26  Martin Lambers  <marlam@marlam.de>
82637
82638         * lib/getpass.c: Updates the test for the native W32 API, and adds
82639         missing includes, thus fixing compilation warnings.
82640
82641 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82642
82643         * lib/exclude.c (exclude_fnmatch): New function.
82644         (excluded_file_name): Call exclude_fnmatch.
82645         * lib/exclude.h (excluded_file_name): New prototype
82646
82647 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82648
82649         * lib/tempname.c (small_open, large_open): New macros.
82650         (__open, __open64) [!_LIBC]: Remove.
82651         (__gen_tempname): Use small_open and large_open instead of __open
82652         and __open64.  This fixes a portability bug on HP-UX 11.11i
82653         reported by Simon Wing-Tang in
82654         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82655
82656 2006-05-24  Bruno Haible  <bruno@clisp.org>
82657
82658         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82659         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82660         Reported by Thorsten Maerz <torte@netztorte.de> via
82661         Aaron Stone <aaron@serendipity.cx>.
82662
82663 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82666         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82667         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82668         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82669         not really conditional on the cache.
82670         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82671
82672 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82675         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82676         (my_usleep): Don't mishandle maximum value.
82677
82678 2006-05-19  Jim Meyering  <jim@meyering.net>
82679
82680         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82681
82682 2006-05-17  Bruno Haible  <bruno@clisp.org>
82683
82684         Cygwin portability.
82685         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82686
82687 2006-05-17  Bruno Haible  <bruno@clisp.org>
82688
82689         * lib/stdint_.h: Fix recognition of Cygwin.
82690
82691 2006-05-15  Bruno Haible  <bruno@clisp.org>
82692
82693         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82694         on libtool patch by Ralf Wildenhues.
82695
82696 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82697
82698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82699         test for C99 conformance; (bool) 0.5 is an integer constant
82700         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82701         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82702
82703 2006-05-11  Simon Josefsson  <jas@extundo.com>
82704
82705         * m4/xvasprintf.m4: Fix obvious typo.
82706
82707 2006-05-11  Jim Meyering  <jim@meyering.net>
82708
82709         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82710         James Lemley.
82711
82712 2006-05-10  Simon Josefsson  <jas@extundo.com>
82713
82714         * lib/md4.c: Typo fix, update copyright years.
82715         (K1, K2): Don't use L because it turn computations into 64-bit on
82716         64-bit platforms.
82717
82718 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82719
82720         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82721         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82722         unwanted sign propagation, e.g., on hosts with 64-bit int.
82723         There still are some problems with reeelly weird theoretical hosts
82724         (e.g., 33-bit int) but it's not worth worrying about now.
82725         * lib/sha1.c (rol): Likewise.
82726         (K1, K2, K3, K4): Remove unnecessary L suffix.
82727
82728 2006-05-10  Bruno Haible  <bruno@clisp.org>
82729
82730         * lib/des.c: Cast to avoid warnings.
82731
82732 2006-05-09  Bruno Haible  <bruno@clisp.org>
82733
82734         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82735         (Depends-on): Depend also on xsize, stdarg.
82736         (configure.ac): Add gl_XVASPRINTF.
82737
82738 2006-05-09  Bruno Haible  <bruno@clisp.org>
82739
82740         * m4/xvasprintf.m4: New file.
82741
82742 2006-05-09  Bruno Haible  <bruno@clisp.org>
82743
82744         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82745         (EOVERFLOW): Define fallback value.
82746         (xstrcat): New function.
82747         (xvasprintf): Recognize the special case of a string concatenation.
82748
82749 2006-05-08  Eric Blake  <ebb9@byu.net>
82750
82751         * gnulib-tool (func_version): Base copyright year on CVS date.
82752         (func_emit_copyright_notice): New function.
82753         (func_emit_lib_Makefile_am): Use it.
82754         (func_emit_tests_Makefile_am): Likewise.
82755         (func_import): Likewise.
82756
82757 2006-05-08  Bruno Haible  <bruno@clisp.org>
82758
82759         * modules/stdarg: New file.
82760         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82761
82762 2006-05-08  Bruno Haible  <bruno@clisp.org>
82763
82764         * m4/stdarg.m4: New file, from GNU gettext.
82765
82766 2006-05-08  Bruno Haible  <bruno@clisp.org>
82767
82768         * config/srclist.txt (build-aux/config.rpath): different from latest
82769         release.
82770
82771 2006-05-08  Bruno Haible  <bruno@clisp.org>
82772
82773         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82774
82775 2006-05-05  Jim Meyering  <jim@meyering.net>
82776
82777         * m4/warning.m4: New file, derived from bison's file by the same name.
82778
82779 2006-05-03  Bruno Haible  <bruno@clisp.org>
82780
82781         * lib/stdint_.h: Shorter URL.
82782         * lib/inttypes.h: Likewise.
82783
82784 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82785
82786         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82787
82788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82789
82790         * lib/verify.h: Document the internals better.  Most of this change
82791         was written by Bruno Haible.
82792
82793 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82794
82795         * doc/verify.texi: New file, partly based on a proposal by
82796         Bruno Haible.
82797
82798 2006-05-02  Bruno Haible  <bruno@clisp.org>
82799
82800         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82801         test from here...
82802         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82803
82804 2006-04-29  Bruno Haible  <bruno@clisp.org>
82805
82806         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82807         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82808
82809 2006-04-29  Bruno Haible  <bruno@clisp.org>
82810
82811         * gnulib-tool: Make --update option actually work.
82812
82813 2006-04-29  Bruno Haible  <bruno@clisp.org>
82814
82815         * doc/gcd.texi: New file.
82816         * doc/gnulib.texi: Include it.
82817
82818 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82819
82820         * lib/getdate.y (get_date): When adding relative date, start with the
82821         initial time, not with the result of the first mktime call.
82822
82823 2006-04-25  Bruno Haible  <bruno@clisp.org>
82824
82825         * gnulib-tool (func_import): Output the include directives in three
82826         blocks, sorted separately.
82827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82828
82829 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82830
82831         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82832         to define main with arguments, for C++.  Reported by Eric Blake.
82833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82834         Prefer 'int main ()' to 'int main (void)', for C++.
82835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82837         for 'main', for C99 and C++.
82838
82839 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82840
82841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82842         Don't assume that exit status -1 is valid.
82843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82845         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82846         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82847         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82848         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82849         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82850         functions can be used without declaring them, or that you can
82851         exit with status -1.
82852         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82853
82854 2006-04-24  Karl Berry  <karl@gnu.org>
82855
82856         * config/srclist.txt (longdouble.m4): sync lost.
82857
82858 2006-04-24  Eric Blake  <ebb9@byu.net>
82859
82860         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82861
82862 2006-04-24  Bruno Haible  <bruno@clisp.org>
82863
82864         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82865         poll() implementation in AIX.
82866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82867
82868 2006-04-24  Bruno Haible  <bruno@clisp.org>
82869
82870         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82871         assigned exactly once.
82872
82873 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82874             Bruno Haible  <bruno@clisp.org>
82875
82876         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82877         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82878         for AM_CPPFLAGS.
82879
82880 2006-04-23  Bruno Haible  <bruno@clisp.org>
82881
82882         * modules/copy-file: Depend on unistd.
82883         * modules/execute: Likewise.
82884         * modules/fatal-signal: Likewise.
82885         * modules/findprog: Likewise.
82886         * modules/mkdtemp : Likewise.
82887         * modules/pipe: Likewise.
82888         * modules/wait-process: Likewise.
82889
82890 2006-04-23  Bruno Haible  <bruno@clisp.org>
82891
82892         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82893         condition was already detected.
82894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82895
82896 2006-04-23  Bruno Haible  <bruno@clisp.org>
82897
82898         * lib/copy-file.c: Include <unistd.h> unconditionally.
82899         * lib/execute.c: Likewise.
82900         * lib/fatal-signal.c: Likewise.
82901         * lib/findprog.c: Likewise.
82902         * lib/mkdtemp.c: Likewise.
82903         * lib/pipe.h: Likewise.
82904         * lib/pipe.c: Likewise.
82905         * lib/wait-process.h: Likewise.
82906
82907 2006-04-23  Bruno Haible  <bruno@clisp.org>
82908
82909         * gnulib-tool (func_usage): Fix --import description. Document
82910         --update.
82911         (func_import): Create temporary file in a temporary directory, if
82912         --dry-run is specified. Silence errors from 'grep' when there are no
82913         m4 files in $m4dir.
82914         (func_create_testdir): Silence errors from 'grep' when there are no
82915         m4 files in $m4dir.
82916         Reported by Karl Berry <karl@freefriends.org>.
82917
82918 2006-04-20  Bruno Haible  <bruno@clisp.org>
82919
82920         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82921         one argument, so that the code will be portable to Autoconf 2.60.
82922         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82923         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82924         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82925
82926 2006-04-19  Derek Price  <derek@ximbiot.com>
82927             Eric Blake  <ebb9@byu.net>
82928
82929         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82930         rather than "/full/path.h".  Update comment to match.  Shorten &
82931         generalize m4_translit call via AS_TR_CPP.
82932
82933 2006-04-19  Derek Price  <derek@ximbiot.com>
82934             Eric Blake  <ebb9@byu.net>
82935
82936         * lib/inttypes.h: Correct grammar in comment.
82937
82938 2006-04-18  Derek Price  <derek@ximbiot.com>
82939             Paul Eggert  <eggert@cs.ucla.edu>
82940
82941         * modules/inttypes: New file.
82942         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82943
82944 2006-04-18  Derek Price  <derek@ximbiot.com>
82945             Paul Eggert  <eggert@cs.ucla.edu>
82946
82947         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82948         New files.
82949
82950 2006-04-18  Derek Price  <derek@ximbiot.com>
82951             Paul Eggert  <eggert@cs.ucla.edu>
82952
82953         * lib/inttypes.h: New file.
82954         * lib/strtoimax.c: Assume <inttypes.h>.
82955
82956 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82957
82958         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82959         isn't mounted.  Problem reported by Kir Kolyshkin.
82960
82961 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82962
82963         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82964         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82965         Derek R. Price.
82966         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82967         implementation.
82968
82969 2006-04-12  Eric Blake  <ebb9@byu.net>
82970
82971         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82972         is now done automatically by the corresponding Autoconf macro.
82973
82974 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82977         time_r.h.
82978
82979 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         Merge regex changes from libc, removing some of our
82982         POSIX-conformance changes that were rejected and redoing them in a
82983         less-intrusive way.
82984
82985         * lib/regcomp.c (re_compile_internal, init_dfa):
82986         Length arg is now size_t, not Idx.  All uses changed.
82987         (peek_token): Forward decl now says internal_function.
82988         (__re_error_msgid, __re_error_msgid_idx):
82989         Now static rather than extern with attribute_hidden.
82990         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82991         For some reason libc prefers K&R style defns for external functions.
82992         (regerror) [!defined _LIBC]: Likewise.
82993         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82994         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82995         (build_range_exp, build_collating_symbol):
82996         Use K&R-style defn.
82997         (re_compile_fastmap): Use '\0' to memset, not 0.
82998         (utf8_sb_map): Make the calculations more obvious.
82999         (init_dfa, parse_bracket_exp, build_charclass_op):
83000         Call calloc and cast result, as glibc does.
83001         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83002         (build_range_exp, build_collating_symbol):
83003         Now internal functions.
83004
83005         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83006
83007         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83008         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83009         Don't depend on VMS; depend on __VMS instead, for POSIX
83010         namespace cleanness.
83011         (regoff_t): Define to ssize_t, not long int.
83012
83013         Remove the REG_ macros named below.  Instead, make the old names
83014         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83015         __USE_GNU_REGEX.
83016         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83017         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83018         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83019         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83020         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83021         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83022         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83023         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83024         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83025         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83026         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83027         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83028         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83029         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83030         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83031         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83032         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83033         (REG_NREGS):
83034         Remove.  All uses replaced by the old RE_* names.
83035         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83036         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83037         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83038         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83039         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83040         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83041         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83042         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83043         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83044         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83045         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83046         Don't bother having these macros be independent of each others'
83047         values, since they no longer exist in the POSIX name space.
83048
83049         Rename the following member names back to their old names,
83050         unless !__USE_GNU_REGEX.  All uses changed back.
83051         (buffer): Renamed from re_buffer.
83052         (allocated): Renamed from re_allocated.
83053         (used): Renamed from re_used.
83054         (syntax): Renamed from re_syntax.
83055         (fastmap): Renamed from re_fastmap.
83056         (translate): Renamed from re_translate.
83057         (can_be_null): Renamed from re_can_be_null.
83058         (regs_allocated): Renamed from re_regs_allocated.
83059         (fastmap_accurate): Renamed from re_fastmap_accurate.
83060         (no_sub): Renamed from re_no_sub.
83061         (not_bol): Renamed from re_not_bol.
83062         (not_eol): Renamed from re_not_eol.
83063         (newline_anchor): Renamed from re_newline_anchor.
83064         (num_regs): Renamed from rm_num_regs.
83065         (start): Renamed from rm_start.
83066         (end): Renamed from rm_end.
83067
83068         (free_state): Move up a bit.
83069
83070         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83071         #define to be empty.
83072         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83073         when that is what is intended.
83074         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83075         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83076         (MAX): New macro.
83077         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83078         All uses changed back to re_malloc, etc.  It's now the caller's
83079         responsibility to check for overflow; all callers changed.
83080         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83081         (re_x2nrealloc): Remove.
83082         (free_state): Remove decl.
83083
83084         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83085         (re_set_registers, re_exec):
83086         Use K&R-style defn.
83087
83088         2006-01-31  Roland McGrath  <roland@redhat.com>
83089
83090         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83091         Reported by Mike Frysinger <vapier@gentoo.org>.
83092
83093         2006-01-15  Andreas Jaeger  <aj@suse.de>
83094
83095         [BZ #1950]
83096         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83097         build_wcs_upper_buffer change.
83098         (build_wcs_upper_buffer): Change return type.
83099
83100         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83101
83102         * lib/regex_internal.h: Include <stdint.h> if available.
83103
83104         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83105
83106         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83107
83108         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83109
83110         * lib/regcomp.c: Adjust for changed secondary hash function.
83111
83112         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83113
83114         * lib/regex.h: Pretty printing.
83115         Clean up namespace a bit.
83116
83117         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83118
83119         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83120         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83121
83122         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83123                     Ulrich Drepper  <drepper@redhat.com>
83124
83125         [BZ #1302]
83126         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83127         changed.
83128         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83129
83130         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83131
83132         [BZ #281]
83133         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83134         * lib/regcomp.c: Remove unnecessary uses of
83135         unsigned RE_TRANSLATE_TYPE.
83136         * lib/regex_internal.h: Likewise.
83137         * lib/regex_internal.c: Likewise.
83138         * lib/regexec.c: Likewise.
83139         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83140
83141         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83142
83143         * lib/regexec.c (find_recover_state): Remove unnecessary
83144         initialization.
83145         (transit_state_bkref): Make DFA a const pointer.
83146         (get_subexp): Likewise.
83147         (check_arrival): Likewise.
83148         (update_cur_sifted_state): Likewise.
83149         (re_search_internal): Likewise.
83150         (prune_impossible_nodes): Likewise.
83151         (acquire_init_state_context): Likewise.
83152         (proceed_next_node): Likewise.
83153         (set_regs): Likewise.
83154         (free_fail_stack_return): Likewise.
83155         (check_arrival_expand_ecl): Mark DFA parameter as const.
83156         (check_arrival_expand_ecl_sub): Likewise.
83157         (check_subexp_limits): Likewise.
83158         (sub_epsilon_src_nodes):  Likewise.
83159         (add_epsilon_src_nodes):  Likewise.
83160         (merge_state_array): Likewise.
83161         (update_regs): Likewise.
83162         (build_trtable): Likewise.
83163         (sift_states_backward): Mark MCTX parameter as const.
83164         (build_sifted_states): Likewise.
83165         (update_cur_sifted_state): Likewise.
83166         (sift_states_mkref): Likewise.
83167         (check_arrival_expand_ecl): Mark eclosure as const.
83168         (check_dst_limits_calc_pos_1): Likewise.
83169         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83170         pointer.
83171
83172         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83173
83174         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83175         (transit_state_sb): Likewise.
83176         (transit_state_mb): Likewise.
83177         (sift_states_iter_mb): Likewise.
83178         (check_arrival_add_next_nodes): Likewise.
83179         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83180         [_LIBC] (re_search_2_stub): Use mempcpy.
83181
83182         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83183         mbrtowc for very simple UTF-8 case.
83184
83185         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83186         a pointer-to-const.
83187         (re_acquire_state_context): Likewise.
83188         * lib/regex_internal.h: Adjust prototypes.
83189
83190         * lib/regex.c: Prevent using C++ compilers.
83191
83192         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83193         (re_acquire_state_context): Likewise.
83194
83195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * modules/regex (Depends-on): Add ssize_t.
83198
83199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83200
83201         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83202         translation table.
83203
83204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83205
83206         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83207
83208 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83209             Bruno Haible  <bruno@clisp.org>
83210
83211         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83212         <sys/types.h> and <inttypes.h>.
83213
83214 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83215
83216         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83217         `__error_t_defined', so argp.h will not typedef the former.
83218
83219 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83220
83221         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83222         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83223         glibc names.  Even if glibc is changed to conform to POSIX, the
83224         traditional names will be available anyway, since regex depends on
83225         the extensions module.  Also, fix a longstanding typo in the
83226         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83227         reported by Emanuele Giaquinta.  Also, change sense of cached
83228         variable, so that the message makes sense.
83229
83230 2006-03-24  Simon Josefsson  <jas@extundo.com>
83231
83232         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83233         including some doc fixes.
83234         (base64_encode_alloc): Fix +1 bug on allocation failures.
83235
83236 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83237
83238         * lib/base64.c (base64_encode): Do not read past end of array with
83239         unsanitized input on systems with CHAR_BIT > 8.
83240
83241 2006-03-24  Eric Blake  <ebb9@byu.net>
83242
83243         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83244
83245 2006-03-22  Karl Berry  <karl@gnu.org>
83246
83247         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83248         * config/srclistvars.sh (COREUTILS): new var.
83249
83250 2006-03-17  Jim Meyering  <jim@meyering.net>
83251
83252         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83253         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83254
83255 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83256
83257         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83258         no longer needs it.  Instead, check that regoff_t is as least
83259         as wide as ptrdiff_t.
83260
83261         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83262         so that our regex.h stays compatible with the installed regex.
83263         This is helpful for installers who configure --without-included-regex.
83264         Problem reported by Emanuele Giaquinta.
83265
83266 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83267
83268         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83269         Typedef to long int, not to off_, as POSIX will likely change
83270         in that direction.
83271
83272 2006-03-15  Eric Blake  <ebb9@byu.net>
83273
83274         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83275
83276 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83277
83278         * lib/argp-help.c (validate_uparams): Fix typo
83279         * lib/argp-parse.c (argp_default_options): Consistently begin help
83280         messages with a lowercase letter.
83281
83282 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83283
83284         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83285         overrun buffers and shouldn't be used (much as gets shouldn't be
83286         used).
83287         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83288
83289 2006-03-08  Simon Josefsson  <jas@extundo.com>
83290
83291         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83292         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83293
83294 2006-03-08  Simon Josefsson  <jas@extundo.com>
83295
83296         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83297         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83298
83299 2006-03-08  Simon Josefsson  <jas@extundo.com>
83300
83301         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83302         signal that configure disabled the device.
83303
83304 2006-03-08  Simon Josefsson  <jas@extundo.com>
83305
83306         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83307         languages.
83308
83309 2006-03-07  Simon Josefsson  <jas@extundo.com>
83310
83311         * modules/getopt (Depends-on): Add unistd.
83312
83313         * modules/unistd: New file.
83314
83315 2006-03-07  Simon Josefsson  <jas@extundo.com>
83316
83317         * modules/gc-random: New file.
83318
83319 2006-03-07  Simon Josefsson  <jas@extundo.com>
83320
83321         * m4/unistd_h.m4: New file.
83322
83323 2006-03-07  Simon Josefsson  <jas@extundo.com>
83324
83325         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83326         test to be side-effect free by storing the result in the cache
83327         variable gl_cv_lib_readline, and moving the assignment of
83328         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83329         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83330
83331 2006-03-07  Simon Josefsson  <jas@extundo.com>
83332
83333         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83334         error on missing devices (the functions will return an error).
83335
83336         * m4/gc.m4: Move random stuff to gc-random.m4
83337
83338 2006-03-07  Simon Josefsson  <jas@extundo.com>
83339
83340         * lib/unistd_.h: New file.
83341
83342 2006-03-07  Simon Josefsson  <jas@extundo.com>
83343
83344         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83345
83346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83347
83348         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83349         Problem reported by Juan Manuel Guerrero.
83350
83351 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83354         the unistd module.
83355         * lib/getlogin_r.c: Likewise.
83356         * lib/getlogin_r.h: Likewise.
83357         * lib/glob.c: Likewise.
83358         * lib/pagealign_alloc.c: Likewise.
83359         * lib/unistd_.h: Remove; no longer needed.
83360
83361 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83362
83363         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83364         Add unistd.
83365         * modules/c-stack (Depends-on): Add unistd.
83366         * modules/getlogin_r: Likewise.
83367         * modules/glob: Likewise.
83368         * modules/pagealign_alloc: Likewise.
83369         * modules/unistd (Files): Remove lib/unistd_.h.
83370         (EXTRA_DIST): Remove.
83371         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83372         need unistd_.h.
83373         (MOSTLYCLEANFILES): Remove unistd.h-t.
83374
83375 2006-03-03  Simon Josefsson  <jas@extundo.com>
83376
83377         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83378
83379 2006-03-03  Simon Josefsson  <jas@extundo.com>
83380
83381         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83382         libidn and bison.
83383
83384 2006-03-03  Simon Josefsson  <jas@extundo.com>
83385
83386         * build-aux/maint.mk: Add indent target.
83387
83388 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83389
83390         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83391         our replacement poll.h in any case, to avoid a differing
83392         declaration from a system header.  Seen on AIX.
83393
83394 2006-03-01  Simon Josefsson  <jas@extundo.com>
83395
83396         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83397         <kasal@ucw.cz>.
83398
83399 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * modules/gettime (Depends-on): Add extensions module.
83402         * modules/nanosleep (Depends-on): Likewise.
83403         * modules/settime (Depends-on): Likewise.
83404
83405 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83406
83407         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83408         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83409         pedantically.
83410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83411         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83412
83413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83414         not "==".  Reported by Ralf Wildenhues.
83415
83416 2006-03-01  Karl Berry  <karl@gnu.org>
83417
83418         * doc/Copyright/request-*: new files, synced from gnuorg.
83419
83420 2006-03-01  Karl Berry  <karl@gnu.org>
83421
83422         * config/srclist.txt (Copyright/*): new entries.
83423
83424 2006-02-28  Simon Josefsson  <jas@extundo.com>
83425
83426         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83427
83428 2006-02-27  Simon Josefsson  <jas@extundo.com>
83429
83430         * lib/base64.h: Indent #define's.  From Jim Meyering
83431         <jim@meyering.net>.
83432
83433 2006-02-27  Jim Meyering  <jim@meyering.net>
83434
83435         Revert the change of 2006-02-24, so these files can continue
83436         to be sync'd from gettext.
83437         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83438         of `config.h'.
83439
83440 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83441
83442         * modules/intprops: New file.
83443         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83444         Add intprops.
83445         * modules/getloadavg (Files): Remove lib/intprops.h.
83446         (Depends-on): Add intprops.
83447         * modules/human: Likewise.
83448         * modules/inttostr: Likewise.
83449         * modules/openat: Likewise.
83450         * modules/sig2str: Likewise.
83451         * modules/userspec: Likewise.
83452         * modules/utimecmp: Likewise.
83453         * modules/xnanosleep: Likewise.
83454         * modules/xstrtol: Likewise.
83455
83456 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83457
83458         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83459         * modules/lock-tests (TESTS): Use $(EXEEXT).
83460         * modules/tls-tests: Likewise.
83461         * modules/argp-tests: Likewise.
83462         (check_PROGRAMS): New var, replacing...
83463         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83464
83465 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83466
83467         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83468         `config.h'.
83469
83470 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83471
83472         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83473
83474 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83475
83476         Sync from coreutils.
83477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83478         gl_CHDIR_SAFER.
83479
83480 2006-02-22  Jim Meyering  <jim@meyering.net>
83481
83482         Sync from coreutils.
83483         * m4/chdir-safer.m4: New file.
83484
83485 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83488         AT_FDCWD exceeds INT_MAX.
83489         * lib/openat.h (AT_FDCWD): Likewise.
83490
83491 2006-02-17  Eric Blake  <address@hidden>
83492
83493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83494
83495 2006-02-16  Simon Josefsson  <jas@extundo.com>
83496
83497         * modules/getaddrinfo (Depends-on): Add sys_socket.
83498
83499 2006-02-15  Simon Josefsson  <jas@extundo.com>
83500
83501         * build-aux/maint.mk: Add dsyntax-check rule.
83502
83503 2006-02-15  Eric Blake  <ebb9@byu.net>
83504
83505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83506         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83507         'present but cannot compile' warnings on cygwin.
83508         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83509         use ws2tcpip.h if sys/socket.h works.
83510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83511         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83512
83513 2006-02-14  Simon Josefsson  <jas@extundo.com>
83514
83515         * modules/maintainer-makefile (Files): Rename.
83516
83517         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83518         and (the local) Makefile.cfg to maint-cfg.mk.
83519
83520         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83521         to the latter.
83522
83523         * modules/maintainer-makefile: New module.
83524
83525         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83526         severaly stripped to make it possible to build it up from scratch
83527         with reliable tests.
83528
83529         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83530         fixes to permit overriding the default actions when configure and
83531         makefile are not available.
83532
83533 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83534
83535         Sync from coreutils.
83536         * modules/lstat (Depends-on): Don't depend on xalloc.
83537         (License): Change from GPL to LGPL, since this is now simply a
83538         replacement for a libc function.
83539
83540 2006-02-14  Jim Meyering  <jim@meyering.net>
83541
83542         Sync from coreutils.
83543
83544         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83545         failure on deficient systems, and simplify gnulib lgpl dependencies.
83546         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83547         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83548
83549         * lib/xalloc-die.c: Remove unused definition of N_.
83550
83551 2006-02-14  Jim Meyering  <jim@meyering.net>
83552
83553         Sync from coreutils.
83554         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83555         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83556         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83557         double-quote uses of that variable, to accommodate the rare case in
83558         which getmntent is available in none of the libraries checked.  This
83559         happens at least on FreeBSD 5.0.
83560
83561 2006-02-13  Simon Josefsson  <jas@extundo.com>
83562
83563         * gnulib-tool (Usage): Fix --import, from
83564         karl@freefriends.org (Karl Berry).
83565
83566 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83567
83568         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83569
83570 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83571
83572         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83573         "autoupdate" on 2005-12-12.
83574
83575 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         * modules/closeout (Depends-on): Remove atexit.
83578
83579 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83580
83581         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83582         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83583
83584 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83585
83586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83587         __EXTENSIONS__ if this causes compilation to fail.  Problem
83588         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83589         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83590
83591 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83592
83593         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83594         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83596         All uses changed.
83597
83598 2006-01-26  Simon Josefsson  <jas@extundo.com>
83599
83600         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83601         prototype is visible on mingw32.
83602
83603         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83604         for mingw32.
83605
83606         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83607         mingw32).
83608
83609 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83612         attempt to open for write; this always fails, at least on POSIX
83613         hosts.  This reinstates the 2006-01-09 change, which was
83614         inadvertently removed.
83615
83616 2006-01-26  Bruno Haible  <bruno@clisp.org>
83617
83618         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83619         Reported by Paul Eggert.
83620
83621 2006-01-26  Bruno Haible  <bruno@clisp.org>
83622             Paul Eggert  <eggert@cs.ucla.edu>
83623
83624         * lib/stdbool_.h (_Bool)
83625         [(! (defined __cplusplus || defined __BEOS__)
83626           && !defined __GNUC__
83627           && !(defined __HP_cc || defined __xlc__
83628                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83629                || defined __sgi))]:
83630         #define to signed char in these cases too; this simplifies
83631         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83632         etc., separately) and makes it more conservative.
83633
83634 2006-01-25  Simon Josefsson  <jas@extundo.com>
83635
83636         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83637         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83638         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83639
83640 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83641
83642         * lib/argp-namefrob.h: Bugfix. Remove stray #
83643
83644 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83645
83646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83647         so that we test the test.
83648         Check for yet another HP-UX cc bug involving *bool |= bool.
83649
83650 2006-01-25  Karl Berry  <karl@gnu.org>
83651
83652         * config/srclist.txt (vasnprintf.c): sync lost.
83653
83654 2006-01-25  Jim Meyering  <jim@meyering.net>
83655
83656         Sync from the stable (b5) branch of coreutils:
83657
83658         * lib/fts.c (fts_children): Don't let close() clobber errno from
83659         failed fchdir().
83660
83661         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83662         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83663         a dangling symlink.  That can also happen at least for ELOOP.
83664         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83665         FYI, this bug predates the inclusion of fts.c in coreutils.
83666
83667         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83668         in their own block, so pre-c99 compilers don't object.
83669
83670         Avoid the double-free (first in fts_read, second in fts_close) that
83671         would occur when an `active' directory is made inaccessible (e.g.,
83672         via chmod a-x) during a traversal.
83673         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83674         before returning.  Reproduce this failure by
83675         mkdir -p a/b; cd a; chmod a-x . b
83676         Reported by Stavros Passas.
83677
83678 2006-01-25  Jim Meyering  <jim@meyering.net>
83679
83680         * lib/fileblocks.c: Remove more useless parentheses.
83681         * lib/readutmp.h: Likewise.
83682
83683 2006-01-25  Bruno Haible  <bruno@clisp.org>
83684
83685         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83686         warnings.
83687         Reported by Paul Eggert.
83688
83689 2006-01-25  Bruno Haible  <bruno@clisp.org>
83690
83691         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83692         rid of a trap command. For Solaris sh.
83693         Reported by Mark D. Baushke <mdb@gnu.org>.
83694
83695 2006-01-24  Simon Josefsson  <jas@extundo.com>
83696
83697         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83698         Bruno.
83699
83700 2006-01-24  Karl Berry  <karl@gnu.org>
83701
83702         * config/srclist.txt (argp-namefrob.h): sync lost.
83703
83704 2006-01-24  Jim Meyering  <jim@meyering.net>
83705
83706         * modules/openat (Files): Add lib/intprops.h.
83707         From Mark D. Baushke.
83708
83709 2006-01-24  Jim Meyering  <jim@meyering.net>
83710
83711         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83712         Reported by Mark D. Baushke.
83713
83714 2006-01-24  Jim Meyering  <jim@meyering.net>
83715
83716         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83717
83718 2006-01-24  Bruno Haible  <bruno@clisp.org>
83719
83720         * modules/strnlen (Maintainer): Change from glibc to all.
83721
83722 2006-01-24  Bruno Haible  <bruno@clisp.org>
83723
83724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83725         Patch by Paul Eggert.
83726
83727 2006-01-24  Bruno Haible  <bruno@clisp.org>
83728
83729         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83730         already has it.
83731         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83732         2005-11-26.
83733
83734         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83735         'signed char' to avoid problems with the built-in _Bool type.
83736         Reported by Paul Eggert on 2005-11-26.
83737
83738 2006-01-24  Bruno Haible  <bruno@clisp.org>
83739
83740         * gnulib-tool (func_import): Avoid constructing complicated sed
83741         expressions inside backquote.
83742         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83743
83744 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83745
83746         These changes imported from libc.
83747         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83748         test and two separate function calls.
83749         * lib/strndup.c (__strndup): Add libc_hidden_def.
83750
83751 2006-01-23  Simon Josefsson  <jas@extundo.com>
83752
83753         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83754         Remove the test_*_SOURCES variable: automake infers it by default.
83755         * modules/tls-tests: Likewise.
83756
83757 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83758
83759         Work around porting bugs reported by Dieter in
83760         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83761         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83762         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83763         Include "getopt.h" first, to check interface.
83764         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83765         !HAVE_DECL_GETENV.
83766         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83767         (__strndup): Revert to K&R-style function dfns, the glibc style.
83768         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83769         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83770         Include strnlen.h first, to get prototype properly.
83771         (strnlen): Renamed from __strnlen.
83772         Remove weak alias.
83773
83774 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83777
83778 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83779
83780         * config/srclist.txt: Adjust to reflect glibc reorganization.
83781         This affects only comments.
83782
83783 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83784
83785          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83786          Reported by Bruce Korb <bkorb@gnu.org>.
83787
83788 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83789
83790         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83791         to pacify gcc -Wswitch-default.
83792
83793 2006-01-22  Bruno Haible  <bruno@clisp.org>
83794
83795         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83796         temporary buffer for sprintf, take into account the precision also
83797         for 'd', 'i', 'u', 'o', 'x', 'X'.
83798
83799 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83800
83801         * modules/argp-tests: New module
83802         * tests/test-argp.c: New file
83803         * tests/test-argp-2.sh: New file
83804
83805 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83806
83807         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83808         (__argp_base_name): Removed
83809         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83810         typo.
83811         (__argp_base_name): Provide macro definition or extern declaration
83812         depending on the configuration
83813
83814 2006-01-20  Simon Josefsson  <jas@extundo.com>
83815
83816         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83817
83818 2006-01-20  Simon Josefsson  <jas@extundo.com>
83819
83820         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83821
83822 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83823
83824         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83825         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83826         Suggested by Bruno Haible.
83827
83828 2006-01-20  Karl Berry  <karl@gnu.org>
83829
83830         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83831         until changes propagate, I guess.
83832
83833 2006-01-19  Simon Josefsson  <jas@extundo.com>
83834
83835         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83836
83837 2006-01-19  Simon Josefsson  <jas@extundo.com>
83838
83839         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83840
83841 2006-01-19  Simon Josefsson  <jas@extundo.com>
83842
83843         * gnulib-tool: Set check_PROGRAMS.
83844
83845         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83846         modules/des-tests, modules/gc-arcfour-tests,
83847         modules/gc-arctwo-tests, modules/gc-des-tests,
83848         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83849         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83850         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83851         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83852         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83853         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83854         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83855         test_*_SOURCES.
83856
83857 2006-01-18  Simon Josefsson  <jas@extundo.com>
83858
83859         * modules/socklen (Depends-on): Depend on sys_socket.
83860
83861 2006-01-18  Simon Josefsson  <jas@extundo.com>
83862
83863         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83864         modules/des-tests, modules/gc-arcfour-tests,
83865         modules/gc-arctwo-tests, modules/gc-des-tests,
83866         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83867         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83868         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83869         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83870         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83871         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83872         $(EXEEXT) to automake TESTS variable, for mingw32.
83873
83874 2006-01-17  Simon Josefsson  <jas@extundo.com>
83875
83876         * modules/socklen (Include): Need sys/socket.h.
83877
83878 2006-01-17  Bruno Haible  <bruno@clisp.org>
83879
83880         * modules/ssize_t (Include): Add <sys/types.h>.
83881
83882 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83883
83884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83885         it's not portable and it doesn't work with cross-compiles.
83886         Problem reported by Bruno Haible.  Fix missing-$ typo in
83887         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83888         -zignore from being used with Sun's C compiler.
83889
83890 2006-01-12  Simon Josefsson  <jas@extundo.com>
83891
83892         * lib/base64.c: Fix warning, reported by Bruno Haible
83893         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83894
83895 2006-01-12  Bruno Haible  <bruno@clisp.org>
83896
83897         * modules/ldd: New file.
83898         * build-aux/ldd.sh.in: New file.
83899         * MODULES.html.sh (Support for building libraries and executables): Add
83900         ldd.
83901
83902 2006-01-12  Bruno Haible  <bruno@clisp.org>
83903
83904         * m4/ldd.m4: New file.
83905
83906 2006-01-12  Bruno Haible  <bruno@clisp.org>
83907
83908         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83909         endless loop while replacing $auxdir with build-aux.
83910
83911 2006-01-11  Simon Josefsson  <jas@extundo.com>
83912
83913         * lib/stdint_.h (SIZE_MAX): Add missing (.
83914
83915 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83916
83917         Sync from coreutils.
83918         * lib/md5.c: Fix commentary typos.
83919         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83920         * lib/md5.h (__attribute__): Remove; unused.
83921         * lib/sha1.c: Fix commentary to match md5 better.
83922         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83923         so that we don't need to worry about alignment.  All uses changed.
83924         This merges the 2005-10-28 md5 change into sha1.
83925
83926 2006-01-11  Jim Meyering  <jim@meyering.net>
83927
83928         Sync from coreutils.
83929         * lib/md5.c (OP): Fix spacing.
83930
83931 2006-01-11  Bruno Haible  <bruno@clisp.org>
83932
83933         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83934         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83935         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83936
83937 2006-01-11  Bruno Haible  <bruno@clisp.org>
83938
83939         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83940         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83941         the "early" section as well.
83942
83943 2006-01-11  Bruno Haible  <bruno@clisp.org>
83944
83945         Avoid "ar: no archive members specified" error on MacOS X.
83946         * gnulib-tool (func_modules_add_dummy): New function.
83947         (func_import, func_create_testdir): Invoke it.
83948
83949 2006-01-11  Bruno Haible  <bruno@clisp.org>
83950
83951         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83952         with $auxdir in AC_CONFIG_FILES statements.
83953
83954 2006-01-11  Bruno Haible  <bruno@clisp.org>
83955
83956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83957         Initialize also noinst_HEADERS to empty.
83958
83959 2006-01-11  Bruno Haible  <bruno@clisp.org>
83960
83961         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83962         variables.
83963         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83964         autoreconf.
83965
83966 2006-01-11  Bruno Haible  <bruno@clisp.org>
83967
83968         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83969         overridable by the user.
83970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83971
83972 2006-01-10  Simon Josefsson  <jas@extundo.com>
83973
83974         * modules/sys_socket: New file.
83975
83976 2006-01-10  Simon Josefsson  <jas@extundo.com>
83977
83978         * m4/sys_socket_h.m4: New file.
83979
83980 2006-01-10  Simon Josefsson  <jas@extundo.com>
83981
83982         * lib/socket_.h: New file.
83983
83984 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * modules/readutmp (Maintainer): Add myself.
83987
83988 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83991         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83992         People who are still concerned with buggy memcmp implementations
83993         can invoke gl_FUNC_MEMCMP themselves.
83994
83995 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83996
83997         * lib/regex_internal.h (BITSET_WORD_BITS):
83998         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83999         preprocessor mishandles large unsigned values as if they were signed.
84000         Problem reported by Claudio Fontana in
84001         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84002
84003 2006-01-10  Jim Meyering  <jim@meyering.net>
84004
84005         Avoid the double-free (first in fts_read, second in fts_close) that
84006         would occur when an `active' directory is made inaccessible (e.g.,
84007         via chmod a-x) during a traversal.
84008         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84009         before returning.  Reproduce this failure by
84010         mkdir -p a/b; cd a; chmod a-x . b
84011         Reported by Stavros Passas.
84012
84013         Sync from coreutils.
84014         * lib/sha1.c: Tweak grammar in a comment.
84015
84016 2006-01-10  Jim Meyering  <jim@meyering.net>
84017
84018         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84019         Patch by Joerg Sonnenberger.
84020
84021 2006-01-10  Bruno Haible  <bruno@clisp.org>
84022
84023         * modules/readutmp: Depend on module free.
84024         * modules/strtok_r: Depend on module restrict.
84025
84026 2006-01-10  Bruno Haible  <bruno@clisp.org>
84027
84028         * modules/gettext (configure.ac): Add an invocation of
84029         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84030
84031 2006-01-10  Bruno Haible  <bruno@clisp.org>
84032
84033         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84034         Reported by Werner Lemberg <wl@gnu.org>.
84035
84036 2006-01-10  Bruno Haible  <bruno@clisp.org>
84037
84038         * lib/localcharset.c: Update from GNU gettext.
84039
84040 2006-01-10  Bruno Haible  <bruno@clisp.org>
84041
84042         * lib/argp.h (__const): Remove macro. Use const instead.
84043         * lib/argp-fmtstream.h (__const): Likewise.
84044         * lib/glob_.h (__const): Remove macro.
84045         * lib/glob-libc.h: Use const instead of __const.
84046
84047 2006-01-10  Bruno Haible  <bruno@clisp.org>
84048
84049         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84050         variable.
84051         Needed to avoid an automake error regarding the 'gettext' module.
84052
84053 2006-01-09  Simon Josefsson  <jas@extundo.com>
84054
84055         * modules/inet_ntop (Depends-on): Add restrict.
84056
84057 2006-01-09  Simon Josefsson  <jas@extundo.com>
84058
84059         * modules/gc-rijndael-tests (License): Put under LGPL.
84060
84061         * modules/gc-des-tests (License): Likewise.
84062
84063         * modules/gc-arcfour-tests (License): Likewise.
84064
84065         * modules/gc-arctwo-tests (License): Likewise.
84066
84067         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84068
84069         * modules/gc-hmac-sha1-tests (Files): Likewise.
84070
84071         * modules/gc-hmac-md5-tests (License): Likewise.
84072
84073         * modules/gc-sha1-tests (License): Likewise.
84074
84075         * modules/gc-md5-tests (License): Likewise.
84076
84077         * modules/gc-md4-tests (License): Likewise.
84078
84079         * modules/gc-md2-tests (License): Likewise.
84080
84081         * modules/gc-tests (License): Likewise.
84082
84083         * modules/des-tests (License): Likewise.
84084
84085         * modules/md4-tests (License): Likewise.
84086
84087         * modules/md2-tests (License): Likewise.
84088
84089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84090
84091         Sync from coreutils:
84092
84093         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84094         * modules/lib-ignore: New file.
84095         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84096         chdir-safer.m4, lchmod.m4.
84097         * modules/openat: Add mkdirat.c, openat-priv.h.
84098
84099 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84100
84101         Sync from coreutils.
84102         * m4/lib-ignore.m4: New file.
84103         * m4/lchmod.m4: New file.
84104
84105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84106
84107         Sync from coreutils.
84108         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84109         for write access: POSIX says that must fail.
84110         * lib/fts.c (diropen): Likewise.
84111         * lib/save-cwd.c (save_cwd): Likewise.
84112         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84113         well, for minor improvements on hosts that lack O_DIRECTORY.
84114         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84115         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84116         Fall back on chown if open failed with EACCES.
84117
84118         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84119         Report an error at compile-time if only a 1-second nominal clock
84120         resolution is found.
84121
84122         * lib/lchmod.h: New file.
84123         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84124         (make_dir_parents): Use lchown rather than chown, and
84125         lchmod rather than chmod.
84126
84127         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84128         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84129         "proc" reported by n0dalus.
84130
84131         * lib/mountlist.c: Include <limits.h>.
84132         (dev_from_mount_options)
84133         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84134         New function.  It no longer assumes "dev=" has the System V meaning
84135         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84136         (read_file_system_list)
84137         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84138         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84139         dev= in that case.
84140
84141         * lib/posixtm.h (PDS_PRE_2000): New macro.
84142         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84143         allow_century.  All usages changed.  Reject dates outside the range
84144         1969-1999 if PDS_PRE_2000 is used.
84145
84146 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84147
84148         Sync from coreutils.
84149         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84150         (Time of day items): Mention the possibility of leap seconds.
84151         Problem reported by Dr. David Alan Gilbert.
84152
84153 2006-01-09  Jim Meyering  <jim@meyering.net>
84154
84155         Sync from coreutils.
84156
84157         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84158
84159         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84160
84161         * lib/modechange.c (mode_compile): Reject an invalid mode string
84162         that starts with an octal digit.  From Andreas Gruenbacher.
84163
84164         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84165         and dup to open_safer and dup_safer, respectively.
84166         (openat_permissive): Fix typo in comment.
84167
84168         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84169         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84170         (_): Remove; no longer needed.
84171         (openat): Renamed from rpl_openat; no need for rpl_openat
84172         since openat.h renames openat for us.
84173         Replace most of the body with a call to openat_permissive,
84174         to avoid duplicate code.
84175         Port to (probably hypothetical) environments were mode_t is
84176         wider than int.
84177         (openat_permissive): Require mode arg, so that we can check
84178         types better.  Put it just after flags.  Change cwd failure
84179         indicator from pointer-to-bool to pointer-to-errno-value.
84180         All callers changed.
84181         Invoke openat_save_fail and/or openat_restore_fail if
84182         cwd_errno is null, so that openat can call us.
84183         (openat_permissive, fdopendir, fstatat, unlinkat):
84184         Simplify errno handling to avoid some duplicate code,
84185         as it's OK to set errno on success.
84186         * lib/openat.h: Revamp code so that function macros depend on
84187         __OPENAT_PREFIX only, not also on AT_FDCWD.
84188         (openat_ro): Remove.  Caller changed to use openat_permissive.
84189         (openat_permissive): Now a macro, if not a function.
84190         (openat_restore_fail, openat_save_fail): Now always functions,
84191         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84192
84193         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84194         and openat.c.
84195         * lib/mkdirat.c: Include openat-priv.h.
84196         Remove definitions of macros defined therein.
84197         * lib/openat.c: Likewise.
84198
84199         * lib/mkdirat.c (mkdirat): New file and function.
84200         * lib/openat.h (mkdirat): Declare.
84201
84202         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84203
84204         * lib/openat.h (openat_permissive): Declare.
84205         (openat_ro): Define.
84206
84207         * lib/openat.c (EXPECTED_ERRNO): New macro.
84208         (openat_permissive): New function -- used in remove.c rewrite.
84209         (all functions): Set errno just before returning, only if there
84210         was an actual failure.
84211         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84212
84213         Emulate openat-family functions using Linux's procfs, if possible.
84214         Idea and some code based on Ulrich Drepper's glibc changes.
84215
84216         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84217         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84218         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84219         before falling back on save_cwd and restore_cwd.
84220         (fdopendir, fstatat, unlinkat): Likewise.
84221
84222         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84223         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84224
84225         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84226         as second argument to va_arg.  Otherwise, some versions of gcc
84227         warn that `if this code is reached, the program will abort'.
84228
84229 2006-01-09  Jim Meyering  <jim@meyering.net>
84230
84231         Sync from coreutils.
84232         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84233         Require openat-priv.h.
84234
84235 2006-01-09  Bruno Haible  <bruno@clisp.org>
84236
84237         * modules/strnlen (Include): Use strnlen.h.
84238
84239 2006-01-09  Bruno Haible  <bruno@clisp.org>
84240
84241         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84242
84243 2006-01-09  Bruno Haible  <bruno@clisp.org>
84244
84245         * lib/sysexit_.h (EX_OK): New macro.
84246         Suggested by Martin Lambers <marlam@marlam.de>.
84247
84248 2006-01-09  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84251         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84252
84253 2006-01-09  Bruno Haible  <bruno@clisp.org>
84254
84255         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84256         numbers.
84257
84258 2006-01-09  Bruno Haible  <bruno@clisp.org>
84259
84260         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84261         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84262         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84263         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84264
84265 2006-01-09  Bruno Haible  <bruno@clisp.org>
84266
84267         * build-aux/javacomp.sh.in: New file, moved from lib/.
84268         * modules/javacomp-script (Files): Update.
84269         (configure.ac): Add AC_CONFIG_FILES invocation.
84270         (EXTRA_DIST): Remove variable.
84271
84272         * build-aux/javaexec.sh.in: New file, moved from lib/.
84273         * modules/javaexec (Files): Update.
84274         (configure.ac): Add AC_CONFIG_FILES invocation.
84275         (EXTRA_DIST): Remove javaexec.sh.in.
84276
84277         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84278         * modules/csharpcomp-script (Files): Update.
84279         (configure.ac): Add AC_CONFIG_FILES invocation.
84280         (EXTRA_DIST): Remove variable.
84281
84282         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84283         * modules/csharpexec (Files): Update.
84284         (configure.ac): Add AC_CONFIG_FILES invocation.
84285         (EXTRA_DIST): Remove csharpexec.sh.in.
84286
84287 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84288
84289         Sync from coreutils.
84290
84291         Add POSIX ACL support
84292         * lib/acl.h (copy_acl, set_acl): Add declarations.
84293         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84294         systems other than Linux.
84295         (chmod_or_fchmod): New function: use fchmod when possible,
84296         and chmod otherwise.
84297         (file_has_acl): Add a POSIX ACL implementation, with a
84298         Linux-specific subcase.
84299         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84300         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84301         acls are unsupported.
84302         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84303         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84304         are unsupported.
84305
84306 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84307
84308         Sync from coreutils.
84309         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84310
84311 2006-01-07  Bruno Haible  <bruno@clisp.org>
84312
84313         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84314         gl_EARLY.
84315
84316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84319         Problem reported for Mingw by Mark Junker.
84320
84321 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * README: Gnulib normally doesn't generate a tarball.
84324
84325 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84328         long int, not int, for nanosecond counts, so that people who are
84329         used to POSIX struct timespec won't be surprised.  Reported by Jim
84330         Meyering.
84331
84332 2005-12-28  Bruno Haible  <bruno@clisp.org>
84333
84334         * build-aux/config.rpath: Update from GNU gettext.
84335
84336 2005-12-16  Jim Meyering  <jim@meyering.net>
84337
84338         * modules/fprintftime: New module.
84339         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84340
84341 2005-12-16  Jim Meyering  <jim@meyering.net>
84342
84343         * m4/fprintftime.m4: New file.
84344
84345 2005-12-16  Jim Meyering  <jim@meyering.net>
84346
84347         * lib/fprintftime.c, lib/fprintftime.h: New files.
84348
84349 2005-12-15  Simon Josefsson  <jas@extundo.com>
84350
84351         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84352         new m4/socklen.m4.
84353
84354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84355
84356         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84357         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84358
84359 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84360
84361         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84362         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84363         struct uparams is valid. Fall back to the default values if it is
84364         not.
84365
84366 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84367
84368         * modules/argp (Files): Add argp-pin.c
84369         (Depends-on): dirname
84370         (lib_SOURCES): Add argp-pin.c
84371
84372 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84373
84374         * m4/argp.m4:  Check if program_invocation_name and
84375         program_invocation_short_name are declared and define appropriate
84376         macros if they are not.
84377
84378 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84379
84380         * lib/argp-help.c (__argp_base_name): New function
84381         (__argp_short_program_name): Rewrite using __argp_base_name
84382         * lib/argp-namefrob.h: Define program_invocation_name and
84383         program_invocation_short_name if requested
84384         (__argp_base_name): Add prototype
84385         * lib/argp-parse.c (argp_def): Use gettext wrappers
84386         (argp_default_parser): Use __argp_base_name
84387         * lib/argp-pin.c: New file. Defines program_invocation_name and
84388         program_invocation_short_name on systems that lack them.
84389
84390 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84393         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84394         porting problem reported by Georg Schwarz in
84395         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84396
84397 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84398
84399         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84400         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84401         porting problem reported by Georg Schwarz in
84402         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84403
84404 2005-12-05  Bruno Haible  <bruno@clisp.org>
84405
84406         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84407         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84408         Reported by Mark Junker <mjscod@gmx.de>.
84409
84410 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84411
84412         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84413         Use implementation from Albert Chin, with some
84414         comments/corrections by Stepan Kasal and myself.
84415
84416 2005-12-02  Bruno Haible  <bruno@clisp.org>
84417
84418         * gnulib-tool (func_import): Accept GPLed build tool modules when
84419         --lgpl is given.
84420         * modules/csharpcomp-script: New file.
84421         * modules/csharpcomp: Depend on it.
84422         * modules/javacomp-script: New file.
84423         * modules/javacomp: Depend on it.
84424         Suggested by Simon Josefsson.
84425
84426 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84427
84428         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84429         statement, to work around an HP-UX 10.20 compiler bug reported by
84430         Peter O'Gorman.
84431
84432 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84433
84434         * modules/savedir (Depends-on): Add openat.
84435
84436 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84439         (uintmax_t) [defined uintmax_t]: Do not declare.
84440         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84441         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84442         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84443         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84444         sake of portability to weird hosts that C allows (though we don't
84445         know of any practical examples).
84446
84447         * lib/savedir.h (fdsavedir): New decl.
84448         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84449         contains most of the former guts of savedir.
84450         (savedir): Use savedirstream.
84451         Include "openat.h".
84452
84453 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * modules/obstack (Files): Add m4/ulonglong.m4.
84456         Problem reported by Davide Angelocola.
84457
84458 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84459
84460         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84461         coreutils no longer futzes with rounding modes.
84462
84463 2005-11-14  Jim Meyering  <jim@meyering.net>
84464
84465         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84466         replacement of mkstemp.
84467
84468 2005-11-10  Simon Josefsson  <jas@extundo.com>
84469
84470         * lib/readline.c: Remove EOL.
84471
84472 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84473
84474         * modules/gethrxtime (Depends-on): Add gettime.
84475
84476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84477
84478         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84479         or gettimeofday; no longer needed.
84480
84481 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84484         time business.
84485         (gethrxtime) [! (HAVE_NANOUPTIME
84486         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84487         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84488         our own approximation.
84489
84490 2005-11-08  Eric Blake  <ebb9@byu.net>
84491
84492         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84493
84494 2005-11-08  Eric Blake  <ebb9@byu.net>
84495
84496         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84497
84498 2005-11-04  Bruno Haible  <bruno@clisp.org>
84499
84500         * gnulib-tool: Implement --update mode.
84501
84502 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84503
84504         Fix porting problem reported by Theodoros V. Kalamatianos.
84505         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84506         Don't assume that futimes failing means we must fail.
84507
84508 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84509
84510         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84511         variables to suggest the intended function of the PATH_MAX check.
84512
84513 2005-10-30  Kean Johnston  <jkj@sco.com>
84514
84515         Trivial changes to support SCO systems.
84516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84517         as PATH_MAX.
84518         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84519         where __ptr is null when no I/O is pending.
84520
84521 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84522
84523         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84524         leave errno alone.  Problem reported by Dmitry V. Levin.
84525
84526 2005-10-28  Simon Josefsson  <jas@extundo.com>
84527
84528         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84529         Test more.
84530
84531         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84532
84533         * modules/md2, modules/md2-tests: New files.
84534
84535 2005-10-28  Simon Josefsson  <jas@extundo.com>
84536
84537         * m4/inet_ntop.m4: More tests.
84538
84539         * m4/gc-md2.m4, md2.m4: New file.
84540
84541 2005-10-28  Simon Josefsson  <jas@extundo.com>
84542
84543         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84544         "restrict" keywords, as per POSIX.  Protect the function
84545         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84546         Don't use K&R prototypes.  Check the sprintf return values.
84547         Re-define EAFNOSUPPORT if not present.  Indent.
84548
84549         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84550         suggested by Bruno Haible <bruno@clisp.org>.
84551
84552         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84553
84554         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84555
84556         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84557         libgcrypt).
84558
84559         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84560
84561         * lib/md2.h, lib/md2.c: New files.
84562
84563 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84564
84565         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84566         errno alone.  Problem reported by Frederic Jolliton.
84567
84568 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * modules/verify (License): Change from GPL to LGPL.  This is a
84571         tiny module and there are apparently near-equivalents that are
84572         under the BSD license.
84573
84574 2005-10-24  Simon Josefsson  <jas@extundo.com>
84575
84576         * modules/sha1: Relicense to LGPL.
84577
84578 2005-10-24  Simon Josefsson  <jas@extundo.com>
84579
84580         * lib/md4.h: Shrink buffer size, now that we changed the type.
84581
84582 2005-10-23  Simon Josefsson  <jas@extundo.com>
84583
84584         * gnulib-tool (func_import): Fix --tests-base.
84585
84586 2005-10-22  Simon Josefsson  <jas@extundo.com>
84587
84588         * modules/arcfour (Depends-on): Need stdint.
84589
84590 2005-10-22  Simon Josefsson  <jas@extundo.com>
84591
84592         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84593         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84594
84595 2005-10-22  Simon Josefsson  <jas@extundo.com>
84596
84597         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84598         suggested by Bruno Haible <bruno@clisp.org>.
84599
84600 2005-10-22  Simon Josefsson  <jas@extundo.com>
84601
84602         * lib/crc.h: Include stddef.h, for size_t.
84603
84604 2005-10-22  Simon Josefsson  <jas@extundo.com>
84605
84606         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84607         arcfour_context struct (simplify test vector testing in GNU
84608         Shishi).
84609
84610 2005-10-21  Simon Josefsson  <jas@extundo.com>
84611
84612         * modules/des, modules/des-tests: New files.
84613
84614         * modules/gc-des, modules/gc-des-tests: New files.
84615
84616         * tests/test-des.c, tests/test-gc-des.c: New file.
84617
84618 2005-10-21  Simon Josefsson  <jas@extundo.com>
84619
84620         * modules/arctwo, modules/arctwo-tests: New files.
84621
84622         * tests/test-arctwo.c: New file.
84623
84624         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84625
84626         * tests/test-gc-arctwo.c: New file.
84627
84628 2005-10-21  Simon Josefsson  <jas@extundo.com>
84629
84630         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84631         Bruno Haible <bruno@clisp.org>.
84632
84633         * m4/gc-des.m4: New file.
84634
84635 2005-10-21  Simon Josefsson  <jas@extundo.com>
84636
84637         * m4/arctwo.m4: New file.
84638
84639         * m4/gc-arctwo.m4: New file.
84640
84641 2005-10-21  Simon Josefsson  <jas@extundo.com>
84642
84643         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84644         block.
84645
84646 2005-10-21  Simon Josefsson  <jas@extundo.com>
84647
84648         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84649         <bruno@clisp.org>.
84650
84651         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84652
84653         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84654         Bruno Haible <bruno@clisp.org>.
84655
84656         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84657         <bruno@clisp.org>.
84658
84659 2005-10-21  Simon Josefsson  <jas@extundo.com>
84660
84661         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84662
84663 2005-10-21  Simon Josefsson  <jas@extundo.com>
84664
84665         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84666
84667 2005-10-21  Simon Josefsson  <jas@extundo.com>
84668
84669         * lib/des.h, lib/des.c: New files.
84670
84671         * lib/gc-gnulib.c: Support DES.c
84672
84673 2005-10-21  Simon Josefsson  <jas@extundo.com>
84674
84675         * lib/arctwo.h, lib/arctwo.c: New files.
84676
84677         * lib/gc-gnulib.c: Support ARCTWO.
84678
84679 2005-10-21  Simon Josefsson  <jas@extundo.com>
84680
84681         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84682         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84683
84684 2005-10-21  Simon Josefsson  <jas@extundo.com>
84685
84686         * gnulib-tool (func_import, func_create_testdir): Define automake
84687         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84688         Makefile.am snippet),
84689         suggested by Bruno Haible <bruno@clisp.org>.
84690
84691         * modules/gc (Makefile.am): Use it.
84692
84693 2005-10-21  Bruno Haible  <bruno@clisp.org>
84694
84695         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84696         patch.
84697
84698 2005-10-19  Simon Josefsson  <jas@extundo.com>
84699
84700         * tests/test-gc-rijndael.c: New file.
84701
84702         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84703
84704 2005-10-19  Simon Josefsson  <jas@extundo.com>
84705
84706         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84707         interface too.
84708
84709 2005-10-19  Simon Josefsson  <jas@extundo.com>
84710
84711         * tests/test-gc-arcfour.c: New file.
84712
84713         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84714
84715 2005-10-19  Simon Josefsson  <jas@extundo.com>
84716
84717         * modules/gc-md4, modules/gc-md4-tests: New file.
84718
84719         * tests/test-gc-md4.c: New file.
84720
84721 2005-10-19  Simon Josefsson  <jas@extundo.com>
84722
84723         * m4/gc-md4.m4: New file.
84724
84725 2005-10-19  Simon Josefsson  <jas@extundo.com>
84726
84727         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84728         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84729         <kasal@ucw.cz>.
84730
84731 2005-10-19  Simon Josefsson  <jas@extundo.com>
84732
84733         * m4/gc-arcfour.m4: New file.
84734
84735         * m4/gc-rijndael.m4: New file.
84736
84737 2005-10-19  Simon Josefsson  <jas@extundo.com>
84738
84739         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84740
84741 2005-10-19  Simon Josefsson  <jas@extundo.com>
84742
84743         * lib/gc-gnulib.c: Support ARCFOUR.
84744
84745 2005-10-19  Simon Josefsson  <jas@extundo.com>
84746
84747         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84748         support.
84749
84750         * lib/gc.h: Add ECB enum type.
84751
84752         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84753
84754 2005-10-18  Simon Josefsson  <jas@extundo.com>
84755
84756         * tests/test-md5.c: New file.
84757
84758         * modules/md5-tests: New file.
84759
84760 2005-10-18  Simon Josefsson  <jas@extundo.com>
84761
84762         * tests/test-md4.c: New file.
84763
84764         * modules/md4, modules/md4-tests: New files.
84765
84766 2005-10-18  Simon Josefsson  <jas@extundo.com>
84767
84768         * m4/md4.m4: New file.
84769
84770 2005-10-18  Simon Josefsson  <jas@extundo.com>
84771
84772         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84773
84774 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84775
84776         * gnulib-tool (func_create_testdir): Omit the second check whether
84777         BUILT_SOURCES in nonempty.
84778
84779 2005-10-17  Simon Josefsson  <jas@extundo.com>
84780
84781         * tests/test-rijndael.c: New file.
84782
84783 2005-10-17  Simon Josefsson  <jas@extundo.com>
84784
84785         * modules/sha1: Depend on stdint instead of md5.
84786
84787         * modules/md5: Depend on stdint, remove uint32_t.
84788
84789 2005-10-17  Simon Josefsson  <jas@extundo.com>
84790
84791         * modules/gc-sha1-tests: New file.
84792
84793         * tests/test-gc-sha1.c: New file.
84794
84795 2005-10-17  Simon Josefsson  <jas@extundo.com>
84796
84797         * m4/md5.m4: Remove call to uint32_t.m4.
84798
84799 2005-10-17  Simon Josefsson  <jas@extundo.com>
84800
84801         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84802
84803         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84804         md5.h.
84805
84806         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84807
84808         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84809
84810 2005-10-17  Simon Josefsson  <jas@extundo.com>
84811
84812         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84813
84814 2005-10-17  Simon Josefsson  <jas@extundo.com>
84815
84816         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84817
84818 2005-10-17  Simon Josefsson  <jas@extundo.com>
84819
84820         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84821
84822         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84823
84824 2005-10-17  Bruno Haible  <bruno@clisp.org>
84825
84826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84827         that it can also be used in a test.
84828
84829 2005-10-16  Bruno Haible  <bruno@clisp.org>
84830
84831         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84832         TESTS_ENVIRONMENT, so that individual tests can augment it.
84833
84834         * gnulib-tool (func_create_testdir): Use an intermediate target for
84835         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84836         macros, like $(ALLOCA_H), which cannot be passed through the command
84837         line.
84838
84839 2005-10-15  Simon Josefsson  <jas@extundo.com>
84840
84841         * modules/rijndael-tests: New file.
84842
84843         * modules/rijndael: New file.
84844
84845 2005-10-15  Simon Josefsson  <jas@extundo.com>
84846
84847         * m4/rijndael.m4: New file.
84848
84849 2005-10-15  Simon Josefsson  <jas@extundo.com>
84850
84851         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84852
84853         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84854
84855 2005-10-14  Simon Josefsson  <jas@extundo.com>
84856
84857         * tests/test-arcfour.c: New file.
84858
84859         * modules/arcfour, modules/arcfour-tests: New files.
84860
84861 2005-10-14  Simon Josefsson  <jas@extundo.com>
84862
84863         * m4/arcfour.m4: New file.
84864
84865 2005-10-14  Simon Josefsson  <jas@extundo.com>
84866
84867         * lib/arcfour.h, lib/arcfour.c: New files.
84868
84869 2005-10-14  Roland McGrath  <roland@redhat.com>
84870
84871         Import from libc.  [BZ #1331]
84872         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84873         macro argument.
84874         Reported by Matej Vela <vela@debian.org>.
84875
84876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84877
84878         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84879         include <wchar.h>; no longer needed.
84880
84881 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84882
84883         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84884
84885 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84886         and  Ulrich Drepper  <drepper@redhat.com>
84887
84888         Import from libc.
84889         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84890         instead of inline stream orientation test and two separate
84891         function calls.  Pay no attention to USE_IN_LIBIO.
84892
84893 2005-10-13  Simon Josefsson  <jas@extundo.com>
84894
84895         * modules/gc-hmac-md5-tests: New file.
84896
84897         * tests/test-gc-hmac-sha1.c: New file.
84898
84899         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84900
84901         * modules/gc-hmac-md5-tests: New file.
84902
84903         * tests/test-gc-md5.c: New file.
84904
84905         * modules/gc-md5-tests: New file.
84906
84907 2005-10-13  Simon Josefsson  <jas@extundo.com>
84908
84909         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84910         Move memory allocation outside of loop.
84911
84912 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84915         intermediate directory is in a read-only file system.  Problem
84916         reported by Eric Blake.
84917
84918 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84919
84920         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84921
84922 2005-10-12  Simon Josefsson  <jas@extundo.com>
84923
84924         * tests/test-hmac-sha1.c: New file.
84925
84926         * modules/hmac-sha1-tests: New file.
84927
84928         * modules/hmac-sha1: New file.
84929
84930 2005-10-12  Simon Josefsson  <jas@extundo.com>
84931
84932         * modules/gc-sha1: New file.
84933
84934 2005-10-12  Simon Josefsson  <jas@extundo.com>
84935
84936         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84937
84938         * tests/test-gc-pbkdf2-sha1.c: New file.
84939
84940 2005-10-12  Simon Josefsson  <jas@extundo.com>
84941
84942         * modules/gc-md5, modules/gc-hmac-md5: New files.
84943
84944         * modules/gc (Files): Remove md5, memxor and hmac files.
84945
84946 2005-10-12  Simon Josefsson  <jas@extundo.com>
84947
84948         * m4/gc-pbkdf2-sha1.m4: New file.
84949
84950         * m4/gc-hmac-sha1.m4: New file.
84951
84952         * m4/gc-sha1: New file.
84953
84954         * m4/hmac-sha1.m4: New file.
84955
84956 2005-10-12  Simon Josefsson  <jas@extundo.com>
84957
84958         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84959
84960         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84961
84962 2005-10-12  Simon Josefsson  <jas@extundo.com>
84963
84964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84965         suggested by Bruno Haible <bruno@clisp.org>.
84966
84967 2005-10-12  Simon Josefsson  <jas@extundo.com>
84968
84969         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84970
84971 2005-10-12  Simon Josefsson  <jas@extundo.com>
84972
84973         * lib/gc-pbkdf2-sha1.c: New file.
84974
84975         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84976
84977 2005-10-12  Simon Josefsson  <jas@extundo.com>
84978
84979         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84980
84981         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84982
84983 2005-10-12  Simon Josefsson  <jas@extundo.com>
84984
84985         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84986         GC_USE_HMAC_MD5, respectively.
84987
84988         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84989         (gc_md5): Fix typo.
84990
84991         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84992
84993         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84994
84995         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84996
84997 2005-10-12  Bruno Haible  <bruno@clisp.org>
84998
84999         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85000         Reported by Stepan Kasal <kasal@ucw.cz>.
85001
85002 2005-10-11  Simon Josefsson  <jas@extundo.com>
85003
85004         * tests/test-crc.c: New file.
85005
85006         * modules/crc, modules/crc-tests: New files.
85007
85008 2005-10-11  Simon Josefsson  <jas@extundo.com>
85009
85010         * m4/crc.m4: New file.
85011
85012 2005-10-11  Simon Josefsson  <jas@extundo.com>
85013
85014         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85015
85016         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85017
85018         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85019
85020 2005-10-11  Simon Josefsson  <jas@extundo.com>
85021
85022         * lib/crc.h, lib/crc.c: New files.
85023
85024         * lib/gc.h (gc_hash_buffer): Add doc.
85025
85026 2005-10-11  Bruno Haible  <bruno@clisp.org>
85027
85028         * modules/c-strcasestr: New file.
85029         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85030
85031 2005-10-11  Bruno Haible  <bruno@clisp.org>
85032
85033         * modules/c-strcase: New file.
85034         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85035
85036 2005-10-11  Bruno Haible  <bruno@clisp.org>
85037
85038         * lib/strcasecmp.c: Include limits.h.
85039         (strcasecmp): Avoid integer overflow on exotic platforms.
85040         * lib/strncasecmp.c: Include limits.h.
85041         (strncasecmp): Avoid integer overflow on exotic platforms.
85042         Reported by Paul Eggert.
85043
85044 2005-10-11  Bruno Haible  <bruno@clisp.org>
85045
85046         * lib/c-strcasestr.h: New file, from GNU gettext.
85047         * lib/c-strcasestr.c: New file, from GNU gettext.
85048
85049 2005-10-11  Bruno Haible  <bruno@clisp.org>
85050
85051         * lib/c-strcase.h: New file, from GNU gettext.
85052         * lib/c-strcasecmp.c: New file, from GNU gettext.
85053         * lib/c-strncasecmp.c: New file, from GNU gettext.
85054
85055 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85056
85057         * modules/mempcpy (License): GPL -> LGPL.
85058         * modules/strchrnul (License): Likewise.
85059         * modules/sysexits (License): Likewise.
85060
85061 2005-10-08  Simon Josefsson  <jas@extundo.com>
85062
85063         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85064
85065 2005-10-07  Simon Josefsson  <jas@extundo.com>
85066
85067         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85068
85069 2005-10-06  Simon Josefsson  <jas@extundo.com>
85070
85071         * tests/test-hmac-md5.c: New file.
85072
85073         * modules/hmac-md5-tests: New file.
85074
85075         * modules/hmac-md5: New file.
85076
85077 2005-10-06  Simon Josefsson  <jas@extundo.com>
85078
85079         * m4/hmac-md5.m4: New file.
85080
85081         * m4/memxor.m4: Require gl_C_RESTRICT.
85082
85083 2005-10-06  Simon Josefsson  <jas@extundo.com>
85084
85085         * lib/memxor.c (memxor): Avoid casts and warnings.
85086
85087 2005-10-06  Simon Josefsson  <jas@extundo.com>
85088
85089         * lib/hmac-md5.c: New file.
85090
85091         * lib/hmac.h: New file.
85092
85093 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85094
85095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85096         promotes to int, not unsigned int, to catch the AIX 5.3
85097         compiler bug.
85098
85099 2005-10-05  Simon Josefsson  <jas@extundo.com>
85100
85101         * modules/memxor: New file.
85102
85103         * modules/iconv (Files): Move config.rpath to havelib, it is used
85104         there.
85105
85106         * modules/havelib (Files): Add config.rpath.
85107
85108 2005-10-05  Simon Josefsson  <jas@extundo.com>
85109
85110         * m4/memxor.m4: New file.
85111
85112 2005-10-05  Simon Josefsson  <jas@extundo.com>
85113
85114         * lib/memxor.c (memxor): Fix compiler error.
85115
85116         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85117         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85118
85119         * lib/memxor.h, lib/memxor.c: New files.
85120
85121         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85122         we assume all systems have it, suggested by Jim Meyering
85123         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85124         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85125         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85126         same reasons.
85127
85128 2005-10-05  Simon Josefsson  <jas@extundo.com>
85129
85130         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85131
85132 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85135         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85136         needed, since the source code now assumes these .h files.
85137
85138 2005-10-05  Derek Price  <derek@ximbiot.com>
85139
85140         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85141
85142 2005-10-05  Bruno Haible  <bruno@clisp.org>
85143
85144         * modules/stdint (License): Change to LGPL.
85145
85146 2005-10-04  Simon Josefsson  <jas@extundo.com>
85147
85148         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85149         D. Baushke" <mdb@gnu.org>.
85150
85151 2005-10-04  Bruno Haible  <bruno@clisp.org>
85152
85153         * lib/verify.h (verify_true): Provide alternative definition for C++.
85154
85155 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85156
85157         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85158         (SSIZE_MAX): New macro, if not already defined.
85159         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85160         than 2 GiB.
85161
85162 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85163
85164         Sync from coreutils.
85165         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85166         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85167         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85168         ULLONG_MAX doesn't work with 2.7.2.1.
85169
85170 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85171
85172         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85173         From Ben Pfaff.
85174
85175         * modules/exclude (Depends-on): Depend on verify.
85176         * modules/strtoimax (Depends-on): Likewise.
85177         * modules/utimecmp (Depends-on): Likewise.
85178
85179 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85180
85181         * lib/exclude.c: Include verify.h.
85182         (verify): Remove.  All callers changed to use verify.h's version.
85183         * lib/strtoimax.c: Likewise.
85184         * lib/utimecmp.c: Likewis.e
85185
85186         Sync from coreutils.
85187         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85188         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85189         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85190         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85191         bother returning ENOSYS if settimeofday or stime fails; just let
85192         them return whatever errno they want to return.
85193         * lib/utimens.c: Include unistd.h, for dup2.
85194         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85195         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85196
85197 2005-10-02  Jim Meyering  <jim@meyering.net>
85198
85199         Sync from coreutils.
85200         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85201         from glibc-2.2.5 that fails for read-only files.
85202
85203 2005-10-02  Jim Meyering  <jim@meyering.net>
85204
85205         Sync from coreutils.
85206         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85207         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85208         `#if HAVE_CONFIG_H'.
85209         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85210         Remove AT_FDCWD test.
85211         Do not consume the fd unless successful.
85212         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85213         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85214         block, so that we don't even try to compile it if settimeofday is
85215         available.  This works around a compilation failure on OSF1 V5.1,
85216         due to stime requiring a `long int*' while tv_sec is `int'.
85217
85218 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85219
85220         Sync from coreutils.
85221         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85222         against `yes', rather than just testing for nonempty.
85223
85224 2005-10-01  Simon Josefsson  <jas@extundo.com>
85225
85226         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85227         and Darwin.
85228
85229         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85230         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85231         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85232         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85233         Check if struct addrinfo is declared.
85234
85235 2005-10-01  Simon Josefsson  <jas@extundo.com>
85236
85237         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85238         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85239         AI_* and EAI_* definitions.  Protect function declarations.
85240
85241 2005-10-01  Jim Meyering  <jim@meyering.net>
85242
85243         Sync from coreutils.
85244
85245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85246         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85247         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85249         in the inet and nsl libraries.  Required on Solaris 5.7.
85250
85251 2005-10-01  Jim Meyering  <jim@meyering.net>
85252
85253         Sync from coreutils.
85254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85255         in the inet and nsl libraries.  Required on Solaris 5.7.
85256
85257 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85258
85259         * lib/getdelim.c (getdelim): Remove unused variables.
85260
85261 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85262
85263         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85264         so that the code works even with ancient cpp.  Portability problem
85265         with GCC 2.7.2.1 reported by Thomas M.Ott.
85266
85267 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * modules/regex (Depends-on): Add strcase.
85270
85271         * modules/gethostname (Licence): Change from GPL to LGPL, since
85272         gethostname.c is a trivial implementation of a standard library
85273         function.
85274         * modules/poll (License): Change from GPL to LGPL, since it's
85275         derived from LGPL code.
85276
85277 2005-09-27  Jim Meyering  <jim@meyering.net>
85278
85279         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85280         HAVE_CONFIG_H.
85281
85282         * lib/intprops.h (signed_type_or_expr__): Define.
85283         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85284         for unsigned types.
85285
85286 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * lib/verify.h (verify_expr): Remove, replacing with:
85289         (verify_true): New macro that returns true instead of void.
85290         (verify_type__): Remove.
85291         (verify): Use verify_true rather than verify_type__.
85292
85293 2005-09-26  Bruno Haible  <bruno@clisp.org>
85294
85295         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85296         is necessary.
85297         (lib_SOURCES): Remove mbchar.c.
85298         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85299         (Files): Add m4/mbrtowc.m4.
85300         * modules/mbiter: Likewise.
85301         * modules/mbuiter: Likewise.
85302
85303 2005-09-26  Bruno Haible  <bruno@clisp.org>
85304
85305         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85306         compile mbchar.c if they are not both present.
85307         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85308         * m4/mbiter.m4 (gl_MBITER): Likewise.
85309         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85310         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85311         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85312
85313 2005-09-25  Jim Meyering  <jim@meyering.net>
85314
85315         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85316         also uses socklen_t.
85317
85318 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85319
85320         * lib/utimens.c (ENOSYS): Define if not already defined.
85321         (futimens): Support having a null PATH if the file descriptor
85322         is nonnegative.
85323
85324         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85325         Remove.
85326         (__attribute): Define to empty unless GCC 3.1 or later.
85327         This works around a core dump on OpenBSD 3.4, which has GCC
85328         2.95.3, which dumps core when given __attribute__(()).  It also
85329         simplifies other tests, since we really don't want to bother with
85330         worrying about which ancient version of GCC supported what.
85331         Original problem reported by Yoann Vandoorselaere, with part of
85332         the fix suggested by Derek Price.
85333
85334 2005-09-24  Jim Meyering  <jim@meyering.net>
85335
85336         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85337         so we can once again use a positive bitfield width of 1 -- now we
85338         don't have to explain why we were using a bitfield width of 2.
85339
85340 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85341
85342         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85343         and similarly for the other external symbols.  Problem reported
85344         by James Gallager.
85345
85346         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85347         bug reported by Jim Meyering.
85348
85349         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85351         not needed, since socklen is a prerequisite module.
85352
85353 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85354
85355         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85356         Problem reported by Eric Blake.
85357         (getaddrinfo): Initialize se so that it's not garbage.
85358         Redo internal storage allocation so that it doesn't make unportable
85359         assumptions about alignment.
85360         Fix a memory leak.
85361
85362         * lib/utimens.c (futimens): Use futimesat if available.
85363         Prefer it to futimes since it doesn't have the futimes bug.
85364
85365         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85366         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85367         Instead, declare a function that returns a pointer to an array,
85368         and use verify_type__ to declare the size of the array.
85369         Problem and germ of a solution reported by Bruno Haible.
85370         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85371         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85372
85373 2005-09-23  Jim Meyering  <jim@meyering.net>
85374
85375         Sync from coreutils.
85376         Correct build failure (socklen_t not defined) on at least
85377         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85379
85380 2005-09-23  Jim Meyering  <jim@meyering.net>
85381
85382         * modules/getaddrinfo (Depends-on): Add socklen.
85383
85384 2005-09-23  Bruno Haible  <bruno@clisp.org>
85385
85386         * tests/test-verify.c: New file.
85387
85388 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         Sync from coreutils.
85391
85392         * modules/argmatch (Depends-on): Add verify.
85393         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85394         unistd-safer.
85395         * modules/save-cwd (Depends-on): Likewise.
85396
85397         * modules/openat (Files): Add lib/openat-die.c.
85398         (Depends-on): Remove error, exitfail.
85399         Add dirname.
85400
85401         * modules/verify: New file.
85402         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85403         with "verify" module.
85404
85405 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85406
85407         Sync from coreutils.
85408
85409         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85410         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85411         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85412         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85413         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85414         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85415         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85416         Don't bother checking for string.h, stdlib.h, unistd.h.
85417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85418         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85419         module's job.
85420         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85421         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85422
85423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85424         (gl_GETDATE): Use it.
85425
85426         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85427
85428 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85429
85430         Sync from coreutils.
85431
85432         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85433         stat-time.h.
85434         * lib/argmatch.h: Include verify.h
85435         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85436         (ARGMATCH_ASSERT): Remove; unused.
85437         * lib/canonicalize.c: Assume STDC_HEADERS.
85438         * lib/exclude.c: Include "strcase.h".
85439         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85440         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85441         and stdio-safer.h.
85442         (getusershell): Call fopen, not fopen_safer.
85443         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85444         Do not include unistd-safer.h.
85445         (save_cwd): Don't call fd_safer; no longer needed
85446         now that we include fcntl--.h.
85447
85448         * lib/getdate.y (relative_time): New type.
85449         (RELATIVE_TIME_0): New constant.
85450         (parser_control): Use relative_time instead of doing it ourselves.
85451         (%union): Add new relative_time rel member.
85452         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85453         Now typeless.
85454         (relunit, relunit_snumber): Now of type rel.
85455         (zone, rel, relunit, get_date): Adjust to above changes.
85456
85457         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85458         Do not include unistd-safer.h.
85459         (getloadavg): Don't call fd_safer; no longer needed
85460         now that we include fcntl--.h.
85461
85462         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85463         (make_dir_parents): Treat ENOSYS like EEXIST.
85464
85465         Improve quality of diagnostics on restore_cwd failure.
85466         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85467         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85468         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85469         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85470         each time through the loop.  Do not diagnose restore_cwd failure;
85471         that is the caller's job (and perhaps the caller does not care).
85472
85473         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85474         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85475         If the file already exists but is not a directory, don't bother
85476         to try to make its parents.
85477         Close potential file descriptor leak if we can't chdir("/") (!).
85478         Don't always return true if chdir($PWD) fails; return true only
85479         if the requested action was done successfully (except for the
85480         chdir($PWD)).
85481         Don't log final directory unless we actually made it.
85482         Refactor to avoid duplicate code to fix up permissions.
85483         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85484
85485         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85486         to make it a bit faster and (I hope) clearer.
85487         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85488         Fix bug in formats like %2N.
85489
85490         * lib/verify.h: New file.
85491
85492 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         Sync from coreutils.
85495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85496
85497 2005-09-22  Jim Meyering  <jim@meyering.net>
85498
85499         Sync from coreutils.
85500
85501         * m4/lstat.m4 (gl_FUNC_LSTAT):
85502         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85503         Remove obsolete comment.
85504         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85505         * m4/xstrtod.m4: Likewise.
85506
85507         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85508
85509 2005-09-22  Jim Meyering  <jim@meyering.net>
85510
85511         Sync from coreutils.
85512
85513         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85514
85515         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85516         the .tm_year member, since otherwise gcc-4.0 would now warn about
85517         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85518
85519         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85520         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85521
85522         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85523         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85524         when run in a time zone for which daylight savings time is in effect
85525         for the starting date.
85526
85527         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85528         stop us from restricting permissions of just-created absolute-named
85529         directories.
85530         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85531         to restore initial working directory.
85532         * lib/mkdir-p.c (make_dir_parents): New parameter:
85533         different_working_dir, to tell caller if/when we change the working
85534         directory and are unable to return to the initial one.
85535         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85536         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85537         `return false'.  This fixes a bug introduced on 2004-07-30.
85538
85539         * lib/openat.c (fdopendir): Be sure to close the supplied
85540         file descriptor before returning.  This makes our replacement
85541         implementation a little closer to Solaris's, where fdopendir
85542         ties the file descriptor to the returned DIR* pointer.
85543         * lib/openat.c (unlinkat): New function.
85544         * lib/openat.h (unlinkat): Add prototype.
85545         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85546         (openat_restore_fail): Rename from openat_restore_die.
85547         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85548
85549         Provide an alternative to exiting immediately upon save_cwd or
85550         restore_cwd failure.  Now, an application can arrange e.g.,
85551         to perform a longjump in that case.
85552         * lib/openat.c: Include dirname.h.
85553         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85554         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85555         and openat_restore_die rather than calling error directly.
85556         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85557
85558         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85559         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85560         define.
85561
85562         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85563         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85564                             int utc, int nanoseconds);
85565         Background:
85566         date should not have to allocate a megabyte of virtual memory to
85567         handle a format argument like +%1048575T.  When implemented with
85568         strftime, it must allocate such a buffer, use strftime to fill it
85569         in, print it, then free it.
85570         With fprintftime, it simply prints everything and exits.
85571         With no need for memory allocation, that's one fewer way to fail.
85572         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85573         optional field width, not before, so we accept %9:z, not %:9z.
85574         (my_strftime): Be sure to use L_('x') for literals.
85575
85576         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85577         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85578         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85579         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85580         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85581         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85582         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85583         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85584         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85585         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85586         * lib/xgethostname.c, lib/xreadlink.c:
85587         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85588
85589         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85590         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85591         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85592         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85593         and don't include <sys/file.h>).
85594
85595 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85596
85597         Sync from coreutils.
85598
85599         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85600         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85601         [!LDAV_DONE]: Avoid unused variable warning.
85602
85603 2005-09-21  Bruno Haible  <bruno@clisp.org>
85604
85605         * lib/unicodeio.h (unicode_to_mb): New declaration.
85606
85607 2005-09-20  Derek Price  <derek@ximbiot.com>
85608
85609         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85610         getaddrinfo.h.
85611
85612 2005-09-20  Bruno Haible  <bruno@clisp.org>
85613
85614         * gnulib-tool: Remove trailing slashes from the values specified for
85615         --source-base, --m4-base, --tests-base, --aux-dir.
85616         Suggested by Simon Josefsson <jas@extundo.com>.
85617
85618 2005-09-20  Bruno Haible  <bruno@clisp.org>
85619
85620         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85621         func_modules_to_filelist, func_import, func_create_testdir): Make all
85622         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85623         change when gnulib-tool is invoked in a different locale.
85624
85625 2005-09-19  Simon Josefsson  <jas@extundo.com>
85626
85627         * m4/socklen.m4: Fix typo.
85628
85629 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85630
85631         Use a consistent style for including <config.h>.
85632         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85633         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85634         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85635         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85636         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85637         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85638         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85639         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85640         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85641         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85642         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85643         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85644         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85645         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85646         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85647         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85648         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85649         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85650         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85651         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85652         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85653         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85654         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85655         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85656         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85657         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85658         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85659         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85660         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85661         lib/xstrtoumax.c, lib/yesno.c:
85662         Standardize inclusion of config.h.
85663         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85664         lib/inttostr.h:  Removed inclusion of config.h from header files.
85665         * lib/inttostr.c:  Adjusted in-tree users.
85666         * lib/timespec.h: Remove superfluous warning to include config.h.
85667         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85668         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85669         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85670         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85671         config.h with HAVE_CONFIG_H.
85672
85673 2005-09-19  Jim Meyering  <jim@meyering.net>
85674
85675         * modules/pathmax (License): Change to LGPL.
85676
85677 2005-09-19  Derek Price  <derek@ximbiot.com>
85678
85679         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85680
85681 2005-09-19  Bruno Haible  <bruno@clisp.org>
85682
85683         * gnulib-tool (import): Provide default for --tests-base.
85684
85685 2005-09-19  Bruno Haible  <bruno@clisp.org>
85686
85687         * doc/quote.texi: New file, extracted from gnulib.texi.
85688         * doc/ctime.texi: New file, extracted from gnulib.texi.
85689         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85690         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85691         * doc/gnulib.texi: Include them.
85692
85693 2005-09-18  Bruno Haible  <bruno@clisp.org>
85694
85695         Portability fix.
85696         * gnulib-tool (func_readlink): New function.
85697         (func_ln_if_changed): Use it.
85698
85699 2005-09-18  Bruno Haible  <bruno@clisp.org>
85700
85701         * gnulib-tool: Support --with-tests also with --import.
85702         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85703         (func_import): Use variables $testsbase and $inctests. Emit a
85704         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85705         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85706         SUBDIRS += $testsdir.
85707         (func_create_testdir): Update.
85708
85709 2005-09-18  Bruno Haible  <bruno@clisp.org>
85710
85711         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85712         instead of $dry_run.
85713         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85714         (func_ln_if_changed): Don't handle dry-run here.
85715         (func_import): In dry-run mode, detect more precisely which actions
85716         would be performed, and don't use "...ing" verbs.
85717
85718 2005-09-18  Bruno Haible  <bruno@clisp.org>
85719
85720         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85721         (func_import): Use join on two temporary files instead of three nested
85722         loops, in order to determine which files are new or old.
85723
85724 2005-09-18  Bruno Haible  <bruno@clisp.org>
85725
85726         * gnulib-tool (func_import): Comment out code that spits out the
85727         new files with --dry-run.
85728
85729 2005-09-18  Bruno Haible  <bruno@clisp.org>
85730
85731         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85732
85733 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85734
85735         * lib/stat-time.h: New file.
85736         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85737         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85738         in a different way.
85739         (timespec_cmp): New function.
85740         * lib/utimecmp.c: Include stat-time.h.
85741         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85742         members exist, not on the obsolescent ST_MTIM_NSEC.
85743         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85744
85745 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85748
85749 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * MODULES.html.sh (File system functions): Add stat-time.
85752         * modules/stat-time: New file.
85753         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85754         is now done in a different way, by the stat-time module.
85755         * modules/utimecmp (Depends-on): Add stat-time.
85756
85757 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         * m4/st_mtim.m4: Remove.  Superseded by...
85760         * m4/stat-time.m4: New file.
85761         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85762         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85763
85764 2005-09-15  Derek Price  <derek@ximbiot.com>
85765
85766         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85767
85768 2005-09-15  Derek Price  <derek@ximbiot.com>
85769
85770         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85771         * lib/regex_internal.c: Ditto, using this...
85772         (__GNUC_PREREQ): ...new macro.
85773         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85774         using...
85775         (__GNUC_PREREQ): ...this new macro.
85776
85777         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85778
85779 2005-09-15  Derek Price  <derek@ximbiot.com>
85780             Paul Eggert  <eggert@cs.ucla.edu>
85781
85782         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85783         changes, consolidating in...
85784         * lib/regex_internal.h: ...this file.
85785
85786 2005-09-13  Jim Meyering  <jim@meyering.net>
85787
85788         * lib/canon-host.c: Filter through gnu indent and reword comments
85789         slightly.
85790         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85791
85792 2005-09-13  Derek Price  <derek@ximbiot.com>
85793
85794         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85795         failure.
85796         Reported by Jim Meyering  <jim@meyering.net>.
85797
85798 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85799
85800         * lib/base64.c: Typo.
85801         (base64_encode): Put b64str in initialized data section.
85802
85803 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         Merge glibc and coreutils changes into gnulib, plus a few
85806         extra fixes.
85807         * lib/md5.c: Use #error rather than a string.
85808         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85809         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85810         (__attribute__): Define to empty for non recent-GCC.
85811         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85812         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85813         Renamed from their non-__ counterparts, with new macros replacing
85814         them if not _LIBC.  Add __THROW attribute.
85815         (rol): Remove.
85816         (struct md5_ctx): Align buffer if using GCC.
85817         * lib/sha1.h (struct sha1_ctx): Likewise.
85818         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85819         The old name was backwards.
85820         (NOTSWAP): Remove; not used.
85821         (rol): New macro, moved here from md5.h.
85822         (sha1_process_block): Remove a FIXME that doesn't make sense.
85823
85824 2005-09-12  Derek Price  <derek@ximbiot.com>
85825
85826         Return usable errors from canon-host.
85827         * lib/canon-host.h: New file.
85828         * lib/canon-host.c (canon_host): Wrap...
85829         (canon_host_r): ...this new function, which now relies exclusively on
85830         getaddrinfo.
85831         (ch_strerror): New function.
85832         (last_cherror): New global.
85833         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85834         interface.
85835         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85836         void *.
85837         (freeaddrinfo): Free ai->ai_canonname when set.
85838
85839 2005-09-12  Derek Price  <derek@ximbiot.com>
85840
85841         Make canon-host require getaddrinfo.
85842         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85843         AC_LIBSOURCE canon-host.h.  Call...
85844         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85845         gl_GETADDRINFO.
85846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85847
85848 2005-09-12  Derek Price  <derek@ximbiot.com>
85849
85850         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85851         LGPL.
85852         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85853
85854 2005-09-12  Derek Price  <derek@ximbiot.com>
85855
85856         * lib/gai_strerror.c: Include config.h when available.  Include
85857         getaddrinfo.h before other headers to test interface.
85858         Reported by Larry Jones <lawrence.jones@ugs.com>.
85859
85860 2005-09-12  Derek Price  <derek@ximbiot.com>
85861             Paul Eggert  <eggert@cs.ucla.edu>
85862
85863         * modules/glob (Files): Add glob-libc.h.
85864
85865 2005-09-12  Derek Price  <derek@ximbiot.com>
85866             Paul Eggert  <eggert@cs.ucla.edu>
85867
85868         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85869         glob_.h, glob-libc.h.
85870         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85871
85872 2005-09-12  Derek Price  <derek@ximbiot.com>
85873             Paul Eggert  <eggert@cs.ucla.edu>
85874
85875         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85876         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85877         protecting things that should be done only in gnulib contexts.
85878         * lib/glob_.h: New file, containing only the glob things needed for
85879         gnulib.
85880         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85881         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85882         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85883         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85884         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85885         and to respect the namespace rules better.
85886
85887 2005-09-08  Simon Josefsson  <jas@extundo.com>
85888
85889         * modules/socklen: New file.
85890
85891 2005-09-08  Simon Josefsson  <jas@extundo.com>
85892
85893         * m4/socklen.m4: New file.
85894
85895 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85896
85897         * modules/utimens (Files): Add m4/utimbuf.m4, since
85898         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85899         Reported by Sergey Poznyakoff.
85900
85901 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85902
85903         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85904         definitions, since that's the preferred style in glibc.
85905         Fix a minor spacing issue, and update copyright notice to match
85906         glibc's.
85907
85908 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85909
85910         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85911
85912 2005-09-06  Simon Josefsson  <jas@extundo.com>
85913
85914         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85915         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85916
85917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85920         warning.
85921
85922 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85923
85924         * config/srclist.txt: Add glibc bug 1302.
85925
85926 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85927
85928         Change bitset word type from unsigned int to unsigned long int,
85929         as this has better performance on typical 64-bit hosts.
85930         Port bitset code to hosts with unusual word sizes.
85931         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85932         (build_collating_symbol):
85933         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85934         argument is a bitset.  This is merely a style issue, but it makes
85935         it clearer that an entire array is expected.
85936         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85937         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85938         Port to the case where bitset_word is not the same as unsigned int.
85939         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85940         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85941         Likewise.
85942         * lib/regexec.c (check_dst_limits_calc_pos_1,
85943         check_subexp_matching_top):
85944         (build_trtable, group_nodes_into_DFAstates):
85945         Likewise.
85946         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85947         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85948         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85949         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85950         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85951         * lib/regcomp.c (optimize_subexps, lower_subexp):
85952         Work even if bitset_word has holes in its bitwise representation.
85953         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85954         * lib/regexec.c (check_dst_limits_calc_pos_1,
85955         check_subexp_matching_top):
85956         Likewise.
85957         * lib/regex_internal.c (re_string_reconstruct):
85958         Don't assume UCHAR_MAX == 255.
85959         * lib/regex_internal.h (bitset_set_all): Likewise.
85960         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85961         All uses changed.
85962         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85963         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85964         All uses changed.
85965         (BITSET_WORD_MAX): New macro.
85966         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85967         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85968         (bitset_empty, bitset_copy):
85969         Prefer sizeof (bitset) to multiplying it out ourselves.
85970         (bitset_not_merge): Remove; unused.
85971         (bitset_contain): Return bool, not unsigned int with one bit on.
85972         All callers changed.
85973         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85974         alignment than re_node_set; do this by defining a new internal
85975         type struct dests_alloc and using it to allocate memory.
85976
85977 2005-09-05  Bruno Haible  <bruno@clisp.org>
85978
85979         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85980         links.
85981
85982 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85983
85984         * modules/size_max (Makefile.am): Add size_max.h
85985
85986 2005-09-04  Derek Price  <derek@ximbiot.com>
85987
85988         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85989
85990 2005-09-03  Simon Josefsson  <jas@extundo.com>
85991
85992         * gnulib-tool: Fix typo.
85993
85994 2005-09-03  Simon Josefsson  <jas@extundo.com>
85995
85996         * config/srclist.txt: Add glibc bug 1293.
85997
85998 2005-09-03  Derek Price  <derek@ximbiot.com>
85999
86000         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86001         From Larry Jones <lawrence.jones@ugs.com>.
86002
86003 2005-09-02  Simon Josefsson  <jas@extundo.com>
86004
86005         * modules/socklen: New file.
86006
86007 2005-09-02  Simon Josefsson  <jas@extundo.com>
86008
86009         * modules/havelib: New module.
86010
86011         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86012         Use havelib.
86013
86014 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86015
86016         Check for arithmetic overflow when calculating sizes, to prevent
86017         some buffer-overflow issues.  These patches are conservative, in the
86018         sense that when I couldn't determine whether an overflow was possible,
86019         I inserted a run-time check.
86020         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86021         macros.
86022         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86023         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86024         (re_xnrealloc, re_x2nrealloc): New inline functions.
86025         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86026         parse_bracket_exp):
86027         (build_equiv_class, build_charclass): Check for arithmetic overflow
86028         in size expression calculations.
86029         * lib/regex_internal.c (re_string_realloc_buffers):
86030         (build_wcs_upper_buffer, re_node_set_add_intersect):
86031         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86032         (re_dfa_add_node, register_state): Likewise.
86033         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86034         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86035         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86036         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86037
86038 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86039
86040         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86041         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86042
86043 2005-09-02  Bruno Haible  <bruno@clisp.org>
86044
86045         Support for lib vs. lib64 distinction on biarch platforms.
86046         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86047         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86049
86050 2005-09-02  Bruno Haible  <bruno@clisp.org>
86051
86052         * gnulib-tool (import): In the other first-use case, provide defaults
86053         as well.
86054
86055 2005-09-02  Bruno Haible  <bruno@clisp.org>
86056
86057         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86058         patches not yet found in the latest gettext release.
86059
86060 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86061
86062         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86063         to avoid a collision with bits/local_lim.h in glibc.
86064         All uses changed.  Problem reported by Dmitry V. Levin in
86065         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86066
86067         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86068         bugs in int versus size_t comparisons.
86069         (re_string_context_at): Fix bug where the code assumed that
86070         Idx is signed.
86071
86072         Use bool where appropriate.
86073         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86074         All callers changed.
86075         (calc_eclosure_iter): Likewise, for ROOT arg.
86076         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86077         (build_charclass_op): Likewise, for NON_MATCH arg.
86078         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86079         (re_string_construct_common): Likewise, for ICASE arg.
86080         * lib/regexec.c (re_search_2_stub, re_search_stub):
86081         Likewise, for RET_LEN arg.
86082         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86083         (set_regs): Likewise, for FL_BACKTRACK arg.
86084         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86085         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86086         (calc_eclosure_iter, parse_bracket_exp):
86087         Use bool for internal variables that are booleans.
86088         * lib/regexec.c (re_search_internal, check_matching,
86089         proceed_next_node):
86090         (set_regs, build_sifted_states, sift_states_bkref):
86091         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86092         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86093         (find_collation_sequence_value):
86094         Likewise.
86095         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86096         (re_node_set_compare):
86097         Return bool, not int. All callers changed.
86098         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86099         (build_trtable, check_node_accept): Likewise.
86100         * lib/regex_internal.h: Include stdbool.h.
86101
86102         Fix bugs uncovered when converting to bool.
86103         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86104         failure instead of charging ahead blindly.
86105         * lib/regex_internal.c (register_state): Likewise.
86106         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86107         for freeing internal storage.
86108         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86109         bitset pieces used as boolean, to avoid undefined behavior
86110         on hosts that do int overflow checking.
86111
86112 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         * config/srclist.txt: Add glibc bugs 1285-1287.
86115
86116 2005-09-01  Jim Meyering  <jim@meyering.net>
86117
86118         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86119         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86120         Require gl_STAT_MACROS, too.
86121
86122 2005-09-01  Bruno Haible  <bruno@clisp.org>
86123
86124         * gnulib-tool (import): In the first-use case, provide defaults.
86125
86126 2005-09-01  Bruno Haible  <bruno@clisp.org>
86127
86128         * gnulib-tool (func_import): Remove the .tmp files.
86129
86130 2005-09-01  Bruno Haible  <bruno@clisp.org>
86131
86132         * gnulib-tool (func_import): Fix handling of symbolic links.
86133
86134 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86135
86136         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86137         old glibc regex code mishandles strings longer than 2**31 bytes.
86138         This patch fixes this when the regex code is used in gnulib
86139         (i.e., outside glibc).
86140
86141         This patch should not affect the use of the regex code inside
86142         glibc.  No doubt this problem also needs to be handled for glibc
86143         as well, but the result will be an incompatible change to the
86144         glibc ABI, and the old ABI will have to be supported too.  That
86145         can be the the subject for another patch.
86146
86147         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86148         governing whether the rest of this patch is active.  By default,
86149         the macro is disabled and the patch has no effect.
86150         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86151         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86152         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86153         (re_match_2, re_set_registers): Use the new types.
86154         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86155         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86156         New macros.
86157         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86158         (re_string_context_at, bin_tree_t, re_dfastate_t):
86159         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86160         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86161         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86162         (re_string_char_size_at, re_string_wchar_at):
86163         (re_string_elem_size_at):
86164         Use the new types and macros to port to 64-bit hosts.
86165         Use unsigned types for internal values, so that the code
86166         mostly works even for arrays larger than SSIZE_MAX.
86167         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86168         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86169         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86170         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86171         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86172         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86173         (calc_inveclosure, parse_dup_op, build_range_exp):
86174         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86175         (fetch_number, create_token_tree, mark_opt_subexp):
86176         Likewise.
86177         * lib/regex_internal.c (re_string_construct_common,
86178         create_ci_newstate):
86179         (create_cd_newstate, re_string_allocate, re_string_construct):
86180         (re_string_realloc_buffers, build_wcs_upper_buffer):
86181         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86182         (re_string_reconstruct, re_string_peek_byte_case):
86183         (re_string_fetch_byte_case, re_string_context_at):
86184         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86185         (re_node_set_init_copy, re_node_set_add_intersect):
86186         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86187         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86188         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86189         (re_acquire_state, re_acquire_state_context, register_state):
86190         Likewise.
86191         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86192         search_cur_bkref_entry):
86193         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86194         (re_search_internal, re_search_2_stub, re_search_stub)
86195         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86196         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86197         (update_cur_sifted_state, check_dst_limits):
86198         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86199         (check_subexp_limits, sift_states_bkref, merge_state_array):
86200         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86201         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86202         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86203         (expand_bkref_cache, check_node_accept_bytes):
86204         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86205         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86206         (acquire_init_state_context, check_halt_node_context):
86207         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86208         (sift_states_backward, clean_state_log_if_needed):
86209         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86210         (find_recover_state, transit_state_sb, transit_state_mb):
86211         (transit_state_bkref, build_trtable, match_ctx_clean):
86212         Likewise.
86213         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86214         to work around an assumption that REG_MISSING is negative.
86215
86216         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86217         (seek_collating_symbol_entry) [defined _LIBC]:
86218         (lookup_collation_sequence_value) [defined _LIBC]:
86219         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86220         Use prototypes rather than old-style function definitions.
86221         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86222         (transit_state_sb) [0]:
86223         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86224
86225         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86226         rm_eo.
86227
86228         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86229         (optimize_subexps, lower_subexp):
86230         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86231         since the signed shift might overflow.  Use 1u<<31 instead.
86232         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86233         Likewise.
86234         * lib/regexec.c (check_dst_limits_calc_pos_1,
86235         check_subexp_matching_top): Likewise.
86236
86237         * lib/regcomp.c (optimize_subexps, lower_subexp):
86238         Use CHAR_BIT rather than 8, for clarity.
86239         * lib/regexec.c (check_dst_limits_calc_pos_1):
86240         (check_subexp_matching_top): Likewise.
86241         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86242         have to worry about portability issues when shifting it left.
86243         Remove no-longer-needed test for table_size > 0.
86244         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86245         in a word, as the resulting behavior is undefined.
86246         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86247         in one case, a <= should have been an <, and in another case the
86248         whole test was missing.
86249         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86250         the standard name CHAR_BIT.
86251         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86252         this is not true on one's complement and signed-magnitude hosts.
86253
86254         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86255         next_last_offset.
86256         (struct re_dfa_t): Remove unused member states_alloc.
86257         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86258
86259 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86260
86261         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86262         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86263         and large-file glibc and in 32-bit large-file Solaris.
86264
86265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86266
86267         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86268         lengths fit in regoff_t; this isn't true if regoff_t is the same
86269         width as size_t.
86270         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86271         (= START + RANGE) instead of RANGE.  This avoids overflow
86272         problems when regoff_t is the same width as size_t.
86273         All callers changed.
86274         (re_search_2_stub): Check for overflow when adding the
86275         sizes of the two strings.
86276         (re_search_stub): Check for overflow when adding START
86277         to RANGE; if it occurs, substitute the extreme value.
86278
86279 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86280
86281         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86282
86283 2005-08-31  Jim Meyering  <jim@meyering.net>
86284
86285         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86286         a pointer-to-const.
86287         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86288         (register_state): Likewise.
86289         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86290         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86291         (group_nodes_into_DFAstates): Likewise.
86292
86293 2005-08-31  Jim Meyering  <jim@meyering.net>
86294
86295         * check-module: Add a FIXME comment.
86296
86297 2005-08-31  Eric Blake  <ebb9@byu.net>
86298
86299         * modules/unistd-safer (Files): Add unistd--.h.
86300         * modules/stdio-safer (Files): Add stdio--.h.
86301
86302 2005-08-31  Derek Price  <derek@ximbiot.com>
86303
86304         * lib/getdelim.c (getdelim): Return EOF on EOF.
86305         Reported by Larry Jones <lawrence.jones@ugs.com>.
86306
86307 2005-08-31  Bruno Haible  <bruno@clisp.org>
86308
86309         Avoid unnecessary diffs in the generated lib/Makefile.am.
86310         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86311         the generated files.
86312         (func_import): Don't set cmd.
86313
86314 2005-08-31  Bruno Haible  <bruno@clisp.org>
86315
86316         * lib/strstr.c: Include <stddef.h>, for NULL.
86317         * lib/strcasestr.c: Likewise.
86318         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86319
86320 2005-08-31  Bruno Haible  <bruno@clisp.org>
86321
86322         * gnulib-tool: New option --macro-prefix.
86323         (func_import): Use macro_prefix.
86324         (import): Handle option --macro-prefix.
86325
86326 2005-08-31  Bruno Haible  <bruno@clisp.org>
86327
86328         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86329         Also use new variables cached_lgpl, cached_libtool.
86330
86331 2005-08-31  Bruno Haible  <bruno@clisp.org>
86332
86333         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86334         always instantiating them.
86335
86336 2005-08-31  Bruno Haible  <bruno@clisp.org>
86337
86338         * gnulib-tool (func_import): Read the previous cached settings
86339         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86340         earlier added by gnulib but are now dropped. Warn when a gnulib file
86341         overwrites a non-gnulib file.
86342
86343 2005-08-31  Bruno Haible  <bruno@clisp.org>
86344
86345         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86346         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86347         projects that don't keep autogenerated files in CVS. Put into
86348         actioncmd only the specified modules, not the transitive closure.
86349
86350 2005-08-31  Bruno Haible  <bruno@clisp.org>
86351
86352         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86353         Create directories that shall be filled.
86354         (import): Don't look for gl_* macros in configure.ac. Recurse across
86355         all directories containing a gnulib-cache.m4 files, if meaningful.
86356
86357 2005-08-31  Bruno Haible  <bruno@clisp.org>
86358
86359         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86360         (import): Set seen_libtool when we see gl_LIBTOOL.
86361
86362 2005-08-31  Bruno Haible  <bruno@clisp.org>
86363
86364         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86365         declaration macro definitions from generated gnulib.m4.
86366
86367 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86368
86369         * lib/iconvme.h: Add prototype for iconv_alloc.
86370
86371 2005-08-29  Simon Josefsson  <jas@extundo.com>
86372
86373         * lib/iconvme.c: Fix errno.
86374
86375 2005-08-29  Bruno Haible  <bruno@clisp.org>
86376
86377         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86378         that it works when the directory contains spaces.
86379
86380 2005-08-29  Bruno Haible  <bruno@clisp.org>
86381
86382         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86383
86384 2005-08-29  Bruno Haible  <bruno@clisp.org>
86385
86386         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86387         Emit more advice.
86388
86389 2005-08-29  Bruno Haible  <bruno@clisp.org>
86390         and Stepan Kasal  <kasal@ucw.cz>
86391
86392         * check-module: If more parameters are given, check each of them
86393         separately; add more exceptions, as noted by Jim Meyering.
86394         (check_module): New procedure.
86395         (%exempt_header): Now contains all exceptions.
86396
86397 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86398
86399         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86400
86401 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86402
86403         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86404
86405 2005-08-28  Bruno Haible  <bruno@clisp.org>
86406
86407         * m4/gnulib-tool.m4: New file.
86408
86409 2005-08-27  Jim Meyering  <jim@meyering.net>
86410
86411         * modules/unistd-safer (Files): Add pipe-safer.c.
86412         * modules/fcntl-safer (Files): Add creat-safer.c.
86413
86414 2005-08-27  Jim Meyering  <jim@meyering.net>
86415
86416         * m4/stdlib-safer.m4: New file.  From coreutils.
86417         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86419         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86421         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86422
86423 2005-08-27  Jim Meyering  <jim@meyering.net>
86424
86425         * lib/fopen-safer.c: Merge minor changes from coreutils.
86426         * lib/dup-safer.c: Likewise.
86427         * lib/fd-safer.c: Likewise.
86428
86429         Merge from coreutils.
86430         * lib/stdio--.h: New file.
86431         * lib/stdlib--.h: New file.
86432         * lib/mkstemp-safer.c: New file.
86433
86434         GNU tar needs these.
86435         * lib/pipe-safer.c: New file.
86436         * lib/creat-safer.c: New file.
86437         * lib/fcntl--.h (creat): Define to creat_safer.
86438         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86439         * lib/unistd--.h (pipe): Define to pipe_safer.
86440         * lib/unistd-safer.h: Declare pipe_safer.
86441
86442 2005-08-26  Simon Josefsson  <jas@extundo.com>
86443
86444         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86445         Haible <bruno@clisp.org>.
86446
86447 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86448
86449         * lib/regex_internal.h: Remove all references to
86450         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86451         or better.
86452         (bitset_not, bitset_merge, bitset_not_merge):
86453         (bitset_mask, re_string_allocate, re_string_construct):
86454         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86455         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86456         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86457         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86458         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86459         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86460         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86461         (re_acquire_state_context):
86462         Remove unnecessary forward decls.
86463         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86464         Put __attribute at function definition,
86465         now that the function decl has been removed.
86466         * lib/regex_internal.c (re_string_peek_byte_case):
86467         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86468         Likewise.
86469
86470 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86471
86472         * m4/regex.m4: Add AC_PREREQ(2.50).
86473         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86474
86475 2005-08-25  Simon Josefsson  <jas@extundo.com>
86476
86477         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86478         __fsetlocking.
86479
86480 2005-08-25  Simon Josefsson  <jas@extundo.com>
86481
86482         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86483         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86484         GLIBC specific code.
86485
86486 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86487
86488         Make regex safe for g++.  This fixes one real bug (an "err"
86489         that should have been "*err").  g++ problem reported by
86490         Sam Steingold.
86491         * lib/regex_internal.h (re_calloc): New macro, consistent with
86492         re_malloc etc.  All callers of calloc changed to use re_calloc.
86493         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86494         not int.  All callers changed.
86495         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86496         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86497         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86498         (find_recover_state): Change "err" to "*err"; this fixes what
86499         appears to be a real bug.
86500         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86501         versus int.
86502
86503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86504
86505         * modules/regex (Depends-on): Add malloc, since the code
86506         assumes that !malloc(0) means failure.
86507
86508 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86509
86510         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86511
86512         alloca modernization/simplification for regex.
86513         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86514         needs to be at the start of the file, and can be moved into
86515         regex_internal.h and simplified.
86516         * lib/regex_internal.h: Include <alloca.h>.
86517         (__libc_use_alloca) [!defined _LIBC]: New macro.
86518         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86519         now works outside glibc.
86520
86521 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86522
86523         * config/srclist.txt: Add glibc bugs 1241, 1245.
86524
86525 2005-08-25  Jim Meyering  <jim@meyering.net>
86526
86527         * lib/open-safer.c: Include <config.h>.
86528         Otherwise, we'd lose LARGEFILE support in any file using
86529         e.g. "fcntl--.h"
86530
86531 2005-08-25  Bruno Haible  <bruno@clisp.org>
86532
86533         * m4/minmax.m4: Require autoconf 2.52.
86534         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86535         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86536         alternatives of translit over the alphabet.
86537         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86538
86539 2005-08-24  Simon Josefsson  <jas@extundo.com>
86540
86541         * tests/test-getpass.c: New file.
86542
86543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86544
86545         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86546         for GNU regex features.
86547
86548 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86549
86550         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86551         * lib/regex.h (regerror): Likewise.
86552
86553         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86554         requires this.  (The code never needed it.)
86555
86556         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86557         All uses of recently-renamed identifiers changed to use the new,
86558         POSIX-compliant names.  The code will build and run just fine
86559         without these changes, but it's better to eat our own dog food
86560         and use the standard-conforming names.
86561
86562         * lib/regex.h: Fix a multitude of POSIX name space violations.
86563         These changes have an effect only for programs that define
86564         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86565         do not change anything for programs compiled in the normal way.
86566         Also, there is no effect on the ABI.
86567
86568         (_REGEX_SOURCE): New macro.
86569         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86570         defined and _GNU_SOURCE is not; this fixes a name space violation.
86571
86572         Rename the following macros to obey POSIX requirements.
86573         The old names are still visible as macros if _REGEX_SOURCE is defined.
86574         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86575         RE_BACKSLASH_ESCAPE_IN_LISTS.
86576         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86577         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86578         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86579         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86580         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86581         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86582         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86583         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86584         (REG_INTERVALS): renamed from RE_INTERVALS.
86585         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86586         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86587         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86588         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86589         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86590         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86591         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86592         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86593         RE_UNMATCHED_RIGHT_PAREN_ORD.
86594         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86595         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86596         (REG_DEBUG): renamed from RE_DEBUG.
86597         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86598         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86599         unusual, since we can't clash with the POSIX REG_ICASE.
86600         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86601         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86602         (REG_NO_SUB): renamed from RE_NO_SUB.
86603         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86604         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86605         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86606         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86607         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86608         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86609         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86610         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86611         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86612         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86613         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86614         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86615         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86616         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86617         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86618         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86619         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86620         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86621         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86622         (REG_FIXED): Renamed from REGS_FIXED.
86623         (REG_NREGS): Renamed from RE_NREGS.
86624
86625         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86626         of other REG_* macros, since POSIX says the user is allowed to
86627         #undef these macros selectively.
86628
86629         (reg_errcode_t): Update comment stating what other tables need
86630         to be consistent.
86631
86632         Rename the following enum values to obey POSIX requirements.
86633         The old names are still visible as macros.
86634         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86635         is not defined, since GNU is supposed to be a superset of POSIX as
86636         much as possible, and since we want reg_errcode_t to be a signed
86637         type for implementation consistency.
86638         (_REG_NOERROR): Renamed from REG_NOERROR.
86639         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86640         (_REG_BADPAT): Renamed from REG_BADPAT.
86641         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86642         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86643         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86644         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86645         (_REG_EBRACK): Renamed from REG_EBRACK.
86646         (_REG_EPAREN): Renamed from REG_EPAREN.
86647         (_REG_EBRACE): Renamed from REG_EBRACE.
86648         (_REG_BADBR): Renamed from REG_BADBR.
86649         (_REG_ERANGE): Renamed from REG_ERANGE.
86650         (_REG_ESPACE): Renamed from REG_ESPACE.
86651         (_REG_BADRPT): Renamed from REG_BADRPT.
86652         (_REG_EEND): Renamed from REG_EEND.
86653         (_REG_ESIZE): Renamed from REG_ESIZE.
86654         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86655         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86656         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86657         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86658         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86659
86660         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86661         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86662         changed.  But support the old name if the new one is not defined
86663         and if _REGEX_SOURCE.
86664
86665         Change the following member names in struct re_pattern_buffer.
86666         The old names are still supported if !_REGEX_SOURCE.
86667         The new names are always supported, regardless of _REGEX_SOURCE.
86668         (re_buffer): Renamed from buffer.
86669         (re_allocated): Renamed from allocated.
86670         (re_used): Renamed from used.
86671         (re_syntax): Renamed from syntax.
86672         (re_fastmap): Renamed from fastmap.
86673         (re_translate): Renamed from translate.
86674         (re_can_be_null): Renamed from can_be_null.
86675         (re_regs_allocated): Renamed from regs_allocated.
86676         (re_fastmap_accurate): Renamed from fastmap_accurate.
86677         (re_no_sub): Renamed from no_sub.
86678         (re_not_bol): Renamed from not_bol.
86679         (re_not_eol): Renamed from not_eol.
86680         (re_newline_anchor): Renamed from newline_anchor.
86681
86682         Change the following member names in struct re_registers.
86683         The old names are still supported if !_REGEX_SOURCE.
86684         The new names are always supported, regardless of _REGEX_SOURCE.
86685         (rm_num_regs): Renamed from num_regs.
86686         (rm_start): Renamed from start.
86687         (rm_end): Renamed from end.
86688
86689         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86690         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86691         Prepend __ to parameter names.
86692
86693         Undo yesterday's changes.
86694
86695 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86696
86697         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86698         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86699         lib/regex.c.
86700
86701 2005-08-24  Jim Meyering  <jim@meyering.net>
86702
86703         Sync from coreutils.
86704         * m4/fcntl-safer.m4: New file.
86705
86706         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86707         and object files for this module.
86708
86709 2005-08-24  Jim Meyering  <jim@meyering.net>
86710
86711         Sync from coreutils.
86712         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86713
86714 2005-08-24  Jim Meyering  <jim@meyering.net>
86715
86716         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86717         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86718
86719 2005-08-24  Jim Meyering  <jim@meyering.net>
86720
86721         * modules/fcntl-safer: New module.
86722         * modules/fts (Depends-on): Add fcntl-safer.
86723         * MODULES.html.sh (File descriptor based Input/Output):
86724         Add fcntl-safer.
86725
86726 2005-08-24  Bruno Haible  <bruno@clisp.org>
86727
86728         Support for unit test modules.
86729         * modules/README: Mention tests modules.
86730         * modules/TEMPLATE-TESTS: New file.
86731         * gnulib-tool: New options --extract-tests-module, --with-tests and
86732         --tests-base (unused for the moment).
86733         (testsbase, inctests): New variables.
86734         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86735         (func_verify_module): Exclude TEMPLATE-TESTS.
86736         (func_verify_nontests_module, func_verify_tests_module): New functions.
86737         (func_get_dependencies): Add implicit dependency for tests modules.
86738         (func_get_tests_module): New function.
86739         (func_modules_transitive_closure): When --with-tests was specified,
86740         include the unit tests as well, unless explicitly avoided.
86741         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86742         (func_emit_tests_Makefile_am): New function.
86743         (func_create_testdir): When --with-tests was specified, emit a
86744         tests/ directory.
86745         * MODULES.html.sh (Future developments): Update.
86746
86747 2005-08-24  Bruno Haible  <bruno@clisp.org>
86748
86749         * modules/tls-tests: New file.
86750         * tests/test-tls.c: New file, from GNU gettext.
86751
86752 2005-08-24  Bruno Haible  <bruno@clisp.org>
86753
86754         * modules/lock-tests: New file.
86755         * tests/test-lock.c: New file, from GNU gettext.
86756
86757 2005-08-24  Bruno Haible  <bruno@clisp.org>
86758
86759         * lib/lock.h: Add multiple inclusion guard.
86760         * lib/tls.h: Add multiple inclusion guard.
86761
86762 2005-08-24  Bruno Haible  <bruno@clisp.org>
86763
86764         * gnulib-tool: Add support for the --aux-dir option to
86765         --create-testdir, --create-megatestdir, --test, --megatest.
86766         (func_create_testdir, func_create_megatestdir): Optionally emit a
86767         AC_CONFIG_AUX_DIR directive.
86768         (create-testdir, create-megatestdir, test, megatest): Provide a
86769         default value for $auxdir.
86770
86771 2005-08-24  Bruno Haible  <bruno@clisp.org>
86772
86773         * gnulib-tool (import): Use compound statement instead of subshell
86774         where possible.
86775
86776 2005-08-24  Bruno Haible  <bruno@clisp.org>
86777
86778         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86779
86780 2005-08-24  Bruno Haible  <bruno@clisp.org>
86781
86782         * gnulib-tool (func_version): Update.
86783
86784 2005-08-24  Bruno Haible  <bruno@clisp.org>
86785
86786         * gnulib-tool (func_import, func_create_testdir,
86787         func_create_megatestdir): Quote all autoconf macro arguments.
86788
86789 2005-08-24  Bruno Haible  <bruno@clisp.org>
86790
86791         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86792         option --force, because --force causes the aclocal.m4 of each
86793         subdirectory to be newer than the corresponding config.h.in.
86794
86795 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86796
86797         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86798         All contents moved to gl_REGEX.
86799         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86800         assume that it does.
86801
86802 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86803
86804         * lib/regex.h (REG_NOSYS)
86805         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86806         Define, since POSIX requires it as of 2001.
86807         (_REG_ENOSYS)
86808         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86809         New private symbol, used to keep the enum signed in all cases.
86810         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86811         Youngman in
86812         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86813
86814         * lib/regex_internal.c (re_string_skip_chars, register_state):
86815         (calc_state_hash):
86816         Remove forward decls; no longer needed now that we use prototypes.
86817         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86818         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86819         (clean_state_log_if_needed): Likewise.
86820
86821 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86822
86823         * config/srclist.txt: Add glibc bugs 1231-1233.
86824
86825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86826
86827         Fix problems reported by Sam Steingold in
86828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86829         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86830         assumed that reg_errcode_t is a signed type, which is not
86831         necessarily true if _XOPEN_SOURCE is not defined.
86832         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86833         since some compilers warn about it otherwise.
86834
86835 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86836
86837         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86838         (init_word_char, create_initial_state, duplicate_node_closure):
86839         (fetch_token, peek_token_bracket, build_range_exp):
86840         (build_collating_symbol): Remove forward decls; no longer needed
86841         now that we use prototypes.
86842
86843         * lib/regcomp.c:
86844         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86845         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86846         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86847         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86848         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86849         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86850         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86851         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86852         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86853         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86854         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86855         (build_charclass, build_charclass_op, fetch_number, create_tree):
86856         (create_token_tree, mark_opt_subexp, duplicate_tree):
86857         Use prototypes rather than old-style definitions.
86858
86859         * lib/regex_internal.c:
86860         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86861         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86862         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86863         (re_string_reconstruct, re_string_peek_byte_case):
86864         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86865         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86866         (re_node_set_init_copy, re_node_set_add_intersect):
86867         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86868         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86869         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86870         (re_acquire_state, re_acquire_state_context, register_state):
86871         (create_ci_newstate, create_cd_newstate, free_state):
86872         Likewise.
86873         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86874         re_search_2):
86875         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86876         (re_search_internal, prune_impossible_nodes):
86877         (acquire_init_state_context, check_matching, static):
86878         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86879         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86880         (update_regs, sift_states_backward, build_sifted_states):
86881         (clean_state_log_if_needed, merge_state_array):
86882         (update_cur_sifted_state, add_epsilon_src_nodes):
86883         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86884         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86885         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86886         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86887         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86888         (check_arrival, check_arrival_add_next_nodes):
86889         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86890         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86891         (check_node_accept_bytes, check_node_accept, extend_buffers):
86892         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86893         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86894         (sift_ctx_init):
86895         Likewise.
86896
86897         * lib/regex_internal.h:
86898         (re_string_allocate, re_string_construct, re_string_reconstruct):
86899         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86900         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86901         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86902         (re_string_context_at, re_string_peek_byte_case):
86903         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86904         is defined, since we now use prototypes always.
86905
86906         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86907         C89 or better.  All uses removed.
86908
86909 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86910
86911         * config/srclist.txt: Add glibc bugs 1220-1227.
86912
86913 2005-08-20  Jim Meyering  <jim@meyering.net>
86914
86915         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86916         of unused local, dfa.
86917
86918 2005-08-20  Bruno Haible  <bruno@clisp.org>
86919
86920         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86921
86922 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86923
86924         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86925         (re_node_set_insert_last, re_dfa_add_node):
86926         Rename local variables to avoid GCC shadowing warnings.
86927
86928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86929
86930         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86931         [defined lint]: Suppress bogus uninitialized-variable warnings.
86932
86933         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86934         and let the caller return REG_ESPACE if out of space.  This
86935         removes an uninitialied-variable warning with GCC 4.0.1, and also
86936         avoids taking the address of a local variable.  All callers
86937         changed.
86938
86939 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86940
86941         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86942         $LIBCSRC/posix/regexec.c.
86943         Add glibc bug 1217 for regcomp.c.
86944
86945 2005-08-19  Jim Meyering  <jim@meyering.net>
86946
86947         * lib/regexec.c (proceed_next_node): Redo local variables to
86948         avoid GCC shadowing warnings.
86949
86950 2005-08-18  Bruno Haible  <bruno@clisp.org>
86951
86952         * lib/strstr.c (strstr): Fix return value in multibyte case.
86953         * lib/strcasestr.c (strcasestr): Likewise.
86954
86955 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86956
86957         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86958
86959 2005-08-17  Jim Meyering  <jim@meyering.net>
86960
86961         Make the %s format (seconds since the epoch) work for a negative
86962         number and when used with a zero-padded field width, e.g. %015s.
86963
86964         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86965         label so that it precedes the code to set `digits'.  Otherwise,
86966         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86967         print `00-22'.  Now, it prints `-0022', as it should.
86968
86969 2005-08-17  Bruno Haible  <bruno@clisp.org>
86970
86971         * modules/strstr (Files): Add m4/mbrtowc.m4.
86972         (Depends-on): Add mbuiter.
86973
86974 2005-08-17  Bruno Haible  <bruno@clisp.org>
86975
86976         * modules/strcasestr: New file.
86977         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86978         strcasestr.
86979
86980 2005-08-17  Bruno Haible  <bruno@clisp.org>
86981
86982         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86983
86984 2005-08-17  Bruno Haible  <bruno@clisp.org>
86985
86986         * modules/mbuiter: New file.
86987         * MODULES.html.sh (Extended multibyte and wide character utilities):
86988         Add mbuiter.
86989
86990 2005-08-17  Bruno Haible  <bruno@clisp.org>
86991
86992         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86993         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86994
86995 2005-08-17  Bruno Haible  <bruno@clisp.org>
86996
86997         * m4/strcasestr.m4: New file.
86998
86999 2005-08-17  Bruno Haible  <bruno@clisp.org>
87000
87001         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87002         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87003
87004 2005-08-17  Bruno Haible  <bruno@clisp.org>
87005
87006         * lib/strcasestr.h: New file.
87007         * lib/strcasestr.c: New file.
87008
87009 2005-08-17  Bruno Haible  <bruno@clisp.org>
87010
87011         * lib/strcasecmp.c: Use mbuiter.h.
87012
87013 2005-08-17  Bruno Haible  <bruno@clisp.org>
87014
87015         * lib/mbuiter.h: New file.
87016
87017 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87018
87019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87020         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87021         and gl_GETOPT are both invoked via different paths (as happens
87022         with GNU tar CVS because it uses both argp and getopt), the former
87023         wins.
87024
87025 2005-08-16  Bruno Haible  <bruno@clisp.org>
87026
87027         * modules/tls: New file.
87028         * MODULES.html.sh (Multithreading): Add tls.
87029
87030 2005-08-16  Bruno Haible  <bruno@clisp.org>
87031
87032         * modules/strnlen1: New file.
87033         * MODULES.html.sh (String handling): Add strnlen1.
87034
87035 2005-08-16  Bruno Haible  <bruno@clisp.org>
87036
87037         * modules/strcase (Files): Add m4/mbrtowc.m4.
87038         (Depends-on): Add strnlen1, mbchar.
87039
87040 2005-08-16  Bruno Haible  <bruno@clisp.org>
87041
87042         * modules/mbiter: New file.
87043         * MODULES.html.sh (Extended multibyte and wide character utilities):
87044         Add mbiter.
87045
87046 2005-08-16  Bruno Haible  <bruno@clisp.org>
87047
87048         * modules/mbfile: New file.
87049         * MODULES.html.sh (Extended multibyte and wide character utilities):
87050         Add mbfile.
87051
87052 2005-08-16  Bruno Haible  <bruno@clisp.org>
87053
87054         * modules/mbchar: New file.
87055         * MODULES.html.sh (Extended multibyte and wide character utilities):
87056         New section.
87057
87058 2005-08-16  Bruno Haible  <bruno@clisp.org>
87059
87060         * m4/tls.m4: New file, from GNU gettext.
87061
87062 2005-08-16  Bruno Haible  <bruno@clisp.org>
87063
87064         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87065         always.
87066         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87067
87068 2005-08-16  Bruno Haible  <bruno@clisp.org>
87069
87070         * m4/mbiter.m4: New file.
87071
87072 2005-08-16  Bruno Haible  <bruno@clisp.org>
87073
87074         * m4/mbfile.m4: New file.
87075
87076 2005-08-16  Bruno Haible  <bruno@clisp.org>
87077
87078         * m4/mbchar.m4: New file.
87079
87080 2005-08-16  Bruno Haible  <bruno@clisp.org>
87081
87082         * lib/tls.h: New file, from GNU gettext.
87083         * lib/tls.c: New file, from GNU gettext.
87084
87085 2005-08-16  Bruno Haible  <bruno@clisp.org>
87086
87087         * lib/strnlen1.h: New file.
87088         * lib/strnlen1.c: New file.
87089
87090 2005-08-16  Bruno Haible  <bruno@clisp.org>
87091
87092         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87093         (mbi_init): Update.
87094         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87095         NUL byte, not after it.
87096
87097 2005-08-16  Bruno Haible  <bruno@clisp.org>
87098
87099         * lib/strcase.h (strcasecmp): Add note in comments.
87100         * lib/strncasecmp.c: Use code from strcasecmp.c.
87101         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87102         (strcasecmp): Work correctly in multibyte locales.
87103
87104 2005-08-16  Bruno Haible  <bruno@clisp.org>
87105
87106         * lib/mbiter.h: New file.
87107
87108 2005-08-16  Bruno Haible  <bruno@clisp.org>
87109
87110         * lib/mbfile.h: New file.
87111
87112 2005-08-16  Bruno Haible  <bruno@clisp.org>
87113
87114         * lib/mbchar.h: New file.
87115         * lib/mbchar.c: New file.
87116
87117 2005-08-16  Bruno Haible  <bruno@clisp.org>
87118
87119         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87120         the valid ones. Makes the comparison operations transitive:
87121         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87122         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87123
87124 2005-08-15  Simon Josefsson  <jas@extundo.com>
87125
87126         * modules/ssize_t (License): Change to 'unlimited'.
87127
87128         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87129
87130 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87131
87132         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87133         Add comments for each pending glibc patch.
87134
87135 2005-08-15  Bruno Haible  <bruno@clisp.org>
87136
87137         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87138         __cplusplus is defined.
87139
87140 2005-08-14  Jim Meyering  <jim@meyering.net>
87141
87142         Sync from coreutils.
87143
87144         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87145         Use the hash-table-based cycle-detection code not just when
87146         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87147         Reported by James Youngman in
87148         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87149         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87150         FTS_TIGHT_CYCLE_CHECK.
87151         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87152         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87153         once again.
87154         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87155         * lib/fts.c (fd_safer): Remove decl.
87156         Include fcntl--.h rather than unistd-safer.h
87157         (fts_safe_changedir): Don't call fd_safer; no longer needed
87158         now that we include fcntl--.h.
87159
87160 2005-08-12  Simon Josefsson  <jas@extundo.com>
87161
87162         * modules/getndelim2: Use ssize_t module.
87163         * modules/getnline: Likewise.
87164         * modules/safe-read: Likewise.
87165         * modules/xreadlink: Likewise.
87166
87167         * modules/ssize_t: New file.
87168
87169 2005-08-12  Simon Josefsson  <jas@extundo.com>
87170
87171         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87172
87173 2005-08-12  Simon Josefsson  <jas@extundo.com>
87174
87175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87176         ssize_t.
87177
87178 2005-08-12  Simon Josefsson  <jas@extundo.com>
87179
87180         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87181         readline, getdelim and check_version.
87182         (Support for systems lacking ISO C 99: Sizes of integer types):
87183         Add size_max.
87184
87185 2005-08-12  Bruno Haible  <bruno@clisp.org>
87186
87187         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87188
87189 2005-08-11  Simon Josefsson  <jas@extundo.com>
87190
87191         * modules/readline: New file.
87192
87193         * modules/strnlen (Files): Add strnlen.h.
87194
87195 2005-08-11  Simon Josefsson  <jas@extundo.com>
87196
87197         * m4/readline.m4: New file.
87198
87199 2005-08-11  Simon Josefsson  <jas@extundo.com>
87200
87201         * lib/readline.h, readline.c: New file.
87202
87203 2005-08-11  Simon Josefsson  <jas@extundo.com>
87204
87205         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87206         gl_AVOID.
87207
87208 2005-08-11  Bruno Haible  <bruno@clisp.org>
87209
87210         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87211
87212 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87213
87214         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87215
87216 2005-08-10  Simon Josefsson  <jas@extundo.com>
87217
87218         * tests/test-iconvme.c: New file.
87219
87220 2005-08-10  Simon Josefsson  <jas@extundo.com>
87221
87222         * m4/strnlen.m4: New file.
87223
87224         * m4/strndup.m4: Don't check for strnlen declaration, done in
87225         strnlen.m4.
87226
87227 2005-08-10  Simon Josefsson  <jas@extundo.com>
87228
87229         * lib/strndup.c: Use strnlen.h.
87230
87231         * lib/strnlen.h: New file.
87232
87233 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87234
87235         * README: Typos.
87236
87237 2005-08-02  Simon Josefsson  <jas@extundo.com>
87238
87239         * modules/readline: New file.
87240
87241 2005-08-02  Simon Josefsson  <jas@extundo.com>
87242
87243         * modules/getdelim: New file.
87244
87245         * modules/getline: Rewrite, don't use getndelim2.
87246
87247 2005-08-02  Simon Josefsson  <jas@extundo.com>
87248
87249         * m4/getline.m4: Separate out getdelim stuff into separate module.
87250
87251         * m4/getdelim.m4: New file.
87252
87253 2005-08-02  Simon Josefsson  <jas@extundo.com>
87254
87255         * lib/getline.h, getline.c: Rewrite.
87256
87257         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87258
87259 2005-07-31  Bruno Haible  <bruno@clisp.org>
87260
87261         * lib/lock.h (gl_lock_initializer): New macro.
87262         (gl_lock_define_initialized): Use it.
87263         (gl_rwlock_initializer): New macro.
87264         (gl_rwlock_define_initialized): Use it.
87265         (gl_recursive_lock_initializer): New macro.
87266         (gl_recursive_lock_define_initialized): Use it.
87267
87268 2005-07-30  Karl Berry  <karl@gnu.org>
87269
87270         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87271         Report from Ben Pfaff, regarding getopt.
87272
87273 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87274
87275         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87276         normal way.
87277         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87278         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87279         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87280         (gl_GETOPT): Use the new macros.  Most of the implementation
87281         is moved to the new macros.  This is for programs like Emacs
87282         that don't want all the functionality of gl_GETOPT.
87283
87284 2005-07-26  Bruno Haible  <bruno@clisp.org>
87285
87286         * m4/lock.m4: Update from GNU gettext.
87287
87288 2005-07-26  Bruno Haible  <bruno@clisp.org>
87289
87290         * lib/lock.h: Update from GNU gettext.
87291         * lib/lock.c: Update from GNU gettext.
87292
87293 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87294
87295         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87296         obsolescent AC_TRY_RUN.  Include the default includes files, for
87297         'exit'.
87298
87299 2005-07-24  Bruno Haible  <bruno@clisp.org>
87300
87301         * modules/visibility: New file.
87302         * MODULES.html.sh (Misc): Add visibility.
87303
87304 2005-07-24  Bruno Haible  <bruno@clisp.org>
87305
87306         * m4/visibility.m4: New file.
87307
87308 2005-07-24  Bruno Haible  <bruno@clisp.org>
87309
87310         * doc/visibility.texi: New file.
87311
87312 2005-07-22  Bruno Haible  <bruno@clisp.org>
87313
87314         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87315         $(ALLOCA_H), redundant through BUILT_SOURCES.
87316         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87317         redundant through BUILT_SOURCES.
87318         * modules/byteswap (Makefile.am): Remove explicit dependency on
87319         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87320         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87321         $(FNMATCH_H), redundant through BUILT_SOURCES.
87322         * modules/getopt (Makefile.am): Remove explicit dependency on
87323         $(GETOPT_H), redundant through BUILT_SOURCES.
87324         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87325         redundant through BUILT_SOURCES.
87326         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87327         redundant through BUILT_SOURCES.
87328         * modules/stdbool (Makefile.am): Remove explicit dependency on
87329         $(STDBOOL_H), redundant through BUILT_SOURCES.
87330         * modules/stdint (Makefile.am): Remove explicit dependency on
87331         $(STDINT_H), redundant through BUILT_SOURCES.
87332         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87333         Remove explicit dependency on $(SYSEXITS_H).
87334         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87335
87336 2005-07-18  Simon Josefsson  <jas@extundo.com>
87337
87338         * lib/check-version.c (check_version): Accept identical versions too.
87339
87340 2005-07-18  Bruno Haible  <bruno@clisp.org>
87341
87342         * modules/lock: New file.
87343         * MODULES.html.sh (Multithreading): New section.
87344
87345 2005-07-18  Bruno Haible  <bruno@clisp.org>
87346
87347         * m4/lock.m4: New file, from GNU gettext.
87348
87349 2005-07-18  Bruno Haible  <bruno@clisp.org>
87350
87351         * lib/lock.h: New file, from GNU gettext.
87352         * lib/lock.c: New file, from GNU gettext.
87353
87354 2005-07-18  Bruno Haible  <bruno@clisp.org>
87355
87356         * lib/lock.h (gl_once_t): New type.
87357         (gl_once_define, gl_once): New macros.
87358         * lib/lock.c (fresh_once): New variable.
87359         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87360         functions.
87361
87362 2005-07-16  Simon Josefsson  <jas@extundo.com>
87363
87364         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87365         workaround, suggested by Bruno.
87366
87367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87368
87369         * modules/xalloc (Depends-on): Add xalloc-die.
87370         * modules/xvasprintf (Depends-on): Add xalloc-die.
87371
87372 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87373
87374         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87375         with a minor change.
87376
87377 2005-07-15  Bruno Haible  <bruno@clisp.org>
87378
87379         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87380         When using lib/poll.c, define poll as rpl_poll.
87381
87382 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87383
87384         * modules/argp (Depends-on): Remove unlocked-io.
87385
87386 2005-07-14  Derek Price  <derek@ximbiot.com>
87387
87388         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87389         for glob symlink bug.
87390
87391 2005-07-14  Bruno Haible  <bruno@clisp.org>
87392
87393         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87394         Instead, test for *_unlocked function declarations directly.
87395
87396 2005-07-11  Simon Josefsson  <jas@extundo.com>
87397
87398         * modules/size_max: New file.
87399
87400         * modules/xsize: Depend on size_max module for size_max.m4.
87401
87402 2005-07-11  Simon Josefsson  <jas@extundo.com>
87403
87404         * lib/size_max.h: New file.
87405
87406 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87407
87408         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87409         copyright symbol and the year.
87410         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87411         (version_etc_va): Use parameterized copyright notice.
87412         Reword to conform to the current GNU coding standards.
87413
87414 2005-07-11  Karl Berry  <karl@gnu.org>
87415
87416         * doc/gnulib.texi (Quoting): new node.
87417         (Initial import): more info, from Patrice.
87418
87419 2005-07-11  Bruno Haible  <bruno@clisp.org>
87420
87421         * gnulib-tool (func_usage): Document option --avoid.
87422         (Command line options): Handle --avoid.
87423         (func_acceptable): New function.
87424         (func_modules_transitive_closure): Use it.
87425
87426 2005-07-11  Bruno Haible  <bruno@clisp.org>
87427
87428         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87429         Reported by Jim Meyering.
87430
87431 2005-07-10  Bruno Haible  <bruno@clisp.org>
87432
87433         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87434         Needed when size_t is smaller than 'unsigned int'.
87435         Reported by Paul Eggert.
87436
87437 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87438
87439         * modules/argp (Depends-on): Add unlocked-io
87440
87441 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87442
87443         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87444         block of defines.
87445
87446 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87447
87448         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87449         fix now.
87450
87451 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87452         and Paul Eggert  <eggert@cs.ucla.edu>
87453
87454         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87455         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87456
87457 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87458
87459         * modules/regex (Files): Add lib/regex_internal.c,
87460         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87461         (Depends-on): Add extensions.
87462         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87463
87464 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87465
87466         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87467         pathconf.
87468         * m4/same.m4 (gl_SAME): Likewise.
87469         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87470
87471         * m4/regex.m4: Adjust to new libc regex implementation.
87472         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87473         all the .c and .h parts of (the new) regex.
87474         Quote the m4 stuff better.
87475         Check for RE_ICASE bug of old gnulib.
87476         Check for REG_STARTEND of recent libc.
87477         Rename local variables from jm_* to gl_*.
87478         Quote operand of "test -f".
87479         Say "recent enough" version of libc, not "version 2".
87480         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87481         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87482         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87483         Remove check for btowc, isascii.
87484         Require AM_LANGINFO_CODESET.
87485
87486 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87487
87488         * lib/regex.c, regex.h: Sync from libc.
87489         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87490         * lib/regexec.c:
87491         New files, synced from libc, except that regex_internal.h
87492         currently has a small porting fix.
87493
87494 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87495
87496         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87497         regex_internal.c, regexec.c.
87498         Add regex_internal.h too, but as a comment, since the libc version
87499         is currently broken in gnulib mode.
87500
87501 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87502
87503         Support programs like Emacs that use gnulib but not gettext.
87504         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87505         * modules/gettext-h: New file.
87506         * modules/gettext (Files): Remove lib/gettext.h.
87507         (Depends-on): Add gettext-h.
87508         (Makefile.am): Remove lib_SOURCES.
87509         * modules/argmatch, modules/c-stack, modules/closeout:
87510         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87511         * modules/execute, modules/file-type, modules/getaddrinfo:
87512         * modules/getopt, modules/human, modules/javacomp:
87513         * modules/javaexec, modules/mkdir-p, modules/obstack:
87514         * modules/openat, modules/pagealign_alloc, modules/pipe:
87515         * modules/quotearg, modules/regex, modules/rpmatch:
87516         * modules/unicodeio, modules/userspec, modules/version-etc:
87517         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87518         * modules/xsetenv:
87519         Depend on gettext-h, not gettext.
87520
87521 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87522
87523         * gnulib-tool (func_import): Add support for 'public domain' license.
87524         * modules/alloca, modules/atexit, modules/memmove:
87525         Now public domain, not GPL.
87526         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87527         * modules/realloc, modules/strerror, modules/strtod:
87528         Now LGPL, not GPL.
87529
87530 2005-07-05  Bruno Haible  <bruno@clisp.org>
87531
87532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87533         autoconf CVS. Needed for mingw.
87534
87535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87536
87537         Remove the dependency of the strftime module on the tzset module.
87538         * modules/strftime (Depends-on): Remove dependency on tzset.
87539
87540 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87541
87542         Remove the dependency of the strftime module on the tzset module.
87543         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87544         gl_FUNC_TZSET_CLOBBER.
87545
87546 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87547
87548         Remove the dependency of the strftime module on the tzset module.
87549         * lib/strftime.c (my_strftime)
87550         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87551         Copy the input structure, to work around some of the bug with
87552         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87553         Solaris releases, you should also use the tzset module, but we won't
87554         require it as a dependency any more since we don't want LGPLed code
87555         to depend on GPLed code.
87556
87557 2005-07-02  Jim Meyering  <jim@meyering.net>
87558
87559         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87560         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87561         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87562         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87563
87564 2005-07-02  Jim Meyering  <jim@meyering.net>
87565
87566         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87567
87568 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87569
87570         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87571         declares only 'struct timespec;' (!).
87572
87573 2005-07-01  Jim Meyering  <jim@meyering.net>
87574
87575         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87576         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87577         * lib/save-cwd.c, tempname.c:
87578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87579         and don't include <sys/file.h>).
87580
87581 2005-06-29  Jim Meyering  <jim@meyering.net>
87582
87583         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87584         type name.  Use the variable name instead.
87585         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87586         Likewise.
87587
87588 2005-06-28  Simon Josefsson  <jas@extundo.com>
87589
87590         * modules/check-version (Files): Add check-version.m4.
87591
87592 2005-06-28  Simon Josefsson  <jas@extundo.com>
87593
87594         * m4/check-version.m4: New file, suggested by Jim Meyering
87595         <jim@meyering.net>.
87596
87597 2005-06-28  Simon Josefsson  <jas@extundo.com>
87598
87599         * lib/check-version.h, lib/check-version.c: New files.
87600
87601 2005-06-28  Simon Josefsson  <jas@extundo.com>
87602
87603         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87604         collision with global variable.  Better indentation.  Don't
87605         increment buffer pointer beyond buffer end.  Based on comments
87606         from Paul Eggert <eggert@cs.ucla.edu>.
87607
87608         * lib/base64.h: Indent.
87609
87610 2005-06-28  Simon Josefsson  <jas@extundo.com>
87611
87612         * doc/gnulib.texi (Library version handling): New section.
87613
87614 2005-06-28  Jim Meyering  <jim@meyering.net>
87615
87616         * check-module (find_included_lib_files): Hard-code another
87617         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87618         but modules/fts-lgpl (correctly) does not list those files.
87619
87620         * modules/canonicalize (Files): Add lib/pathmax.h.
87621
87622 2005-06-25  Simon Josefsson  <jas@extundo.com>
87623
87624         * modules/check-version: New file.
87625
87626 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87627
87628         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87629         initializer of struct addrinfo, as an indication that we don't
87630         care how many members the structure has.
87631
87632 2005-06-24  Derek Price  <derek@ximbiot.com>
87633         and Bruno Haible  <bruno@clisp.org>
87634
87635         Remove stat module & update lstat.
87636         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87638         * m4/stat.m4: Remove this file.
87639
87640 2005-06-24  Derek Price  <derek@ximbiot.com>
87641         and Bruno Haible  <bruno@clisp.org>
87642
87643         Remove stat module & update lstat.
87644         * lib/stat.c: Remove this file...
87645         (slash_aware_lstat): ...moving this content and its support...
87646         * lib/lstat.c (rpl_lstat): ...into here.
87647         * lib/lstat.h: New file.
87648
87649 2005-06-24  Derek Price  <derek@ximbiot.com>
87650         and Bruno Haible  <bruno@clisp.org>
87651
87652         Remove stat module & update lstat.
87653         * config/srclist.txt (libc sources): Remove stat.
87654
87655 2005-06-24  Derek Price  <derek@ximbiot.com>
87656         and Bruno Haible  <bruno@clisp.org>
87657
87658         Remove stat module & update lstat.
87659         * MODULES.html.sh (stat): Remove.
87660         * MODULES.html: Regenerated.
87661         * modules/lstat (Description): Correct function name.
87662         (Files): Add "lstat.h".
87663         (Depends-on): Remove stat, add xalloc, stat-macros.
87664         * modules/stat: Remove this file.
87665         (Include): Add "lstat.h", remove <sys/stat.h>.
87666
87667 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87668
87669         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87670         (ranged_convert): Don't save conversion in a temporary struct.
87671         This causes a warning with GCC 4.0.0, and anyway in the typical
87672         case it's not worth the extra 100 bytes or so of code.
87673         (ranged_convert, __mktime_internal): When calling a function via a
87674         pointer P, use P () rather than (*P) (), as we now assume C89 or
87675         better.
87676
87677 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87678
87679         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87680         "who -r" failed to give output.  Problem reported by Tim Waugh.
87681
87682         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87683         (xcalloc): Use it to avoid needless tests.
87684         Problem reported by Jim Meyering.
87685
87686 2005-06-20  Derek Price  <derek@ximbiot.com>
87687
87688         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87689         unnecessary for Autoconfs > 2.59c.
87690
87691 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87692
87693         * lib/argp.h (__option_is_short): Check upper limit of
87694         __key. Isprint() requires its argument to have the value
87695         of an unsigned char or EOF.
87696
87697 2005-06-16  Jim Meyering  <jim@meyering.net>
87698
87699         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87700         when either N or S is zero.
87701
87702 2005-06-16  Derek Price  <derek@ximbiot.com>
87703
87704         * m4/bison.m4: Declare YACC & YFLAGS precious.
87705
87706 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87707
87708         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87709         multibyte string or pattern, fall back on unibyte matching.
87710         Problem reported by James Youngman.
87711
87712 2005-06-08  Bruno Haible  <bruno@clisp.org>
87713
87714         * modules/csharpcomp: New file.
87715         * MODULES.html.sh (C#): Add csharpcomp.
87716
87717 2005-06-08  Bruno Haible  <bruno@clisp.org>
87718
87719         * m4/csharpcomp.m4: New file, from GNU gettext.
87720
87721 2005-06-08  Bruno Haible  <bruno@clisp.org>
87722
87723         * lib/csharpcomp.h: New file, from GNU gettext.
87724         * lib/csharpcomp.c: New file, from GNU gettext.
87725         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87726
87727 2005-06-08  Bruno Haible  <bruno@clisp.org>
87728
87729         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87730         warning on mingw.
87731
87732 2005-06-07  Derek Price  <derek@ximbiot.com>
87733
87734         Sync from CVS.
87735         * lib/glob_.h: Indent nested #ifdef.
87736
87737 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87738
87739         Sync from coreutils.
87740         Use "file name" when talking about file names, instead of "filename"
87741         or "path", as per the GNU coding standards.
87742         * lib/mkdir-p.c: Renamed from makepath.c.
87743         (make_dir_parents): Renamed from make_path.  All callers changed.
87744         * lib/mkdir-p.h: Likewise.  All includers changed.
87745         * lib/filenamecat.c: Renamed from path-concat.c.
87746         (file_name_concat): Renamed from path_concat.  All callers changed.
87747         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87748         * lib/filenamecat.h: Likewise.  All includers changed.
87749         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87750         in comments or local variable names.
87751         * lib/basename.c: Likewise.
87752         * lib/canonicalize.c, canonicalize.h: Likewise.
87753         * lib/dirname.c, dirname.h: Likewise.
87754         * lib/euidaccess.c: Likewise.
87755         * lib/exclude.c: Likewise
87756         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87757         * lib/fsusage.c, fsuage.h: Likewise.
87758         * lib/fts.c, fts_.h: Likewise.
87759         * lib/getcwd.c: Likewise.
87760         * lib/getloadavg.c: Likewise.
87761         * lib/mkstemp.c: Likewise.
87762         * lib/mountlist.c, mountlist.h: Likewise.
87763         * lib/openat.c, openat.h: Likewise.
87764         * lib/readlink-stub.c: Likewise.
87765         * lib/readutmp.c, readutmp.h: Likewise.
87766         * lib/rename.c: Likewise.
87767         * lib/rmdir.c: Likewise.
87768         * lib/same.c: Likewise.
87769         * lib/savedir.c: Likewise.
87770         * lib/stripslash.c: Likewise.
87771         * lib/tempname.c: Likewise.
87772         * lib/xreadlink.c: Likewise.
87773         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87774         All uses changed.
87775         * lib/exclude.h: Likewise.
87776
87777         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87778         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87779         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87781         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87782         files have been getting away with it for years (MORE/BSD 4.3
87783         is extinct now).
87784         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87785         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87786
87787         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87788         Define to 256, not 255, as per modern POSIX.
87789
87790 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87791
87792         Sync from coreutils.
87793         Use "file name" when talking about file names, instead of "filename"
87794         or "path", as per the GNU coding standards.
87795         * MODULES.html.sh: mkdir-p renamed from makepath.
87796         filenamecat renamed from path-concat.
87797         * modules/filenamecat: Renamed from modules/path-concat.
87798         (Files): filenamecat.h and filenamecat.c renamed from
87799         path-concat.h and path-concat.c.
87800         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87801         (Include): filenamecat.h, not path-concat.h.
87802         * modules/mkdir-p: Renamed from modules/makepath.
87803         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87804         makepath.c.
87805         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87806         (Include): mkdir-p.h, not makepath.h.
87807
87808 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87809
87810         Sync from coreutils.
87811         * m4/mkdir-p.m4: Renamed from makepath.m4.
87812         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87813         Rename files from makepath.c to mkdir-p.c, and from
87814         makepath.h to mkdir-p.h.
87815         * m4/filenamecat.m4: Renamed from path-concat.m4.
87816         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87817         Rename files from path-concat.c to filenamecat.c,
87818         and from path-concat.h to filenamecat.h.
87819         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87820         "file name" in local variables or comments.
87821         * m4/rename.m4: Likewise.
87822
87823 2005-06-01  Bruno Haible  <bruno@clisp.org>
87824
87825         * modules/csharpexec: New file.
87826         * MODULES.html.sh (C#): New section.
87827
87828 2005-06-01  Bruno Haible  <bruno@clisp.org>
87829
87830         * m4/csharp.m4: New file, from GNU gettext.
87831         * m4/csharpexec.m4: New file, from GNU gettext.
87832
87833 2005-06-01  Bruno Haible  <bruno@clisp.org>
87834
87835         * lib/csharpexec.h: New file, from GNU gettext.
87836         * lib/csharpexec.c: New file, from GNU gettext.
87837         * lib/csharpexec.sh.in: New file, from GNU gettext.
87838
87839 2005-05-31  Derek Price  <derek@ximbiot.com>
87840             Paul Eggert  <eggert@cs.ucla.edu>
87841
87842         Sync from cvs.
87843         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87844
87845 2005-05-31  Derek Price  <derek@ximbiot.com>
87846             Paul Eggert  <eggert@cs.ucla.edu>
87847
87848         Sync from cvs.
87849         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87850
87851 2005-05-29  Derek Price  <derek@ximbiot.com>
87852
87853         * config/srclist.txt (glob_.h, glob.c): Add these files.
87854
87855 2005-05-29  Derek Price  <derek@ximbiot.com>
87856
87857         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87858         * modules/glob: New file.
87859         * modules/getlogin_r: Add link to POSIX spec in description.
87860
87861 2005-05-29  Derek Price  <derek@ximbiot.com>
87862             Paul Eggert  <eggert@cs.ucla.edu>
87863
87864         * m4/glob.m4: New file.
87865
87866 2005-05-29  Derek Price  <derek@ximbiot.com>
87867             Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         * lib/glob_.h, lib/glob.c: New files.
87870
87871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87872
87873         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87874         * modules/fts-lgpl (Depends-on): Remove gettext.
87875
87876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87877
87878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87879         and don't require gt_INTTYPES_PRI.
87880
87881 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87882
87883         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87884
87885         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87886         the configuration hassle isn't worth it.
87887         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87888         (LONGEST_MODIFIER, PRIuMAX): Remove.
87889
87890 2005-05-27  Bruno Haible  <bruno@clisp.org>
87891
87892         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87893
87894 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87895
87896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87897         _POSIX_PTHREAD_SEMANTICS for Solaris.
87898
87899 2005-05-25  Derek Price  <derek@ximbiot.com>
87900
87901         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87902
87903 2005-05-25  Derek Price  <derek@ximbiot.com>
87904             Paul Eggert  <eggert@cs.ucla.edu>
87905
87906         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87907         * lib/getlogin_r.c, getlogin_r.h: New files.
87908
87909 2005-05-25  Bruno Haible  <bruno@clisp.org>
87910             Derek Price  <derek@ximbiot.com>
87911
87912         * lib/getlogin_r.h: Simplify API documentation.
87913
87914 2005-05-23  Derek Price  <derek@ximbiot.com>
87915
87916         * modules/minmax (Files): Add m4/minmax.m4.
87917         (configure.ac): Add gl_MINMAX.
87918
87919 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87920
87921         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87922         so that unistd-safer.h (GPL'ed code) need not be included.
87923
87924 2005-05-22  Bruno Haible  <bruno@clisp.org>
87925
87926         * m4/minmax.m4: New file.
87927         Based on a patch by Derek Price <derek@ximbiot.com>.
87928
87929 2005-05-22  Bruno Haible  <bruno@clisp.org>
87930
87931         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87932         (INT64_MIN): Fix definition.
87933         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87934
87935         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87936         NEED_SIGNED_INT_TYPES.
87937
87938         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87939         HAVE_SYSTEM_INTTYPES.
87940
87941 2005-05-22  Bruno Haible  <bruno@clisp.org>
87942
87943         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87944         Also include <sys/param.h> if it defines MIN, MAX.
87945         Based on a patch by Derek Price <derek@ximbiot.com>.
87946
87947 2005-05-21  Jim Meyering  <jim@meyering.net>
87948
87949         * modules/fts (Files): Add m4/inttypes-pri.m4.
87950         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87951
87952 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87953
87954         New fts module.
87955         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87956         (setup_dir, free_dir): New functions.
87957         (enter_dir, leave_dir): Define trivial
87958         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87959         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87960         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87961         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87962         Move to fts-cycle.c.
87963         (fts_open): Use setup_dir.
87964         (fts_close): Use free_dir.
87965         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87966         This adds a label and some gotos, but the alternatives were messier.
87967         Check for memory allocation failure when entering a dir.
87968         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87969         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87970         (FTS): New member fts_cycle, that is a union that contains the
87971         old active_dir_ht and cycle_state.  All uses changed to mention
87972         fts_cycle.ht and fts_cycle.state.
87973         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87974         fts.c, with the following changes:
87975         (setup_dir, free_dir): New functions.
87976         (enter_dir): Now returns bool.  Return true if successful, false
87977         if memory exhausted.  All callers changed.
87978         Do not bother partly cleaning up on
87979         memory allocation failure; that is free_dir's job.
87980         However, free ad if hash_insert fails, to avoid memory leak.
87981         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87982         fts->fts_options to see which union member to use.
87983
87984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87985
87986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87987         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87988
87989 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87990
87991         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87992
87993 2005-05-20  Jim Meyering  <jim@meyering.net>
87994
87995         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87996         Now a macro, to pacify GCC.
87997
87998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87999
88000         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88001         of -1.
88002
88003 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88004
88005         * lib/chown.c (rpl_chown): Return -1 on failure.
88006
88007 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88008
88009         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88010         Don't check for stddef.h.
88011         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88012         don't use its results.
88013         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88014         since we include them unconditionally.  Don't require
88015         AM_STDBOOL_H, since stdbool is a prerequisite.
88016         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88017         since we assume C89 or better.
88018         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88019         as we don't use their results.
88020         Don't check for fchdir, memmove, memset, strrchr, as we use
88021         them unconditionally.
88022         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88023         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88024
88025 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88026
88027         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88028         Include <stddef.h> unconditionally, since we assume C89 now.
88029         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88030         * lib/fts.c: Include fts_.h first, to check interface.
88031         Do not include intprops.h; no longer needed.
88032         Include cycle-check.h and hash.h, since fts_.h no longer does.
88033         Remove unnecessary casts of closedir to void.
88034         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88035         decide whether to decrement nlinks.
88036         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88037         (FTS): Use struct hash_table * instead of Hash_table, so that
88038         we no longer need to include hash.h here.
88039
88040 2005-05-18  Jim Meyering  <jim@meyering.net>
88041
88042         * modules/dirfd (License): Change to LGPL.  Most of the code
88043         is already in the public domain.
88044
88045 2005-05-18  Jim Meyering  <jim@meyering.net>
88046
88047         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88048         Reported by Yoann Vandoorselaere.
88049
88050 2005-05-17  Jim Meyering  <jim@meyering.net>
88051
88052         * m4/fts.m4: New file, from coreutils.
88053
88054 2005-05-17  Jim Meyering  <jim@meyering.net>
88055
88056         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88057
88058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88059
88060         Sync from coreutils.
88061         * m4/unlinkdir.m4: New file.
88062
88063 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88064
88065         Sync from coreutils.
88066         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88067         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88068         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88069         White space changes only.
88070         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88071         special.
88072         * lib/yesno.c: Include getline.h, not ctype.h.
88073         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88074         Use getline to remove arbitrary restriction on response length.
88075
88076 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88077
88078         * config/srclist-update: Spell out "Street" in FSF postal
88079         mail address; this is the style the FSF seems to prefer.
88080
88081         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88082         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88083         this updates FSF postal mail address.
88084
88085         Sync from coreutils.
88086         * modules/unlinkdir: New file.
88087         * modules/yesno (Depends-on): Add getline.
88088         * MODULES.html.sh (File system functions): Add unlinkdir.
88089
88090 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88091
88092         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88093         lib/strsep.h:
88094         Change the initial comment to refer to GPL, not LGPL.
88095         gnulib-tool will change it to LGPL as needed.
88096
88097         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88098         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88099         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88100         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88101         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88102         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88103         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88104         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88105         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88106         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88107         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88108         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88109         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88110         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88111         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88112         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88113         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88114         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88115         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88116         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88117         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88118         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88119         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88120         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88121         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88122         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88123         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88124         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88125         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88126         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88127         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88128         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88129         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88130         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88131         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88132         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88133         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88134         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88135         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88136         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88137         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88138         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88139         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88140         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88141         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88142         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88143         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88144         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88145         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88146         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88147         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88148         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88149         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88150         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88151         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88152         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88153         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88154         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88155         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88156         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88157         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88158         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88159         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88160         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88161         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88162         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88163         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88164         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88165         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88166         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88167         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88168         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88169         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88170         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88171         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88172         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88173         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88174         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88175         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88176         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88177         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88178         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88179         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88180         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88181         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88182         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88183         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88184         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88185         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88186         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88187         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88188         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88189         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88190         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88191         lib/yesno.c, lib/yesno.h:
88192         Update FSF postal mail address.
88193
88194 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88195
88196         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88197         tests/test-memmem.c, tests/test-stpncpy.c:
88198         Update FSF postal mail address.
88199
88200 2005-05-13  Bruno Haible  <bruno@clisp.org>
88201
88202         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88203         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88204         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88205         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88206         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88207         Add support for 64-bit integers in the MSVC compiler.
88208
88209 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88210
88211         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88212
88213 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88214
88215         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88216
88217 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88218
88219         * doc/getdate.texi (General date syntax): Don't say that date
88220         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88221         Problem reported by Nic Ferrier.
88222
88223 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88224
88225         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88226         specified in ai_socktype. Fix invalid ai_protocol
88227         check. ai_protocol is usually set to 0 or depending on
88228         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88229         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88230         ai_socktype / ai_protocol in the returned addrinfo structure.
88231
88232 2005-05-10  Simon Josefsson  <jas@extundo.com>
88233
88234         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88235         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88236
88237 2005-05-10  Karl Berry  <karl@gnu.org>
88238
88239         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88240         (from http://www.gnu.org/licenses).
88241         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88242         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88243         fdl.texi suffices.
88244
88245 2005-05-10  Karl Berry  <karl@gnu.org>
88246
88247         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88248         (COPYING.DOC): remove.
88249
88250         * config/srclist-update: new FSF address.
88251
88252 2005-05-10  Derek Price  <derek@ximbiot.com>
88253
88254         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88255         possible.
88256
88257 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88258             Bruno Haible  <bruno@clisp.org>
88259
88260         * modules/inet_ntop: New file.
88261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88262         inet_ntop.
88263
88264 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88265             Bruno Haible  <bruno@clisp.org>
88266
88267         * m4/inet_ntop.m4: New file.
88268
88269 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88270             Bruno Haible  <bruno@clisp.org>
88271
88272         * lib/inet_ntop.h: New file.
88273         * lib/inet_ntop.c: New file, from glibc with modifications.
88274
88275 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88276
88277         * modules/time_r (License): Change to LGPL.
88278         * modules/extensions (License): Change to LGPL.  Actually,
88279         the license is more permissive than that, but currently gnulib-tool
88280         doesn't know how to handle more-permissive licenses.
88281
88282         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88283         Problem reported by Dave Love.
88284
88285 2005-05-08  Jim Meyering  <jim@meyering.net>
88286
88287         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88288         blank.
88289
88290 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88291
88292         * modules/argmatch (Depends-on): Add stdbool.
88293         * modules/backupfile (Depends-on): Likewise.
88294         * modules/chdir-long (Depends-on): Likewise.
88295         * modules/closeout (Depends-on): Likewise.
88296         * modules/cycle-check (Depends-on): Likewise.
88297         * modules/dirname (Depends-on): Likewise.
88298         * modules/fnmatch (Depends-on): Likewise.
88299         * modules/fsusage (Depends-on): Likewise.
88300         * modules/fwriteerror (Depends-on): Likewise.
88301         * modules/getcwd (Depends-on): Likewise.
88302         * modules/getloadavg (Depends-on): Likewise.
88303         * modules/hard-locale (Depends-on): Likewise.
88304         * modules/makepath (Depends-on): Likewise.
88305         * modules/mountlist (Depends-on): Likewise.
88306         * modules/nanosleep (Depends-on): Likewise.
88307         * modules/posixtm (Depends-on): Likewise.
88308         * modules/quotearg (Depends-on): Likewise.
88309         * modules/readtokens (Depends-on): Likewise.
88310         * modules/readtokens0 (Depends-on): Likewise.
88311         * modules/readutmp (Depends-on): Likewise.
88312         * modules/save-cwd (Depends-on): Likewise.
88313         * modules/strftime (Depends-on): Likewise.
88314         * modules/userspec (Depends-on): Likewise.
88315         * modules/utimecmp (Depends-on): Likewise.
88316         * modules/xgetcwd (Depends-on): Likewise.
88317         * modules/xnanosleep (Depends-on): Likewise.
88318         * modules/xstrtod (Depends-on): Likewise.
88319         * modules/yesno (Depends-on): Likewise.
88320
88321 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88322
88323         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88324         needless checks.
88325
88326 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88327
88328         Merge from coreutils.  Among other things,
88329         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88330         * lib/fd-safer.c: New file.
88331         * lib/fcntl-safer.h, open-safer.c: Remove.
88332         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88333         * lib/dup-safer.c: Include unistd-safer.h first.
88334         Don't include errno.h.
88335         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88336         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88337         * lib/file-type.c: Rely on file-type.h change.
88338         * lib/getloadavg.c: Include unistd-safer.h.
88339         (getloadavg): Use safer open.
88340         * lib/getusershell.c: Include "stdio-safer.h".
88341         (getusershell): Use safer fopen.
88342         * lib/long-options.c (long_options): Use NULL rather than 0.
88343         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88344         'free'.
88345         * lib/modechange.c: Likewise.
88346         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88347         (MODE_DONE): New constant.
88348         (struct mode_change): Remove 'next' member.
88349         (make_node_op_equals): New function; like the old one of the
88350         same name, except it allocates an array.
88351         (mode_compile, mode_create_from_ref): Use it.
88352         (mode_compile): Allocate result as an array, not a linked list.
88353         Parse octal string ourself, so that we catch mistakes like "+0".
88354         (mode_adjust): Arg is an array, not a linked list.
88355         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88356         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88357         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88358         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88359         Remove.  This is now stat-macros.h's job.
88360         (talloc): Remove.  All callers replaced by xalloc, so that
88361         our invokers don't have to worry about reporting memory failures.
88362         (make_node_op_equals): Remove.
88363         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88364         New constants.
88365         (struct mode_change): Moved here from modechange.h.
88366         (mode_append_entry): Remove.
88367         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88368         apps to have incorrect behavior.  Use simpler algorithm for head
88369         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88370         Detect more invalid usages rather than having somewhat-random behavior.
88371         Don't insert an "a=" action, as that leads to incorrect behavior.
88372         (mode_compile, mode_create_from_ref): Return NULL on error instead
88373         of an enum, since now there's only one way to have an error.  All
88374         callers changed.
88375         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88376         at the correct time.  Simplify calculation of "+u" and its ilk.
88377         Don't mishandle "+X".
88378         (mode_free): Remove "register" and localize decls.
88379         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88380         (struct mode_change): Move to modechange.c; callers don't
88381         need to see this stuff.
88382         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88383         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88384         (mode_change, mode_adjust): Reflect the new signatures noted above.
88385         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88386         that might redefine system include files.
88387         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88388         (my_usleep): Use NULL rather than (void *) 0.
88389         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88390         Use siginterrupt to specify that system calls should be interrupted.
88391         (rpl_nanosleep): Move initialization of suspended closer to call of
88392         my_usleep.
88393         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88394         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88395         (desirable_utmp_entry): New function.
88396         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88397         using x2nrealloc, to simplify logic.
88398         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88399         size calculation.  Do not assume utmp file is a regular file.
88400         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88401         (READ_UTMP_CHECK_PIDS): New constant.
88402         * lib/save-cwd.c: Include unistd-safer.h.
88403         (save_cwd): Use fd_safer.
88404         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88405         [!_LIBC] Include "stat-macros.h" instead.
88406         * lib/unistd-safer.h (fd_safer): New decl.
88407
88408 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88409
88410         * modules/getloadavg (Depends-on): Add unistd-safer.
88411         * modules/getusershell (Depends-on): Add stdio-safer.
88412         * modules/lstat (Depends-on): Remove xalloc.
88413         * modules/mkstemp (Depends-on): Add stat-macros.
88414         * modules/modechange (Depends-on): Remove xstrtol.
88415         Add stat-macros, xalloc.
88416         * modules/save-cwd (Depends-on): Add unistd-safer.
88417         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88418         * modules/unistd-safer (Files): Add lib/fd-safer.c
88419         (Makefile.am): Remove lib_SOURCES.
88420
88421         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88422         Remove fcntl-safer; unistd-safer supersedes it.
88423
88424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88425
88426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88427         AC_HEADER_STAT.
88428         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88429         (gl_PREREQ_CHOWN): Remove.
88430         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88431         it.  Don't require AC_HEADER_STAT.
88432         (gl_PREREQ_LSTAT): Remove.
88433         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88434         Don't require AC_HEADER_STAT.
88435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88436         (gl_PREREQ_RMDIR): Remove.
88437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88438         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88439         the stat-macros module a prerequisite.
88440         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88441         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88442         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88443         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88444         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88445         variable names.
88446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88447         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88448         variable prefixes.
88449         * m4/fcntl-safer.m4: Remove.
88450         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88452         Invoke gl_PREREQ_FD_SAFER.
88453         (gl_PREREQ_FD_SAFER): New macro.
88454         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88455         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88456         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88457         Remove duplicate call to AC_LIBOBJ(readutmp).
88458         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88459
88460         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88461         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88462
88463 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88464
88465         * MODULES.html.sh (Misc): Add byteswap.
88466
88467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88468
88469         * modules/getcwd (Depends-on): Add extensions.
88470         * modules/openat (Depends-on): Likewise.
88471
88472 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88473
88474         * modules/byteswap: New file.
88475
88476 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88477
88478         * m4/byteswap.m4: New file.
88479
88480 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88481
88482         * lib/byteswap_.h: New file.
88483
88484 2005-04-25  Karl Berry  <karl@gnu.org>
88485
88486         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88487
88488 2005-04-25  Albert Chin  <china@thewrittenword.com>
88489
88490         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88491         Toolkit C bug.
88492
88493 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88494
88495         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88496         (func_ln_if_changed): Remove forcibly for no error message
88497         in case file does not exist.
88498
88499 2005-04-19  Simon Josefsson  <jas@extundo.com>
88500
88501         * gnulib-tool (Options): Make --symlink mean --symbolic.
88502
88503 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88504
88505         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88506
88507 2005-04-16  Simon Josefsson  <jas@extundo.com>
88508
88509         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88510
88511 2005-04-15  Simon Josefsson  <jas@extundo.com>
88512
88513         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88514
88515 2005-04-15  Simon Josefsson  <jas@extundo.com>
88516
88517         * gnulib-tool: Rename --symlink to --symbolic.
88518
88519 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88520
88521         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88522         symbolic links to files instead of copying/moving.  Add --aux-dir,
88523         specifying directory relative --dir where auxiliary build tools
88524         are placed.
88525
88526 2005-04-14  Bruno Haible  <bruno@clisp.org>
88527
88528         * modules/allocsa (License): Change to LGPL.
88529         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88530
88531 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88532
88533         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88534         that "UTC +1 second" continues to work.  Problem reported
88535         by Dmitry V. Levin.
88536         (relunit_snumber): New rule.
88537         (relunit): Use it.
88538
88539 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88540
88541         * lib/getdate.y (universal_time_zone_table): New constant.
88542         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88543         universal_time_zone_table.
88544         (lookup_zone): Prefer universal_time_zone_table to
88545         local_time_zone_table, so that "GMT" time stamps are allowed in
88546         London during the summer.  Problem reported by Ian Abbott.
88547
88548 2005-04-12  Jim Meyering  <jim@meyering.net>
88549
88550         * lib/human.c (humblock): Set *options even when returning due to
88551         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88552         warning from gcc-4.
88553
88554 2005-04-09  Jim Meyering  <jim@meyering.net>
88555
88556         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88557         -Wuninitialized: initialize tm0.tm_year.
88558
88559 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88560
88561         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88562         count, since there's no maximum.  All uses changed.
88563         Add member dsts_seen.
88564         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88565         not being INT_MAX.
88566         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88567         Use pc_rels_seen to decide whether a date is absolute.
88568
88569         * lib/getdate.y (number): Don't overwrite year.
88570         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88571         check.
88572
88573 2005-04-02  Simon Josefsson  <jas@extundo.com>
88574
88575         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88576         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88577
88578 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88579
88580         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88581         where no absolute path name can be longer than PATH_MAX.
88582
88583 2005-03-27  Jim Meyering  <jim@meyering.net>
88584
88585         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88586
88587 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88588
88589         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88590         "one's complement" -> "ones' complement" in comment, as per Knuth.
88591         "value of type" -> "type or expression" in comment.
88592         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88593
88594 2005-03-26  Jim Meyering  <jim@meyering.net>
88595
88596         Comment nits.
88597         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88598         Correct typos: s/or/of/.
88599
88600 2005-03-26  Jim Meyering  <jim@meyering.net>
88601
88602         * modules/check-include-files: Move to ../ and rename to...
88603         * check-module: ...this.
88604
88605 2005-03-25  Jim Meyering  <jim@meyering.net>
88606
88607         * modules/xvasprintf (Files): Add xalloc.h.
88608
88609 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88610
88611         * modules/gettext (Files): config/config.rpath ->
88612         build-aux/config.rpath
88613         * modules/iconv (Files): Likewise.
88614         Problem reported by Oskar Liljeblad.
88615
88616 2005-03-23  Jim Meyering  <jim@meyering.net>
88617
88618         * modules/check-include-files: New script to check for
88619         missing dependencies, multiple includes, etc.
88620
88621         * modules/c-strtold (Depends-on): Add xalloc.
88622         * modules/c-strtod (Depends-on): Add xalloc.
88623         * modules/hash (Depends-on): Add xalloc.
88624         (Files): Remove lib/xalloc.h.
88625
88626         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88627         * modules/userspec (Files): Add lib/inttostr.h.
88628
88629 2005-03-23  Jim Meyering  <jim@meyering.net>
88630
88631         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88632
88633 2005-03-22  Jim Meyering  <jim@meyering.net>
88634
88635         * modules/stat-macros: New module.
88636         * modules/canonicalize, modules/euidaccess, modules/file-type,
88637         * modules/filemode, modules/lchown, modules/makepath,
88638         * modules/rmdir, modules/stat: Depend on new stat-macros module
88639         rather than listing lib/stat-macros.h manually.
88640         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88641
88642 2005-03-22  Jim Meyering  <jim@meyering.net>
88643
88644         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88645
88646 2005-03-22  Bruno Haible  <bruno@clisp.org>
88647
88648         * config/srclist.txt: Replace target directory 'config' with
88649         'build-aux'.
88650         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88651         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88652         ../build-aux/.
88653
88654 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88655
88656         * modules/chdir-long (Depends-on): Add mempcpy.
88657
88658         * modules/acl, modules/backupfile, modules/c-strtod,
88659         modules/c-strtold, modules/canon-host, modules/canonicalize,
88660         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88661         modules/exclude, modules/exitfail, modules/file-type,
88662         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88663         modules/getdate, modules/getline, modules/getpagesize,
88664         modules/getpass, modules/getugroups, modules/group-member,
88665         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88666         modules/inttostr, modules/long-options, modules/makepath,
88667         modules/md5, modules/memcasecmp, modules/memcoll,
88668         modules/modechange, modules/mountlist, modules/path-concat,
88669         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88670         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88671         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88672         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88673         modules/strftime, modules/strndup, modules/strverscmp,
88674         modules/timespec, modules/unlocked-io, modules/userspec,
88675         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88676         modules/yesno:
88677         Remove lib_SOURCES line from Makefile.am section, as this is now
88678         done automatically by the corresponding Autoconf macro.
88679
88680 2005-03-21  Jim Meyering  <jim@meyering.net>
88681
88682         Changes imported from coreutils.
88683
88684         * lib/cycle-check.c: Don't include xalloc.h.
88685
88686         * lib/path-concat.c: Don't include assert.h.
88687         (path_concat): Remove assertion that would have triggered
88688         for ABASE starting with more than one slash.
88689         Reported by Andreas Schwab.
88690
88691         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88692         properly when ABASE is an absolute file name.
88693         Correct the description of this function.
88694         Include <assert.h>.
88695         Add an assertion and a test driver.
88696         This fixes a bug introduced on 2004-07-02.
88697         Andreas Schwab reported the resulting failure of cp --parents:
88698         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88699
88700 2005-03-21  Jim Meyering  <jim@meyering.net>
88701
88702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88704
88705 2005-03-21  Jim Meyering  <jim@meyering.net>
88706         and  Paul Eggert  <eggert@cs.ucla.edu>
88707
88708         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88709         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88710         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88711         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88712         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88713         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88714         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88715         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88716         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88717         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88718         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88719         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88720         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88721         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88722         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88723         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88724         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88725         for these modules.
88726
88727 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88728
88729         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88730         (which shouldn't happen), generate nothing instead of returning 0
88731         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88732
88733 2005-03-16  Bruno Haible  <bruno@clisp.org>
88734
88735         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88736         HAVE_LONGLONG_64BIT.
88737
88738 2005-03-16  Bruno Haible  <bruno@clisp.org>
88739
88740         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88741         HAVE_LONGLONG_64BIT.
88742
88743 2005-03-16  Bruno Haible  <bruno@clisp.org>
88744
88745         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88746         HAVE_LONGLONG_64BIT.
88747
88748 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88749
88750         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88751         reliably distinguish strftime failure from empty output on POSIX
88752         hosts.
88753
88754 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88755
88756         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88757         (iconv_string): Don't guess a size-zero buffer, as that might cause
88758         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88759         result would be 'too large', where 'too large' is (heuristically)
88760         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88761         overflow concerns.  This will prevent some unwanted malloc failures
88762         when the inputs are very large.
88763
88764 2005-03-15  Karl Berry  <karl@gnu.org>
88765
88766         * config/srclist.txt (config.rpath): from gettext.
88767         * config/config.rpath: update.
88768
88769 2005-03-15  Bruno Haible  <bruno@clisp.org>
88770
88771         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88772         to 'negate'.
88773
88774         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88775         variable.
88776
88777         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88778         results.
88779
88780 2005-03-14  Simon Josefsson  <jas@extundo.com>
88781
88782         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88783         <fx@gnu.org>.
88784
88785 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88786
88787         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88788         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88789         intprops.h.
88790         * lib/strtol.c: Likewise.
88791
88792 2005-03-14  Jim Meyering  <jim@meyering.net>
88793
88794         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88795         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88796         to be nonzero so that we (and caller) can detect the difference
88797         between a valid zero-length expansion and an error return, even
88798         when the underlying strftime fails before writing anything into
88799         that location.
88800
88801 2005-03-14  Bruno Haible  <bruno@clisp.org>
88802
88803         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88804         Update from GNU gettext 0.14.3.
88805
88806 2005-03-10  Jim Meyering  <jim@meyering.net>
88807
88808         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88809
88810 2005-03-10  Jim Meyering  <jim@meyering.net>
88811
88812         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88813         so that this module works on systems without fchdir.
88814
88815 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88816
88817         Factor int-properties macros into a single file, except for
88818         glibc-related files.
88819         * lib/intprops.h: New file.
88820         * lib/getloadavg.c: Include it instead of limits.h.
88821         (INT_STRLEN_BOUND): Remove.
88822         * lib/human.c: Include intprops.h.
88823         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88824         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88825         302/1000.
88826         * lib/inttostr.h: Include intprops.h instead of limits.h.
88827         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88828         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88829         for consistency with intprops.h.
88830         (time_t_is_integer, twos_complement_arithmetic): Use them.
88831         * lib/sig2str.h: Include <signal.h>, intprops.h.
88832         (INT_STRLEN_BOUND): Remove.
88833         * lib/strftime.c (TYPE_SIGNED): Remove.
88834         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88835         * lib/strtol.c: Adjust comments to match intprops.h.
88836         * lib/userspec.c: Include intprops.h.
88837         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88838         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88839         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88840         instead of rolling our own expressions.
88841         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88842
88843         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88844         instead of int.
88845         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88846         the right thing even if adding 1900 would overflow.  Similarly
88847         for tm_mon + 1 and tm_yday + 1.
88848         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88849         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88850         (DO_SIGNED_NUMBER): New macro.
88851         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88852
88853 2005-03-07  Bruno Haible  <bruno@clisp.org>
88854
88855         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88856
88857 2005-03-07  Bruno Haible  <bruno@clisp.org>
88858
88859         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88860
88861 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88862
88863         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88864         (func_import): Only replace files via --import when they have actually
88865         changed.
88866
88867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88868
88869         * m4/mmap-anon.m4: New file.
88870         * m4/pagealign_alloc.m4: New file.
88871
88872 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88873             Bruno Haible  <bruno@clisp.org>
88874
88875         * modules/pagealign_alloc: New file.
88876         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88877
88878 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88879             Bruno Haible  <bruno@clisp.org>
88880
88881         * lib/pagealign_alloc.h: New file.
88882         * lib/pagealign_alloc.c: New file.
88883
88884 2005-03-03  Bruno Haible  <bruno@clisp.org>
88885
88886         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88887         Use an all-permissive copyright notice, recommended by RMS.
88888
88889 2005-03-02  Bruno Haible  <bruno@clisp.org>
88890
88891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88892         of AIX, the replacement has to be done only after <string.h> is
88893         included, therefore not in config.h. stpncpy.h does the replacement,
88894         and stpncpy.c uses it.
88895
88896 2005-03-02  Bruno Haible  <bruno@clisp.org>
88897
88898         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88899         stpncpy.c uses it.
88900
88901 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88902
88903         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88904         The workaround isn't strictly needed for POSIX conformance, and
88905         it's too much of a pain to configure and maintain.  We'll ask
88906         people to fix their kernels instead.
88907         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88908         (NANOSLEEP_BUG_WORKAROUND): Remove.
88909         (xnanosleep): Remove the workaround.
88910
88911 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88912
88913         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88914         Reported by Derek Price.
88915         (Include): Add "timespec.h".
88916
88917         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88918
88919 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88920
88921         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88922         to detect nanosleep bug.
88923
88924 2005-03-01  Bruno Haible  <bruno@clisp.org>
88925
88926         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88927
88928 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88929
88930         * modules/gethrxtime: New file.
88931         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88932         (Depends-on): Add gethrxtime.
88933         (configure.ac): Add gl_XNANOSLEEP.
88934         (Makefile.am): Remove lib_SOURCES line.
88935
88936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88937
88938         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88939         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88940
88941 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88942
88943         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88944         * lib/timespec.h (gettime): Return void, since it always
88945         succeeds now.  All uses changed.
88946         * lib/gettime.c (gettime): Likewise.
88947         [HAVE_NANOTIME]: Prefer nanotime.
88948         Assume gettimeofday succeeds, as POSIX requires.
88949         Assime time () succeeds, since other code already does.
88950         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88951         (timespec_subtract): Remove.
88952         (NANOSLEEP_BUG_WORKAROUND): New constant.
88953         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88954         things considerably.  Use it only on GNU/Linux hosts, since the
88955         workaround shouldn't be needed elsewhere.
88956
88957 2005-02-24  Bruno Haible  <bruno@clisp.org>
88958
88959         * modules/gettext (Files): Add m4/glibc2.m4.
88960
88961 2005-02-24  Bruno Haible  <bruno@clisp.org>
88962
88963         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88964         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88965         * m4/progtest.m4:
88966         Update from GNU gettext 0.14.2.
88967         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88968
88969 2005-02-24  Bruno Haible  <bruno@clisp.org>
88970
88971         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88972         * lib/config.charset: Update from GNU gettext 0.14.2.
88973
88974 2005-02-24  Bruno Haible  <bruno@clisp.org>
88975
88976         * lib/gettext.h: Update from GNU gettext 0.14.2.
88977
88978 2005-02-23  Simon Josefsson  <jas@extundo.com>
88979
88980         * m4/iconvme.m4: New file.
88981
88982 2005-02-23  Jim Meyering  <jim@meyering.net>
88983
88984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88985         change.
88986         Thanks to Bruno Haible for catching it.
88987
88988 2005-02-22  Simon Josefsson  <jas@extundo.com>
88989
88990         * modules/iconvme: New file.
88991
88992         * MODULES.html.sh: Add iconvme.
88993
88994 2005-02-22  Simon Josefsson  <jas@extundo.com>
88995
88996         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88997
88998 2005-02-22  Simon Josefsson  <jas@extundo.com>
88999
89000         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89001
89002 2005-02-22  Jim Meyering  <jim@meyering.net>
89003
89004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89005         s/ifndef/ifdef/.
89006
89007 2005-02-20  Neil Conway  <neilc@samurai.com>
89008
89009         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89010         returned by OSX/Darwin if the specified buffer is not large
89011         enough for the hostname.
89012
89013 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89014
89015         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89016         pass it to _help, otherwise the latter coredumps trying to
89017         dereference state.root_argp.
89018
89019 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89020
89021         * modules/chdir-long (Depends-on): Add memrchr.
89022         * modules/memrchr (Files): Add lib/memrchr.h.
89023         (Include): "memrchr.h".
89024
89025 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89026
89027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89028
89029 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89030
89031         * lib/memrchr.h: New file.
89032         * lib/chdir-long.c: Include it.
89033         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89034         Don't bother including stddef.h.
89035
89036 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89037
89038         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89039         inclusion.
89040         Include <sys/types.h>, for dev_t.
89041         (ME_DUMMY, ME_REMOTE): Move from here....
89042         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89043         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89044         Dmitry V. Levin.
89045         Include mountlist.h first, to test the interface.
89046
89047 2005-01-29  Bruno Haible  <bruno@clisp.org>
89048
89049         * lib/progname.c (program_name): Initialize.
89050         Needed when linking statically on MacOS X.
89051
89052 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89053
89054         Sync from coreutils.
89055         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89056         (Depends-on): Add c-strtod.
89057         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89058
89059 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89060
89061         Sync from coreutils.
89062         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89063
89064         Remove files that are specific to coreutils.
89065         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89066
89067 2005-01-28  Bruno Haible  <bruno@clisp.org>
89068
89069         * modules/javacomp: New file.
89070         * MODULES.html.sh (Java): Add javacomp.
89071
89072 2005-01-28  Bruno Haible  <bruno@clisp.org>
89073
89074         * m4/javacomp.m4: New file, from GNU gettext.
89075
89076 2005-01-28  Bruno Haible  <bruno@clisp.org>
89077
89078         * lib/javacomp.sh.in: New file, from GNU gettext.
89079         * lib/javacomp.h: New file, from GNU gettext.
89080         * lib/javacomp.c: New file, from GNU gettext.
89081
89082 2005-01-26  Simon Josefsson  <jas@extundo.com>
89083
89084         * lib/gai_strerror.c: Use GPL in header.
89085
89086 2005-01-26  Bruno Haible  <bruno@clisp.org>
89087
89088         * modules/javaexec: New file.
89089         * MODULES.html.sh (Java): Add javaexec.
89090
89091 2005-01-26  Bruno Haible  <bruno@clisp.org>
89092
89093         * m4/javaexec.m4: New file, from GNU gettext.
89094
89095 2005-01-26  Bruno Haible  <bruno@clisp.org>
89096
89097         * lib/javaexec.sh.in: New file, from GNU gettext.
89098         * lib/javaexec.h: New file, from GNU gettext.
89099         * lib/javaexec.c: New file, from GNU gettext.
89100
89101 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89102
89103         * modules/lchown (Depends-on): Remove lchown.h
89104
89105 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89106
89107         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89108         must be defined if the header file was not found, in order
89109         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89110
89111 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89112
89113         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89114         initializers for struct pentry_state.
89115         (__argp_error): Check return value of __asprintf
89116         (__argp_failure): Translate error message
89117
89118         * lib/argp-parse.c: Removed braces around the expansion of N_()
89119
89120 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89121
89122         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89123         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89124         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89125         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89126         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89127         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89128         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89129         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89130         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89131         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89132         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89133         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89134         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89135         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89136         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89137         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89138         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89139         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89140         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89141         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89142         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89143         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89144         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89145         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89146         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89147         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89148         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89149         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89150         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89151         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89152         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89153         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89154         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89155         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89156         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89157         Use an all-permissive copyright notice, recommended by RMS.
89158
89159 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89160
89161         * modules/chdir-long (Depends-on): Remove mempcpy.
89162
89163 2005-01-21  Jim Meyering  <jim@meyering.net>
89164
89165         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89166         same value as for Solaris 9.
89167
89168         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89169         component length.  This included changing the parameter to be
89170         of type `char *' rather than `char const *'.
89171         * lib/chdir-long.h (chdir_long): Update prototype.
89172
89173         * lib/openat.c (fdopendir, fstatat): New functions.
89174         * lib/openat.h: Include headers required for use of DIR and struct
89175         stat.
89176         [AT_SYMLINK_NOFOLLOW]: Define.
89177         (fdopendir, fstatat): Add prototypes.
89178
89179 2005-01-21  Bruno Haible  <bruno@clisp.org>
89180
89181         * modules/classpath: New file.
89182         * MODULES.html.sh (Java): Add classpath.
89183
89184 2005-01-21  Bruno Haible  <bruno@clisp.org>
89185
89186         * lib/classpath.h: New file, from GNU gettext.
89187         * lib/classpath.c: New file, from GNU gettext.
89188
89189 2005-01-20  Simon Josefsson  <jas@extundo.com>
89190
89191         * modules/version-etc-fsf: New file.
89192
89193 2005-01-20  Simon Josefsson  <jas@extundo.com>
89194
89195         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89196         * lib/version-etc.c: Remove version_etc_copyright.
89197         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89198         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89199
89200 2005-01-20  Simon Josefsson  <jas@extundo.com>
89201
89202         * lib/base64.h (isbase64): Add.
89203
89204         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89205         using a unsigned prototype, don't inline.
89206         (base64_decode): Use it.
89207
89208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89209
89210         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89211         it.
89212
89213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89214
89215         * lib/save-cwd.c (save_cwd): Remove code to support the case
89216         where fchdir is missing or flaky.
89217
89218 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89219
89220         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89221
89222 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89223
89224         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89225         AC_LIBSOURCES now does this.
89226         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89227         with new ullong_max module.
89228
89229 2005-01-19  Bruno Haible  <bruno@clisp.org>
89230
89231         * modules/sh-quote: New file.
89232         * MODULES.html.sh (Executing programs): Add sh-quote.
89233
89234 2005-01-19  Bruno Haible  <bruno@clisp.org>
89235
89236         * lib/sh-quote.h: New file, from GNU gettext.
89237         * lib/sh-quote.c: New file, from GNU gettext.
89238
89239 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89240
89241         Merge from coreutils.
89242         * m4/ullong_max.m4: New file.
89243         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89244         (gl_MACROS): Assume localeconv exists.
89245
89246 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89247
89248         Merge changes from coreutils, as described below in several
89249         changelogs dated today.
89250
89251         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89252         (O_DIRECTORY): Remove; not needed here, since "." must be
89253         a directory.  All uses removed.
89254         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89255         universal on Suns, and we also need to test for IRIX.
89256         Revamp code to use 'if' rather than '#if'.
89257         Avoid unnecessary comparison of cwd->desc to 0.
89258
89259         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89260         for known valid error numbers rather than observed invalid ones.
89261
89262 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89263
89264         * modules/ullong_max: New file.
89265
89266         * modules/chdir-long, modules/openat: New files.
89267         * modules/save-cwd (Depends-on): Depend on chdir-long.
89268         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89269
89270 2005-01-18  Jim Meyering  <jim@meyering.net>
89271
89272         Merge from coreutils.
89273         * m4/chdir-long.m4, m4/openat.m4: New files.
89274         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89275         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89276         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89277         is sane and DOES follow symlinks.  Besides, testing 20 different
89278         systems found no broken chown implementations.
89279         Prompted by a change in rsync's copy of this macro.
89280         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89281
89282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89283
89284         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89285         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89286         NULL-means-set-to-current-time semantics.
89287         Remove temporary file immediately, rather than waiting
89288         for configure's at-exit trap code to do it.
89289
89290 2005-01-18  Jim Meyering  <jim@meyering.net>
89291
89292         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89293
89294         * lib/utimens.c (futimens): Account for the fact that futimes
89295         can also fail with errno == ENOSYS or errno == ENOENT.
89296         Patch from Dmitry V. Levin.
89297
89298         Change the name of the robust chdir function from chdir to chdir_long.
89299         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89300         (restore_cwd): Use chdir_long, not chdir.
89301         * lib/chdir-long.c: Renamed from chdir.c.
89302         * lib/chdir-long.h: Renamed from chdir.h.
89303         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89304         Hurd.
89305
89306 2005-01-18  Bruno Haible  <bruno@clisp.org>
89307
89308         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89309         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89310         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89311         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89312         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89313         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89314         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89315         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89316         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89317         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89318         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89319         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89320         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89321         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89322         Use an all-permissive copyright notice, recommended by RMS.
89323
89324 2005-01-18  Bob Proulx  <bob@proulx.com>
89325
89326         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89327         simplify offsetof() macro construct to avoid compile failure with
89328         native HP-UX 11.0 ANSI C compiler.
89329
89330 2005-01-17  Bruno Haible  <bruno@clisp.org>
89331
89332         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89333         redundant because stpncpy.m4 takes care of it.
89334
89335 2005-01-17  Bruno Haible  <bruno@clisp.org>
89336
89337         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89338
89339 2005-01-17  Bruno Haible  <bruno@clisp.org>
89340
89341         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89342         used.
89343
89344 2005-01-17  Bruno Haible  <bruno@clisp.org>
89345
89346         * lib/fwriteerror.h (fwriteerror): Change specification to include
89347         fclose.
89348         * lib/fwriteerror.c: Include <stdbool.h>.
89349         (fwriteerror): At the end, close the file stream. Record whether
89350         stdout was already closed.
89351
89352 2005-01-17  Bruno Haible  <bruno@clisp.org>
89353
89354         * lib/execute.c (environ): Declare if needed.
89355         * lib/pipe.c (environ): Likewise.
89356         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89357
89358 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89359
89360         * modules/argp: Depend on vsnprintf
89361
89362 2005-01-10  Jim Meyering  <jim@meyering.net>
89363
89364         * modules/closeout (Depends-on): Add atexit.
89365
89366 2005-01-06  Bruno Haible  <bruno@clisp.org>
89367
89368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89369
89370 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89371
89372         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89373         definitions to be after all include files, to avoid collisions.
89374         Problem reported by Bob Proulx.
89375
89376 2005-01-04  Jim Meyering  <jim@meyering.net>
89377
89378         Changes imported from coreutils.
89379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89380         as the mkstemp template, use a temporary directory and an
89381         8.3-friendly template to avoid trouble on systems like DJGPP.
89382         Reported by Juan M. Guerrero via Stepan Kasal.
89383         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89384         close. Remove the temporary directory right away, rather than waiting
89385         for configure's at-exit trap code to do it.
89386         Suggestion from Stepan Kasal.
89387
89388 2005-01-01  Simon Josefsson  <jas@extundo.com>
89389
89390         * gnulib-tool: Print #include directives when --import'ing.
89391
89392 2004-12-28  Simon Josefsson  <jas@extundo.com>
89393
89394         * tests/test-base64.c: Include required header files.  Remove
89395         unused variables.
89396
89397 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89398
89399         * modules/error (Depends-on): Remove gettext.
89400
89401 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89402
89403         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89404         not needed.  This removes a dependency on the gettext module.
89405         [defined _LIBC]: Do not include <libintl.h>; not needed.
89406
89407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89408
89409         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89410         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89411
89412 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89413
89414         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89415         HAVE_DECL_STRTOLD.
89416
89417 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89418
89419         * modules/getdate (Depends-on): Remove alloca-opt.
89420
89421 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89422
89423         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89424
89425 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89426
89427         * lib/argp-parse.c: Include <stddef.h>.
89428         (alignof, alignto): New macros.
89429         (parser_init): Don't assume that void * is aligned sufficiently
89430         for struct option.
89431
89432         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89433         need to extend the stack.
89434         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89435         large.
89436
89437 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89438
89439         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89440
89441 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89442
89443         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89444         (2004-10-24) change.  Apparently this was a false alarm.
89445
89446         * modules/getdate: Depend on alloca-opt, not alloca.
89447
89448 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89449
89450         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89451         Remove now-obsolete comment about AIX.
89452         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89453         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89454         (YYMAXDEPTH): New macro.
89455
89456 2004-12-18  Simon Josefsson  <jas@extundo.com>
89457
89458         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89459
89460 2004-12-18  Bruno Haible  <bruno@clisp.org>
89461
89462         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89463
89464 2004-12-18  Bruno Haible  <bruno@clisp.org>
89465
89466         * lib/fatal-signal.c (fatal_signals): Make non-const.
89467         (init_fatal_signals): New function.
89468         (uninstall_handlers, install_handlers): Ignore signals that were set to
89469         SIG_IGN.
89470         (at_fatal_signal): Call init_fatal_signals.
89471         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89472         SIG_IGN.
89473         Reported by Paul Eggert.
89474
89475 2004-12-18  Bruno Haible  <bruno@clisp.org>
89476
89477         * doc/alloca.texi: New file.
89478         * doc/alloca-opt.texi: New file.
89479
89480 2004-12-17  Jim Meyering  <jim@meyering.net>
89481
89482         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89483         Otherwise, install-sh could exit with improper exit status when
89484         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89485
89486 2004-12-16  Simon Josefsson  <jas@extundo.com>
89487
89488         * tests/test-base64.c: Add license.
89489
89490 2004-12-15  Stepan Kasal  <address@hidden>
89491
89492         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89493
89494 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89495
89496         * modules/getcwd (Files): Add m4/d-ino.m4.
89497         Suggested by Mark D. Baushke.
89498
89499 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89500
89501         * lib/getdate.y (textint): New member "negative".
89502         (time_zone_hhmm): New function.
89503         Expect 14 shift-reduce conflicts, not 13.
89504         (o_colon_minutes): New rule.
89505         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89506         (yylex): Set the "negative" member of signed numbers.
89507
89508 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89509
89510         * doc/getdate.texi (Time of day items, Time zone items):
89511         Describe new formats +00:00, UTC+00:00.
89512
89513 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89514
89515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89516         spurious "-l"s.  Problem reported by Stepan Kasal.
89517
89518 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89519
89520         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89521         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89522
89523 2004-12-04  Simon Josefsson  <jas@extundo.com>
89524
89525         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89526         Vandoorselaere <yoann@prelude-ids.org>.
89527
89528 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89529
89530         Changes imported from coreutils.
89531         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89532         exist.
89533         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89534
89535 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89536
89537         Changes imported from coreutils.
89538         * lib/hard-locale.c: Assume <locale.h> exists.
89539         Include "strdup.h".
89540         (GLIBC_VERSION): New macro.
89541         (hard_locale): Assume setlocale exists.
89542         Rewrite to avoid #ifdef.
89543         Use strdup rather than malloc + strcpy.
89544         * lib/human.c: Assume <locale.h> exists.
89545         (human_readable): Assume localeconv exists.
89546
89547 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89548
89549         * modules/hard-locale (Depends-on): Add strdup.
89550
89551 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89552
89553         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89554         convert T2, not T.  (Imported from libc.)
89555
89556 2004-11-30  Simon Josefsson  <jas@extundo.com>
89557
89558         * modules/restrict (License): Change to LGPL.
89559
89560 2004-11-30  Simon Josefsson  <jas@extundo.com>
89561
89562         * m4/restrict.m4: Add copyright and copying conditions.
89563
89564 2004-11-30  Simon Josefsson  <jas@extundo.com>
89565
89566         * m4/base64.m4: New file.
89567
89568 2004-11-30  Simon Josefsson  <jas@extundo.com>
89569
89570         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89571         base64.
89572
89573         * tests/test-base64.c: New file.
89574
89575         * modules/base64: New file.
89576
89577 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89578
89579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89580         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89581
89582         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89583
89584 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89585
89586         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89587         (__getcwd.c): Don't restore errno; glibc doesn't.
89588         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89589         first, falling back to our code only if its results look suspicious.
89590         Ensure that the resulting buffer is only as large as necessary.
89591
89592         * lib/readutmp.c: Include readutmp.h first.
89593         Include <errno.h>, since readutmp.h no longer does that.
89594         * lib/readutmp.h: Don't include <errno.h>,
89595         <sys/param.h>, <time.h>; not needed to establish interface.
89596         (errno): Remove decl.
89597         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89598         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89599         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89600
89601 2004-11-28  Simon Josefsson  <jas@extundo.com>
89602
89603         * lib/base64.h, base64.c: New file.
89604
89605 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89606
89607         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89608
89609 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89610
89611         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89612         (Depends-on): Remove pathmax, same.  Add mempcpy.
89613         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89614         (Makefile.am): Append getcwd.h to lib_SOURCES.
89615         (Include): Add getcwd.h.
89616         (Maintainer): Change from Jim Meyering to "all, glibc",
89617         since getdate now uses intended-for-glibc code.
89618         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89619         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89620
89621 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89622
89623         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89624         HP's ANSI C compiler.
89625         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89626         Declaring int functions causes warnings on some modern systems and
89627         shouldn't be needed to compile on ancient ones.
89628         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89629         defined.
89630
89631         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89632         with the following changes.
89633         (__set_errno): Parenthesize properly.
89634         Include <stdbool.h>.
89635         (MIN, MAX, MATCHING_INO): New macros.
89636         (__getcwd): Define with prototype, not K&R form.
89637         Use heuristics to allocate default buffer on stack if possible.
89638         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89639         behavior, and to avoid the PATH_MAX limit when computing
89640         ../../../../...
89641         Use MATCHING_INO to compare inode number to file.
89642         Check for arithmetic overflow in size calculations.
89643         Fix bug in reallocation of dot array that caused getcwd to fail
89644         on directories nested deeper than 75.
89645         Be more careful about saving errno on error.
89646         Do not use realloc; use only free+malloc, as this is a bit
89647         more flexible and avoids a needless copy operation.
89648         Do not inspect st_dev and st_ino for symbolic links; POSIX
89649         doesn't specify the latter.
89650         Check for closedir errors.
89651         Avoid needless casts.
89652         Use "#ifdef weak_alias" around weak_alias, to be like other
89653         glibc code.
89654         The following changes to getcwd.c have effect only when used in
89655         gnulib; they have no effect inside glibc proper.
89656         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89657         as alloca isn't used.
89658         (alloca, __alloca): Likewise.
89659         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89660         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89661         unconditionally, as gnulib assumes C89 or better.
89662         Do not include <sys/param.h>.
89663         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89664         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89665         better.
89666         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89667         Include <dirent.h> in a way that is compatible with modern Autoconf.
89668         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89669         New macros, if not already defined.
89670         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89671         Use "_LIBC", not "defined _LIBC", for consistency.
89672         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89673         a mempcpy module.
89674         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89675         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89676         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89677         credit only to Jim Meyering and adjust the copyright dates.
89678         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89679         <stdlib.h>, <unistd.h>, "pathmax.h".
89680         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89681         (INITIAL_BUFFER_SIZE): Remove.
89682         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89683
89684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89685
89686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89687         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89688         Use the _ONCE methods, for efficiency.
89689         Check for fcntl.h.  In test program, include <errno.h>
89690         and <fcntl.h> if available.  Remove old K&R cruft from
89691         test program.  Check for common errors in GNU/Linux,
89692         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89693         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89695         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89696         name accordingly.
89697         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89698         accommodate new getcwd.c.
89699         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89700         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89701         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89702         that's all we need now.
89703
89704 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89705
89706         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89707         argp-parse.c depends on getopt internals, that means we should
89708         always use our getopt, to be on the safe side.
89709         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89710         order not to spoil the result of an eventual previous invocation
89711         of gl_GETOPT_SUBSTITUTE.
89712
89713 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89714
89715         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89716         redefinition warnings. To avoid them, include the defines
89717         in `#if !defined __need_getopt ... #endif'. The only place
89718         where __getopt_argv_const is used is in definitions
89719         of getopt_long and getopt_long_only below, which are as well
89720         protected by `#ifndef __need_getopt'.
89721         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89722         __need_getopt after including <stdio.h> and <unistd.h> These
89723         headers might have defined it.
89724
89725 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89726
89727         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89728
89729 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89730
89731         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89732         (futimens): New function, which uses futimes if available.
89733         (futimens, utimens): Support timespec==NULL, with same semantics
89734         as utime and utimens.
89735         * lib/utimens.h (futimens): New decl.
89736
89737 2004-11-23  Jim Meyering  <jim@meyering.net>
89738
89739         * lib/getopt_.h: Remove trailing blanks.
89740
89741 2004-11-23  Jim Meyering  <jim@meyering.net>
89742
89743         * lib/__fpending.c: Add comment.
89744
89745 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89746
89747         * modules/canonicalize (Depends-on): Add xreadlink.
89748         Problem reported by James Youngman.
89749
89750 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89751
89752         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89753         New macros.
89754         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89755         optopt): Use them instead of invoking ## directly; otherwise, the
89756         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89757
89758 2004-11-19  Bruno Haible  <bruno@clisp.org>
89759
89760         * lib/strtok_r.c: Move comments from here...
89761         * lib/strtok_r.h: ... to here.
89762
89763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89764
89765         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89766         implementations that mishandle size_t overflow.
89767
89768 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89769
89770         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89771         might fail.  Problem reported by Yoann Vandoorselaere.
89772         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89773         implementations that mishandle size_t overflow.
89774
89775 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89776
89777         * modules/canon-host (Depends-on): Add strdup.
89778
89779 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89780
89781         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89782
89783 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89784
89785         * lib/canon-host.c: Include "strdup.h".
89786         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89787         Use strdup instead of malloc/strcpy to duplicate strings.
89788
89789         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89790         (human_space_before_unit): New constant.
89791         * lib/human.c (human_readable): Support it.
89792
89793         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89794         (xgetcwd): Set errno correctly when failing.
89795         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89796         the failure is actually due to a PATH_MAX problem.
89797
89798         Further getopt changes to make it more likely that glibc will
89799         buy the changes back.
89800         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89801         (getopt): Use it, so to preserve glibc semantic
89802         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89803         when compiling for libc.
89804         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89805         (getopt_long, getopt_long_only): Use it.
89806
89807         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89808         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89809         (getopt): Argv is now char * const *, as per standard.
89810         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89811         not char *__getopt_argv_const *.
89812         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89813         _getopt_long_only_r): Likewise.
89814         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89815         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89816         _getopt_long_r, _getopt_long_only_r): Likewise.
89817         * lib/getopt_.h (__getopt_argv_const): Remove.
89818         (getopt): Argv is now char * const *, as per standard.
89819
89820         * lib/getdate.y (tORDINAL): New token.
89821         (day, relunit): Allow it for relative times.
89822         (relative_time_table): Use tORDINAL for ordinals.
89823
89824 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89825
89826         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89827         Document that "second" isn't allowed as an ordinal number.
89828
89829 2004-11-16  Jim Meyering  <jim@meyering.net>
89830
89831         * modules/closeout (Depends-on): Add fpending.
89832
89833 2004-11-15  Jim Meyering  <jim@meyering.net>
89834
89835         * lib/closeout.c: Include "__fpending.h" once again.
89836         Include <stdbool.h>.
89837         (close_stdout): Don't fail just because stdout was closed initially,
89838         since some programs don't write to stdout in the normal course of
89839         operation (other than --version and --help), and we don't want this
89840         function to make e.g. `touch file >&-' fail.
89841         But do fail if it was closed and someone has tried to write to it.
89842         E.g., `printf foo >&-' must fail.
89843
89844 2004-11-13  Jim Meyering  <jim@meyering.net>
89845
89846         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89847
89848 2004-11-12  Simon Josefsson  <jas@extundo.com>
89849
89850         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89851         small doc fix is still pending.
89852
89853 2004-11-11  Simon Josefsson  <jas@extundo.com>
89854
89855         * modules/strtok_r: New file.
89856
89857         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89858         strtok_r.
89859
89860 2004-11-11  Simon Josefsson  <jas@extundo.com>
89861
89862         * m4/strtok_r.m4: New file.
89863
89864         * m4/getopt.m4: Replace opterr.
89865
89866 2004-11-11  Simon Josefsson  <jas@extundo.com>
89867
89868         * lib/strtok_r.h, strtok_r.c: New file.
89869
89870 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89871
89872         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89873         of replacing opterr, getopt, etc.  This should handle the
89874         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89875
89876 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89877
89878         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89879         we can stop lying to compilers about the constness of argv when we
89880         are compiled outside glibc.
89881         (getopt, getopt_long, getopt_long_only): Use it.
89882         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89883         _getopt_internal, getopt): Likewise.
89884         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89885         _getopt_long_only_r): Likewise.
89886         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89887         _getopt_long_r, _getopt_long_only_r): Likewise.
89888
89889         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89890         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89891         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89892         the other external symbols.
89893         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89894         declaration, since the above renaming now works around collisions.
89895
89896 2004-11-11  Jim Meyering  <jim@meyering.net>
89897
89898         * lib/linebreak.c: Remove trailing blanks.
89899         * lib/alloca_.h: Likewise.
89900         * lib/acosl.c: Likewise.
89901         * lib/euidaccess.c: Likewise.
89902         * lib/allocsa.h: Likewise.
89903
89904 2004-11-10  Simon Josefsson  <jas@extundo.com>
89905
89906         * m4/getaddrinfo.m4: New file.
89907
89908 2004-11-10  Simon Josefsson  <jas@extundo.com>
89909
89910         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89911
89912 2004-11-10  Simon Josefsson  <jas@extundo.com>
89913
89914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89915         getaddrinfo.
89916
89917         * modules/getaddrinfo: New file.
89918
89919 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89920
89921         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89922
89923 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89924
89925         * lib/mktime.c (SHR): New macro, which is a portable
89926         substitute for >> that should work even on Crays.
89927         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89928         Problem reported by Mark D. Baushke in
89929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89930         * lib/getdate.y (SHR): Likewise.
89931         (tm_diff): Use it.
89932         * lib/strftime.c (SHR): Likewise.
89933         (tm_diff): Use it.
89934         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89935         quote_these_too, so that right shifts are well defined.  All uses
89936         changed.
89937
89938 2004-11-10  Jim Meyering  <jim@meyering.net>
89939
89940         Ensure that no close failure goes unreported.
89941         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89942         return early when it seems there's nothing to flush.
89943         Don't include __fpending.h.
89944
89945 2004-11-10  Jim Meyering  <jim@meyering.net>
89946
89947         * modules/closeout (Depends-on): Remove fpending.
89948
89949 2004-11-10  Jim Meyering  <jim@meyering.net>
89950
89951         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89952
89953 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89954
89955         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89956         gl_FUNC_STRFTIME.
89957         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89958         and AC_REQUIRE when possible, to avoid duplicate checks.
89959         Check for <wchar.h>.
89960
89961 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89962
89963         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89964
89965 2004-11-09  Bruno Haible  <bruno@clisp.org>
89966
89967         * m4/sockpfaf.m4: New file.
89968
89969 2004-11-05  Bruno Haible  <bruno@clisp.org>
89970
89971         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89972         Reported by Mark D. Baushke <mdb@cvshome.org>.
89973
89974 2004-11-04  Bruno Haible  <bruno@clisp.org>
89975
89976         2004-09-11  Bruno Haible  <bruno@clisp.org>
89977                 * allocsa.valgrind: New file.
89978         2004-02-06  Bruno Haible  <bruno@clisp.org>
89979                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89980                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89981                 Reported by Christopher Seip <chris.seip@hp.com>.
89982
89983 2004-11-04  Bruno Haible  <bruno@clisp.org>
89984
89985         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89986         (Makefile.am): Distribute it.
89987
89988 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89989
89990         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89991         with errno == ERANGE if the buffer is too small.
89992         Problem reported by Mark D. Baushke.
89993
89994 2004-11-03  Albert Chin  <china@thewrittenword.com>
89995             Paul Eggert  <eggert@cs.ucla.edu>
89996
89997         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89998         equivalent, substitute $ac_type for equivalent type rather than
89999         blindly using uint32_t *always* which won't work if uint32_t is not
90000         available.  Define _UINT32_T to work around typedef of uint32_t if
90001         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90002         2.5.1.
90003
90004 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90005
90006         * m4/jm-macros.m4: Sync from coreutils.
90007         (gl_MACROS): Check for mbrlen, for pathchk.
90008         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90009
90010 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90011
90012         * lib/xreadlink.c (MAXSIZE): New macro.
90013         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90014         size does not exceed MAXSIZE.  Avoid cast.
90015         As suggested by Mark D. Baushke in
90016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90017         if readlink fails with buffer size just under MAXSIZE, try again
90018         with MAXSIZE.
90019
90020 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90021
90022         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90023
90024 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90025         and  Paul Eggert  <eggert@cs.ucla.edu>
90026
90027         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90028         (get_date): Overparenthesize to avoid GCC warning.
90029
90030 2004-11-02  Bruno Haible  <bruno@clisp.org>
90031
90032         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90033         returns void.
90034
90035 2004-11-02  Bruno Haible  <bruno@clisp.org>
90036
90037         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90038         function returns void.
90039
90040 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90041
90042         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90043         fflush_unlocked, flockfile, funlockfile, funlockfile,
90044         fputs_unlocked, putc_unlocked.
90045
90046 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90047
90048         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90049         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90050         already declared.
90051
90052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90053
90054         * modules/getdate (Files): Add doc/getdate.texi.
90055         (Depends-on): Add setenv, xalloc.
90056
90057 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90058
90059         * lib/getdate.y: Add support for TZ="foo" within a date string.
90060         Fix some bugs near time_t boundaries.  Reject dates with
90061         out-of-range components, e.g., "Sept 31".
90062         Include <stdlib.h>, "setenv.h", "xalloc.h".
90063         (ISDIGIT_LOCALE): Remove; unused.
90064         Note that the TZ and time functions used here are not reentrant.
90065         (mktime_ok, get_tz): New functions.
90066         (TZBUFSIZE): New constant.
90067         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90068         This requires that we sometimes generate our own TZ="XXX..." setting.
90069
90070 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90071
90072         * doc/getdate.texi: New file, from coreutils with modifications for
90073         the new TZ parsing.
90074
90075 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90076
90077         * lib/mktime.c (not_equal_tm): Remove redundant check.
90078
90079 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90080
90081         * modules/regex (lib_SOURCES): Add regex.c.
90082         Reported by James Youngman in
90083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90084
90085 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90086
90087         * lib/getdate.y: Use Bison 1.875 features, and some minor
90088         code cleanups.  This change does not affect semantics.
90089         Don't include <stdlib.h>; no longer needed.
90090         Don't include unlocked-io.h; only the "#if TEST" code uses
90091         stdio, and performance isn't crucial there.
90092         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90093         Bison 1.875 features as described below.
90094         All uses of "PC." replaced by "pc->".
90095         (YYSTYPE): Add a forward declaration.
90096         (yylex, yyerror): Use full prototypes in forward decls.
90097         Use "%pure-parser" rather than obsolescent "%pure_parser".
90098         Use %parse-param and %lex-param instead of obsolescent
90099         YYPARSE_PARAM and YYLEX_PARAM.
90100         (meridian_table, month_and_day_table, time_units_table,
90101         relative_time_table, time_zone_table, military_table,
90102         lookup_zone, lookup_word, get_date):
90103         Use NULL instead of 0 where appropriate.
90104         (to_hour): Avoid abort (), to avoid a dependency on
90105         stdlib.h.
90106         (yyerror, yylex): Now accepts parser_control * arg.
90107         (main) [TEST]: Use '\0' rather than 0 for char.
90108
90109 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90110
90111         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90112
90113 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90114
90115         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90116         It's now the caller's responsibility to handle the case where
90117         !HAVE_GETPAGESIZE && !defined getpagesize.
90118
90119         * lib/mktime.c (leapyear): Arg is long int, not int.
90120
90121 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90122
90123         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90124
90125 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90126
90127         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90128         missing.  Problem reported by James Youngman.
90129
90130 2004-10-16  Simon Josefsson  <jas@extundo.com>
90131
90132         * gnulib-tool: Fix comments.  Fix parse problem.
90133         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90134
90135 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90136
90137         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90138         implementation of getopt_long.  Problem reported by Alexander Taler in:
90139         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90140
90141 2004-10-15  Bruno Haible  <bruno@clisp.org>
90142
90143         * gnulib-tool: Untabify. Initialize supplied_libname.
90144         (func_usage): More homogenous output.
90145         (func_modules_transitive_closure, func_modules_to_filelist,
90146         func_emit_lib_Makefile_am): New functions.
90147         (func_import): New function, extracted from big case statement. Use
90148         func_get_license, func_modules_transitive_closure,
90149         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90150         opt_lgpl. Don't use test -a, as it's not portable.
90151         (func_create_testdir): Use func_modules_transitive_closure,
90152         func_modules_to_filelist, func_emit_lib_Makefile_am.
90153
90154 2004-10-15  Bruno Haible  <bruno@clisp.org>
90155
90156         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90157
90158 2004-10-15  Bruno Haible  <bruno@clisp.org>
90159
90160         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90161         the portions belonging to each module.
90162         Suggested by Derek Robert Price <derek@ximbiot.com>.
90163
90164 2004-10-12  Simon Josefsson  <jas@extundo.com>
90165
90166         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90167         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90168         to real functions.
90169
90170 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90171
90172         * modules/vsnprintf: New file.
90173
90174 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90175
90176         * m4/vsnprintf.m4: New file.
90177
90178 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90179
90180         * lib/vsnprintf.h: New file.
90181         * lib/vsnprintf.c: New file.
90182
90183 2004-10-11  Bruno Haible  <bruno@clisp.org>
90184
90185         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90186         vsnprintf.
90187
90188 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90189
90190         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90191
90192 2004-10-07  Bruno Haible  <bruno@clisp.org>
90193
90194         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90195         fits into the provided buffer.
90196
90197 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90198
90199         * lib/diacrit.c, diacrit.h: Add GPL notice.
90200
90201         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90202         notice.
90203         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90204         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90205         This avoids a potential constant-folding bug.
90206
90207 2004-10-05  Bruno Haible  <bruno@clisp.org>
90208
90209         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90210         for the declaration of strsep.
90211
90212 2004-10-05  Bruno Haible  <bruno@clisp.org>
90213
90214         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90215
90216 2004-10-04  Simon Josefsson  <jas@extundo.com>
90217
90218         * modules/memmem: New file.
90219         * tests/test-memmem.c: New file.
90220         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90221
90222 2004-10-04  Simon Josefsson  <jas@extundo.com>
90223
90224         * m4/memmem.m4: New file.
90225
90226 2004-10-04  Simon Josefsson  <jas@extundo.com>
90227
90228         * lib/memmem.h: New file.
90229         * lib/memmem.c: New file, taken from glibc.
90230
90231 2004-10-04  Simon Josefsson  <jas@extundo.com>
90232
90233         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90234         '#ifdef USE_UNLOCKED_IO'.
90235
90236 2004-10-04  Simon Josefsson  <jas@extundo.com>
90237
90238         * config/srclist.txt: Add memmem from glibc.
90239
90240 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90241
90242         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90243
90244         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90245         modules/exclude, modules/getdate, modules/getline,
90246         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90247         modules/getusershell, modules/linebuffer, modules/md5,
90248         modules/mountlist, modules/posixtm, modules/readtokens,
90249         modules/readutmp, modules/regex, modules/sha1,
90250         modules/version-etc, modules/yesno:
90251         Remove dependency on unlocked-io.
90252
90253 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90254
90255         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90256
90257         * m4/unlocked-io.m4: Add copyright notice.
90258         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90259
90260 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90261
90262         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90263         * lib/xmalloc.c (xmemdup): Likewise.
90264         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90265         XFREE): Remove these long-obsolescent macros.
90266         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90267         * lib/xstrdup.c: Remove.
90268
90269         * lib/regex.c (re_comp): Cast gettext return value to char *,
90270         Problem reported by Martin Neitzel via Mark D. Baushke.
90271
90272 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90273
90274         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90275         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90276         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90277         regex.c, sha1.c, version-etc.c, yesno.c:
90278         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90279         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90280         the includer's responsibility.
90281
90282         Sync from coreutils.
90283
90284         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90285         points to the start of a string, as the C Standard says the
90286         resulting behavior is undefined.
90287
90288         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90289         simple -> simple_backups, numbered_existing ->
90290         numbered_existing_backups, numbered -> numbered_backups
90291         to avoid shadowing problems.  All uses changed.
90292         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90293         * lib/backupfile.c (check_extension, numbered_backup):
90294         Rename locals to avoid shadowing 'basename'.
90295         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90296         once.
90297
90298         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90299         * lib/.cvsignore: Add getopt.h.
90300
90301 2004-10-04  Bruno Haible  <bruno@clisp.org>
90302
90303         * modules/README: New file.
90304         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90305         not a module.
90306
90307 2004-10-02  Jim Meyering  <jim@meyering.net>
90308
90309         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90310
90311 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90312
90313         * modules/strsep: New file.
90314
90315 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90316
90317         * m4/strsep.m4: New file.
90318
90319 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90320
90321         * lib/strsep.h: New file.
90322         * lib/strsep.c: New file.
90323
90324 2004-10-01  Simon Josefsson  <jas@extundo.com>
90325
90326         * lib/snprintf.c (snprintf): Handle size==0.
90327
90328 2004-10-01  Simon Josefsson  <jas@extundo.com>
90329             Bruno Haible  <bruno@clisp.org>
90330
90331         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90332         (snprintf): Declare 'args'.
90333
90334 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90335
90336         * lib/snprintf.c: Remove comments as to why each header is needed.
90337
90338 2004-10-01  Bruno Haible  <bruno@clisp.org>
90339
90340         * MODULES.html.sh: Add strsep.
90341
90342 2004-09-30  Simon Josefsson  <jas@extundo.com>
90343
90344         * modules/snprintf: New file.
90345
90346 2004-09-30  Simon Josefsson  <jas@extundo.com>
90347
90348         * m4/snprintf.m4: New file.
90349
90350 2004-09-30  Simon Josefsson  <jas@extundo.com>
90351
90352         * lib/snprintf.h, lib/snprintf.c: New files.
90353
90354 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90355
90356         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90357         (hol_entry_help): Never translate an empty string.
90358         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90359         * lib/argp.h (OPTION_NO_TRANS): New option.
90360
90361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90362
90363         * modules/argp (Maintainer): Replace Simon Josefsson
90364         by Sergey Poznyakoff.
90365
90366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90367
90368         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90369         changes merged back into glibc.
90370
90371 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90372
90373         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90374
90375 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90376
90377         * lib/xvasprintf.c: Include xalloc.h.
90378         (xvasprintf): Use xalloc_die, not xmalloc_die.
90379
90380 2004-09-29  Bruno Haible  <bruno@clisp.org>
90381
90382         * modules/alloca-opt: New file, derived from modules/alloca.
90383         * modules/allocsa: Depend on alloca-opt instead of alloca.
90384         * modules/setenv: Likewise.
90385         * modules/vasnprintf: Likewise.
90386         * MODULES.html.sh: Add alloca-opt.
90387
90388 2004-09-28  Simon Josefsson  <jas@extundo.com>
90389
90390         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90391         LGPL, and to replace license template from GPL to LGPL.
90392
90393 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90394
90395         * modules/dummy: Change license to LGPL.
90396
90397 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90398
90399         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90400
90401 2004-09-24  Simon Josefsson  <jas@extundo.com>
90402
90403         * modules/minmax (License): Change from GPL to LGPL.
90404
90405 2004-09-23  Simon Josefsson  <jas@extundo.com>
90406
90407         * gnulib-tool (--import): Typo.
90408
90409 2004-09-23  Simon Josefsson  <jas@extundo.com>
90410
90411         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90412
90413 2004-09-22  Bruno Haible  <bruno@clisp.org>
90414
90415         * modules/*: Add 'License' field.
90416         * gnulib-tool: Accept --extract-license option.
90417         (func_get_license): New function.
90418
90419 2004-09-21  Bruno Haible  <bruno@clisp.org>
90420
90421         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90422         Reported by Simon Josefsson.
90423
90424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90425
90426         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90427         gl_AC_TYPE_LONG_LONG.
90428
90429 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90430
90431         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90432
90433 2004-09-18  Simon Josefsson  <jas@extundo.com>
90434         and  Paul Eggert  <eggert@cs.ucla.edu>
90435
90436         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90437         calls with autoreconf.  Define GL_LIB.
90438
90439 2004-09-14  Karl Berry  <karl@gnu.org>
90440
90441         * config/srclist.txt: unsync setenv.c, sigh.
90442
90443 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90444
90445         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90446         Problem reported by Bruno Haible in:
90447         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90448
90449 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90450
90451         * config/srclist.txt: Comment out argp-pvh.c.
90452
90453 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90454
90455         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90456         in case some system header has #define'd it.  Problem reported by
90457         Soeren D. Schulze in
90458         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90459
90460 2004-09-09  Karl Berry  <karl@gnu.org>
90461
90462         * regex.[ch]: delete from the root.  These were supposed to be
90463                 synced with emacs cvs, but this has not happened for about
90464                 a year, and anyway nothing else uses emacs regex.[ch].
90465                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90466                 lib/regex[.ch] is untouched.
90467
90468 2004-09-09  Bruno Haible  <bruno@clisp.org>
90469
90470         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90471
90472 2004-09-09  Bruno Haible  <bruno@clisp.org>
90473
90474         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90475         modifications.
90476         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90477
90478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90479
90480         * modules/xvasprintf: New file.
90481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90482
90483 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90484
90485         * lib/xvasprintf.h: New file.
90486         * lib/xvasprintf.c: New file.
90487         * lib/xasprintf.c: New file.
90488
90489 2004-09-08  Bruno Haible  <bruno@clisp.org>
90490
90491         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90492
90493 2004-09-08  Bruno Haible  <bruno@clisp.org>
90494
90495         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90496         length is > INT_MAX.
90497         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90498         more.
90499
90500 2004-09-08  Bruno Haible  <bruno@clisp.org>
90501
90502         * lib/stdint_.h: New file, taken from GNU clisp.
90503
90504 2004-09-08  Bruno Haible  <bruno@clisp.org>
90505             Oskar Liljeblad  <oskar@osk.mine.nu>
90506
90507         * modules/stdint: New file.
90508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90509
90510 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90511
90512         Import from coreutils.
90513         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90514         strings on unbounded length.  alloca's performance benefits aren't
90515         that important here.
90516         (V_STRDUP): Remove.
90517         (parse_with_separator): New function, with most of the internals
90518         of the old parse_user_spec.  Allow user to omit both user and group,
90519         for compatibility with FreeBSD.
90520         Clone only the user name, not the entire spec.
90521         Do not set *uid, *gid unless entirely successful.
90522         Avoid memory leak in some failing cases.
90523         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90524         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90525         (parse_user_spec): Rewrite to use parse_with_separator.
90526
90527 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90528
90529         * modules/userspec: Don't depend on alloca.
90530
90531 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90532
90533         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90534
90535 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90536
90537         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90538         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90539         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90540
90541 2004-08-16  Simon Josefsson  <jas@extundo.com>
90542
90543         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90544         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90545         Add --dry-run for --import.
90546         Let user provided command line parameters override configure.ac
90547         settings.
90548
90549 2004-08-12  Simon Josefsson  <jas@extundo.com>
90550
90551         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90552         as discussed with Paul Eggert in threads rooted at
90553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90554         and
90555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90556         Before, the test was empty, and relied on ELIDE_CODE in source
90557         code.)
90558         (gl_PREREQ_GETOPT): New macro.
90559         (gl_GETOPT): Use them.
90560
90561 2004-08-12  Simon Josefsson  <jas@extundo.com>
90562
90563         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90564         * lib/getopt_.h: Renamed from getopt.h.
90565
90566 2004-08-12  Simon Josefsson  <jas@extundo.com>
90567
90568         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90569         Change default library name from libfoo to libgnu.
90570         Now, if you have a configure.ac that says:
90571                 gl_SOURCE_BASE(gl)
90572                 gl_M4_BASE(gl/m4)
90573                 gl_MODULES(error getopt etcetera)
90574                 gl_INIT
90575         you can import all you need by running:
90576                 ../gnulib/gnulib-tool --import
90577
90578         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90579         (Makefile.am): Rewrite, use logic from argz.
90580         (Include): Use <getopt.h> instead of "getopt.h".
90581
90582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90583
90584         * modules/argp (Files): Add m4/unlocked-io.m4.
90585         (Depends-on): Add extensions.
90586
90587 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90588
90589         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90590         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90591         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90592         Check for program_invocation_name, program_invocation_short_name,
90593         flockfile, funlockfile, features.h, _getopt_long_only_r.
90594
90595 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90596
90597         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90598         its complicated substitute.
90599         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90600         and program_invocation_name.
90601         (__argp_basename) [!_LIBC]: Remove; the only use was
90602         replaced by its body.
90603         (__argp_short_program_name): Change condition from
90604         !defined __argp_short_program_name to
90605         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90606         to match argp-namefrob.h.
90607         (__argp_failure): Don't assume strerror_r returns char *.
90608         * lib/argp-parse.c (N_): Define unconditionally.
90609         (argp_default_options): Fill out initializers with 0 to avoid
90610         gcc warnings.
90611
90612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90613
90614         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90615         getopt1.c.
90616
90617 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90618
90619         Merge from coreutils.
90620
90621         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90622
90623         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90624         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90625
90626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90627
90628         Merge from coreutils.
90629
90630         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90631         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90632         for Reliant Unix 5.43.
90633
90634         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90635         (union fooround): Use uintmax_t, not long int.
90636         The rest is a merge from libc:
90637         [defined _LIBC]: Include <shlib-compat.h>.
90638         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90639
90640         * lib/settime.c (settime): Recode to avoid warning with
90641         Sun Forte C 6U2.
90642
90643         * lib/strverscmp.c: Convert to UTF-8.
90644
90645 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90646
90647         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90648         m4/uintmax_t.m4.
90649
90650 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90651
90652         * modules/xalloc-die: New file.
90653         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90654
90655         * modules/md5 (Files): Add m4/uint32_t.m4.
90656         * modules/sha1: Renamed from modules/sha.
90657         (Files):
90658         Rename lib/sha.h to lib/sha1.h.
90659         Rename lib/sha.c to lib/sha1.c.
90660         Rename m4/sha.m4 to m4/sha1.m4.
90661         (lib_SOURCES): Likewise.
90662         (configure.ac): Rename gl_SHA to gl_SHA1.
90663         (Include): sha.h -> sha1.h.
90664
90665 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90666
90667         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90668         * m4/sha1.m4: Renamed from sha.m4.
90669         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90670
90671 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90672
90673         * lib/obstack.h (obstack_empty_p):
90674         Don't assume that chunk->contents is suitably aligned.
90675         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90676         Likewise. Problem reported by Benno in
90677         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90678
90679         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90680         readable.  This could be improved further but it'd take some work.
90681
90682 2004-08-08  Simon Josefsson  <jas@extundo.com>
90683
90684         * modules/xgethostname (Depends-on): Remove exit and error (not
90685         used).
90686
90687         * modules/getpass-gnu: Add getpass.h.
90688         (Depends-on): Add stdbool.
90689         * modules/getpass: Add getpass.h.
90690
90691 2004-08-08  Simon Josefsson  <jas@extundo.com>
90692
90693         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90694         Check getpass declaration.
90695
90696 2004-08-08  Simon Josefsson  <jas@extundo.com>
90697
90698         * lib/xgethostname.c: Don't include error.h (not used).
90699
90700         * lib/getpass.h: Add.
90701         * lib/getpass.c: Include getpass.h first.
90702
90703 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90704
90705         * lib/xalloc-die.c: New file.
90706         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90707         All uses removed.
90708         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90709         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90710         xalloc-die.c.
90711         (_, N_, xalloc_die): Move to xalloc-die.c.
90712         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90713         so that we needn't mess with xalloc_msg_memory_exhausted.
90714
90715         * lib/sha1.h: Renamed from sha.h.
90716         (SHA1_H): Renamed from _SHA_H.
90717         (sha1_ctx): Renamed from sha_ctx.
90718         (sha1_init_ctx): Renamed from sha_init_ctx.
90719         (sha1_process_block): Renamed from sha_process_block.
90720         (sha1_process_bytes): Renamed from sha_process_bytes.
90721         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90722         (sha1_read_ctx): Renamed from sha_read_ctx.
90723         (sha1_stream): Renamed from sha_stream.
90724         (sha1_buffer): Renamed from sha_buffer.
90725         * lib/sha1.c: Likewise; renamed from sha.c.
90726         Do not include <sys/types.h>.
90727         Include <stddef.h> rather than <stdlib.h>.
90728
90729 2004-08-08  Bruno Haible  <bruno@clisp.org>
90730
90731         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90732         FILESYSTEM_PREFIX_LEN.
90733         * lib/progreloc.c: Likewise.
90734         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90735
90736 2004-08-06  Simon Josefsson  <jas@extundo.com>
90737
90738         * modules/progname (Depends-on): Don't depend on stdbool.
90739
90740 2004-08-06  Simon Josefsson  <jas@extundo.com>
90741
90742         * modules/getsubopt: New file.
90743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90744         getsubopt.
90745
90746 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90747
90748         More merge from coreutils.
90749
90750         * m4/utimens.m4, m4/utimecmp.m4: New files.
90751         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90752         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90753         prereq.m4, sha.m4: Import changes from coreutils.
90754
90755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90756
90757         More merge from coreutils.
90758         * modules/raise, modules/readtokens0, modules/utimens:
90759         * modules/utimecmp, module/xnanosleep: New files.
90760         * modules/strftime: Add lib/strftime.h.
90761         Change include from <time.h> to "strftime.h".
90762         * modules/yesno: Add lib/yesno.h.
90763         * modules/backupfile: Remove lib/addext.c.
90764         * modules/euidaccess: Add stat-macros.h.
90765         * modules/canonicalize, modules/euidaccess,
90766         modules/filemode, modules/lchown, modules/makepath,
90767         modules/rmdir, modules/stat: Likewise.
90768
90769 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90770
90771         Merge from tar.
90772         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90773         SIZE_MAX is a valid preprocessor constant.
90774         (__argp_basename): Change from "#ifndef _LIBC"
90775         to "#ifndef __argp_short_program_name", so that
90776         we don't compile these functions for tar.
90777
90778         More merges from coreutils.
90779         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90780         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90781         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90782         * lib/addext.c: Remove; no longer needed.
90783         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90784         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90785         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90786         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90787         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90788         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90789         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90790         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90791         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90792         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90793         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90794         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90795         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90796         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90797         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90798         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90799         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90800         Import changes from coreutils.
90801
90802 2004-08-05  Simon Josefsson  <jas@extundo.com>
90803
90804         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90805
90806 2004-08-05  Simon Josefsson  <jas@extundo.com>
90807
90808         * m4/getsubopt.m4: New file.
90809
90810 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90811
90812         Merge from coreutils.
90813
90814         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90815         * m4/getcwd-path-max.m4: New files.
90816
90817         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90818         FILESYSTEM_PREFIX_LEN ->
90819         FILE_SYSTEM_PREFIX_LEN.
90820         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90821         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90822         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90823         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90824
90825         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90826         prerequisite modules now handle the DOS stuff.
90827         Don't check for unistd.h.
90828
90829 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90830
90831         Merge from coreutils.
90832
90833         * lib/.gdb-history: Remove; this doesn't belong here.
90834
90835         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90836         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90837         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90838         * lib/getcwd.c: New files.
90839
90840         * lib/dirname.h: Include <stdbool.h>.
90841         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90842         for consistency with POSIX terminology.  All uses changed.
90843         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90844         (strip_trailing_slashes): Use bool for booleans.
90845         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90846
90847         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90848         sometimes returns a positive errno value even when it succeeds.
90849         (print_errno_message) [!LIBC]: Fall back on strerror if
90850         __strerror_r fails.
90851
90852         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90853         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90854         (longest_relative_suffix): New function.
90855         (path_concat): Use it.  Assume first argument is not NULL.
90856         Port to DOS.  Omit redundant separators.
90857         Report an error instead of returning NULL.
90858         Use mempcpy instead of memcpy.
90859         (xpath_concat): Remove: not declared or used.
90860
90861         * lib/same.h: Include <stdbool.h>
90862         (same_name): Return bool, not int.
90863         * lib/same.c (same_name): Likewise.
90864         (errno): Don't declare; we assume C89 or better now.
90865
90866         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90867         if not already defined.
90868
90869         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90870         * lib/dup-safer.c (errno): Likewise.
90871
90872 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90873
90874         Merge from coreutils.
90875         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90876         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90877         * modules/path-concat: Don't depend on strdup.
90878
90879 2004-08-03  Simon Josefsson  <jas@extundo.com>
90880
90881         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90882         * lib/progname.h: Don't include stdbool.h.
90883
90884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90885
90886         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90887         * MODULES.html.sh (func_all_modules): Remove fatal.
90888
90889 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90890
90891         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90892
90893 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90894
90895         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90896         working.
90897
90898 2004-08-02  Simon Josefsson  <jas@extundo.com>
90899
90900         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90901         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90902         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90903
90904 2004-08-01  Simon Josefsson  <jas@extundo.com>
90905
90906         * lib/xgetdomainname.c: Include stdlib.h, for free().
90907
90908 2004-07-19  Bruno Haible  <bruno@clisp.org>
90909
90910         * MODULES.html.sh (func_all_modules): Add dummy.
90911
90912 2004-07-16  Simon Josefsson  <jas@extundo.com>
90913
90914         * modules/dummy: New file.
90915
90916 2004-07-16  Simon Josefsson  <jas@extundo.com>
90917
90918         * lib/dummy.c: New file.
90919
90920 2004-07-16  Bruno Haible  <bruno@clisp.org>
90921
90922         * lib/backupfile.h: Add extern "C" for C++.
90923         * lib/closeout.h: Likewise.
90924         * lib/copy-file.h: Likewise.
90925         * lib/findprog.h: Likewise.
90926         * lib/full-write.h: Likewise.
90927         * lib/pathname.h: Likewise.
90928         * lib/progname.h: Likewise.
90929         * lib/stpcpy.h: Likewise.
90930         * lib/stpncpy.h: Likewise.
90931         * lib/strcase.h: Likewise.
90932         * lib/strstr.h: Likewise.
90933         * lib/xalloc.h: Likewise.
90934
90935         * lib/mbswidth.h: Add extern "C" for C++.
90936         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90937
90938 2004-07-13  Robert Millan  <robertmh@gnu.org>
90939
90940         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90941
90942 2004-07-09  Simon Josefsson  <jas@extundo.com>
90943
90944         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90945         failed without this.)
90946
90947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90948
90949         * modules/chown (Files): Add lib/fchown-stub.c, since
90950         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90951
90952 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90953
90954         * lib/fchown-stub.c: New file.
90955
90956 2004-06-24  Jim Meyering  <jim@meyering.net>
90957
90958         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90959
90960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90961
90962         * modules/argz: Omit "#include".
90963
90964         * MODULES.html.sh (func_all_modules): Add calloc, to match
90965         2004-06-01 addition of calloc module.
90966
90967 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90968
90969         * m4/argz.m4: New file, which is autoupdated from libtool.
90970
90971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90972
90973         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90974         libtool.
90975
90976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90977
90978         * config/srclist-update: Don't insist on "USA." before the
90979         close-comment, as libtool omits the period and puts the */ on a
90980         separate line.
90981         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90982         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90983
90984 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90985
90986         * modules/argz: New file.
90987         * MODULES.html.sh (func_all_modules): Add argz.
90988
90989 2004-06-12  Jim Meyering  <jim@meyering.net>
90990         and  Paul Eggert  <eggert@cs.ucla.edu>
90991
90992         * modules/hash (Files): Add lib/xalloc.h.
90993         * modules/pipe (Depends-on): Add wait-process.
90994         * modules/stat (Depends-on): Add xalloc.
90995         * modules/userspec (Files): Add lib/userspec.h.
90996         * modules/xstrto
90997
90998         Upgrade from gettext-0.13.
90999         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91000         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91001         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91002
91003 2004-06-10  Jim Meyering  <jim@meyering.net>
91004
91005         * lib/calloc.c: New file.
91006
91007 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91008
91009         * lib/getdate.y (yylex): Allow space between sign and number.
91010         Problem reported by Dan Jacobson.
91011
91012 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91013
91014         Merge from coreutils CVS.
91015
91016         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91017         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91018         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91019         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91020         xstrtol.m4: Fix copyright date and/or serial number.
91021
91022         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91023         See if we need an fchown replacement.
91024         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91025         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91026         and use the replacement function if we detect either defect.
91027
91028         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91029         gl_UTIMECMP.
91030
91031 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91032         and  Jim Meyering  <jim@meyering.net>
91033
91034         Merge from coreutils CVS.
91035
91036         * lib/stat-macros.h: New file, with contents from file-type.h
91037         and coreutils' system.h.
91038         * lib/file-type.c: Include "stat-macros.h".
91039         * lib/file-type.h (file_type): Move all macro definitions to new file,
91040         stat-macros.h.
91041
91042         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91043         Wrap old code with this conditional.
91044         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91045         function that does not dereference symlinks.
91046         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91047
91048         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91049         dependency problems.
91050         (xreadlink): Accept new arg SIZE, for efficiency.
91051         All decls and uses changed.
91052         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91053
91054         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91055         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91056
91057         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91058         sysexits.h.
91059
91060 2004-06-01  Jim Meyering  <jim@meyering.net>
91061
91062         * m4/calloc.m4: New file.
91063
91064 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91065
91066         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91067         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91068         Also, fix a typo in a diagnostic.
91069
91070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91071
91072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91073         or AC_FUNC_REALLOC.
91074
91075 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91076
91077         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91078         macros to be defined.
91079         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91080         the allocator returns NULL because the requested size is zero.
91081
91082 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91083
91084         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91085         var.  Add comment explaining why libc still defines it.  This
91086         merges the following patch from glibc:
91087         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91088
91089 2004-05-20  Andreas Schwab  <schwab@suse.de>
91090
91091         * m4/free.m4: Replace free if it not known to work, not the other
91092         way round.
91093
91094 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91095
91096         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91097         present in glibc since revision 1.1 of this file.
91098         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91099         obstack_alignment_mask, obstack_alloc, obstack_base,
91100         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91101         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91102         obstack_grow0, obstack_init, obstack_int_grow,
91103         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91104         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91105         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91106         nonexistent functions.
91107
91108 2004-05-18  Karl Berry  <karl@gnu.org>
91109
91110         * config/srclist.txt: break link for vasnprintf.c.
91111
91112 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91113
91114         Port obstack to the AS/400, where pointers are 16 bytes wide and
91115         you cannot cast an integer to a valid pointer.  This patch is
91116         currently waiting to be integrated into glibc; see
91117         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91118
91119         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91120         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91121         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91122         (struct obstack): temp member is now a union of a pointer and
91123         an integer, instead of an integer.  All integer uses changed.
91124         This does not affect the physical layout of struct obstack,
91125         except on hosts (like the AS/400) where the size or alignment of
91126         void * is greater than that of ptrdiff_t.
91127         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91128         __STDC__)]: Store temporary in pointer member of union, not
91129         integer member.
91130         * lib/obstack.c: Include <stddef.h>, for offsetof.
91131         (struct fooalign): Remove; it doesn't need a name.
91132         (union fooround): Change double to long double, and add void *.
91133         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91134         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91135         not a macro.  Hence the values are always int; so remove all
91136         casts-to-int in uses.
91137
91138 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91139
91140         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91141         we can get this patch merged into glibc.
91142
91143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91144             Paul Eggert  <eggert@cs.ucla.edu>
91145
91146         * m4/argp: Depend on alloca.
91147
91148 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91149             Paul Eggert  <eggert@cs.ucla.edu>
91150
91151         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91152         freecoding.
91153
91154 2004-05-17  Bruno Haible  <bruno@clisp.org>
91155
91156         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91157         precision that consists of a '.' followed by an empty digit string.
91158         Patch by Tor Lillqvist <tml@iki.fi>.
91159
91160 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91161
91162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91163         for backward compatibility with older code.  We need our own
91164         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91165         it under some other name, and our alloca.h will define it.
91166
91167 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91168             Derek Price  <derek@ximbiot.com>
91169
91170         * lib/alloca.c: Include <alloca.h>, to get our interface.
91171         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91172         include <alloca.h> first.  Use C89 prototype for alloca; this
91173         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91174         Use #elif for simplicity, since we can assume C89 now.
91175         Don't try to source the system alloca.h since it will not be found
91176         and to prevent recursively including its replacement.
91177         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91178         * lib/regex.c: Likewise.
91179
91180 2004-05-16  Derek Price  <derek@ximbiot.com>
91181             Paul Eggert  <eggert@cs.ucla.edu>
91182
91183         getline cleanup.  This changes the getndelim2 API: both order of
91184         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91185         no delimiter).
91186
91187         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91188         interface does that.
91189         (getline): Always use getdelim, so that we don't have two
91190         copies of this code.
91191         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91192         if available.
91193         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91194         (GETNDELIM2_MAXIMUM): New macro.
91195         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91196         instead of the old practice of delim2==0.  All callers changed.
91197         Return -1 on overflow, instead of returning junk.
91198         Do not set *linesize unless allocation succeeds.
91199         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91200         that we include sys/types.h.
91201         * lib/getnline.h: Likewise.
91202         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91203         (getndelim2): Reorder arguments.
91204         * lib/getnline.c (getnline, getndelim):
91205         Don't discard the NMAX argument.
91206         (getnline): Invoke getndelim, to avoid code duplication.
91207         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91208         of (size_t) -1 by callers of the getnline family.
91209
91210 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91211
91212         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91213         Check for gettimeofday.
91214         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91215         Check for settimeofday, stime.
91216
91217 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91218
91219         * lib/nanosleep.c (suspended): Change its type from int to
91220         sig_atomic_t volatile.
91221         (first_call): Make it private to rpl_nanosleep, and have it
91222         be zero initially as that's a bit faster.
91223         (my_usleep): Round up fractional times instead of truncating them,
91224         as this is the usual meaning for 'sleep'.
91225
91226         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91227         doesn't work.
91228         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91229         (ENOSYS): Define if not defined.
91230         (settime): Fall back on stime if it exists and settimeofday fails.
91231         But don't bother with fallbacks if a method fails with errno == EPERM.
91232
91233 2004-05-11  Jim Meyering  <jim@meyering.net>
91234
91235         Prior to this change, the save_cwd caller required read access to the
91236         current directory on most systems (ones with the fchdir function).
91237
91238         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91239         fails, try write-only, and finally, resort to using xgetcwd.
91240
91241 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91242
91243         * lib/obstack.c, obstack.h: Import changes from libc.
91244
91245 2004-04-28  Bruno Haible  <bruno@clisp.org>
91246
91247         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91248         also implicitly appends .exe to executables.
91249         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91250         accepts Windows pathnames.
91251         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91252         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91253         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91254         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91255         Reported by Derek Robert Price <derek@ximbiot.com>.
91256
91257 2004-04-21  Karl Berry  <karl@gnu.org>
91258
91259         * config/srclist.txt (localcharset.c): break sync.
91260
91261 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91262
91263         * m4/host-os.m4: Add a copyright notice.
91264
91265 2004-04-20  Jim Meyering  <jim@meyering.net>
91266
91267         Change UTILS_ to gl_ in AC_DEFINE'd names.
91268         Change utils_- and jm_-prefixed variables, too.
91269         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91270         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91272
91273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91274         Don't emit trailing blanks.
91275         Also rename jm_-prefixed variables to have gl_ prefix.
91276
91277         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91278         Also rename jm_-prefixed variables to have gl_ prefix.
91279
91280         * m4/jm-macros.m4: Reflect the renamings.
91281         * m4/prereq.m4: Likewise.
91282
91283 2004-04-20  Jim Meyering  <jim@meyering.net>
91284
91285         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91286         memory.
91287
91288 2004-04-20  Jim Meyering  <jim@meyering.net>
91289             Bruno Haible  <bruno@clisp.org>
91290
91291         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91292         memory when realloc fails.
91293
91294 2004-04-19  Jim Meyering  <jim@meyering.net>
91295
91296         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91297         now that readutmp.c may call `free (0)'.
91298
91299 2004-04-19  Bruno Haible  <bruno@clisp.org>
91300
91301         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91302         * m4/inttypes_h.m4: Likewise.
91303         * m4/stdint_h.m4: Likewise.
91304         * m4/intmax_t.m4: Likewise.
91305         * m4/uintmax_t.m4: Likewise.
91306
91307 2004-04-18  Jim Meyering  <jim@meyering.net>
91308
91309         * m4/prereq.m4: Don't forbid jm_ prefix.
91310
91311         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91312         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91313         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91314         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91315         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91316         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91317         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91318         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91319         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91320         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91321         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91322         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91323         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91324         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91325         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91326         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91327         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91328         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91329         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91330
91331 2004-04-18  Jim Meyering  <jim@meyering.net>
91332
91333         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91334         failure, don't leak memory and do call END_UTMP_ENT.
91335
91336 2004-04-16  Jim Meyering  <jim@meyering.net>
91337
91338         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91339         coreutils' stat program.
91340         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91341
91342 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91343
91344         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91345         C89.
91346         (CHAR_BIT): Remove, since we assume C89.
91347         Include <stdint.h> if available, as per current Autoconf CVS advice.
91348
91349 2004-03-31  Jim Meyering  <jim@meyering.net>
91350
91351         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91352         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91353         * m4/xalloc.m4: Likewise.
91354
91355 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91356
91357         Merge from coreutils.
91358
91359         * m4/inttostr.m4: New file.
91360         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91361         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91362         Require gl_CLOCK_TIME.
91363         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91364
91365 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91366
91367         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91368         not bool, to be more consistent with Unix conventions.
91369         Suggested by Bruno Haible.
91370
91371         Merge from coreutils.
91372
91373         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91374         * lib/umaxtostr.c: New files.
91375
91376         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91377         the usual <time.h> dance.
91378         (get_date): Change signature to support fractional time stamps.
91379         All callers changed.
91380         * lib/getdate.y: Include "getdate.h" first, as we can now
91381         assume C89 and don't need to worry about 'const'.
91382         Similarly, include "unlocked-io.h" near start, not in middle.
91383         Include <limits.h>.
91384         (textint.value): Use long int rather than int.
91385         (textint.digits): Use size_t rather than int.
91386         (BILLION, LOG10_BILLION): New constants.
91387         (parser_control): New member rel_ns.  Members day_ordinal,
91388         time_zone, month, day, hour, minutes, rel_year, rel_month,
91389         rel_day, rel_hour, rel_minutes, rel_seconds
91390         are now long int, not int.  Member seconds is now struct timespec,
91391         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91392         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91393         not int.
91394         (%union.intval): Now long int, not int.
91395         New member timespec.
91396         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91397         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91398         (spec): Now is a timespec or an item list.
91399         (timespec, items): New nonterminals.
91400         (time, rel, relunit, number, get_date):
91401         Add support for fractional seconds.
91402         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91403         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91404         (to_hour): First arg is now long int, not int.
91405         (to_year): Returns long int, not int.
91406         Don't treat year -70 like 70.
91407         (tm_diff): Returns long int, not int.
91408         (lookup_word): Use bool instead of int when appropriate.
91409         (yylex): Use size_t for count, not int.
91410         Detect overflow when parsing large integer constants.
91411         Add support for fractions.
91412         (get_date): Make pointers 'const' if possible.
91413         Use more-portable code to detect integer overflow.
91414         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91415         Don't use ctime; it's not reliable if the year has >4 digits.
91416
91417         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91418         This is for compatibility with BSD.
91419
91420         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91421         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91422         From coreutils' system.h.
91423
91424         * lib/userspec.c: Don't include "posixver.h".
91425         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91426         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91427         compatible extension.  Simplify code by removing a boolean int
91428         that was always nonzero if a string was nonnull.
91429
91430 2004-03-30  Jim Meyering  <jim@meyering.net>
91431
91432         Merge from coreutils.
91433
91434         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91435         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91436         on some systems one must include <grp.h> before it.
91437         Reported by Christian Krackowizer.
91438
91439 2004-03-30  Jim Meyering  <jim@meyering.net>
91440
91441         Merge from coreutils.
91442
91443         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91444
91445         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91446         an empty input stream.
91447
91448         * lib/readtokens.c: Include <stdbool.h>.
91449         (readtoken): Use `size_t' rather than int/long.
91450         All callers adjusted.
91451         Use `bool' rather than `int' where appropriate.
91452         Use memset rather than an explicit loop.
91453         Use x2nrealloc rather than xrealloc.
91454         Allow the use of `\0' as a delimiter.
91455         (readtokens): Likewise.
91456         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91457
91458 2004-03-30  Jim Meyering  <jim@meyering.net>
91459
91460         * m4/realloc.m4: Remove file, since now it does no more than
91461         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91462         the `configure.ac' section of module/realloc.
91463         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91464
91465 2004-03-30  Bruno Haible  <bruno@clisp.org>
91466
91467         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91468         nonnull.
91469
91470 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91471
91472         Merge changes to getloadavg.c from coreutils and Emacs.
91473
91474         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91475         Define to an expression, not to the empty string.
91476         Include cloexec.h and xalloc.h.
91477         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91478         Use set_cloexec_flag rather than rolling our own.
91479         * lib/cloexec.c, lib/cloexec.h: New files.
91480
91481 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91482
91483         * m4/cloexec.m4: New file.
91484
91485 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91486
91487         * lib/getopt.h: Sync with libc CVS.
91488
91489 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91490             Bruno Haible  <bruno@clisp.org>
91491
91492         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91493         mbswidth.
91494
91495 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91496             Bruno Haible  <bruno@clisp.org>
91497
91498         * lib/mbswidth.h: Include <wchar.h> only if
91499         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91500         <wchar.h>.
91501         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91502
91503 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91504
91505         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91506         Sync with libc CVS.
91507         * lib/getopt_int.h: New file, also synced from libc.
91508
91509 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91510
91511         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91512         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91513         Bring back getopt.c, getopt.h, getopt1.c.
91514
91515 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91516
91517         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91518         All uses changed.  Check for sa_sigaction member; this fixes
91519         a bug first reported by Jason Andrade in
91520         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91521
91522 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91523
91524         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91525         '#if' expressions.  Unlike the code it replaces, it does not
91526         depend on (defined _SC_PAGESIZE).  However, it does depend on
91527         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91528         first reported by Jason Andrade in
91529         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91530
91531 2004-02-25  Simon Josefsson  <jas@extundo.com>
91532
91533         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91534
91535 2004-02-25  Simon Josefsson  <jas@extundo.com>
91536
91537         * lib/strdup.h: New file.
91538         * lib/strdup.c: Include it.
91539         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91540         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91541
91542 2004-02-23  Karl Berry  <karl@gnu.org>
91543
91544         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91545         (from fencepost.gnu.org:/gd/gnuorg).
91546
91547 2004-02-23  Karl Berry  <karl@gnu.org>
91548
91549         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91550         * config/srclist.txt: add maintain/standards documents.
91551
91552 2004-02-18  Bruno Haible  <bruno@clisp.org>
91553
91554         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91555         Reported by Derek Robert Price <derek@ximbiot.com>.
91556
91557 2004-02-16  Karl Berry  <karl@gnu.org>
91558
91559         * config/mkinstalldirs, install-sh: update from automake.
91560
91561 2004-02-06  Karl Berry  <karl@gnu.org>
91562
91563         * m4/po.m4: update from gettext 0.14.1.
91564
91565 2004-02-06  Karl Berry  <karl@gnu.org>
91566
91567         * lib/config.charset: update from gettext 0.14.1.
91568
91569 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91570
91571         Add comments and code, prompted by suggestions from Bruno Haible
91572         for sh-quote.
91573         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91574         describing the enum quoting_style values.
91575         * lib/quotearg.c (quotearg_alloc): New function.
91576         (quotearg_buffer_restyled): Treat lone { and } as special.
91577         Treat = as special.  Work around bug with older shells
91578         that "see" a '\' that is really the 2nd byte of a multibyte char.
91579         Quote empty string with shell_quoting_style.
91580
91581 2004-02-03  Bruno Haible  <bruno@clisp.org>
91582
91583         * m4/pipe.m4: New file, from GNU gettext.
91584
91585 2004-02-03  Bruno Haible  <bruno@clisp.org>
91586
91587         * lib/pipe.h: New file, from GNU gettext.
91588         * lib/pipe.c: New file, from GNU gettext.
91589
91590 2004-01-27  Bruno Haible  <bruno@clisp.org>
91591
91592         * m4/execute.m4: New file, from GNU gettext.
91593
91594 2004-01-27  Bruno Haible  <bruno@clisp.org>
91595
91596         * lib/execute.h: New file, from GNU gettext.
91597         * lib/execute.c: New file, from GNU gettext.
91598         * lib/w32spawn.h: New file, from GNU gettext.
91599
91600 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91601
91602         Merge from diffutils.
91603
91604         * lib/file-type.c (file_type): Add typed memory objects.
91605         * lib/file-type.h (S_TYPEISTMO): New macro.
91606
91607         * lib/c-stack.h (c_stack_action): Remove argv argument.
91608         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91609         (die): Don't calculate message unless segv_action returns.
91610         (get_stack_location, min_address_from_argv, max_address_from_argv,
91611         volatile stack_base, volatile_stack_size): Remove.
91612         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91613         that every segmentation violation is a stack overflow.  (Ouch!)
91614         See Debian bug 136249 (still outstanding) for more info about why
91615         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91616
91617 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91618
91619         Exit-status fix from coreutils.
91620
91621         Use exit_failure consistently in place of EXIT_FAILURE,
91622         so that program exit statuses are consistent on failure.
91623
91624         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91625         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91626         * lib/argmatch.h: Comment fix to match the above.
91627         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91628         Now a macro referring to exit_failure, instead of a separate
91629         variable.  Include "exitfail.h" to get it.
91630         * lib/xstrtol.h: Include "exitfail.h".
91631         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91632
91633         * lib/long-options.c (parse_long_options): Use prototype
91634         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91635         for clarity.
91636
91637 2004-01-21  Jim Meyering  <jim@meyering.net>
91638
91639         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91640         so as not to conflict with a different-sized __mktime_internal
91641         function in GNU libc.
91642         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91643         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91644
91645 2004-01-20  Karl Berry  <karl@gnu.org>
91646
91647         * config/config.guess: update from config.
91648
91649         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91650
91651 2004-01-20  Bruno Haible  <bruno@clisp.org>
91652
91653         Safer stack allocation.
91654         * lib/setenv.c: Include allocsa.h.
91655         (alloca): Remove fallback definition.
91656         (freea): Remove macro.
91657         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91658         instead of freea.
91659
91660 2004-01-20  Bruno Haible  <bruno@clisp.org>
91661
91662         * m4/eealloc.m4: New file, from GNU gettext.
91663
91664 2004-01-20  Bruno Haible  <bruno@clisp.org>
91665
91666         * m4/allocsa.m4: New file, from GNU gettext.
91667
91668 2004-01-20  Bruno Haible  <bruno@clisp.org>
91669
91670         * lib/xallocsa.h: New file, from GNU gettext.
91671         * lib/xallocsa.c: New file, from GNU gettext.
91672
91673 2004-01-20  Bruno Haible  <bruno@clisp.org>
91674
91675         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91676
91677 2004-01-20  Bruno Haible  <bruno@clisp.org>
91678
91679         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91680         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91681         specially.
91682
91683 2004-01-20  Bruno Haible  <bruno@clisp.org>
91684
91685         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91686         patch.
91687
91688 2004-01-20  Bruno Haible  <bruno@clisp.org>
91689
91690         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91691
91692 2004-01-20  Bruno Haible  <bruno@clisp.org>
91693
91694         * lib/eealloc.h: New file.
91695
91696 2004-01-20  Bruno Haible  <bruno@clisp.org>
91697
91698         * lib/binary-io.h: Avoid warnings on Cygwin.
91699
91700 2004-01-20  Bruno Haible  <bruno@clisp.org>
91701
91702         * lib/allocsa.h: New file, from GNU gettext.
91703         * lib/allocsa.c: New file, from GNU gettext.
91704
91705 2004-01-18  Karl Berry  <karl@gnu.org>
91706
91707         * doc/gpl.texi, doc/lgpl.texi: new files.
91708
91709 2004-01-18  Karl Berry  <karl@gnu.org>
91710
91711         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91712         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91713
91714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91715
91716         Merge from coreutils.
91717
91718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91719         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91720         (gl_DEFAULT_POSIX2_VERSION): Move
91721         the documentation from 'configure' into 'config.hin',
91722         so that 'configure --help' isn't burdened by it and
91723         we don't have to worry about its formatting there.
91724         Reword the documentation so that it's more succinct
91725         and can be run together into a single paragraph.
91726         * m4/same.m4 (gl_SAME): Check for pathconf.
91727
91728 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91729
91730         Merge from coreutils.
91731
91732         * lib/posixver.c: Include posixver.h.
91733
91734         * lib/same.c: Include <stdbool.h>, <limits.h>.
91735         (_POSIX_NAME_MAX): Define if not defined.
91736         (MIN): New macro.
91737         (same_name): If file names are silently truncated, report
91738         that the file names are the same if they are the same after
91739         the silent truncation.
91740
91741         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91742         conversion function.
91743         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91744         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91745         longer needed.
91746
91747 2004-01-15  Jim Meyering  <jim@meyering.net>
91748
91749         Merge from coreutils.
91750
91751         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91752         if no library is required.
91753         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91754         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91755         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91756         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91757         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91758         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91759         value, $ac_cv_search_crypt, if it's "none required".
91760         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91761         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91762         not gl_FUNC_GETLOADAVG.
91763         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91764         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91765
91766 2004-01-15  Jim Meyering  <jim@meyering.net>
91767
91768         Merge from coreutils.
91769
91770         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91771         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91772         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91773
91774         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91775         optional configure-time default.
91776
91777         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91778
91779         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91780
91781 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91782
91783         Merge from coreutils.
91784
91785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91786         value, $ac_cv_search_nanosleep, if it's "none required".
91787
91788 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91789
91790         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91791         with like-named macro in fnmatch.c.
91792         (EXT): Use an internal constant instead.
91793
91794         Merge fnmatch patches from glibc.
91795         * lib/fnmatch.c (mbsinit): Remove define.
91796         Add libc_hidden_ver (__fnmatch, fnmatch).
91797         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91798         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91799
91800 2004-01-14  Karl Berry  <karl@gnu.org>
91801
91802         * config/install-sh: update from automake.
91803
91804 2004-01-13  Karl Berry  <karl@gnu.org>
91805
91806         * config/install-sh: update from automake.
91807
91808 2004-01-09  Karl Berry  <karl@gnu.org>
91809
91810         * config/install-sh: update from automake.
91811
91812 2004-01-05  Karl Berry  <karl@gnu.org>
91813
91814         * config/config.{sub,guess}: update from config.
91815
91816 2003-12-31  Karl Berry  <karl@gnu.org>
91817
91818         * config/depcomp: update from automake.
91819
91820 2003-12-14  Karl Berry  <karl@gnu.org>
91821
91822         * lib/config.charset: update from gettext-runtime.
91823
91824 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91825
91826         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91827         Bug reported by Alfred M. Szmidt.
91828
91829 2003-12-03  Bruno Haible  <bruno@clisp.org>
91830
91831         * m4/gettext.m4: Upgrade from gettext-0.13.
91832         * m4/po.m4: Upgrade from gettext-0.13.
91833         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91834         * m4/intmax.m4: New file, from gettext-0.13.
91835         * m4/printf-posix.m4: New file, from gettext-0.13.
91836
91837 2003-11-29  Karl Berry  <karl@gnu.org>
91838
91839         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91840
91841 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91842             Bruno Haible  <bruno@clisp.org>
91843
91844         * lib/printf-parse.h: Don't include sys/types.h.
91845         (ARG_NONE): New macro.
91846         (char_directive): Change type of *arg_index fields to size_t.
91847         * lib/printf-parse.c: Don't include sys/types.h.
91848         (SSIZE_MAX): Remove macro.
91849         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91850         Remove unnecessary overflow check.
91851         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91852         fields.
91853
91854 2003-11-25  Bruno Haible  <bruno@clisp.org>
91855
91856         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91857
91858 2003-11-25  Bruno Haible  <bruno@clisp.org>
91859
91860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91861         gt_TYPE_SSIZE_T.
91862
91863 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91864
91865         * modules/alloca: Remove dependency on xalloc.
91866
91867 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91868
91869         * lib/alloca.c: Remove dependency on xalloc module.
91870         (xalloc_die): Remove.
91871         (memory_full) [!defined emacs]: New macro.
91872         [!defined emacs]: Don't include xalloc.h.
91873         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91874         address arithmetic overflows.  Change datatypes a bit to avoid
91875         unnecessary casts.
91876
91877 2003-11-22  Jim Meyering  <jim@meyering.net>
91878
91879         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91880         s/size/size_t/.
91881
91882 2003-11-21  Karl Berry  <karl@gnu.org>
91883
91884         * config/config.{sub,guess}: update from config.
91885
91886 2003-11-18  Karl Berry  <karl@gnu.org>
91887
91888         * config/config.{sub,guess}: update from config.
91889
91890         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91891
91892 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91893
91894         * README: Mention that S+T cannot overflow if S is the size of
91895         an existing object and T is sufficiently small.
91896
91897 2003-11-17  Jim Meyering  <jim@meyering.net>
91898
91899         On systems without utime and without a utimes function capable of
91900         dealing with a NULL struct utimbuf* argument, this utime replacement
91901         could -- in unusual circumstances -- leak a file descriptor.
91902         * lib/utime.c: Include <unistd.h> and <errno.h>.
91903         (utime_null): Be sure to close `fd' and to preserve errno.
91904         Reported by Geoff Collyer via Arnold Robbins.
91905
91906 2003-11-17  Bruno Haible  <bruno@clisp.org>
91907
91908         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91909         (Depends-on): Add xsize.
91910
91911 2003-11-17  Bruno Haible  <bruno@clisp.org>
91912
91913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91914
91915 2003-11-17  Bruno Haible  <bruno@clisp.org>
91916
91917         * lib/vasnprintf.c (alloca): Remove fallback definition.
91918         (freea): Remove definition.
91919         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91920         Reported by Paul Eggert.
91921
91922 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91923             Bruno Haible  <bruno@clisp.org>
91924
91925         Protect against address arithmetic overflow.
91926         * lib/printf-args.h: Include stddef.h.
91927         (arguments): Change type of field 'count' to size_t.
91928         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91929         'unsigned int' where appropriate.
91930         * lib/printf-parse.h: Include sys/types.h.
91931         (char_directive): Change type of *arg_index fields to ssize_t.
91932         (char_directives): Change type of fields 'count', max_*_length to
91933         size_t.
91934         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91935         (SSIZE_MAX): Define fallback value.
91936         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91937         instead of 'int' where appropriate. Check a_allocated, d_allocated
91938         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91939         * lib/vasnprintf.c: Include xsize.h.
91940         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91941         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91942         overflow. Avoid wraparound when converting a width or precision from
91943         decimal to binary.
91944
91945 2003-11-16  Bruno Haible  <bruno@clisp.org>
91946
91947         Update from GNU gettext.
91948         * lib/printf-parse.c: Generalize to it can be compiled for wide
91949         strings.
91950         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91951         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91952         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91953         SNPRINTF): New macros.
91954         Don't include <alloca.h> if the file is used inside libintl.
91955         (local_wcslen): New function, for Solaris 2.5.1.
91956         (VASNPRINTF): Use it instead of wcslen.
91957
91958 2003-11-16  Bruno Haible  <bruno@clisp.org>
91959
91960         * lib/xsize.h (xmax): New function.
91961         (xsum, xsum3, xsum4): Declare as "pure" functions.
91962
91963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91964
91965         * modules/xalloc (Files): Undo latest change, since xalloc.h
91966         no longer needs SIZE_MAX or PTRDIFF_MAX.
91967
91968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91969
91970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91971         gl_PTRDIFF_MAX.
91972
91973 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91974
91975         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91976         "return", to pacify some unknown compiler.  Problem reported
91977         by Joerg Schilling.
91978
91979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91980
91981         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91982         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91983         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91984         heuristic is just as accurate as far as we know, and it removes a
91985         dependency on size_max.m4 and ptrdiff_max.m4.
91986
91987 2003-11-11  Bruno Haible  <bruno@clisp.org>
91988
91989         * modules/xsize (Files): Add m4/size_max.m4.
91990         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91991
91992 2003-11-11  Bruno Haible  <bruno@clisp.org>
91993
91994         * m4/size_max.m4: New file.
91995         * m4/ptrdiff_max.m4: New file.
91996         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91997         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91998         (gl_XALLOC): Invoke it.
91999
92000 2003-11-11  Bruno Haible  <bruno@clisp.org>
92001
92002         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92003         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92004         defined.
92005
92006 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92007
92008         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92009         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92010         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92011         From Bruno Haible.
92012         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92013         not (size_t) -1, since it's defined here.
92014
92015 2003-11-09  Karl Berry  <karl@gnu.org>
92016
92017         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92018
92019 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92020
92021         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92022         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92023         Reject sizes of exactly SIZE_MAX bytes.
92024         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92025         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92026
92027 2003-11-05  Bruno Haible  <bruno@clisp.org>
92028
92029         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92030         SIZE_MAX defined in <limits.h> on Solaris.
92031
92032 2003-11-04  Jim Meyering  <jim@meyering.net>
92033
92034         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92035         variable names, rather than @VAR@.
92036         * modules/poll: Likewise.
92037
92038 2003-11-04  Bruno Haible  <bruno@clisp.org>
92039
92040         * modules/xsize: New file.
92041         * modules/linebreak: Depend on xsize.
92042         * MODULES.html.sh (func_all_modules): Add xsize.
92043
92044 2003-11-04  Bruno Haible  <bruno@clisp.org>
92045
92046         * m4/xsize.m4: New file.
92047
92048 2003-11-04  Bruno Haible  <bruno@clisp.org>
92049
92050         * lib/xsize.h: New file.
92051         * lib/linebreak.c: Include xsize.h.
92052         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92053         argument for overflow.
92054         Suggested by Paul Eggert.
92055
92056 2003-11-03  Karl Berry  <karl@gnu.org>
92057
92058         * config/config.{guess,sub}: update from config.
92059
92060 2003-11-03  Jim Meyering  <jim@meyering.net>
92061
92062         * modules/userspec (lib_SOURCES): Add userspec.h.
92063         (Include): Add "userspec.h".
92064         Improve description.
92065
92066 2003-11-03  Jim Meyering  <jim@meyering.net>
92067
92068         * lib/userspec.c: Include "userspec.h".
92069         * lib/userspec.h: New file.
92070
92071 2003-11-03  Bruno Haible  <bruno@clisp.org>
92072
92073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92074
92075 2003-11-03  Bruno Haible  <bruno@clisp.org>
92076
92077         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92078         available, to avoid (extremely rare) race condition.
92079         Suggested by Paul Eggert.
92080
92081 2003-11-02  Karl Berry  <karl@gnu.org>
92082
92083         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92084
92085 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92086
92087         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92088         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92089         (read_filesystem_list): Set and use me_type_malloced.
92090         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92091         whatever the type happens to be), for brevity and consistency.
92092         Check for size calculation overflow on Alphas running OSF/1.
92093
92094 2003-10-31  Jim Meyering  <jim@meyering.net>
92095
92096         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92097
92098         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92099
92100 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92101             Bruno Haible  <bruno@clisp.org>
92102
92103         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92104         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92105
92106 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92107
92108         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92109         netbsd*-gnu*.  Suggested by Robert Millan.
92110
92111 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92112
92113         * modules/group-member: Depend on stdbool.
92114
92115 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92116
92117         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92118
92119 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92120
92121         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92122         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92123         after the 'gnu' in these cases.  This fixes some bugs in the
92124         previous change, and is based on suggestions by Robert Millan.
92125
92126 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92127
92128         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92129         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92130         no longer needed.
92131         * lib/quotearg.c (quotearg_n_options): Use it.
92132         * lib/group-member.c: Include <stdbool.h>.
92133         (free_group_info): Arg is now const *; don't free arg.
92134         (get_group_info): Now returns bool and accepts struct group_info *,
92135         rather than returning a malloc'ed struct group_info *.
92136         All uses changed.  Check for overflow in internal size calculation.
92137
92138         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92139         rather than xmalloc/xrealloc.
92140         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92141         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92142         conformance bug: the old code used a pointer after freeing the
92143         storage that it addressed.
92144         * lib/hash.c (hash_initialize): Simplify the code by using
92145         xalloc_oversized rather than doing it by hand.
92146         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92147         the buffer preserved.  Use free and xmalloc instead.
92148         * lib/quotearg.c (quotearg_n_options): Likewise.
92149         Use a simpler test for size overflow.  Don't use xalloc_oversized
92150         because unsigned int might be wider than size_t (!); this suggests
92151         that we should switch from unsigned int to size_t for slot numbers.
92152
92153 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92154
92155         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92156         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92157         NetBSD kernels.  Requested by Richard Stallman.
92158
92159 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92160
92161         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92162         to allocate the returned structure.  Do not allocate a subarray,
92163         as x2nrealloc will do that.
92164         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92165         instead of xnrealloc.
92166         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92167
92168 2003-10-27  Bruno Haible  <bruno@clisp.org>
92169
92170         * lib/stdbool_.h: Better support for BeOS.
92171
92172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92173
92174         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92175         now uses inline.
92176
92177 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92178
92179         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92180         callers that want to do their own size-overflow checking.  Include
92181         <stdbool.h>, since xalloc_oversized returns bool.
92182         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92183         to use xalloc_oversized.
92184
92185         Add two functions x2realloc, x2nrealloc, for programs that grow
92186         arrays dynamically by doubling their sizes.
92187         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92188         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92189         New functions.
92190
92191         Port to C99 semantics for 'inline' of external functions.
92192         Bug reported by Bruno Haible.
92193         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92194         with the old contents of xnmalloc.
92195         (xnmalloc, xmalloc): Use it.
92196         (xnrealloc_inline): New static inline function,
92197         with the old contents of xnrealloc.
92198         (xnrealloc, xrealloc): Use it.
92199
92200         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92201         that.
92202
92203 2003-10-26  Karl Berry  <karl@gnu.org>
92204
92205         * config/srclist.txt (COPYING.DOC): no longer available from
92206         /gd/gnuorg; don't know where the ultimate source is.
92207
92208 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92209
92210         Fix several address-calculation bugs in the hash modules,
92211         plus some minor code cleanup.
92212
92213         * lib/hash.h: Include <stdbool.h>, for bool.
92214         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92215         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92216         hash_get_n_entries, hash_get_max_bucket_length,
92217         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92218         hash_rehash): Use size_t rather than unsigned.
92219         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92220         hash_get_n_buckets_used, hash_get_n_entries,
92221         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92222         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92223         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92224         Likewise.
92225         (SIZE_MAX): Define if not defined.
92226         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92227         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92228         hash_print):
92229         Use const * when possible.
92230         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92231         (check_tuning): Fix bug: if tuning parameters were very close to
92232         0 or 1, rounding errors could have caused subscript violations.
92233         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92234         (hash_initialize): Add 'fail:' label
92235         to free table and return NULL, and use it to simplify code.
92236         Use calloc rather than clearing the storage ourself.
92237         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92238         buffer size calculations.
92239         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92240         Include <stddef.h>, for size_t.
92241         * lib/hash-pjw.c (hash_pjw): Likewise.
92242         Switch to method described by Bruno Haible.
92243         Include <limits.h>, for CHAR_BIT.
92244         (SIZE_BITS): New macro.
92245
92246 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92247
92248         * m4/getline.m4 (AM_FUNC_GETLINE):
92249         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92250         hosts.  Problem reported by Derek Robert Price in
92251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92252         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92253         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92254
92255 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92256
92257         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92258         ceiling the allocation at NMAX bytes rather than silently
92259         discarding input bytes before NMAX is reached.  This makes
92260         a difference only if NMAX exceeds SIZE_MAX / 2.
92261
92262         * lib/obstack.c: Merge from glibc.
92263         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92264         Add libc_hidden_def (_obstack_newchunk).
92265         (_obstack_free) [! defined _LIBC]: Remove.
92266         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92267         a clone of the function body.
92268         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92269         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92270
92271         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92272         glibc.
92273         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92274         arg to memcpy.
92275
92276         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92277         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92278         Don't use lvalue casts, as GCC plans to remove support for them
92279         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92280         was also present in the non-GCC version, indicating that this
92281         code had always been buggy and had never been widely used.
92282         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92283         Use the fast variant of each macro, rather than copying the
92284         definiens of the fast variant; that way, we'll be more likely to
92285         catch future bugs in the fast variants.
92286
92287 2003-10-20  Bruno Haible  <bruno@clisp.org>
92288
92289         * modules/wait-process: New file.
92290         * MODULES.html.sh (func_all_modules): Add wait-process.
92291
92292 2003-10-20  Bruno Haible  <bruno@clisp.org>
92293
92294         * m4/wait-process.m4: New file.
92295
92296 2003-10-20  Bruno Haible  <bruno@clisp.org>
92297
92298         * lib/wait-process.h: New file, from GNU gettext.
92299         * lib/wait-process.c: New file, from GNU gettext.
92300
92301 2003-10-19  Jim Meyering  <jim@meyering.net>
92302
92303         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92304         HPUX 10.20.
92305
92306 2003-10-18  Karl Berry  <karl@gnu.org>
92307
92308         * config/config.guess: update from config.
92309
92310 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92311
92312         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92313         (getgroups): First arg is int, not size_t.
92314         Don't let 'free' mangle errno.
92315
92316 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92317
92318         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92319
92320 2003-10-16  Karl Berry  <karl@gnu.org>
92321
92322         * config/config.{guess,sub}: update from config.
92323
92324 2003-10-16  Jim Meyering  <jim@meyering.net>
92325
92326         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92327         memcpy.
92328
92329 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92330
92331         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92332         (SIZE_MAX): Remove.
92333         (new_exclude, add_exclude_file): Initial size no longer needs to
92334         be a power of 2.
92335         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92336         our own address arithmetic overflow checking.
92337
92338         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92339         (fnmatch): Do not alloca more than 2000 wide characters;
92340         instead, use malloc for large buffers.
92341         Check for address arithmetic overflow, and return -1
92342         with errno set to ENOMEM in that case.
92343         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92344         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92345         instead, return -1.  Check for address arithmetic overflow.
92346
92347 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92348
92349         Handle invalid suffixes and overflow independently, so that
92350         callers can treat them independently as needed.  Fix some bugs in
92351         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92352         suffix for a human-readable blocksize.  The major caller-visible
92353         change is the addition of a new
92354         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92355         that both overflow and suffix chars were found.
92356
92357         * lib/human.c (humblock): Don't check separately for invalid suffix
92358         char; that is xstrtoumax's job (now that its bug is fixed).
92359         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92360         INTMAX_MAX]: New macros.
92361         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92362         TYPE_MAXIMUM): New macros.
92363         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92364         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92365         if overflow occurs, as it's what __strtol does and it's more useful
92366         in practice.
92367         (__xstrtol): If __strtol reports some error other than ERANGE,
92368         reflect it to the caller as LONGINT_INVALID.  If it reports
92369         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92370         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92371         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92372         value.
92373         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92374         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92375         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92376         [defined UINTMAX_MAX]: New macros.
92377
92378 2003-10-14  Bruno Haible  <bruno@clisp.org>
92379
92380         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92381
92382 2003-10-14  Bruno Haible  <bruno@clisp.org>
92383
92384         * m4/sig_atomic_t: New file, from GNU gettext.
92385         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92386
92387 2003-10-14  Bruno Haible  <bruno@clisp.org>
92388
92389         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92390         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92391         Also use volatile where needed.
92392
92393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92394
92395         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92396         Change maintainer from Bruno Haible to 'all'.
92397
92398 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92399
92400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92401
92402 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92403
92404         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92405         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92406         and define in terms of the other primitives.
92407         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92408         (SIZE_MAX): Define if not already defined.
92409         (array_size_overflow): New function.
92410         (xalloc_die): Abort instead of exiting if 'error' returns.
92411         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92412         (xmalloc, xrealloc): Use them.
92413         (xcalloc): Check for address arithmetic overflow.
92414         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92415         a bit faster than strcpy.
92416
92417 2003-10-10  Simon Josefsson  <jas@extundo.com>
92418
92419         * modules/argp (Depends-on): Add restrict and strcase.
92420
92421 2003-10-10  Simon Josefsson  <jas@extundo.com>
92422
92423         * m4/argp.m4: Add AC_C_INLINE.
92424
92425 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92426
92427         Merge getpass from libc, plus a few fixes.
92428
92429         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92430         Include <stdbool.h>.
92431         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92432         __fsetlocking to empty.
92433         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92434         do include <bits/libc-lock.h>.
92435         Do not include <fcntl.h>; not needed.
92436         [_LIBC]: Include <wchar.h>.
92437         (NOTCANCEL_MODE): New macro.
92438         (flockfile, funlockfile) [_LIBC]: New macros.
92439         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92440         [!_LIBC]: New macros.
92441         (call_fclose): New function.
92442         (getpass): Use it.  Save tty stream separately; this simplifies the
92443         code and makes it more reliable if stdin happens to equal stdout.
92444         Invoke __fsetlocking on tty.
92445         Handle thread cancellation if needed.
92446         Namespace cleanup (use __tcgetattr, __getline).
92447         Use bool for Booleans.
92448         [USE_IN_LIBIO]: Handle wide streams.
92449         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92450         stream might go where.
92451
92452         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92453         doesn't have to include <stdio.h> before us.
92454         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92455         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92456         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92457         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92458         if not declared, so that we can use getpass.c code from libc without
92459         rewriting it.
92460         (flockfile, ftrylockfile, funlockfile): New macros.
92461
92462 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92463
92464         * modules/getpass: Depend on stdbool.
92465
92466 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92467
92468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92469
92470 2003-10-07  Karl Berry  <karl@gnu.org>
92471
92472         * config/config.{guess,sub}: update from config.
92473
92474 2003-10-06  Jim Meyering  <jim@meyering.net>
92475             Bruno Haible  <bruno@clisp.org>
92476
92477         This lets translators provide better translations for the
92478         "Written by ..." part of --version output.
92479         * lib/version-etc.h: Include stdarg.h.
92480         (version_etc_copyright): Declare as readonly.
92481         (version_etc): Make this function variadic with a NULL-terminated list
92482         of author name strings.
92483         (version_etc_va): New declaration.
92484         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92485         (version_etc_copyright): Declare as readonly.
92486         (version_etc_va): New function. Provide a different translatable string
92487         for each possible number of authors < 10. Abbreviate when there are 10
92488         authors or more.
92489         (version_etc): Make this function variadic. Call version_etc_va.
92490         Suggestion from Gary V. Vaughan.
92491
92492         * lib/long-options.h (parse_long_options): Change prototype: the
92493         authors string is moved to the end and becomes variadic.
92494         * lib/long-options.c: Include stdarg.h.
92495         (parse_long_options): Make this function variadic, too.
92496         Call version_etc_va, not version_etc.
92497
92498 2003-10-06  Bruno Haible  <bruno@clisp.org>
92499
92500         * modules/version-etc-2: Remove file.
92501         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92502
92503 2003-10-06  Bruno Haible  <bruno@clisp.org>
92504
92505         * modules/fatal-signal: New file.
92506         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92507
92508 2003-10-06  Bruno Haible  <bruno@clisp.org>
92509
92510         * m4/fatal-signal.m4: New file.
92511         * m4/signalblocking.m4: New file, from GNU gettext.
92512
92513 2003-10-06  Bruno Haible  <bruno@clisp.org>
92514
92515         * lib/version-etc-2.h: Remove file.
92516         * lib/version-etc-2.c: Remove file.
92517
92518 2003-10-06  Bruno Haible  <bruno@clisp.org>
92519
92520         * lib/fatal-signal.h: New file, from GNU gettext.
92521         * lib/fatal-signal.c: New file, from GNU gettext.
92522
92523 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92524
92525         * README: Rework advice for preventing empty .o files.
92526         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92527         not <sys/types.h>.
92528
92529 2003-10-04  Karl Berry  <karl@gnu.org>
92530
92531         * lib/argp*: update from libc.
92532
92533 2003-10-04  Karl Berry  <karl@gnu.org>
92534
92535         * config/config.{guess,sub}: update from config.
92536
92537 2003-10-02  Bruno Haible  <bruno@clisp.org>
92538
92539         * modules/lchown (Include): Add lchown.h.
92540         * modules/time_r (Include): Use "..." syntax.
92541         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92542
92543 2003-10-01  Simon Josefsson  <jas@extundo.com>
92544
92545         * MODULES.html.sh (func_all_modules): Move gethostname from section
92546         'based on' to section 'lacking' POSIX:2001.
92547
92548 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92549
92550         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92551         to output mode on the same stream.
92552
92553 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92554
92555         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92556         Fix arg typo in previous patch.
92557
92558 2003-09-28  Jim Meyering  <jim@meyering.net>
92559
92560         * lib/error.c: Correct cpp indentation.
92561
92562 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92563
92564         * modules/free: New file.
92565
92566 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92567
92568         * m4/free.m4: New file.
92569
92570 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92571
92572         * lib/minmax.h (MIN, MAX)
92573         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92574         Omit the special code that used __typeof__, since we worry that
92575         it could be more trouble than it's worth.  See:
92576         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92577         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92578
92579         * lib/free.c: New file.
92580
92581 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92582
92583         Trivial fixes to Makefile.am parts of module listings.
92584         * modules/strstr: Append strstr.h to lib_SOURCES.
92585         * modules/strcase: Likewise, for strcase.h.
92586
92587 2003-09-27  Karl Berry  <karl@gnu.org>
92588
92589         * config/mkinstalldirs: update from automake.
92590
92591 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92592
92593         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92594         (error_tail): Do not loop, reallocating temporary buffer, since
92595         the output cannot contain more wide characters than the input
92596         contains bytes, the size must be big enough already.  This avoids
92597         one potential size overflow calculation.  Check for size overflow
92598         when calculating temporary buffer size.  Free temporary buffer
92599         when done, if it was allocated with malloc; this plugs a memory
92600         leak.  Remove casts from void * to pointers, that are no longer
92601         needed now that we're assuming C89 or better.
92602
92603         Merge error changes from glibc.
92604
92605         * lib/error.c, error.h: Update copyright notice header to match glibc.
92606         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92607         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92608         Disable cancellation while printing error.
92609         * lib/error.h: Prepend __ to parameter names.
92610
92611 2003-09-26  Jim Meyering  <jim@meyering.net>
92612
92613         * lib/error.c (error_tail): Move some declarations
92614         into inner scope where the local variables are used.
92615
92616 2003-09-26  Bruno Haible  <bruno@clisp.org>
92617
92618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92619         stpncpy().
92620         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92621
92622 2003-09-26  Bruno Haible  <bruno@clisp.org>
92623
92624         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92625         (stpncpy): Define as alias for gnu_stpncpy.
92626         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92627
92628 2003-09-25  Simon Josefsson  <jas@extundo.com>
92629
92630         * lib/xgetdomainname.h: New file.
92631         * lib/xgetdomainname.c: New file.
92632
92633 2003-09-25  Simon Josefsson  <jas@extundo.com>
92634             Bruno Haible  <bruno@clisp.org>
92635
92636         * modules/getdomainname: New file.
92637         * modules/xgetdomainname: New file.
92638         * MODULES.html.sh (func_all_modules): Add getdomainname,
92639         xgetdomainname.
92640
92641 2003-09-25  Simon Josefsson  <jas@extundo.com>
92642             Bruno Haible  <bruno@clisp.org>
92643
92644         * m4/getdomainname.m4: New file.
92645
92646 2003-09-25  Simon Josefsson  <jas@extundo.com>
92647             Bruno Haible  <bruno@clisp.org>
92648
92649         * lib/getdomainname.h: New file.
92650         * lib/getdomainname.c: New file.
92651
92652 2003-09-25  Karl Berry  <karl@gnu.org>
92653
92654         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92655
92656 2003-09-25  Karl Berry  <karl@gnu.org>
92657
92658         * config/install-sh: update from automake.
92659
92660 2003-09-25  Bruno Haible  <bruno@clisp.org>
92661
92662         * modules/version-etc-2: New file, from modules/version-etc with
92663         modifications.
92664         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92665
92666 2003-09-25  Bruno Haible  <bruno@clisp.org>
92667
92668         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92669         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92670
92671 2003-09-24  Simon Josefsson  <jas@extundo.com>
92672
92673         * modules/xgethostname: Add xgethostname.h.
92674
92675 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92676
92677         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92678         the buffer associated with the argument.  Bug reported by
92679         Simon Josefsson.
92680
92681 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92682
92683         * README: Document assumptions that 'int' is at least 32 bits
92684         wide, that integer arithmetic is 2's complement without overflow,
92685         that there are no holes in integer values, that adding sizes of
92686         two nonoverlapping objects can't overflow, and that all-bits-zero
92687         yields scalar zero.  Fix spelling and capitalization typos.
92688
92689 2003-09-19  Karl Berry  <karl@gnu.org>
92690
92691         * lib/argp.h: update from libc.
92692
92693 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92694
92695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92696         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92697         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92698
92699 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92700
92701         * gnulib-tool: Use "test -h", not "test -L", for portability
92702         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92703         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92704         (sed_extract_prog): Issue s commands one-by-one, rather than
92705         using \| in one s command.
92706
92707 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92708
92709         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92710         input error, instead of returning NULL the next time we are called
92711         (and therefore losing track of errno).
92712
92713 2003-09-16  Bruno Haible  <bruno@clisp.org>
92714
92715         * gnulib-tool (func_create_testdir): Warn about duplicated
92716         dependencies.
92717
92718 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92719
92720         * modules/argmatch, modules/fatal, modules/obstack,
92721         modules/xalloc, modules/xgethostname: Sort dependencies by
92722         importance, not alphabetically.
92723
92724 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92725
92726         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92727         fails, so that the caller gets the proper errno.
92728
92729         * lib/readutmp.c (read_utmp): Likewise.
92730         Check for fstat error.  Close stream and free storage
92731         when failing.
92732
92733 2003-09-14  Karl Berry  <karl@gnu.org>
92734
92735         * config/srclist.txt (strdup.c): disable for c89 changes.
92736
92737 2003-09-14  Jim Meyering  <jim@meyering.net>
92738
92739         * lib/getloadavg.c: Correct cpp indentation.
92740         * lib/strdup.c: Likewise.
92741         * lib/vasnprintf.c: Likewise.
92742
92743 2003-09-14  Bruno Haible  <bruno@clisp.org>
92744
92745         * modules/fwriteerror: New file.
92746         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92747
92748 2003-09-14  Bruno Haible  <bruno@clisp.org>
92749
92750         * lib/fwriteerror.h: New file.
92751         * lib/fwriteerror.c: New file.
92752
92753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92754
92755         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92756         modules/xgethostname, modules/xalloc: Depend on exit.
92757
92758 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92759
92760         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92761
92762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92763         and AC_MINIX, too, so that their extensions are available.
92764
92765         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92766         This macro has been superseded by gl_BACKUPFILE.
92767
92768         More patches to assume C89 or better.
92769
92770         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92771
92772         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92773         unconditionally.
92774         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92775         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92776         Include <string.h>, <stdlib.h> unconditionally.
92777         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92778         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92779         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92780         headers or for string.h.
92781         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92782         or strtoul.
92783
92784         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92785         headers.
92786         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92787         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92788         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92789         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92792         memcpy, memset.
92793         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92794         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92795         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92796         strtol.
92797         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92798         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92800         strtoul.
92801
92802 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92803
92804         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92805         * lib/obstack.c [!defined _LIBC]: Likewise.
92806         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92807         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92808         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92809
92810         More changes to assume C89 or better.
92811
92812         * lib/error.c (error_tail): Assume vprintf.
92813
92814         * lib/argmatch.c (getenv): Remove decl.
92815         * lib/progreloc.c (get_full_program_name): Define via prototype.
92816         * lib/setenv.c (clearenv): Likewise.
92817         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92818         needed.
92819         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92820         (malloc, memcpy): Remove decls.
92821         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92822         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92823         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92824         (memcpy): Remove macro.
92825         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92826         (__P): Remove.  All uses removed.
92827         (PTR): Remove.  All uses changed to void *.
92828         (CHAR_BIT, NULL): Remove.
92829         (spaces, zeros, memset_space, memset_zero)
92830         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92831         Remove.
92832         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92833         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92834         Define with prototype.
92835         Remove now-unnecessary prototype decl.
92836         (extra_args_spec): Assume ANSI C.  All uses changed.
92837         (extra_args_spec_iso): Remove.
92838         (my_strftime, emacs_strftimeu): Define via prototype.
92839         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92840         unconditionally.
92841         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92842         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92843         (strtoul, strtol): Remove decls.
92844         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92845         LONG_MAX): Remove.
92846         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92847         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92848         (LOCALE_PARAM_PROTO): New macro.
92849         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92850         (INTERNAL (strtol), strtol): Define with a prototype.
92851         (PARAMS): Remove.  All uses removed.
92852         * lib/tempname.c: Include <string.h> unconditionally.
92853         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92854         * lib/xgethostname.c (main): Define with a prototype.
92855         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92856         Include <stdlib.h> unconditionally.
92857         (calloc, malloc, realloc, free): Remove decls.
92858         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92859         Include <stdlib.h> unconditionally.  Sort include file names.
92860         (strtod): Remove.
92861         (xstrtod): Define with a prototype.
92862         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92863         (strtol, strtoul): Remove decls.
92864
92865 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92866
92867         More patches to assume C89 or better.
92868         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92869         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92870         string.h, memchr, STDC_HEADERS.
92871
92872 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92873
92874         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92875         Include <stdlib.h>, <string.h> unconditionally.
92876         Remove now-unnecessary cast to char *.
92877         * lib/strnlen.c: Include <string.h> unconditionally.
92878         * lib/yesno.c (yesno): Define with a prototype.
92879
92880 2003-09-11  Bruno Haible  <bruno@clisp.org>
92881
92882         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92883
92884 2003-09-10  Jim Meyering  <jim@meyering.net>
92885
92886         * lib/error.c: Correct indentation of cpp directives.
92887
92888 2003-09-10  Bruno Haible  <bruno@clisp.org>
92889
92890         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92891         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92892         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92893         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92894         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92895         <stdlib.h> and <string.h> checks.
92896         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92897         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92898
92899 2003-09-10  Bruno Haible  <bruno@clisp.org>
92900
92901         * lib/strcspn.c: Include <string.h> unconditionally.
92902         * lib/strpbrk.c: Include <string.h> unconditionally.
92903         * lib/strstr.c: Include <string.h> unconditionally.
92904         * lib/unicodeio.c: Include <string.h> unconditionally.
92905         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92906         * lib/unsetenv.c: Likewise.
92907         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92908         * lib/yesno.c: Include <stdlib.h> unconditionally.
92909         (rpmatch): Add prototype.
92910
92911 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92912
92913         More patches to assume C89 or better.
92914         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92915         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92916         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92917         or for string.h.
92918         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92919         stdlib.h.
92920         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92921         C headers.
92922         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92923         string.h.
92924         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92925         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92926         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92927         or for string.h.
92928         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92929         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92930         C headers.
92931         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92932         memcpy.
92933         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92934         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92935         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92936         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92937         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92938         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92939         string.h, free.
92940         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92941         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92942         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92943         C headers, or for string.h.
92944         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92945         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92946         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92947         headers, memory.h, stdlib.h, string.h, strings.h.
92948         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92949         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92950         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92951         strchr.
92952         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92953         headers, memory.h, string.h.
92954         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92955         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92956         free.
92957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92958         headers.
92959         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92960         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92961         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92962         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92963         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92964
92965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92966
92967         More K&R removal.
92968
92969         * lib/acosl.c (main): Use a prototype.
92970         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92971         tanl.c: Likewise.
92972
92973         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92974
92975         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92976         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92977         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92978         with a prototype.
92979         * lib/getopt.c (const): Remove macro.
92980         Include <string.h> unconditionally.
92981         (my_index): Remove; all uses changed to strchr.
92982         (strlen): Remove decl.
92983         (exchange): Remove forward decl; no longer needed.
92984         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92985         Define with prototype.
92986         * lib/getopt1.c (const): Remove macro.
92987         (getopt_long, getopt_long_only, main): Define with prototype.
92988
92989         * lib/getugroups.c: Include <string.h> unconditionally.
92990
92991         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92992         (getusershell, setusershell, endusershell, readname, main):
92993         Define with prototypes.
92994
92995         * lib/group-member.c: Include group-member.h first.
92996         Include <stdlib.h> unconditionally.
92997
92998         * lib/hard-locale.c: Include hard-locale.h first.
92999         Include <stdlib.h>, <string.h> unconditionally.
93000
93001         * lib/hash.c (free, malloc): Remove decls.
93002         Include <stdlib.h> unconditionally.
93003
93004         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93005         (getenv): Do not declare.
93006
93007         * lib/idcache.c: Include <string.h> unconditionally.
93008
93009         * lib/long-options.c: Include long-options.h first, to test interface.
93010         Include <stdlib.h> unconditionally.
93011
93012         * lib/makepath.c: Include makepath.h first, to test interface.
93013         Include <stdlib.h> and <string.h> unconditionally.
93014
93015         * lib/linebuffer.c: Include <stdlib.h>.
93016         (free): Remove decl.
93017
93018         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93019         stddef.h. rpl_malloc returns void *, not char *.
93020         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93021         prototype.
93022
93023         * lib/md5.h: Include <limits.h> unconditionally.
93024         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93025         (__P): Remove; all uses removed.
93026         * lib/md5.c: Include "md5.h" first.
93027         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93028         md5_buffer, md5_process_bytes, md5_process_block):
93029         Define with prototypes.
93030         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93031         * lib/sha.c: Include "sha.h" first.
93032         Include <stdlib.h>, <string.h> unconditionally.
93033
93034         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93035         * lib/memcmp.c (__ptr_t): Likewise.
93036         * lib/memrchr.c (__ptr_t): Likewise.
93037         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93038         Include <string.h> unconditionally.
93039         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93040         * lib/memchr.c: Include <stdlib.h> unconditionally.
93041         * lib/memchr.c (LONG_MAX): Remove.
93042         * lib/memrchr.c (LONG_MAX): Likewise.
93043         * lib/memchr.c (__memchr): Define via a prototype.
93044         * lib/memrchr.c (__memrchr): Likewise.
93045         * lib/memcmp.c (__P): Remove, and remove all uses.
93046         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93047         Remove forward decls; no longer needed.
93048         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93049         Use types required by C89 in prototype.
93050
93051         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93052         * lib/savedir.c: Likewise.
93053         * lib/mkdir.c (free): Remove decl.
93054         * lib/rmdir.c (rmdir): Define with a prototype.
93055         * lib/savedir.c: Include savedir.h first, to test interface.
93056
93057         * lib/mktime.c (STDC_HEADERS): Remove.
93058         Include <stdlib.h>, <string.h> unconditionally.
93059
93060         * lib/modechange.c: Include <stdlib.h> unconditionally.
93061         (malloc): Remove decl.
93062
93063         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93064         (free): Remove decl.
93065
93066         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93067         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93068         (This type really should be intptr_t, but that's a C99ism.)
93069         (_obstack_memcpy): Remove: all uses changed to memcpy.
93070         Include <string.h> unconditionally.
93071         (struct obstack): Assume __STDC__ for types of members
93072         chunkfun, freefun, extra_arg.
93073         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93074         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93075         obstack_begin, obstack_specify_allocation,
93076         obstack_specify_allocation_with_arg, obstack_chunkfun,
93077         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93078         Remove unprototyped decls and the macros that use them.
93079         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93080         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93081         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93082         (defined __STDC__ && __STDC__)]:
93083         Remove nonprototyped code.
93084         Include <stdlib.h> unconditionally.
93085         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93086         _obstack_allocated_p, _obstack_free, obstack_free,
93087         _obstack_memory_used, print_and_abort):
93088         Define using prototypes.
93089         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93090         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93091         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93092         obstack_next_free, obstack_object_size, obstack_room) [0]:
93093         Remove unused, unprototyped code.
93094
93095         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93096
93097         * lib/physmem.c (physmem_total, physmem_available, main): Define
93098         with prototypes.
93099
93100         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93101         (main): Define with a prototype.
93102
93103         * lib/posixver.c (getenv): Remove decl.
93104
93105         * lib/putenv.c (malloc): Returns void *, not char *.
93106         Include <string.h> unconditionally.
93107         (strchr, memcpy, NULL): Do not define.
93108
93109         * lib/readtokens.c: Include readtokens.h first, to test interface.
93110         Include <stdlib.h>, <string.h> unconditionally.
93111         (init_tokenbuffer): Define with a prototype.
93112
93113         * lib/regex.c (PARAMS): Remove.  All uses removed.
93114         All uses of _RE_ARGS removed, too.
93115         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93116         unconditionally.
93117         (bzero): Assume memset exists.
93118         (memcmp, memcpy, NULL): Remove.
93119         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93120         char, or assignments to local vars of type signed char.
93121         (init_syntax_once, PREFIX(extract_number_and_incr),
93122         PREFIX(print_partial_compiled_pattern),
93123         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93124         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93125         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93126         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93127         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93128         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93129         wcs_compile_range, byte_compile_range, truncate_wchar,
93130         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93131         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93132         count_mbs_length, wcs_re_match_2_internal,
93133         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93134         PREFIX(alt_match_null_string_p),
93135         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93136         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93137         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93138         now-unnecessary declaration, if any.
93139         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93140         regcomp, regexec):
93141         Remove now-unnecessary casts among pointer types.
93142         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93143
93144         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93145         (free): Remove decl.
93146
93147         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93148
93149         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93150         (free): Remove decl.
93151
93152         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93153         * lib/xgetcwd.c: Likewise.
93154
93155         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93156         (free): Remove decl.
93157
93158         * lib/strchrnul.c (strchrnul): Define with a prototype.
93159         Fix bug: c_in was not converted to char before searching.
93160
93161         The following changes are not K&R related:
93162
93163         * lib/group-member.h: Include <sys/types.h>, so that this file is
93164         self-contained.
93165         * lib/makepath.h: Likewise.
93166
93167         * lib/getusershell.c (readname, default_index, line_size, readname):
93168         Use size_t, not int, for sizes.
93169         (readname): If the size overflows, report an error instead of
93170         looping forever.
93171
93172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93173
93174         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93175         libc.
93176
93177 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93178
93179         * README: New section: portability guidelines.
93180
93181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93182
93183         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93184         C89 spec.
93185
93186 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93187
93188         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93189
93190 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93191
93192         Assume C89 or better; remove K&R cruft.
93193         A few of these changes were first proposed by Derek Robert Price
93194         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93195
93196         * lib/addext.c: Include <string.h> unconditionally.
93197         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93198         Don't declare getenv or malloc.
93199
93200         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93201         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93202         (NULL): Remove.
93203         (find_stack_direction, alloca): Use prototypes.
93204
93205         * lib/atexit.c (atexit): Define using a prototype.
93206
93207         * lib/basename.c, dirname.c, stripslash.c:
93208         Include <string.h> unconditionally.
93209
93210         * lib/bcopy.c: Include <stddef.h>.
93211         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93212
93213         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93214
93215         * lib/error.h (error, error_at_line, error_print_progname)
93216         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93217         * lib/error.c: Include error.h first, to check interface.
93218         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93219         (VA_START): Remove; all uses changeed to va_start.
93220         (exit, strerror): Remove decls.
93221         (error_print_progname): Prototype uncondionally.
93222         Don't include <errno.h>; no longer needed.
93223         (private_strerror): Remove.
93224         (error_tail): Always define.
93225         (error, error_at_line): Assume C89 or better; always use prototypes.
93226         * lib/fatal.c: Include "fatal.h" first, to test interface.
93227         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93228         (VA_START): Remove; all uses changed to va_start.
93229         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93230         this case.
93231         (exit): Remove decl.
93232         (fatal): Prototype unconditionally.  Assume va_start works.
93233         Abort at end, to pacify gcc.
93234
93235         * lib/euidaccess.c (main): Define with a prototype.
93236
93237         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93238
93239         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93240
93241         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93242         prototypes.
93243         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93244         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93245         (getenv): Remove decl.
93246         (fnmatch): Define using a prototype.
93247         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93248         (FCT): Define using a prototype.
93249
93250         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93251
93252         * lib/gethostname.c: Include <stddef.h>.
93253         (gethostname): Define with prototype.  Length is size_t, not int.
93254
93255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93256
93257         Assume C89 or better; remove K&R cruft.
93258         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93259         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93260         string.h, getenv, malloc.
93261         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93262         headers.
93263         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93264         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93265         do not check for strerror.
93266         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93267         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93268         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93269         do not check for doprnt or vprintf.
93270         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93271         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93272
93273 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93274
93275         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93276         getversion.c should have been removed then, but was accidentally
93277         preserved.
93278
93279         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93280         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93281
93282 2003-09-08  Karl Berry  <karl@gnu.org>
93283
93284         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93285                 config, forget about prep.
93286
93287         * config/depcomp, missing: update from automake.
93288
93289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93290
93291         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93292         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93293
93294 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93295
93296         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93297         copy_tm_result.  Bug reported by Simon Josefsson in
93298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93299
93300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93301
93302         * m4/time_r.m4: New file.
93303         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93304         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93305         is. Check for timegm declaration.
93306         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93307         Do not check for gmtime_r.
93308         Replace mktime if __mktime_internal does not exist and if mktime
93309         hasn't been replaced already.
93310
93311 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93312
93313         * lib/time_r.c, lib/time_r.h: New files.
93314
93315         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93316         __localtime_r.
93317         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93318         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93319
93320         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93321         __gmtime_r.
93322         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93323         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93324         Include <time_r.h>.
93325
93326         * lib/timegm.c: Switch to glibc implementation, with the following
93327         changes:
93328         [defined HAVE_CONFIG_H]: Include <config.h>.
93329         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93330         (__mktime_internal) [!defined _LIBC]: New decl.
93331         (__gmtime_r) [!defined _LIBC]: New macro and function.
93332         (timegm): Use a prototype, since gnulib assumes C89.
93333         Do not bother declaring tmp to be const, as it's not really usefu.
93334         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93335         (timegm): Declare only if HAVE_DECL_TIMEGM.
93336
93337 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93338
93339         * MODULES.html.sh (func_all_modules): Add time_r.
93340         * modules/time_r: New file.
93341         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93342         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93343
93344 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93345
93346         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93347         Bug reported by Lute Kamstra in
93348         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93349
93350         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93351         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93352         course with correspondingly smaller numbers for tomorrow and
93353         yesterday.  From Tadayoshi Funaba.  Originally installed into
93354         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93355         coreutils merge?).
93356
93357 2003-08-31  Simon Josefsson  <jas@extundo.com>
93358
93359         * modules/timegm: New file.
93360         * MODULES.html.sh (func_all_modules): Add timegm.
93361
93362 2003-08-31  Simon Josefsson  <jas@extundo.com>
93363
93364         * m4/timegm.m4: New file.
93365
93366 2003-08-31  Simon Josefsson  <jas@extundo.com>
93367
93368         * lib/timegm.h: New file.
93369         * lib/timegm.c: New file.  Based on
93370         wget-1.8.2/src/http.c:mktime_from_utc.
93371
93372 2003-08-31  Karl Berry  <karl@gnu.org>
93373
93374         * lib/argp.h: update from libc.
93375
93376 2003-08-28  Bruno Haible  <bruno@clisp.org>
93377
93378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93379         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93380         followed by '#define fnmatch fnmatch_posix' gives an error.
93381
93382 2003-08-28  Bruno Haible  <bruno@clisp.org>
93383
93384         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93385         warning on QNX, which defines O_BINARY to 000000.
93386
93387 2003-08-27  Jim Meyering  <jim@meyering.net>
93388
93389         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93390         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93391         would fail after 32.  Reported by Danny Levinson.  Details here:
93392         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93393
93394 2003-08-24  Bruno Haible  <bruno@clisp.org>
93395
93396         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93397         MSVC7 <stdio.h> is included later.
93398
93399 2003-08-22  Simon Josefsson  <jas@extundo.com>
93400
93401         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93402
93403 2003-08-20  Karl Berry  <karl@gnu.org>
93404
93405         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93406
93407 2003-08-20  Bruno Haible  <bruno@clisp.org>
93408
93409         * modules/progname: New file.
93410         * MODULES.html.sh (func_all_modules): Add progname.
93411
93412 2003-08-20  Bruno Haible  <bruno@clisp.org>
93413
93414         * lib/progname.h: New file, from GNU gettext.
93415         * lib/progname.c: New file, from GNU gettext.
93416         * lib/progreloc.c: New file, from GNU gettext.
93417
93418 2003-08-19  Jim Meyering  <jim@meyering.net>
93419
93420         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93421         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93422
93423 2003-08-19  Bruno Haible  <bruno@clisp.org>
93424
93425         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93426         more.
93427
93428 2003-08-19  Bruno Haible  <bruno@clisp.org>
93429
93430         * lib/xstrdup.c: Assume <string.h> exists.
93431
93432 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93433
93434         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93435         in makefile rules.
93436
93437 2003-08-18  Jim Meyering  <jim@meyering.net>
93438
93439         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93440         * m4/lib-ld.m4: Likewise.
93441
93442 2003-08-18  Jim Meyering  <jim@meyering.net>
93443
93444         * lib/setenv.h: Indent nested cpp directive.
93445         * lib/vasnprintf.c: Remove trailing blanks.
93446
93447 2003-08-17  Simon Josefsson  <jas@extundo.com>
93448
93449         * modules/xstrndup: New file.
93450         * MODULES.html.sh (func_all_modules): Add xstrndup.
93451
93452 2003-08-17  Simon Josefsson  <jas@extundo.com>
93453
93454         * modules/argp: Fix autoconf macro name. Add more dependencies.
93455
93456 2003-08-17  Simon Josefsson  <jas@extundo.com>
93457
93458         * m4/xstrndup.m4: New file.
93459
93460 2003-08-17  Simon Josefsson  <jas@extundo.com>
93461
93462         * m4/argp.m4: New file.
93463
93464 2003-08-17  Simon Josefsson  <jas@extundo.com>
93465             Bruno Haible  <bruno@clisp.org>
93466
93467         * lib/xstrndup.h: New file.
93468         * lib/xstrndup.c: New file.
93469
93470 2003-08-17  Bruno Haible  <bruno@clisp.org>
93471
93472         * modules/strndup (Files, Include): Add lib/strndup.h.
93473
93474 2003-08-17  Bruno Haible  <bruno@clisp.org>
93475
93476         * modules/euidaccess (Files): Add lib/euidaccess.h.
93477
93478 2003-08-17  Bruno Haible  <bruno@clisp.org>
93479
93480         * lib/strndup.h: New file.
93481
93482 2003-08-17  Bruno Haible  <bruno@clisp.org>
93483
93484         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93485         like AC_GNU_SOURCE.
93486         * modules/extensions (configure.ac): Comment out the invocation of
93487         gl_USE_SYSTEM_EXTENSIONS.
93488
93489 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93490
93491         Merges from coreutils, etc.
93492         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93493         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93494         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93495         fixing a typo.
93496         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93497         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93498
93499 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93500
93501         Document merge from coreutils.
93502         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93503         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93504         * modules/utime: Add m4/utimes-null.m4.
93505
93506 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93507
93508         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93509         space, undoing this 2003-08-12 change:
93510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93511
93512 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93513
93514         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93515         strtoul.c from libc, undoing this 2003-08-12 change:
93516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93517
93518 2003-08-16  Jim Meyering  <jim@meyering.net>
93519
93520         Merges from coreutils.
93521         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93522         prefix.  Adjust cache variables similarly.  Create 500 rather than
93523         just 300 files, to exercise bug on Darwin6.5, too.
93524         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93525         $missing_dir.
93526         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93527         AM_SYS_POSIX_TERMIOS.
93528         Reported by mkc@mathdogs.com.
93529         Also change use of $am_cv_sys_posix_termios
93530         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93531         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93532         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93533         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93534         in /proc/mounts until it finds one with matching device number.  This
93535         is unnecessary when the FILE argument *is* a mount point.  No stat call
93536         is necessary in that case.  So, disable the statvfs-testing code on
93537         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93538         as RedHat bug# 84846.
93539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93540         to 1MB, so as not to render systems with no stack size limit (e.g.,
93541         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93542         Include <unistd.h>.  On some systems,
93543         it is required for the definition of _SC_PAGESIZE.
93544
93545 2003-08-16  Jim Meyering  <jim@meyering.net>
93546
93547         Merge from coreutils.
93548         * lib/xstrtoimax.c: #else #if -> #elif.
93549         * lib/xstrtoumax.c: Likewise.
93550
93551 2003-08-16  Jim Meyering  <jim@meyering.net>
93552
93553         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93554         * m4/utimes.m4: Removed.
93555         * m4/utimes-null.m4: Renamed from utimes.m4.
93556
93557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93558         to 1MB, so as not to render systems with no stack size limit (e.g.,
93559         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93560         Include <unistd.h>.  On some systems,
93561         it is required for the definition of _SC_PAGESIZE.
93562
93563 2003-08-16  Jim Meyering  <jim@meyering.net>
93564         and Paul Eggert  <eggert@cs.ucla.edu>
93565
93566         Merges from coreutils, etc.
93567
93568         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93569         using the latest version from cvs.  This avoids problems with #line
93570         directives using a vendor (Sun) compiler.
93571         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93572         Don't set GETGROUPS_LIB here; now it's
93573         done via getgroups.m4's wrapper function.
93574         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93575         rather than just in sh-util/configure.in, so that the
93576         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93577         same.
93578         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93579         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93580         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93581         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93582         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93583         Remove code that is now done by the newly-required macros.
93584         Append $(EXEEXT) to DF_PROG.
93585         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93586         Do not invoke or require the following here,
93587         since prereq.m4 or some gnulib .m4 now does this for us:
93588         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93589         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93590         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93591         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93592         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93593         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93594         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93595         AC_FUNC_OBSTACK.
93596         Do not replace the following functions, as this is now the job
93597         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93598         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93599         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93600         atexit getpass, strdup, getpagesize.
93601         Replace 'raise'.
93602         Do not check for the following functions, as this is now the job
93603         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93604         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93605         setregid.
93606         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93607         Check for sys/sysctl.h.
93608         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93609         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93610         of checking for ssize_t ourselves.
93611
93612         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93613         Require every macro that gnulib/modules/* suggests for us.
93614         (jm_PREREQ_ADDEXT): New macro.
93615         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93616         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93617
93618         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93619         (gl_PHYSMEM): Use it.
93620         Also check for `table' function.
93621         Check for new headers and functions.
93622         Add check for sys/sysmp.h.
93623         With suggestions from Kaveh Ghazi.
93624         Ignore headers that are present but cannot be compiled.  This
93625         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93626         C 5.4.
93627
93628 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93629
93630         Document merge from coreutils.
93631         * modules/userspec: Depend on posixver.
93632         * modules/strftime: Depend on tzset.
93633
93634 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93635
93636         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93637         rather than tab, after '#' in shell-script copyright notices.
93638         Suggested by Bruno Haible.
93639
93640 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93641
93642         * config/srclist-update: Use three spaces, rather than tab, after '#'
93643         in shell-script copyright notices.  Suggested by Bruno Haible.
93644         Remove unnecessary parenthesization in regular expression.
93645
93646 2003-08-15  Jim Meyering  <jim@meyering.net>
93647
93648         Merge from coreutils.
93649         * lib/xgethostname.c: Include <stdlib.h>.
93650         (xghostname): Don't exit for anything other than memory-related
93651         failure; just return NULL.
93652         * lib/userspec.c: Include "posixver.h".
93653         (parse_user_spec): Accept `.' as a separator only
93654         in pre-POSIX-200112 mode.
93655         * lib/strtoimax.c: Use #elif rather than #else #if.
93656         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93657         Remove function, now that we can rely on a working tzset function.
93658         [!_LIBC]: Ensure that the required autoconf test has been run.
93659         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93660         Use underlying_strftime for %r.
93661         * lib/sha.c: Merge in some clean-up and optimization changes from
93662         glibc.
93663         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93664         Ensure that it is a multiple of 64.
93665         Rearrange loop exit tests so as to avoid performing an
93666         additional fread after encountering an error or EOF.
93667         * lib/realloc.c: Update copyright date.
93668
93669 2003-08-15  Jim Meyering  <jim@meyering.net>
93670         and Paul Eggert  <eggert@twinsun.com>
93671
93672         Merge from coreutils.
93673         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93674         member but strut utmpx does not.  Needed for AIX 4.3.3.
93675         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93676
93677 2003-08-15  Jim Meyering  <jim@meyering.net>
93678         and Paul Eggert  <eggert@cs.ucla.edu>
93679
93680         Merges from coreutils, etc.
93681         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93682         Require gl_FUNC_TZSET_CLOBBER.
93683         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93684         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93685         members.
93686
93687 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93688
93689         Help the merge from coreutils.
93690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93692         * m4/tzset.m4: Use it too.
93693
93694 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93695
93696         * modules/tzset: New file.
93697
93698 2003-08-14  Jim Meyering  <jim@meyering.net>
93699
93700         Merges from coreutils.
93701         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93702         variable names, rather than @FNMATCH_H@.
93703         * modules/alloca: Likewise for $(ALLOCA_H).
93704
93705         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93706         the three copies of the literal target, `fnmatch.h'.
93707         * modules/alloca (alloca.h): Likewise.
93708
93709 2003-08-14  Jim Meyering  <jim@meyering.net>
93710
93711         Merge from coreutils.
93712         * m4/tzset.m4: New file.
93713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93714         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93715         otherwise, AIX 5.1 systems would end up using the latter.
93716         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93717         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93718         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93719         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93720
93721 2003-08-14  Jim Meyering  <jim@meyering.net>
93722
93723         Merge from coreutils.
93724         * lib/obstack.h: Whitespace changes.
93725         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93726         and xcalloc return values.
93727         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93728         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93729         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93730         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93731         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93732         error from mntctl.
93733         Use mntctl's return value to drive the entry-processing loop, since
93734         we can't rely on the value of the vmt_length member in the last
93735         entry.  On some systems doing so could result in exhausting
93736         virtual memory.  Based in part on a patch from Mike Jetzer.
93737
93738 2003-08-14  Jim Meyering  <jim@meyering.net>
93739         and Paul Eggert  <eggert@twinsun.com>
93740
93741         Merges from coreutils, plus other fixes.
93742         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93743         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93744         for credits and details.  Thanks to Kaveh Ghazi for helping
93745         to keep these files in sync.
93746         (ARRAY_SIZE): Define it.
93747         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93748         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93749         (memcasecmp): Don't assume size_t fits in unsigned int.
93750         Remove casts and duplicate code.
93751         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93752         (memcpy): Remove definition.
93753         Merge in some clean-up and optimization changes from glibc.
93754         [BLOCKSIZE]: Move definition to top of file.
93755         Ensure that it is a multiple of 64.
93756         Rearrange loop exit tests so as to avoid performing an
93757         additional fread after encountering an error or EOF.
93758         * lib/md5.h (md5_uintptr): Define.
93759         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93760         return to the initial working directory.  Preserve errno
93761         for caller.
93762         * lib/idcache.c: Include "xalloc.h".
93763         (xmalloc, xrealloc): Remove decls.
93764         (getuser): Remove casts no longer required in C89.
93765         * lib/human.c: Include stdio.h, for sprintf.
93766         * lib/group-member.c: Include "xalloc.h".
93767         (xmalloc, xrealloc): Remove decls.
93768         (get_group_info): Remove casts no longer required in C89.
93769         * lib/getusershell.c (readname): Remove casts no longer required in
93770         C89.
93771         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93772         * lib/getline.c: Whitespace fix, from coreutils.
93773
93774 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93775
93776         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93777         Check for isascii.
93778
93779         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93780         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93781         Undo previous (whitespace-only) change.
93782
93783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93784
93785         * lib/exclude.c: Include <ctype.h>
93786         (IN_CTYPE_DOMAIN): New macro.
93787         (is_space): New fn.
93788         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93789         and empty lines.
93790
93791         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93792         Undo previous (whitespace-only) change.
93793
93794 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93795
93796         * config/srclist-update: Change update back to the old behavior,
93797         leaving whitespace alone.  Use one 'sed' command rather than a
93798         pipeline.
93799         (fixlicense): Now a variable, not a function.
93800         (remove_trailing_blanks): Remove.
93801         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93802         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93803         Undo previous (whitespace-only) change.
93804
93805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93806
93807         Merge from coreutils.
93808         * modules/euidaccess: Add lib_SOURCES, include for new
93809         file euidaccess.h
93810
93811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93812
93813         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93814         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93815         Normalize leading white space and remove trailing white space.
93816
93817         Merge from coreutils
93818         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93819
93820         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93821         0.12.1.  These files are now being upgraded automatically by
93822         ../config/srclist-update.
93823
93824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93825
93826         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93827         Normalize leading white space and remove trailing white space.
93828         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93829         notice, as per ../config/srclist-update.
93830
93831         Merge from coreutils.
93832         * lib/euidaccess.h: New file.
93833         * lib/euidaccess.c: Include it.
93834         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93835         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93836         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93837
93838 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93839
93840         * config/srclist-update: Add copyright notice.
93841         (remove_id_lines, remove_trailing_blanks): New constants.
93842         (fixfile): Use them to normalize spacing a bit in copied files.
93843         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93844         Normalize leading white space and remove trailing white space.
93845
93846         * config/texinfo.tex: Sync with texinfo.
93847
93848         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93849         strtoul.c from libc, to merge coreutils whitespace changes.
93850
93851         * config/srclist.txt: Get the following m4 files from gettext:
93852         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93853         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93854         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93855         wint_t.m4.
93856
93857 2003-08-12  Karl Berry  <karl@gnu.org>
93858
93859         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93860         been made.
93861
93862 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93863
93864         * modules/gnu-source, m4/gnu-source.m4:
93865         Remove; we're assuming Autoconf 2.54 or later now.
93866         Suggested by Bruno Haible.
93867         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93868
93869 2003-08-11  Bruno Haible  <bruno@clisp.org>
93870
93871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93872
93873 2003-08-11  Bruno Haible  <bruno@clisp.org>
93874
93875         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93876         (vasnprintf): Use it instead of wcslen.
93877
93878 2003-08-11  Bruno Haible  <bruno@clisp.org>
93879
93880         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93881         value to ensure that _Bool promotes to int. Use #define for _Bool when
93882         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93883
93884 2003-08-10  Karl Berry  <karl@gnu.org>
93885
93886         * lib/regex.h: update from libc (whitespace fix).
93887
93888 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93889
93890         Merge some files from coreutils.  These changes were
93891         originally made by Jim Meyering.
93892         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93893         many older Unixes require this.
93894         * lib/alloca.c (alloca): Remove cast to argument of free;
93895         no longer needed in C89.
93896         * lib/alloca_.h, regex.h: Fix white space to match
93897         what GNU indent does.
93898
93899 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93900
93901         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93902         apparently Emacs's Unicode mode got confused before my 2003-08-05
93903         checkin.
93904
93905 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93906
93907         * m4/extensions.m4: New file.
93908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93909         Require gl_USE_SYSTEM_EXTENSIONS.
93910         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93911         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93912
93913 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93914
93915         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93916         * modules/extensions, modules/gnu-source: New files.
93917         * modules/timespec, modules/unlocked-io: Depend on extensions.
93918
93919 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93920
93921         * modules/restrict: New file.
93922         * MODULES.html.sh (func_all_modules): Add restrict.
93923         * modules/regex: Depend on restrict.
93924
93925 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93926
93927         * m4/restrict.m4: New file.
93928         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93929
93930 2003-08-07  Bruno Haible  <bruno@clisp.org>
93931
93932         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93933         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93934
93935 2003-08-07  Bruno Haible  <bruno@clisp.org>
93936
93937         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93938         makes the module 'getndelim2' compatible with the module 'getline'.
93939
93940 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93941
93942         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93943         byte with "\201" to avoid glitches when editing that source file
93944         with multi-gnome-terminal.
93945
93946 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93947
93948         * lib/bumpalloc.h: Remove.
93949
93950 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93951
93952         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93953         * modules/bumpalloc: Remove.
93954
93955 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93956
93957         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93958         GNU coding style.
93959
93960         Merge from coreutils.
93961         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93962         1. From glibc.
93963         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93964         from Karl Berry, implemented by Jim Meyering.
93965         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93966         from Dmitry V. Levin.
93967         Remove anachronistic cast of xrealloc.
93968         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93969         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93970         type. Otherwise, it wouldn't compile with at least /bin/cc on
93971         ymp-cray-unicos9.0.2.X.
93972         Combine two mostly-identical uses of alloca into one.
93973         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93974
93975 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93976
93977         [From Emacs.]
93978
93979         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93980         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93981         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93982         obsolete NLIST_NAME_UNION.
93983         [__GNU__]: Undef BSD and FSCALE.
93984         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93985
93986 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93987
93988         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93989         an enum type, so that it's guaranteed to promote to int.  See:
93990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93991
93992 2003-08-03  Karl Berry  <karl@gnu.org>
93993
93994         * config/depcomp: update from automake.
93995
93996 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93997
93998         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93999         (strerror): Don't assume that a printable int fits in 14 bytes.
94000
94001 2003-07-31  Bruno Haible  <bruno@clisp.org>
94002
94003         * modules/getpass-gnu: New file.
94004         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94005
94006 2003-07-31  Bruno Haible  <bruno@clisp.org>
94007
94008         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94009
94010 2003-07-24  Karl Berry  <karl@gnu.org>
94011
94012         * config/missing: update from automake.
94013
94014 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94015             Bruno Haible  <bruno@clisp.org>
94016
94017         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94018         * lib/getline.c (getline, getdelim): Likewise.
94019         Remove _GNU_SOURCE define; now it's defined in config.h through
94020         m4/getline.m4.
94021
94022 2003-07-23  Karl Berry  <karl@gnu.org>
94023
94024         * config/config.sub: update from prep.
94025
94026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94027
94028         * modules/xalloc (Depends-on): Add exitfail.
94029         * modules/xmemcoll: Likewise.
94030
94031 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94032
94033         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94034         over-parenthesization in macros.
94035
94036         Sync with coreutils.
94037
94038         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94039         required by C99.
94040
94041         Use `exit_failure' for xalloc and xmemcoll instead of their own
94042         private exit-failure variables.
94043         * lib/xalloc.h (xalloc_exit_failure): Remove.
94044         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94045         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94046         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94047         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94048         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94049
94050 2003-07-20  Jim Meyering  <jim@meyering.net>
94051
94052         * modules/closeout (Depends-on): Add exitfail.
94053         Suggestion from Bruno Haible.
94054
94055 2003-07-19  Karl Berry  <karl@gnu.org>
94056
94057         * config/config.sub: update from prep.
94058
94059 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94060
94061         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94062         Remove.
94063         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94064         to test that it can stand by itself.  Include "exitfail.h".
94065         Clients should set exit_failure instead.
94066         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94067
94068 2003-07-18  Bruno Haible  <bruno@clisp.org>
94069
94070         * modules/getndelim2: New file.
94071         * modules/getline: Share files with module getndelim2.
94072         * modules/getnline: Depend on getndelim2 instead of sharing files with
94073         it. Add getnline.c to lib_SOURCES.
94074         * MODULES.html.sh (func_all_modules): Add getndelim2.
94075
94076 2003-07-18  Bruno Haible  <bruno@clisp.org>
94077
94078         * m4/getndelim2.m4: New file.
94079         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94080         invoke gl_PREREQ_GETNDELIM2.
94081         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94082         gl_PREREQ_GETNDELIM2.
94083         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94084         gl_GETNDELIM2.
94085
94086 2003-07-18  Bruno Haible  <bruno@clisp.org>
94087
94088         * lib/getndelim2.h: New file.
94089         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94090         getndelim2.h.
94091         (getndelim2): Make non-static. Change return type to ssize_t.
94092         * lib/getline.h: Change argument names.
94093         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94094         * lib/getnline.c: Include getndelim2.h.
94095
94096 2003-07-18  Andreas Schwab  <schwab@suse.de>
94097
94098         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94099
94100 2003-07-17  Karl Berry  <karl@gnu.org>
94101
94102         * config/config.sub: update from prep.
94103
94104 2003-07-17  Bruno Haible  <bruno@clisp.org>
94105
94106         * modules/getnline: New file.
94107         * modules/getline: Add lib/getndelim2.c to source file list.
94108         * MODULES.html.sh (func_all_modules): Add getnline.
94109
94110 2003-07-17  Bruno Haible  <bruno@clisp.org>
94111
94112         * m4/getnline.m4: New file.
94113
94114 2003-07-17  Bruno Haible  <bruno@clisp.org>
94115
94116         * m4/Makefile.am.in: Remove file.
94117         * m4/Makefile.am: Remove file.
94118         * m4/Makefile.in: Remove file.
94119
94120 2003-07-17  Bruno Haible  <bruno@clisp.org>
94121
94122         * lib/getnline.h: New file.
94123         * lib/getnline.c: New file.
94124         * lib/getndelim2.c: New file, extracted from getline.c.
94125         (getndelim2): Renamed from getdelim2, with added nmax argument.
94126         * lib/getline.c: Include getndelim2.c.
94127         (getdelim2): Moved out to getndelim2.c.
94128         (getline, getdelim): Update.
94129
94130 2003-07-17  Bruno Haible  <bruno@clisp.org>
94131
94132         * lib/Makefile.am: Remove file.
94133         * lib/Makefile.in: Remove file.
94134
94135 2003-07-17  Bruno Haible  <bruno@clisp.org>
94136
94137         * configure.in: Remove file.
94138         * Makefile.in: Remove file.
94139
94140 2003-07-17  Bruno Haible  <bruno@clisp.org>
94141
94142         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94143
94144 2003-07-16  Karl Berry  <karl@gnu.org>
94145
94146         * config/srclist-update: was running fixlicense twice, which caused
94147                 texinfo.tex to be nullified for some reason.  Simplify,
94148                 $gplsrc is no longer needed as far as I can see?
94149
94150 2003-07-16  Jim Meyering  <jim@meyering.net>
94151
94152         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94153
94154 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94155
94156         * config/srclist.txt: Get the following files from gettext-runtime/intl
94157         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94158         ref-del.sin.  From Bruno Haible.
94159         * config/srclist-update (fixfile): Change grep pattern again, since the
94160         previous fix didn't work (there was another trailing $).  Use
94161         '[$]' to escape the $s.
94162
94163 2003-07-15  Karl Berry  <karl@gnu.org>
94164
94165         * lib/vasnprintf.c: update from gettext.
94166
94167 2003-07-15  Karl Berry  <karl@gnu.org>
94168
94169         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94170         gets expanded when surrounded by '$'.
94171
94172 2003-07-15  Jim Meyering  <jim@meyering.net>
94173
94174         * modules/save-cwd: Don't depend on error.  From Derek Price.
94175
94176 2003-07-15  Jim Meyering  <jim@meyering.net>
94177
94178         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94179
94180 2003-07-14  Simon Josefsson  <jas@extundo.com>
94181
94182         * modules/mempcpy: New file.
94183         * MODULES.html.sh (func_all_modules): Add mempcpy.
94184
94185 2003-07-14  Simon Josefsson  <jas@extundo.com>
94186
94187         * m4/mempcpy.m4: New file.
94188
94189 2003-07-14  Simon Josefsson  <jas@extundo.com>
94190
94191         * lib/mempcpy.h: New file.
94192         * lib/mempcpy.c: New file.
94193
94194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94195
94196         * modules/getdate, modules/posixtm: Depend on mktime.
94197
94198 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94199
94200         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94201         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94202         unicodeio.c, unicodeio.h, unlocked-io.h:
94203         Switch from LGPL to GPL.
94204
94205 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94206
94207         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94208         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94209         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94210         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94211         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94212         updated automatically by ../config/srclist-update.  This changes
94213         their license from LPGL to GPL.
94214
94215 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94216
94217         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94218         assumed to refer to the root of the most recent stable gettext version.
94219         * config/srclistvars.sh: Add defaults for eggert.
94220         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94221         Match "This program" as well as "The program".  This is needed
94222         for gettext.
94223
94224 2003-07-14  Jim Meyering  <jim@meyering.net>
94225
94226         Don't emit diagnostics.  Let callers do that.
94227         * lib/save-cwd.c: Don't include "error.h".
94228         (save_cwd): Don't call error.  Ensure that errno is valid
94229         when returning nonzero.
94230
94231         * lib/save-cwd.h (restore_cwd): Update prototype.
94232         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94233         Simplify.  Don't call error upon failure.  Let callers do that.
94234         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94235         when auditing is enabled.  But don't bother updating the #if.
94236
94237 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94238
94239         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94240         it breaks C++ compilation.
94241         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94242
94243 2003-07-10  Simon Josefsson  <jas@extundo.com>
94244
94245         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94246
94247 2003-07-10  Jim Meyering  <jim@meyering.net>
94248
94249         * m4/clock_time.m4: Remove trailing blank.
94250         * m4/intmax_t.m4: Likewise.
94251
94252 2003-07-10  Jim Meyering  <jim@meyering.net>
94253
94254         * lib/vasnprintf.c: Remove trailing blanks.
94255         Make cpp indentation consistent.
94256
94257 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94258
94259         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94260         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94261         Switch from LGPL to GPL.
94262
94263 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94264
94265         * config/srclist.txt: Sort sublists.  Add
94266         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94267         that differ from gnulib for one reason or another; we'd like this list
94268         to be smaller but for now let's document what we have.
94269
94270 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94271
94272         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94273         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94274         and sweeter "eval x=$x".
94275         * config/srclist.txt: Get lib/argp* from glibc.
94276
94277 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94278
94279         * lib/mktime.c: Fix some boundary cases and remove need for floating
94280         point.
94281
94282         Issue a compile-time diagnostic if time_t is floating point, or if
94283         two's complement arithmetic is not in effect, or if arithmetic
94284         right shift does not propagate the sign.  These assumptions were
94285         all in the original code but they weren't checked.
94286
94287         (TIME_T_MIDPOINT, verify): New macros.
94288         (__isleap): Remove; it has integer overflow problems.
94289         (leapyear): New function, without those problems.
94290         (ydhms_tm_diff): Remove; splitting into two parts.
94291         (ydhms_diff): New function, containing the arithmetic part of
94292         the old ydhms_tm_diff function.  Issue a compile-time
94293         diagnostic if we are not using C99 integer division.
94294         Avoid casts when possible.
94295         (guess_time_tm): New function, containing the checking part of
94296         the old ydhms_tm_diff function.  Return the new value, rather than
94297         the difference between it and the old.  Accept a new argument T
94298         so that *T specifies the old value.  Check for overflow in the result.
94299
94300         (__mktime_internal): Use a time_t offset, not a long int offset.
94301         This undoes the 2003-06-04 change, which is no longer needed now
94302         that we have better overflow checking.
94303         (localtime_offset): Likewise.
94304
94305         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94306         and long are 64-bit but int is only 32-bit.
94307         (ydhms_diff): Use long int to store year1 and yday1.
94308         Issue a compile-time diagnostic if long int is not wide enough.
94309
94310         (__mktime_internal): Use long int to store adjusted year and yday.
94311         Use plain C rather than preprocessor commands, if that doesn't
94312         affect efficiency.
94313         Check for overflow (and try to repair) after each probe
94314         rather than checking only at the very end.  This avoids some bugs
94315         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94316         does not equal GMT offset at maximum time).
94317         Use integer to check for overflow rather than floating point; this
94318         is more portable to non-IEEE hosts, and is a tad faster.
94319         When we detect that we are oscillating between two values,
94320         don't check whether tm_isdst has the requested value, since
94321         we already know the answer.  When tm_isdst has the wrong value,
94322         use a different heuristic to find the right one, based on the
94323         extreme values actually observed in practice in tz2003a,
94324         rather than the (overly optimistic) "previous 3 calendar quarters".
94325
94326         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94327         "T const" to accommodate glibc style.
94328         (check_result): Use less-confusing report format.  "long" -> "long int.
94329         (main): Likewise.
94330         Don't loop if the iteration overflows time_t.
94331         Allow a negative step in the iteration.
94332
94333 2003-07-06  Karl Berry  <karl@gnu.org>
94334
94335         * config/depcomp: update from automake.
94336         * config/config.sub: update from prep.
94337
94338 2003-07-03  Karl Berry  <karl@gnu.org>
94339
94340         * config/config.guess: update from prep.
94341
94342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94343
94344         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94345         xreadlink.c now includes it unconditionally.
94346
94347 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94348
94349         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94350         having it depend on HAVE_SYS_TYPES_H.
94351
94352 2003-07-01  Bruno Haible  <bruno@clisp.org>
94353
94354         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94355         <sys/types.h> should be sufficient.
94356         Reported by Paul Eggert.
94357
94358 2003-06-26  Karl Berry  <karl@gnu.org>
94359
94360         * config/depcomp: update from automake.
94361
94362 2003-06-26  Bruno Haible  <bruno@clisp.org>
94363
94364         * modules/human: Depend on module stdbool.
94365
94366 2003-06-25  Bruno Haible  <bruno@clisp.org>
94367
94368         * modules/readlink: New file.
94369         * modules/xreadlink: Depend on it.
94370         * MODULES.html.sh (func_all_modules): Add readlink.
94371
94372 2003-06-25  Bruno Haible  <bruno@clisp.org>
94373
94374         * m4/readlink.m4: New file.
94375
94376 2003-06-25  Bruno Haible  <bruno@clisp.org>
94377
94378         * lib/readlink.c: New file.
94379
94380 2003-06-22  Karl Berry  <karl@gnu.org>
94381
94382         * config/srclist.txt: update mkinstalldirs from automake.
94383         * config/mkinstalldirs: update.
94384
94385 2003-06-22  Bruno Haible  <bruno@clisp.org>
94386
94387         Portability to mingw32.
94388         * m4/ssize_t.m4: New file, from GNU gettext.
94389         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94390         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94391
94392 2003-06-22  Bruno Haible  <bruno@clisp.org>
94393
94394         * modules/safe-read: Add m4/ssize_t.m4.
94395         * modules/xreadlink: Add m4/ssize_t.m4.
94396
94397 2003-06-20  Bruno Haible  <bruno@clisp.org>
94398
94399         Assume C89, so PARAMS isn't needed.
94400         * lib/unicodeio.h (PARAMS): Remove.
94401         * lib/unicodeio.c: Don't use PARAMS.
94402
94403 2003-06-18  Karl Berry  <karl@gnu.org>
94404
94405         * config/config.{guess,sub}: update from prep.
94406
94407 2003-06-18  Jim Meyering  <jim@meyering.net>
94408
94409         Merge changes from coreutils.
94410         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94411         Remove explicit declarations of xmalloc and realloc.
94412         Include xalloc.h.
94413         (read_utmp): Remove anachronistic cast of xmalloc.
94414
94415 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94416
94417         Assume C89, so PARAMS isn't needed.
94418         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94419         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94420         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94421         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94422         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94423         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94424         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94425         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94426         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94427         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94428         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94429         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94430         no longer needed. Anyway, config.h should always be included before any
94431         other file.
94432
94433 2003-06-11  Simon Josefsson  <jas@extundo.com>
94434
94435         * modules/sysexits: New file.
94436         * MODULES.html.sh (func_all_modules): Add sysexits.
94437
94438 2003-06-11  Simon Josefsson  <jas@extundo.com>
94439
94440         * lib/sysexit_.h: New file.
94441
94442 2003-06-11  Derek Price  <derek@ximbiot.com>
94443
94444         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94445         necessary.
94446
94447 2003-06-11  Bruno Haible  <bruno@clisp.org>
94448
94449         * m4/sysexits.m4: New file.
94450
94451 2003-06-10  Simon Josefsson  <jas@extundo.com>
94452
94453         * lib/argp.h: New file, from glibc.
94454         * lib/argp-ba.c: New file, from glibc.
94455         * lib/argp-eexst.c: New file, from glibc.
94456         * lib/argp-fmtstream.c: New file, from glibc.
94457         * lib/argp-fmtstream.h: New file, from glibc.
94458         * lib/argp-fs-xinl.c: New file, from glibc.
94459         * lib/argp-help.c: New file, from glibc.
94460         * lib/argp-namefrob.h: New file, from glibc.
94461         * lib/argp-parse.c: New file, from glibc.
94462         * lib/argp-pv.c: New file, from glibc.
94463         * lib/argp-pvh.c: New file, from glibc.
94464         * lib/argp-xinl.c: New file, from glibc.
94465
94466 2003-06-10  Simon Josefsson  <jas@extundo.com>
94467
94468         * modules/strchrnul: New file.
94469
94470 2003-06-10  Simon Josefsson  <jas@extundo.com>
94471
94472         * modules/argp: New file.
94473
94474 2003-06-10  Simon Josefsson  <jas@extundo.com>
94475
94476         * m4/strchrnul.m4: New file.
94477
94478 2003-06-10  Simon Josefsson  <jas@extundo.com>
94479
94480         * lib/strchrnul.h: New file.
94481         * lib/strchrnul.c: New file.
94482
94483 2003-06-10  Bruno Haible  <bruno@clisp.org>
94484
94485         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94486
94487 2003-06-07  Karl Berry  <karl@gnu.org>
94488
94489         * config/config.{guess,sub}: update from prep.
94490
94491 2003-06-07  Jim Meyering  <jim@meyering.net>
94492
94493         * modules/strtod: Use $(...) notation, not @...@ for
94494         AC_REPLACE'd variables.
94495         * modules/localcharset: Likewise.
94496
94497 2003-06-07  Jim Meyering  <jim@meyering.net>
94498
94499         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94500         in place of my name in the copyright comment.
94501         Remove definition and uses of __P.
94502
94503         From coreutils.
94504         * lib/stat.c: Don't declare xmalloc explicitly.
94505         Instead, include "xalloc.h".
94506         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94507         xrealloc, and xcalloc return values.
94508         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94509         Improve comment.
94510         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94511
94512 2003-06-07  Bruno Haible  <bruno@clisp.org>
94513
94514         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94515         avoid AC_CONFIG_LINKS.
94516         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94517         fnmatch.h, to avoid AC_CONFIG_LINKS.
94518         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94519
94520 2003-06-07  Bruno Haible  <bruno@clisp.org>
94521
94522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94523         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94524         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94525         directory.
94526         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94527         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94528         directory.
94529
94530 2003-06-06  Jim Meyering  <jim@meyering.net>
94531
94532         Merge from coreutils.
94533         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94534         Consolidate declarations and initializations of *_base* locals.
94535
94536         Merge from coreutils.
94537         This avoids a core dump on systems without GNU putenv,
94538         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94539         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94540         (unsetenv): New static function, from GNU libc.
94541         (rpl_putenv): Use it.
94542
94543         * lib/modechange.c: Remove trailing blanks.
94544
94545         Merge from coreutils.
94546         * lib/fsusage.c: Remove declaration of statfs.
94547         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94548
94549         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94550
94551 2003-06-06  Jim Meyering  <jim@meyering.net>
94552
94553         * lib/stdbool_.h: Renamed from stdbool.h.in.
94554
94555 2003-06-06  Jim Meyering  <jim@meyering.net>
94556             Bruno Haible  <bruno@clisp.org>
94557
94558         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94559         Adjust Makefile.am snippet not to redirect directly to target.
94560         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94561
94562 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94563
94564         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94565         mismatch, look in future quarters as well as past.  This fixes a
94566         bug when processing fall-backwards gaps immediately after a long
94567         period of daylight-saving time.
94568
94569         * lib/mktime.c: Assume freestanding C89 or better.
94570         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94571         (__P): Remove; not used.
94572         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94573         (mktime, not_equal_tm, print_tm, check_result,
94574         main): Use prototypes.  Use const * where appropriate.
94575         (main): Fix typo in testing code that uncovered by above changes.
94576         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94577
94578 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94579
94580         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94581         locale.h, localeconv.  This merges changes from coreutils.
94582
94583         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94584         It can be removed after the next Autoconf is released.
94585         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94586         needed.
94587
94588 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94589
94590         * lib/mktime.c: Fix Debian bug 177940
94591         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94592         (localtime_offset): Now long int, not time_t, because we want it
94593         to be guaranteed to be signed.  All uses changed.
94594         (__mktime_internal): If overflow would occur when adding offset,
94595         don't add it.
94596
94597         Merge 'human' changes from coreutils.  Rewrite to support
94598         locale-specific notations like thousands separators.
94599         * lib/human.c: Simplify authorship notice.
94600         Include human.h immediately after config.h.
94601         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94602         <limits.h>: Do not include, since human.h does.
94603         (SIZE_MAX, UINTMAX_MAX): New macros.
94604         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94605         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94606         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94607         (power_letter): Renamed from suffixes.
94608         (generate_suffix_backwards): Remove.
94609         (adjust_value): Now takes int style (because of human.h changes)
94610         and long double value (for greater precision on some platforms).
94611         (group_number): New function.
94612         (human_readable): Use it.  Use integer options, not enum.
94613         Put the options before the sizes in the arg list.
94614         Support all the new options.
94615         The old human_readable function has been removed;
94616         use inttostr.h instead.
94617         (human_readable, default_block_size, humblock):
94618         Use uintmax_t, not int, for block sizes.
94619         (human_readable_inexact, block_size_types): Remove.
94620         (block_size_opts): New constant.
94621         (human_options): Renamed from human_block_size, with new signature
94622         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94623         * lib/human.h: Add copyright and authorship notice.
94624         Include <limits.h> and <stdbool.h> unconditionally.
94625         (PARAMS): Remove.  All uses removed.
94626         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94627         (enum human_inexact_style): Remove tag; now a nameless enum.
94628         (human_floor, human_ceiling, human_round_to_even): Now have
94629         values 2, 0, 1 rather than -1, 1, 0.
94630         (human_group_digits, human_suppress_point_zero, human_autoscale,
94631         human_base_1024, human_SI, human_B): New constants.
94632         (human_readable_inexact, human_block_size): Remove.
94633         (human_readable): Size args are now uintmax_t, not int.
94634         (human_options): New decl.
94635
94636         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94637         unnecessary now that we assume C89 or better.  This change
94638         imported from coreutils.
94639
94640         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94641         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94642         in the 2003-05-30 sync from glibc.
94643
94644         .h files should stand alone, but we shouldn't include <sys/types.h>
94645         if we can get away with just <stddef.h>.
94646
94647         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94648         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94649         rather than <sys/types.h>, as we merely need size_t.
94650         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94651         to get size_t.
94652         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94653         Include <stdio.h>, to get FILE.
94654         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94655         memcasecmp.h has included <stddef.h> and all we need is size_t.
94656         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94657         our interface, instead of including <sys/types.h>
94658
94659 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94660
94661         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94662         now, as glibc mktime is buggy on non-glibc systems.
94663
94664 2003-06-03  Karl Berry  <karl@gnu.org>
94665
94666         * config/config.sub: update from prep.
94667
94668 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94669
94670         [from coreutils]
94671         Fix some minor time-related bugs with POSIX time arguments.
94672         Some valid time stamps were being rejected (notably -1, and
94673         time stamps before 1900 on 64-bit hosts).  And some invalid
94674         time stamps were being accepted, e.g. September 31.
94675
94676         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94677         that we can return (time_t) -1 successfully.
94678         * lib/posixtm.c: Likewise.
94679         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94680         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94681         (t): Remove static var.
94682         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94683         of static var.  All uses changed.
94684         (year): Do not reject years before 1900; they can occur with
94685         64-bit time_t.
94686         (posix_time_parse): Do not check for out-of-range components;
94687         that is now the caller's responsibility, since our checks were
94688         only approximations.
94689         (posixtime): Use mktime to check for out-of-range components,
94690         since it knows them exactly.
94691         If mktime returns (time_t) -1, check whether an error actually occurred
94692         by invoking localtime on -1.
94693         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94694         posixtime failures better.
94695         Improve the test data (in comments only).
94696
94697 2003-06-02  Karl Berry  <karl@gnu.org>
94698
94699         * config/mkinstalldirs (version): new variable.
94700         (--version): new option.
94701         (usage): improve message.
94702
94703 2003-05-30  Karl Berry  <karl@gnu.org>
94704
94705         * lib/mktime.c: update from libc.
94706
94707 2003-05-30  Bruno Haible  <bruno@clisp.org>
94708
94709         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94710         * config/config.rpath: Upgrade to gettext-0.12.1.
94711
94712 2003-05-30  Bruno Haible  <bruno@clisp.org>
94713
94714         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94715         * m4/nls.m4: New file, from gettext-0.12.1.
94716         * m4/po.m4: New file, from gettext-0.12.1.
94717         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94718
94719 2003-05-30  Bruno Haible  <bruno@clisp.org>
94720
94721         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94722         * lib/localcharset.h: Likewise.
94723         * lib/localcharset.c: Likewise.
94724
94725 2003-05-29  Karl Berry  <karl@gnu.org>
94726
94727         * config/config.rpath: update from gettext.
94728
94729 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94730
94731         Assume the headers required for C89 freestanding compilers.
94732         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94733         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94734         * m4/human.m4 (gl_HUMAN): Likewise.
94735         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94736         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94737         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94738         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94740         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94741
94742 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94743
94744         Assume the headers required for C89 freestanding compilers.
94745         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94746         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94747         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94748         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94749         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94750         define, since <limits.h> is guaranteed to do that.
94751         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94752         * lib/exclude.c: Include <stdbool.h> unconditionally.
94753         * lib/tempname.c: Include <stddef.h> unconditionally.
94754         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94755         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94756         <stddef.h> does that.
94757         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94758         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94759         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94760         needed.
94761         * lib/xstrtol.c: Likewise.
94762         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94763         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94764
94765         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94766         warnings on some platforms.
94767
94768         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94769         arbitrarily.
94770
94771 2003-05-26  Jim Meyering  <jim@meyering.net>
94772
94773         Merge in a change from coreutils:
94774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94775         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94776         that condition, rather than `-1' which is slightly misleading.
94777         Change the name of the cache variable to have the gl_ prefix.
94778         Prompted by a patch from Richard Dawe for DJGPP.
94779
94780 2003-05-24  Karl Berry  <karl@gnu.org>
94781
94782         * config/config.guess: update from prep.
94783
94784 2003-05-22  Karl Berry  <karl@gnu.org>
94785
94786         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94787
94788 2003-05-20  Karl Berry  <karl@gnu.org>
94789
94790         * config/config.guess: update from prep.
94791
94792 2003-05-18  Karl Berry  <karl@gnu.org>
94793
94794         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94795         might actually be set by the user.
94796
94797         * config/depcomp, install-sh, mdate-sh: update from automake.
94798
94799 2003-05-17  Bruno Haible  <bruno@clisp.org>
94800
94801         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94802         invalid expansion for AC_EGREP_CPP.
94803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94805         Suggested by Akim Demaille <akim@epita.fr> in
94806         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94807
94808 2003-05-12  Jim Meyering  <jim@meyering.net>
94809
94810         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94811         the space-padded-by-default conversion specifiers, %e, %k, %l.
94812
94813 2003-05-12  Bruno Haible  <bruno@clisp.org>
94814
94815         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94816         the string is longer than 4 KB.
94817
94818 2003-05-11  Karl Berry  <karl@gnu.org>
94819
94820         * config/config.{guess,sub}: update from prep.
94821
94822 2003-05-09  Bruno Haible  <bruno@clisp.org>
94823
94824         * modules/error: Add m4/strerror_r.m4 to file list.
94825
94826 2003-05-03  Bruno Haible  <bruno@clisp.org>
94827
94828         Upgrade to Unicode-4.0.
94829         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94830         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94831         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94832         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94833         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94834         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94835         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94836         Change width of U+E0100..U+E01EF from 1 to 0.
94837
94838 2003-04-25  Jim Meyering  <jim@meyering.net>
94839
94840         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94841         of type size_t, not int.
94842
94843 2003-04-25  Bruno Haible  <bruno@clisp.org>
94844
94845         * lib/copy-file.c: Include <stddef.h>, for size_t.
94846
94847 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94848
94849         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94850         code which expansion is under static control.  Patch imported from
94851         Akim Demaille's patch to Bison; see
94852         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94853
94854 2003-04-14  Bruno Haible  <bruno@clisp.org>
94855
94856         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94857
94858 2003-04-11  Jim Meyering  <jim@meyering.net>
94859
94860         Merge changes from Coreutils.
94861
94862         2003-03-22  Jim Meyering  <jim@meyering.net>
94863
94864         * lib/strftime.c (widen): Cast alloca return value to proper type.
94865
94866         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94867
94868         From GNU libc.
94869         * lib/strftime.c (my_strftime): Handle very large width
94870         specifications for numeric values correctly.  Improve checks for
94871         overflow.
94872
94873         2003-01-19  Jim Meyering  <jim@meyering.net>
94874
94875         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94876         definitions.
94877         (nl_get_alt_digit) [! defined my_strftime]: Define.
94878         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94879         _nl_get_alt_digit and _nl_get_walt_digit.
94880
94881         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94882         libc. These changes have no effect outside of _LIBC.
94883
94884 2003-04-10  Bruno Haible  <bruno@clisp.org>
94885
94886         * modules/findprog: New file.
94887         * MODULES.html.sh (func_all_modules): Add it.
94888
94889 2003-04-10  Bruno Haible  <bruno@clisp.org>
94890
94891         * m4/findprog.m4: New file.
94892         * m4/eaccess.m4: New file.
94893
94894 2003-04-10  Bruno Haible  <bruno@clisp.org>
94895
94896         * lib/findprog.h: New file, from GNU gettext.
94897         * lib/findprog.c: New file, from GNU gettext.
94898
94899 2003-04-05  Jim Meyering  <jim@meyering.net>
94900
94901         Merge changes from Coreutils.
94902
94903         * lib/exclude.h (PARAMS): Remove definition and uses.
94904         * lib/exclude.c: Remove uses of `PARAMS'.
94905
94906         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94907         Add test-cases for DOS filenames. Declare program_name.
94908         (main): Set up program_name.  Patch by Rich Dawe.
94909
94910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94911         error from mntctl.
94912         Use mntctl's return value to drive the entry-processing loop, since
94913         we can't rely on the value of the vmt_length member in the last
94914         entry.  On some systems doing so could result in exhausting
94915         virtual memory.  Based in part on a patch from Mike Jetzer.
94916
94917 2003-04-04  Bruno Haible  <bruno@clisp.org>
94918
94919         * modules/linebreak: New file.
94920         * MODULES.html.sh (func_all_modules): Add it.
94921
94922 2003-04-04  Bruno Haible  <bruno@clisp.org>
94923
94924         * m4/linebreak.m4: New file.
94925
94926 2003-04-04  Bruno Haible  <bruno@clisp.org>
94927
94928         * lib/linebreak.h: New file, from GNU gettext.
94929         * lib/linebreak.c: New file, from GNU gettext with slight
94930         modifications.
94931         * lib/lbrkprop.h: New file, from GNU gettext.
94932
94933 2003-04-03  Bruno Haible  <bruno@clisp.org>
94934
94935         * modules/utf8-ucs4: New file.
94936         * modules/utf16-ucs4: New file.
94937         * modules/ucs4-utf8: New file.
94938         * modules/ucs4-utf16: New file.
94939         * MODULES.html.sh (func_all_modules): Add them.
94940
94941 2003-04-03  Bruno Haible  <bruno@clisp.org>
94942
94943         * m4/utf-ucs4.m4: New file.
94944         * m4/ucs4-utf.m4: New file.
94945
94946 2003-04-03  Bruno Haible  <bruno@clisp.org>
94947
94948         * lib/utf8-ucs4.h: New file, from GNU gettext.
94949         * lib/utf16-ucs4.h: New file, from GNU gettext.
94950         * lib/ucs4-utf8.h: New file, from GNU gettext.
94951         * lib/ucs4-utf16.h: New file, from GNU gettext.
94952
94953 2003-04-02  Bruno Haible  <bruno@clisp.org>
94954
94955         * modules/binary-io: New file.
94956         * MODULES.html.sh (func_all_modules): Add it.
94957
94958 2003-04-02  Bruno Haible  <bruno@clisp.org>
94959
94960         * lib/binary-io.h: New file, from GNU gettext.
94961
94962 2003-04-01  Bruno Haible  <bruno@clisp.org>
94963
94964         * modules/pathname: New file.
94965         * MODULES.html.sh (func_all_modules): Add it.
94966
94967 2003-04-01  Bruno Haible  <bruno@clisp.org>
94968
94969         * lib/pathname.h: New file, from GNU gettext.
94970         * lib/concatpath.c: New file, from GNU gettext.
94971
94972 2003-03-30  Bruno Haible  <bruno@clisp.org>
94973
94974         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94975
94976 2003-03-30  Bruno Haible  <bruno@clisp.org>
94977
94978         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94979         function chown() doesn't exist.
94980
94981 2003-03-28  Bruno Haible  <bruno@clisp.org>
94982
94983         * modules/copy-file: New file.
94984         * MODULES.html.sh (func_all_modules): Add it.
94985
94986 2003-03-28  Bruno Haible  <bruno@clisp.org>
94987
94988         * m4/copy-file.m4: New file.
94989
94990 2003-03-28  Bruno Haible  <bruno@clisp.org>
94991
94992         * lib/copy-file.h: New file, from GNU gettext.
94993         * lib/copy-file.c: New file, from GNU gettext.
94994
94995 2003-03-18  Jim Meyering  <jim@meyering.net>
94996
94997         * lib/quote.c (quote_n): Fix typo in comment.
94998
94999 2003-03-18  Bruno Haible  <bruno@clisp.org>
95000
95001         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95002         checking.
95003         * m4/onceonly_2_57.m4: Likewise.
95004
95005 2003-03-17  Bruno Haible  <bruno@clisp.org>
95006
95007         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95008         (m4_quote): Remove macro.
95009         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95010
95011 2003-03-14  Jim Meyering  <jim@meyering.net>
95012
95013         Merge changes from Coreutils.
95014         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95015         to be const, in order to avoid warnings.
95016         (obstack_room): Likewise.
95017         (obstack_empty_p): Likewise.
95018
95019 2003-03-14  Bruno Haible  <bruno@clisp.org>
95020
95021         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95022         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95023
95024 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95025
95026         Merge changes from Bison.
95027         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95028         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95029         when compiling Bison 1.875's `bitset bset = obstack_alloc
95030         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95031         * lib/hash.c: Include <stdbool.h> unconditionally.
95032
95033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95034
95035         * m4/onceonly.m4 (m4_quote): New macro.
95036         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95037         Quote AC_FOREACH variable-expansions properly.
95038
95039 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95040
95041         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95042
95043 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95044
95045         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95046         Reported by Bruce Becker; see:
95047         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95048
95049 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95050             Bruno Haible  <bruno@clisp.org>
95051
95052         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95053         Reported by John Hughes, see
95054         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95055
95056 2003-02-20  Bruno Haible  <bruno@clisp.org>
95057
95058         * MODULES.html.sh (func_all_modules): Add poll.
95059
95060 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95061
95062         * modules/poll: New file.
95063
95064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95065
95066         * lib/poll_.h: New file.
95067         * lib/poll.c: New file.
95068
95069 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95070
95071         * m4/poll.m4: New file.
95072
95073 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95074
95075         * modules/mathl: New file.
95076
95077 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95078
95079         * lib/mathl.h: New file.
95080         * lib/acosl.c: New file.
95081         * lib/asinl.c: New file.
95082         * lib/atanl.c: New file.
95083         * lib/ceill.c: New file.
95084         * lib/cosl.c: New file.
95085         * lib/expl.c: New file.
95086         * lib/floorl.c: New file.
95087         * lib/frexpl.c: New file.
95088         * lib/ldexpl.c: New file.
95089         * lib/logl.c: New file.
95090         * lib/sincosl.c: New file.
95091         * lib/sinl.c: New file.
95092         * lib/sqrtl.c: New file.
95093         * lib/tanl.c: New file.
95094         * lib/trigl.c: New file.
95095         * lib/trigl.h: New file.
95096
95097 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95098
95099         * m4/mathl.m4: New file.
95100
95101 2003-02-18  Bruno Haible  <bruno@clisp.org>
95102
95103         * MODULES.html.sh (func_all_modules): Add mathl.
95104
95105 2003-02-17  Bruno Haible  <bruno@clisp.org>
95106
95107         * modules/mkdtemp: New module.
95108         * MODULES.html.sh (func_all_modules): Add it.
95109
95110 2003-02-17  Bruno Haible  <bruno@clisp.org>
95111
95112         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95113
95114 2003-02-17  Bruno Haible  <bruno@clisp.org>
95115
95116         * lib/mkdtemp.h: New file, from GNU gettext.
95117         * lib/mkdtemp.c: New file, from GNU gettext.
95118
95119 2003-02-02  Jim Meyering  <jim@meyering.net>
95120
95121         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95122         e.g. glibc-2.2.93.
95123
95124 2003-01-31  Bruno Haible  <bruno@clisp.org>
95125
95126         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95127         'rpl_rename'.
95128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95129         'rpl_strnlen'.
95130         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95131         'rpl_strtod'.
95132         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95133         'rpl_utime'.
95134
95135 2003-01-31  Bruno Haible  <bruno@clisp.org>
95136
95137         * lib/rename.c: #undef rename before defining rpl_rename.
95138         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95139
95140 2003-01-30  Bruno Haible  <bruno@clisp.org>
95141
95142         * modules/vasnprintf, modules/vasprintf: New modules.
95143         * MODULES.html.sh (func_all_modules): Add them.
95144
95145 2003-01-30  Bruno Haible  <bruno@clisp.org>
95146
95147         * m4/signed.m4: New file, from GNU gettext.
95148         * m4/longdouble.m4: New file, from GNU gettext.
95149         * m4/wchar_t.m4: New file, from GNU gettext.
95150         * m4/wint_t.m4: New file, from GNU gettext.
95151         * m4/vasnprintf.m4: New file.
95152         * m4/vasprintf.m4: New file.
95153
95154 2003-01-30  Bruno Haible  <bruno@clisp.org>
95155
95156         * lib/printf-args.h: New file, from GNU gettext.
95157         * lib/printf-args.c: New file, from GNU gettext.
95158         * lib/printf-parse.h: New file, from GNU gettext.
95159         * lib/printf-parse.c: New file, from GNU gettext.
95160         * lib/vasnprintf.h: New file, from GNU gettext.
95161         * lib/vasnprintf.c: New file, from GNU gettext.
95162         * lib/asnprintf.c: New file, from GNU gettext.
95163         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95164         * lib/vasprintf.c: New file, from GNU gettext.
95165         * lib/asprintf.c: New file, from GNU gettext.
95166
95167 2003-01-29  Bruno Haible  <bruno@clisp.org>
95168
95169         * modules/stpncpy: New module.
95170         * MODULES.html.sh (func_all_modules): Add it.
95171
95172 2003-01-29  Bruno Haible  <bruno@clisp.org>
95173
95174         * m4/stpncpy.m4: New file.
95175
95176 2003-01-29  Bruno Haible  <bruno@clisp.org>
95177
95178         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95179         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95180
95181 2003-01-28  Bruno Haible  <bruno@clisp.org>
95182
95183         * modules/c-ctype: New module.
95184         * MODULES.html.sh (func_all_modules): Add it.
95185
95186 2003-01-28  Bruno Haible  <bruno@clisp.org>
95187
95188         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95189         Paul Eggert.
95190         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95191         Paul Eggert.
95192
95193 2003-01-27  Bruno Haible  <bruno@clisp.org>
95194
95195         * modules/xsetenv: New module.
95196         * MODULES.html.sh (func_all_modules): Add it.
95197
95198 2003-01-27  Bruno Haible  <bruno@clisp.org>
95199
95200         * lib/xsetenv.h: New file, from GNU gettext.
95201         * lib/xsetenv.c: New file, from GNU gettext.
95202
95203 2003-01-23  Jim Meyering  <jim@meyering.net>
95204
95205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95206         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95207
95208 2003-01-23  Bruno Haible  <bruno@clisp.org>
95209
95210         * modules/minmax: New module.
95211         * MODULES.html.sh (func_all_modules): Add it.
95212
95213 2003-01-23  Bruno Haible  <bruno@clisp.org>
95214
95215         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95216         Eggert.
95217
95218 2003-01-22  Bruno Haible  <bruno@clisp.org>
95219
95220         * modules/exit: New module.
95221         * MODULES.html.sh (func_all_modules): Add it.
95222
95223 2003-01-22  Bruno Haible  <bruno@clisp.org>
95224
95225         * lib/exit.h: New file, from GNU gettext.
95226
95227 2003-01-19  Bruno Haible  <bruno@clisp.org>
95228
95229         * gnulib-tool: Recognize option --extract-maintainer.
95230         (func_get_maintainer): New function.
95231         * modules/*: Add Maintainer entry.
95232
95233 2003-01-16  Jim Meyering  <jim@meyering.net>
95234
95235         * m4/regex.m4: The `regex' struct is both input and output.
95236         Initialize it before each use.  Patch by Tim Waugh.
95237
95238 2003-01-16  Bruno Haible  <bruno@clisp.org>
95239
95240         * MODULES.html.sh: Add a table of contents. Add the module name as
95241         leftmost column. Add hyperlinks.
95242
95243 2003-01-15  Bruno Haible  <bruno@clisp.org>
95244
95245         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95246
95247 2003-01-15  Bruno Haible  <bruno@clisp.org>
95248
95249         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95250         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95251         suffix.
95252
95253 2003-01-15  Bruno Haible  <bruno@clisp.org>
95254
95255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95256
95257 2003-01-15  Bruno Haible  <bruno@clisp.org>
95258
95259         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95260         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95261
95262 2003-01-14  Jim Meyering  <jim@meyering.net>
95263
95264         * lib/same.c (same_name): Tweak a comment.
95265
95266 2003-01-14  Bruno Haible  <bruno@clisp.org>
95267
95268         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95269         when a string comparison is sufficient.
95270
95271 2003-01-14  Bruno Haible  <bruno@clisp.org>
95272
95273         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95274         'unsigned int'.
95275
95276 2003-01-14  Bruno Haible  <bruno@clisp.org>
95277
95278         * lib/hash-pjw.c: Add comment about low quality of this function.
95279
95280 2003-01-13  Bruno Haible  <bruno@clisp.org>
95281
95282         * modules/stpcpy: Distribute lib/stpcpy.h.
95283         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95284
95285 2003-01-13  Bruno Haible  <bruno@clisp.org>
95286
95287         * modules/*: Add a description.
95288         * modules/strpbrk: Fix Makefile.am snippet.
95289         * modules/strtoimax: Fix dependencies.
95290         * modules/strtoumax: Likewise.
95291
95292 2003-01-13  Bruno Haible  <bruno@clisp.org>
95293
95294         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95295         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95296         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95297
95298 2003-01-13  Bruno Haible  <bruno@clisp.org>
95299
95300         * gnulib-tool (func_create_testdir): Store config/* files in the main
95301         directory.
95302         * config.rpath: Move to ...
95303         * config/config.rpath: ... here.
95304         * modules/gettext: Contains config/config.rpath, not config.rpath.
95305         * modules/iconv: Likewise.
95306
95307 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95308
95309         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95310         to avoid collisions with libcurses and libreadline.
95311
95312         * m4/getstr.m4: Remove.
95313         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95314
95315 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95316
95317         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95318         to avoid collisions with libcurses and libreadline.
95319
95320         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95321         * lib/getstr.h, getstr.c: Remove.
95322         * lib/getline.c: Include "getline.h", to check interface.
95323         Move body of old getstr.c here: this defines MIN_CHUNK and
95324         declares getdelim2, which is renamed from getstr.
95325         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95326
95327         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95328         All uses changed.
95329         * lib/linebuffer.h: Likewise.
95330         (readline): Remove backward-compatibility macro.
95331
95332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95333
95334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95335         to avoid collisions with libcurses and libreadline.
95336         * getstr: Remove.
95337         * MODULES.html.sh: Remove getstr.
95338         * modules/getline: Depend on unlocked-io, not getstr.
95339
95340 2003-01-12  Jim Meyering  <jim@meyering.net>
95341
95342         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95343
95344 2003-01-10  Bruno Haible  <bruno@clisp.org>
95345
95346         * modules/alloca: Change Makefile.am requirements. Simplify Include
95347         requirements. Add lib/alloca_.h to file list.
95348
95349 2003-01-10  Bruno Haible  <bruno@clisp.org>
95350
95351         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95352
95353 2003-01-10  Bruno Haible  <bruno@clisp.org>
95354
95355         * lib/alloca_.h: New file.
95356         * lib/getdate.y: Unconditionally include alloca.h.
95357         * lib/makepath.c: Likewise.
95358         * lib/setenv.c: Likewise.
95359         * lib/userspec.c: Likewise.
95360
95361 2003-01-09  Karl Berry  <karl@gnu.org>
95362
95363         * MODULES.html.sh: include `dirname $0` in PATH, to find
95364         gnulib-tool.
95365
95366 2003-01-09  Bruno Haible  <bruno@clisp.org>
95367
95368         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95369         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95370
95371 2003-01-09  Bruno Haible  <bruno@clisp.org>
95372
95373         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95374
95375 2003-01-09  Bruno Haible  <bruno@clisp.org>
95376
95377         * lib/stdbool.h.in: New file.
95378
95379 2003-01-09  Bruno Haible  <bruno@clisp.org>
95380
95381         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95382         * MODULES.html.sh: Likewise.
95383
95384 2003-01-08  Jim Meyering  <jim@meyering.net>
95385
95386         * lib/full-write.c: Undefine and define-away `const' after inclusion
95387         of errno.h, not before.  Suggestion from Bruno Haible.
95388
95389 2003-01-08  Bruno Haible  <bruno@clisp.org>
95390
95391         * modules/full-read: Depend on full-write.
95392
95393 2003-01-08  Bruno Haible  <bruno@clisp.org>
95394
95395         * lib/safe-read.c: Include specification header first, to ensure its
95396         selfcontainedness.
95397         * lib/full-write.c: Likewise.
95398
95399 2003-01-07  Jim Meyering  <jim@meyering.net>
95400
95401         * lib/full-write.c: Rework so that it may serve to define full_read,
95402         too.
95403         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95404
95405 2003-01-07  Bruno Haible  <bruno@clisp.org>
95406
95407         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95408         <inttypes.h>.
95409         * lib/xstrtol.h: Likewise.
95410         * lib/xstrtoimax.c: Likewise.
95411         * lib/xstrtoumax.c: Likewise.
95412         * lib/human.h: Likewise.
95413
95414         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95415         on systems that have <inttypes.h> but not <stdint.h>.
95416
95417 2003-01-07  Bruno Haible  <bruno@clisp.org>
95418
95419         * MODULES.html.sh: Add copyright notice.
95420         (missed_files): Omit CVS directory entries.
95421         (func_module): Make it work with sed-3.02.
95422         * MODULES.txt: Remove file.
95423
95424 2003-01-06  Jim Meyering  <jim@meyering.net>
95425
95426         * lib/version-etc.c: Update year in translatable copyright string.
95427
95428 2003-01-03  Karl Berry  <karl@gnu.org>
95429
95430         * config/config.{guess,sub}: update from prep.
95431
95432 2003-01-02  Karl Berry  <karl@gnu.org>
95433
95434         * doc/COPYING.DOC: belatedly updated to 1.2.
95435
95436 2003-01-01  Karl Berry  <karl@gnu.org>
95437
95438         * gnulib-tool (func_verify_module): report module name $module in
95439         error message, not $1.
95440         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95441         be created, only if it doesn't exist.
95442         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95443
95444 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95445
95446         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95447
95448 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95449
95450         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95451         memcmp if strcoll doesn't work.
95452
95453 2002-12-31  Bruno Haible  <bruno@clisp.org>
95454
95455         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95456         nonempty.
95457
95458 2002-12-31  Bruno Haible  <bruno@clisp.org>
95459
95460         * lib/memcoll.c (STRCOLL): New macro.
95461         (memcoll): Use it.
95462
95463 2002-12-31  Bruno Haible  <bruno@clisp.org>
95464
95465         * lib/localcharset.h: New file.
95466         * lib/localcharset.c: Include it.
95467         * lib/unicodeio.c: Likewise.
95468
95469 2002-12-31  Bruno Haible  <bruno@clisp.org>
95470
95471         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95472         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95473
95474 2002-12-31  Bruno Haible  <bruno@clisp.org>
95475
95476         * lib/getline.h: Include <stddef.h>, for size_t.
95477
95478         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95479         * lib/unicodeio.c: Don't include <stddef.h>.
95480
95481 2002-12-31  Bruno Haible  <bruno@clisp.org>
95482
95483         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95484         HAVE_TM_ZONE.
95485
95486 2002-12-24  Karl Berry  <karl@gnu.org>
95487
95488         * config/config.guess: update from prep.
95489
95490 2002-12-24  Bruno Haible  <bruno@clisp.org>
95491
95492         General infrasructure.
95493         * m4/README: Rewritten.
95494         * m4/onceonly.m4: New file.
95495         * m4/onceonly_2_57.m4: New file.
95496
95497         Module atexit.
95498         * m4/atexit.m4: New file.
95499
95500         Module strtod.
95501         * m4/strtod.m4: New file.
95502
95503         Module strtol.
95504         * m4/strtol.m4: New file.
95505
95506         Module strtoul.
95507         * m4/strtoul.m4: New file.
95508
95509         Module memchr.
95510         * m4/memchr.m4: New file.
95511
95512         Module memcmp.
95513         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95514         (jm_FUNC_MEMCMP): Invoke it.
95515
95516         Module memcpy.
95517         * m4/memcpy.m4: New file.
95518
95519         Module memmove.
95520         * m4/memmove.m4: New file.
95521
95522         Module memset.
95523         * m4/memset.m4: New file.
95524
95525         Module strcspn.
95526         * m4/strcspn.m4: New file.
95527
95528         Module strpbrk.
95529         * m4/strpbrk.m4: New file.
95530
95531         Module strstr.
95532         * m4/strstr.m4: New file.
95533
95534         Module strerror.
95535         * m4/strerror.m4: New file.
95536
95537         Module mktime.
95538         * m4/mktime.m4: Renamed from jm-mktime.m4.
95539         (gl_PREREQ_MKTIME): New macro.
95540         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95541
95542         Module malloc.
95543         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95544         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95545         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95546
95547         Module realloc.
95548         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95549         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95550         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95551
95552         Module strftime.
95553         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95555         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95556         gl_TM_GMTOFF.
95557         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95558
95559         Module xalloc.
95560         * m4/xalloc.m4: New file.
95561
95562         Module alloca.
95563         * m4/alloca.m4: New file.
95564
95565         Module putenv.
95566         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95567         (jm_FUNC_PUTENV): Invoke it.
95568
95569         Module setenv.
95570         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95571         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95572         when invoked twice.
95573         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95574         gt_FUNC_SETENV.
95575
95576         Module memrchr.
95577         * m4/memrchr.m4: New file.
95578
95579         Module stpcpy.
95580         * m4/stpcpy.m4: New file.
95581
95582         Module strcase.
95583         * m4/strcase.m4: New file.
95584
95585         Module strdup.
95586         * m4/strdup.m4: New file.
95587
95588         Module strnlen.
95589         * m4/strnlen.m4: New file.
95590
95591         Module strndup.
95592         * m4/strndup.m4: New file.
95593
95594         Module xstrtod.
95595         * m4/xstrtod.m4: New file.
95596
95597         Module xstrtol.
95598         * m4/xstrtol.m4: New file.
95599
95600         Module getdate.
95601         * m4/getdate.m4: New file.
95602
95603         Module unlocked-io.
95604         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95605         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95606         * m4/jm-glibc-io.m4n: Remove file.
95607
95608         Module long-options.
95609         * m4/long-options.m4: New file.
95610
95611         Module md5.
95612         * m4/md5.m4: New file.
95613
95614         Module sha.
95615         * m4/sha.m4: New file.
95616
95617         Module getstr.
95618         * m4/getstr.m4: New file.
95619
95620         Module getline.
95621         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95622         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95623         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95624         simply getline. Infoke gl_PREREQ_GETLINE.
95625
95626         Module obstack.
95627         * m4/obstack.m4: New file.
95628
95629         Module hash.
95630         * m4/hash.m4: New file.
95631
95632         Module readtokens.
95633         * m4/readtokens.m4: New file.
95634
95635         Module strverscmp.
95636         * m4/strverscmp.m4: New file.
95637
95638         Module stdbool.
95639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95640         OSF/1.
95641
95642         Module strtoll.
95643         * m4/strtoll.m4: New file.
95644
95645         Module strtoull.
95646         * m4/strtoull.m4: New file.
95647
95648         Module strtoimax.
95649         * m4/strtoimax.m4: New file.
95650
95651         Module strtoumax.
95652         * m4/strtoumax.m4: New file.
95653
95654         Module xstrtoimax.
95655         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95656         jm_AC_PREREQ_XSTRTOIMAX.
95657         Moved the strtol prerequisites to strtol.m4.
95658         Moved the strtoll prerequisites to strtoll.m4.
95659         Moved the strtoimax prerequisites to strtoimax.m4.
95660
95661         Module xstrtoumax.
95662         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95663         jm_AC_PREREQ_XSTRTOUMAX.
95664         Moved the strtoul prerequisites to strtoul.m4.
95665         Moved the strtoull prerequisites to strtoull.m4.
95666         Moved the strtoumax prerequisites to strtoumax.m4.
95667
95668         Module chown.
95669         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95670         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95671
95672         Module dup2.
95673         * m4/dup2.m4: New file.
95674
95675         Module ftruncate.
95676         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95677         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95678
95679         Module getgroups.
95680         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95681         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95682
95683         Module gettimeofday.
95684         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95685         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95686         gl_PREREQ_GETTIMEOFDAY.
95687
95688         Module mkdir.
95689         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95690         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95691
95692         Module mkstemp.
95693         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95694         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95695         jm_AC_TYPE_UINTMAX_T.
95696         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95697
95698         Module stat.
95699         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95700         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95701
95702         Module lstat.
95703         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95704         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95705
95706         Module timespec.
95707         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95708         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95709         * m4/st_mtim.m4: Indentation.
95710
95711         Module nanosleep.
95712         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95713         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95714         gl_PREREQ_NANOSLEEP.
95715
95716         Module regex.
95717         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95718         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95719         (gl_REGEX): New macro.
95720
95721         Module rename.
95722         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95723         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95724
95725         Module rmdir.
95726         * m4/rmdir.m4: New file.
95727
95728         Module utime.
95729         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95730         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95731         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95732
95733         Module dirname.
95734         * m4/dirname.m4: New file.
95735
95736         Module getopt.
95737         * m4/getopt.m4: New file.
95738
95739         Module unistd-safer.
95740         * m4/unistd-safer.m4: New file.
95741
95742         Module fnmatch.
95743         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95744         declaration.
95745         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95746         (gl_FUNC_FNMATCH_POSIX): New macro.
95747         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95748         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95749         simply fnmatch.
95750
95751         Module exclude.
95752         * m4/exclude.m4: New file.
95753
95754         Module human.
95755         * m4/human.m4: New file.
95756
95757         Module acl.
95758         * m4/acl.m4: Nop.
95759
95760         Module backupfile.
95761         * m4/backupfile.m4: New file.
95762         * m4/d-ino.m4: Indentation.
95763
95764         Module fsusage.
95765         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95766         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95767         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95768
95769         Module dirfd.
95770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95771         requirements.
95772
95773         Module euidaccess.
95774         * m4/euidaccess.m4: New file.
95775
95776         Module file-type.
95777         * m4/file-type.m4: New file.
95778
95779         Module fileblocks.
95780         * m4/fileblocks.m4: New file.
95781
95782         Module filemode.
95783         * m4/filemode.m4: New file.
95784
95785         Module isdir.
95786         * m4/isdir.m4: New file.
95787
95788         Module lchown.
95789         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95790         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95791
95792         Module makepath.
95793         * m4/makepath.m4: New file.
95794
95795         Module modechange.
95796         * m4/modechange.m4: New file.
95797
95798         Module mountlist.
95799         * m4/mountlist.m4: New file.
95800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95801         Indentation.
95802
95803         Module path-concat.
95804         * m4/path-concat.m4: New file.
95805
95806         Module pathmax.
95807         * m4/pathmax.m4: New file.
95808
95809         Module same.
95810         * m4/same.m4: New file.
95811
95812         Module save-cwd.
95813         * m4/save-cwd.m4: New file.
95814
95815         Module savedir.
95816         * m4/savedir.m4: New file.
95817
95818         Module xgetcwd.
95819         * m4/xgetcwd.m4: New file.
95820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95821
95822         Module xreadlink.
95823         * m4/xreadlink.m4: New file.
95824
95825         Module safe-read.
95826         * m4/safe-read.m4: New file.
95827
95828         Module safe-write.
95829         * m4/safe-write.m4: New file.
95830
95831         Module closeout.
95832         * m4/closeout.m4: New file.
95833
95834         Module stdio-safer.
95835         * m4/stdio-safer.m4: New file.
95836
95837         Module getpass.
95838         * m4/getpass.m4: New file.
95839
95840         Module getugroups.
95841         * m4/getugroups.m4: New file.
95842
95843         Module group-member.
95844         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95845         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95846
95847         Module idcache.
95848         * m4/idcache.m4: New file.
95849
95850         Module userspec.
95851         * m4/userspec.m4: New file.
95852
95853         Module gettime.
95854         * m4/clock_time.m4: New file.
95855         * m4/gettime.m4: New file.
95856
95857         Module settime.
95858         * m4/settime.m4: New file.
95859
95860         Module posixtm.
95861         * m4/posixtm.m4: New file.
95862
95863         Module gethostname.
95864         * m4/gethostname.m4: New file.
95865
95866         Module canon-host.
95867         * m4/canon-host.m4: New file.
95868
95869         Module gettext.
95870         * m4/codeset.m4: New file, from gettext-0.11.5.
95871         * m4/gettext.m4: New file, from gettext-0.11.5.
95872         * m4/glibc21.m4: New file, from gettext-0.11.5.
95873         * m4/iconv.m4: New file, from gettext-0.11.5.
95874         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95875         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95876         * m4/inttypes.m4: New file, from gettext-0.11.5.
95877         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95878         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95879         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95880         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95881         * m4/lib-link.m4: New file, from gettext-0.11.5.
95882         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95883         * m4/progtest.m4: New file, from gettext-0.11.5.
95884         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95885         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95886         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95887
95888         Module localcharset.
95889         * m4/localcharset.m4: New file.
95890
95891         Module hard-locale.
95892         * m4/hard-locale.m4: New file.
95893
95894         Module mbswidth.
95895         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95896         onceonly macros.
95897         * m4/mbrtowc.m4: Add comment.
95898
95899         Module memcasecmp.
95900         * m4/memcasecmp.m4: New file.
95901
95902         Module memcoll.
95903         * m4/memcoll.m4: New file.
95904
95905         Module unicodeio.
95906         * m4/unicodeio.m4: New file.
95907
95908         Module rpmatch.
95909         * m4/rpmatch.m4: New file.
95910
95911         Module yesno.
95912         * m4/yesno.m4: New file.
95913
95914         Module exitfail.
95915         * m4/exitfail.m4: New file.
95916
95917         Module c-stack.
95918         * m4/c-stack.m4 (gl_C_STACK): New macro.
95919         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95920
95921         Module error.
95922         * m4/error.m4 (gl_ERROR): New macro.
95923         (jm_PREREQ_ERROR): Use onceonly macros.
95924
95925         Module fatal.
95926         * m4/fatal.m4: New file.
95927
95928         Module getloadavg.
95929         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95930         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95931
95932         Module getpagesize.
95933         * m4/getpagesize.m4: New file.
95934
95935         Module getusershell.
95936         * m4/getusershell.m4: New file.
95937
95938         Module physmem.
95939         * m4/physmem.m4: New file.
95940
95941         Module posixver.
95942         * m4/posixver.m4: New file.
95943
95944         Module quotearg.
95945         * m4/quotearg.m4: New file.
95946
95947         Module quote.
95948         * m4/quote.m4: New file.
95949
95950         Module readutmp.
95951         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95952
95953         Module sig2str.
95954         * m4/sig2str.m4: New file.
95955
95956         Other.
95957         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95958         ulonglong.m4.
95959         * m4/intmax_t.m4: New file.
95960         * m4/d-type.m4: Indentation.
95961         * m4/jm-macros.m4: Update.
95962         * m4/prereq.m4 (jm_PREREQ): Update.
95963         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95964         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95965         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95966         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95967         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95968         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95969         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95970         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95971         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95972         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95973         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95974         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95975         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95976         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95977         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95978         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95979         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95980         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95981         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95982
95983 2002-12-24  Bruno Haible  <bruno@clisp.org>
95984
95985         * MODULES.txt: Update according to m4/ changes.
95986
95987         Module gettext.
95988         * config.rpath: New file, from gettext-0.11.5.
95989
95990         * modules/*: New module descriptions.
95991         * gnulib-tool: New file.
95992         * MODULES.html.sh: New file.
95993
95994 2002-12-21  Karl Berry  <karl@gnu.org>
95995
95996         * doc/fdl.texi: update to version 1.2.
95997
95998 2002-12-19  Karl Berry  <karl@gnu.org>
95999
96000         * config/config.guess: update from prep.
96001
96002 2002-12-18  Bruno Haible  <bruno@clisp.org>
96003
96004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96005         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96006
96007 2002-12-17  Bruno Haible  <bruno@clisp.org>
96008
96009         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96010         stdlib.h, string.h.
96011
96012 2002-12-17  Bruno Haible  <bruno@clisp.org>
96013
96014         * lib/canon-host.c (strdup): Remove unused declaration.
96015
96016         * lib/fsusage.c: Include full_read.h.
96017         (get_fs_usage): Use full_read instead of safe_read.
96018
96019         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96020
96021 2002-12-12  Karl Berry  <karl@gnu.org>
96022
96023         * config/config.guess: update from prep.
96024
96025 2002-12-11  Bruno Haible  <bruno@clisp.org>
96026
96027         * m4/setenv.m4: New file, from gettext-0.11.5.
96028
96029 2002-12-11  Bruno Haible  <bruno@clisp.org>
96030
96031         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96032         not unsetenv().
96033         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96034         modifications:
96035
96036         2002-12-11  Bruno Haible  <bruno@clisp.org>
96037
96038                 * setenv.c (alloca): Fall back to malloc.
96039                 (freea): New macro.
96040                 (setenv): Use freea() to free memory allocated with alloca().
96041
96042         2002-11-13  Bruno Haible  <bruno@clisp.org>
96043
96044                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96045                 function declarations.
96046                 * unsetenv.c (unsetenv): Likewise.
96047
96048         2002-03-04  Bruno Haible  <bruno@clisp.org>
96049
96050                 Portability to AIX 4.3.3.
96051                 * unsetenv.c: New file, extracted from setenv.c.
96052                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96053
96054         2001-12-20  Bruno Haible  <bruno@clisp.org>
96055
96056                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96057                 use malloc instead. For SunOS 4.
96058
96059         2001-12-11  Bruno Haible  <bruno@clisp.org>
96060
96061                 * setenv.c: Declare alloca.
96062                 (compar_fn_t): New typedef.
96063                 (KNOWN_VALUE, STORE_VALUE): Use it.
96064
96065         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96066         setenv.h.
96067
96068 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96069
96070         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96071         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96072         Choose values that are less likely to collide with system fnmatch
96073         options.
96074         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96075         defined (e.g., a pure POSIX system).
96076         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96077         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96078
96079 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96080
96081         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96082         a pain in practice to deal with generated m4 files.  This change
96083         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96084
96085         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96086         and jm-glibc-io.m4, as they are no longer a special case.
96087         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96088         kludge and the auto-generation stuff.  Check only whether the
96089         functions are declared, not whether they exist, since older hosts
96090         that don't declare the functions can't use the optimization anyway.
96091
96092 2002-12-06  Jim Meyering  <jim@meyering.net>
96093
96094         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96095
96096         Merge in changes from libc's misc/error.c, in preparation
96097         for the merge of gnulib's changes back into libc.
96098
96099         * lib/error.c (_): Define only if not already defined.
96100         Move definition to follow all #include directives.
96101         Include unlocked-io.h only if !_LIBC.
96102         [_LIBC]: Include <libio/libioP.h>.
96103         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96104         (fflush): Tweak definition to use INTUSE.
96105         (putc): Define.
96106
96107 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96108
96109         * lib/alloca.c [defined emacs]: Include "lisp.h".
96110         (xalloc_die) [defined emacs]: New macro.
96111         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96112         [! defined emacs]: Include <xalloc.h>.
96113         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96114         (pointer): Typedef to POINTER_TYPE *.
96115         (malloc): Remove decl; we now always use xmalloc.
96116         (alloca): Use old-style definition, since Emacs needs this.
96117         Check for arithmetic overflow when computing combined size.
96118
96119 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96120
96121         Do not generate unlocked-io.h automatically, since it's easier to
96122         maintain it by hand.
96123
96124         * lib/unlocked-io.h: New file, from GNU diffutils,
96125         but with proper copyright notice and attribution.
96126         * lib/gen-uio: Remove.
96127         * lib/Makefile.am: Add copyright notice.
96128         (libfetish_a_SOURCES): Add unlocked-io.h.
96129         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96130         (DISTCLEANFILES, io_functions): Remove macros.
96131         (EXTRA_DIST): Remove gen_uio.
96132         (unlocked-io.h): Remove rule.
96133
96134 2002-12-04  Jim Meyering  <jim@meyering.net>
96135
96136         Reflect the fact that stat.c and lstat.c are no longer generated.
96137         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96138         (DISTCLEANFILES): Likewise.
96139         (EXTRA_DIST): Likewise.
96140         (all_local): Don't depend on stat.c or lstat.c.
96141         (stat.c, lstat.c): Remove rules.
96142         (EXTRA_DIST): Remove xstat.in.
96143
96144         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96145         * lib/stat.c: New file.  Contents mostly from xstat.in.
96146         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96147         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96148
96149         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96150         too.
96151         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96152
96153 2002-12-03  Jim Meyering  <jim@meyering.net>
96154
96155         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96156         but not semantics, to minimize the differences between these two files.
96157         (safe_read): Change comment to mention SAFE_READ_ERROR.
96158
96159         * lib/safe-read.c (IS_EINTR): Define.
96160         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96161
96162 2002-12-02  Jim Meyering  <jim@meyering.net>
96163
96164         * lib/safe-read.c (EINTR): Define.
96165         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96166         (INT_MAX): Provide fallback.
96167         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96168
96169         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96170
96171 2002-12-02  Bruno Haible  <bruno@clisp.org>
96172
96173         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96174         Define, taken from safe-read.c.
96175         (INT_MAX): Provide fallback.
96176         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96177         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96178
96179         * lib/safe-read.c (EINTR): Remove definition.
96180         (safe_read): Don't use EINTR if it is absent.
96181
96182 2002-12-01  Jim Meyering  <jim@meyering.net>
96183
96184         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96185         zero.
96186         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96187
96188 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96189
96190         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96191         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96192         with `if (! (value < limit)) abort ();', for readability.
96193
96194 2002-11-26  Karl Berry  <karl@gnu.org>
96195
96196         * lib/strdup.c: copy from libc again, with jim's ok.
96197         * lib/.cppi-disable: re-add strdup.c
96198
96199 2002-11-25  Karl Berry  <karl@gnu.org>
96200
96201         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96202         instead of "strtol.c".
96203
96204 2002-11-25  Karl Berry  <karl@gnu.org>
96205
96206         * config/install-sh: update from automake for variable quoting, $0 in
96207         error msgs, etc.
96208
96209         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96210         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96211         entry.
96212
96213 2002-11-25  Jim Meyering  <jim@meyering.net>
96214
96215         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96216
96217 2002-11-24  Karl Berry  <karl@gnu.org>
96218
96219         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96220         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96221
96222 2002-11-24  Jim Meyering  <jim@meyering.net>
96223
96224         Update from coreutils:
96225
96226         * lib/mktime.c: Merge in changes from libc.
96227
96228         Avoid a link-time failure on some Linux systems.
96229         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96230         (otherwise).
96231         (__mon_yday): Declare with the STATIC attribute.
96232         (__mktime_internal): Likewise.
96233         Based on a report from Greg Schafer.
96234
96235 2002-11-23  Jim Meyering  <jim@meyering.net>
96236
96237         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96238         Use `unsigned', not `int', as type of index.
96239
96240         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96241
96242         * lib/fsusage.c: Remove unneeded parentheses around operands of
96243         `defined'.
96244
96245 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96246
96247         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96248         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96249         so that we can be included first.
96250         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96251         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96252         No need to include stddef.h or sys/types.h any more.
96253         Surround local include files with "", not "<>".
96254         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96255         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96256         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96257         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96258         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96259         (ISPRINT): Remove; no longer needed now that we assume C89.
96260
96261         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96262         Preserve errno.
96263
96264         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96265         quotearg_char): Use SIZE_MAX rather than
96266         (size_t) -1 when we are talking about "infinity".
96267
96268         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96269
96270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96271
96272         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96273         hint that one should use `if (! x) abort ();' rather than `assert
96274         (x);', and anyway it's one less thing to worry about configuring.
96275         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96276         hash_rehash, hash_insert): Use abort rather than assert.
96277
96278 2002-11-22  Bruno Haible  <bruno@clisp.org>
96279
96280         * lib/safe-read.h: Assume C89. Add comments.
96281         (safe_read): Change return type to size_t.
96282         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96283         byte counts > SSIZE_MAX correctly.
96284         * lib/safe-write.h: New file.
96285         * lib/safe-write.c: New file.
96286         * lib/full-read.h: New file.
96287         * lib/full-read.c: New file.
96288         * lib/full-write.h: Assume C89. Add comments.
96289         * lib/full-write.c: Include safe-write.h.
96290         (full_write): Rewritten to use safe_write.
96291         Suggested by Jim Meyering and Paul Eggert.
96292
96293 2002-11-21  Jim Meyering  <jim@meyering.net>
96294
96295         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96296
96297         Merge in changes from the coreutils.
96298
96299         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96300         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96301         <stdint.h>.
96302         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96303         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96304         int.  Work more efficiently if X is the same width as uintmax_t.
96305         Do not compare X to -1, to avoid bogus compiler warning.
96306         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96307         Don't assume that f_frsize and f_bsize are the same type.
96308
96309         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96310         warning on FreeBSD.
96311
96312         * lib/makepath.c (make_path): Restore umask *before* creating the final
96313         component.
96314         (make_path): Minor reformatting.
96315
96316         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96317         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96318         HAVE_MALLOC/HAVE_REALLOC.
96319
96320         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96321         dummy ones.  At least on GNU/Linux systems, `auto' means something
96322         else.
96323         From Michael Stone.
96324
96325 2002-11-21  Bruno Haible  <bruno@clisp.org>
96326
96327         Remove case insensitive option matching.
96328         * lib/argmatch.h (argcasematch): Remove declaration.
96329         (ARGCASEMATCH): Remove macro.
96330         (__xargmatch_internal): Remove case_sensitive argument.
96331         (XARGMATCH): Update.
96332         (XARGCASEMATCH): Remove macro.
96333         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96334         case_sensitive argument.
96335         (argcasematch): Remove function.
96336         (__xargmatch_internal): Remove case_sensitive argument.
96337         (main): Use XARGMATCH instead of XARGCASEMATCH.
96338
96339         * lib/xmalloc.c: Change compile-time error message. Add comment about
96340         required autoconf version.
96341
96342 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96343
96344         Merge argmatch cleanups from Bison.  Assume C89.
96345
96346         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96347         Include stdlib.h, for EXIT_FAILURE.
96348         Always include <string.h>, since we assume C89.
96349         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96350         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96351         Include <stddef.h> instead, since it's all we need for size_t.
96352         (PARAMS): Remove.  All uses removed.
96353         (ARRAY_CARDINALITY): Do not bother to #undef.
96354         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96355         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96356         Remove unnecessary parentheses.
96357         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96358         Insert necessary parentheses.
96359         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96360         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96361
96362 2002-11-19  Bruno Haible  <bruno@clisp.org>
96363
96364         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96365         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96366
96367         * lib/mbswidth.h (PARAMS): Remove macro.
96368         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96369         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96370
96371         * lib/gcd.h (PARAMS): Remove macro.
96372         (gcd): Use ANSI C function declarations.
96373         * lib/gcd.c (gcd): Likewise.
96374
96375 2002-11-15  Bruno Haible  <bruno@clisp.org>
96376
96377         * lib/strcspn.c: Include <stddef.h>.
96378         (strcspn): Use ANSI C function declaration. Change return type to
96379         size_t. Use NULL.
96380         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96381         (strpbrk): Use NULL.
96382         * lib/strpbrk.h (PARAMS): Remove macro.
96383         (strpbrk): Use ANSI C function declaration.
96384         * lib/strstr.c: Don't include <sys/types.h>.
96385         * lib/strstr.h (PARAMS): Remove macro.
96386         (strstr): Use ANSI C function declarations.
96387
96388 2002-11-14  Karl Berry  <karl@gnu.org>
96389
96390         * config/mkinstalldirs: `do' on separate line, instead of
96391         `for var; do'.
96392
96393 2002-11-06  Bruno Haible  <bruno@clisp.org>
96394
96395         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96396         * lib/gcd.c (gcd): Likewise.
96397
96398 2002-11-05  Bruno Haible  <bruno@clisp.org>
96399
96400         * lib/gcd.h: New file, from gettext-0.11.5.
96401         * lib/gcd.c: New file, from gettext-0.11.5.
96402
96403 2002-11-05  Bruno Haible  <bruno@clisp.org>
96404
96405         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96406         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96407         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96408         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96409
96410         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96411         <libintl.h>.
96412         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96413         <libintl.h>.
96414
96415         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96416         * lib/human.c: Include gettext.h instead of <libintl.h>.
96417         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96418         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96419         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96420         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96421         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96422         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96423         (textdomain): Remove definition.
96424         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96425
96426         * lib/long-options.c: Remove include of <libintl.h> and definition of
96427         _.
96428         * lib/same.c: Remove include of <libintl.h> and definition of _.
96429
96430 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96431
96432         * lib/config.charset: A few additions for Solaris.
96433
96434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96435
96436         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96437         * lib/localcharset.c (locale_charset): Declare as extern "C".
96438
96439 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96440
96441         * lib/config.charset: msdos in uk_UA uses CP1125.
96442
96443 2002-11-04  Bruno Haible  <bruno@clisp.org>
96444
96445         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96446         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96447         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96448         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96449         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96450
96451 2002-11-04  Bruno Haible  <bruno@clisp.org>
96452
96453         * lib/localcharset.c (locale_charset): Don't return an empty string.
96454
96455 2002-11-04  Bruno Haible  <bruno@clisp.org>
96456
96457         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96458         aliases.
96459
96460 2002-11-04  Bruno Haible  <bruno@clisp.org>
96461
96462         * lib/config.charset: Update for newest glibc. Add canonical names
96463         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96464
96465 2002-11-04  Bruno Haible  <bruno@clisp.org>
96466
96467         * lib/config.charset: Add support for NetBSD.
96468
96469 2002-11-04  Bruno Haible  <bruno@clisp.org>
96470
96471         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96472
96473 2002-11-01  Bruno Haible  <bruno@clisp.org>
96474
96475         * configure.in: Add AC_CONFIG_AUX_DIR call.
96476         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96477         test/Makefile.
96478         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96479
96480 2002-09-28  Karl Berry  <karl@gnu.org>
96481
96482         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96483         installed automake until the next release, since changes have been
96484         made.
96485
96486 2002-09-25  Karl Berry  <karl@gnu.org>
96487
96488         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96489         * lib/getopt*: copy from libc/posix.
96490         * lib/gettext.h: copy from gettext.
96491         * lib/.cppi-disable: add strdup.c, gettext.h.
96492
96493 2002-09-25  Karl Berry  <karl@gnu.org>
96494
96495         * config/srclist.txt: enable gettext.h check.
96496         * config/config.{guess,sub}: update from prep.
96497         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96498                 from automake 1.6.3.
96499         See srclist*.
96500
96501 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96502
96503         * regex.c (PATFETCH): Remove the translating fetch.
96504         (PATFETCH_RAW): Rename to PATFETCH.
96505         (set_image_of_range): New fun.
96506         (SET_RANGE_TABLE_WORK_AREA): Use it.
96507         (regex_compile): Don't translate the pattern chars so eagerly.
96508         Only do it when inserting an `exactn' bytecode or when handling
96509         a char-range.
96510         (mutually_exclusive_p): Avoid empty statement.
96511
96512 2002-07-06  Jim Meyering  <meyering@lucent.com>
96513
96514         * m4/README: Don't mention Makefile.am.in.
96515         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96516
96517 2002-07-01  Jim Meyering  <meyering@lucent.com>
96518
96519         * lib/c-stack.c: Include sys/time.h.
96520         From Volker Borchert.
96521
96522 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96523
96524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96525
96526 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96527
96528         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96529         New macro.  Use it uniformly instead of
96530         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96531         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96532         reported by Vin Shelton.
96533
96534 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96535
96536         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96537         Do not assume SA_SIGINFO behavior.
96538         Bug reported by Jim Meyering on NetBSD 1.5.2.
96539
96540 2002-06-22  Jim Meyering  <meyering@lucent.com>
96541
96542         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96544
96545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96546         now that configure.ac uses AC_GNU_SOURCE.
96547         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96548         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96549
96550         Update to latest tools.  Suggestions from Paul Eggert.
96551         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96552         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96553         * m4/fnmatch.m4: Likewise.
96554         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96555         to AC_HEADER_STDBOOL
96556
96557 2002-06-22  Jim Meyering  <meyering@lucent.com>
96558
96559         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96560         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96561
96562 2002-06-22  Jim Meyering  <meyering@lucent.com>
96563
96564         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96565
96566         * lib/exitfail.c, exitfail.h: Likewise.
96567         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96568
96569         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96570         of fnmatch.h.
96571         (EXTRA_DIST): Add fnmatch_loop.c.
96572         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96573
96574         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96575         * lib/fnmatch.c: Update from diffutils-2.8.2.
96576         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96577         * lib/fnmatch.h: Remove file.
96578
96579 2002-06-21  Jim Meyering  <meyering@lucent.com>
96580
96581         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96582         * m4/mbrtowc.m4: Likewise.
96583
96584         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96585         * m4/mbswidth.m4: Reflect name change:
96586         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96588
96589         * m4/lib-link.m4: Update from gettext-0.11.2.
96590         * m4/gettext.m4: Likewise.
96591
96592         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96593         From Alfred M. Szmidt.
96594
96595 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96596
96597         * lib/file-type.h: Report an error if neither S_ISREG nor
96598         S_IFREG is defined, instead of using a test specific to glibc
96599         2.2.  This should be safe, since POSIX requires S_ISREG and
96600         Unix Version 7 had S_IFREG.  We don't need to check for
96601         <sys/types.h> since we don't use any symbols that it defines.
96602
96603 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96604
96605         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96606         $@-t, so that each temporary file name is unique and valid in the first
96607         8 characters, for operation under DOS.
96608
96609 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96610
96611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96612
96613 2002-06-15  Jim Meyering  <meyering@lucent.com>
96614
96615         Work even with DJGPP 2.03, which lacks support for symlinks.
96616         From Richard Dawe.
96617         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96618         is defined.
96619         * lib/lchown.c (S_ISLNK): Likewise.
96620
96621 2002-06-15  Jim Meyering  <meyering@lucent.com>
96622
96623         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96624         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96625         have been included before this file.
96626
96627 2002-06-14  Jim Meyering  <meyering@lucent.com>
96628
96629         * lib/file-type.h: Use the version from diffutils-2.8.2.
96630         * lib/file-type.c: Likewise.
96631
96632 2002-06-07  Jim Meyering  <meyering@lucent.com>
96633
96634         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96635         They're needed at least for NetBSD 1.5.2.
96636         ($statxfs_includes): Include those same headers.
96637         ($statxfs_includes): Include sys/vfs.h if available.
96638         ($statxfs_includes): Likewise for sys/statvfs.h.
96639         Check for the following members in both structs statfs and statvfs:
96640         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96641
96642 2002-06-01  Jim Meyering  <meyering@lucent.com>
96643
96644         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96645         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96646
96647 2002-05-28  Jim Meyering  <meyering@lucent.com>
96648
96649         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96650         Reported by Volker Borchert.
96651
96652 2002-05-27  Jim Meyering  <meyering@lucent.com>
96653
96654         Fix a problem seen only on nonconforming systems whereby ls.c's
96655         use of localtime, and then of gettimeofday would cause trouble:
96656         the localtime call used to initialize rpl_gettimeofday's save
96657         mechanism would clobber ls's current local time information so
96658         that in any long listing the first file would always be listed
96659         with date 1970-01-01.  Analysis by Volker Borchert.
96660
96661         * lib/gettimeofday.c (localtime): Undefine.
96662         (rpl_localtime): New function.
96663
96664 2002-05-27  Jim Meyering  <meyering@lucent.com>
96665
96666         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96667         localtime.
96668
96669         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96670         use the replacement function; it wouldn't resolve at link time.
96671         Reported by Volker Borchert.
96672
96673 2002-05-22  Jim Meyering  <meyering@lucent.com>
96674
96675         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96676         file-type.h.
96677         * lib/file-type.h: New file.
96678         * lib/file-type.c (file_type): New file/function.  Extracted from
96679         diffutils.
96680
96681 2002-04-30  Jim Meyering  <meyering@lucent.com>
96682
96683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96684
96685 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96686
96687         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96688
96689 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96690
96691         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96692         Do not check for alloca.h (no longer used) or stdbool.h (was never
96693         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96694
96695 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96696
96697         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96698
96699 2002-04-29  Jim Meyering  <meyering@lucent.com>
96700
96701         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96702         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96703         Use AC_FUNC_STRNLEN here instead.
96704
96705         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96706         With autoconf-2.53a, it's part of AC_PROG_CC.
96707
96708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96709
96710         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96712
96713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96714
96715         * lib/sig2str.h, lib/sig2str.c: New files.
96716         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96717
96718 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96719
96720         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96721         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96722         of 127, since 64 is the largest conceivable number for ancient
96723         nonstandard hosts.
96724         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96725
96726 2002-04-28  Jim Meyering  <meyering@lucent.com>
96727
96728         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96729
96730 2002-04-24  Jim Meyering  <meyering@lucent.com>
96731
96732         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96733         (jm_PREREQ): Use it.
96734
96735         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96736         mach/mach.h fcntl.h.
96737         Check for this function: setlocale.
96738
96739 2002-04-24  Jim Meyering  <meyering@lucent.com>
96740
96741         * lib/gettext.h: New file, from Gettext.
96742         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96743         (libfetish_a_SOURCES): Add gettext.h.
96744
96745 2002-04-16  Jim Meyering  <meyering@lucent.com>
96746
96747         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96748         ut_pid, ut_id, ut_exit.
96749
96750 2002-04-16  Jim Meyering  <meyering@lucent.com>
96751
96752         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96753         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96754         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96755
96756 2002-04-12  Jim Meyering  <meyering@lucent.com>
96757
96758         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96759         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96760         existence of the getmntinfo function.  Needed for Darwin 5.3.
96761
96762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96763         This is necessary at least on Darwin 5.3.
96764
96765         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96766         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96767         strnlen.o in the library, and that makes some versions of ranlib
96768         object.
96769
96770 2002-04-12  Jim Meyering  <meyering@lucent.com>
96771
96772         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96773
96774 2002-04-09  Jim Meyering  <meyering@lucent.com>
96775
96776         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96777         to be more precise.  Rather than saying we're checking whether the
96778         function `works', say what we're testing.
96779         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96780         Reported by Bruno Haible.
96781
96782 2002-03-10  Jim Meyering  <meyering@lucent.com>
96783
96784         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96785         Suggestion from Santiago Vila.
96786
96787 2002-03-08  Jim Meyering  <meyering@lucent.com>
96788
96789         * lib/rename.c: Mention that this wrapper is needed also on
96790         mips-dec-ultrix4.4 systems.
96791
96792 2002-03-02  Jim Meyering  <meyering@lucent.com>
96793
96794         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96795         not HAVE_CLOCK_SETTIME.
96796
96797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96798
96799         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96800         Check for clock_settime.
96801
96802 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96803
96804         * lib/nanosleep.h: Rename to....
96805         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96806
96807         * lib/gettime.c: New file.
96808         * lib/settime.c: New file.
96809         * lib/stime.c: Remove.
96810
96811         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96812         timespec.h.  Remove nanosleep.h.
96813
96814 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96815
96816         * m4/acl.m4: New file.
96817         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96818         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96819
96820 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96821
96822         * lib/acl.c, lib/acl.h: New files.
96823         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96824
96825 2002-02-24  Jim Meyering  <meyering@lucent.com>
96826
96827         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96828         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96829         cause trouble.  Reported by Nelson Beebe.
96830
96831 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96832
96833         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96834         compilers that don't know that xalloc_die never returns.
96835
96836 2002-02-20  Jim Meyering  <meyering@lucent.com>
96837
96838         * lib/getdate.c: Regenerate using bison-1.33.
96839
96840 2002-02-17  Jim Meyering  <meyering@lucent.com>
96841
96842         * config/config.guess (main): Don't use `head -1'; it's no longer
96843         portable. Use `sed 1q' instead.
96844
96845 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96846
96847         * m4/codeset.m4: Upgrade to gettext-0.11.
96848         * m4/gettext.m4: Upgrade to gettext-0.11.
96849         * m4/glibc21.m4: Upgrade to gettext-0.11.
96850         * m4/iconv.m4: Upgrade to gettext-0.11.
96851         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96852         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96853         * m4/lib-ld.m4: New file, from gettext-0.11.
96854         * m4/lib-link.m4: New file, from gettext-0.11.
96855         * m4/lib-prefix.m4: New file, from gettext-0.11.
96856         * m4/progtest.m4: Upgrade to gettext-0.11.
96857
96858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96859
96860         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96861         (jm_PREREQ): Use it.
96862
96863 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96864
96865         * lib/posixver.c, lib/posixver.h: New files.
96866         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96867
96868 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96869             Bruno Haible  <bruno@clisp.org>
96870
96871         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96872         (fwrite_success_callback): New declaration.
96873         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96874         print_unicode_char. Call failure callback instead of error.
96875         (fwrite_success_callback): New function.
96876         (exit_failure_callback): New function.
96877         (fallback_failure_callback): New function.
96878         (print_unicode_char): Call unicode_to_mb.
96879
96880 2002-01-26  Jim Meyering  <meyering@lucent.com>
96881
96882         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96883         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96884
96885 2002-01-26  Jim Meyering  <meyering@lucent.com>
96886
96887         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96888
96889 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96890
96891         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96892
96893 2002-01-22  Jim Meyering  <meyering@lucent.com>
96894
96895         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96896         Otherwise, some versions of automake would omit the rule that makes
96897         Makefile from Makefile.in.
96898
96899 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96900
96901         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96902         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96903         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96904         (memcoll): Set errno to zero if there is no error.
96905
96906         * lib/quotearg.c (quotearg_buffer_restyled):
96907         Fix bug with quoting buffers containing NUL when backslashing escapes.
96908         This bug was exposed by the other changes in this patch.
96909         (quotearg_n_options): New arg ARGSIZE.
96910         All callers changed.
96911         (quoting_options_from_style): New function.
96912         (quotearg_n_style): Use it.
96913         (quotearg_n_style_mem): New function.
96914
96915         * lib/quotearg.h (quotearg_n_style_mem): New function.
96916
96917 2002-01-19  Jim Meyering  <meyering@lucent.com>
96918
96919         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96920         Remove useless quotes: DF_PROG="df".
96921         * m4/strnlen.m4: New file.
96922
96923 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96924
96925         * lib/backupfile.c (ISDIGIT): Comment fix.
96926         * lib/getdate.y (ISDIGIT): Likewise.
96927         * lib/posixtm.c (ISDIGIT, year): Likewise.
96928         * lib/strverscmp.c (ISDIGIT): Likewise.
96929         * lib/userspec.c (ISDIGIT): Likewise.
96930
96931 2002-01-16  Jim Meyering  <meyering@lucent.com>
96932
96933         * lib/getdate.y: Add three semicolons, each just before a closing
96934         brace. Bison (as of version 1.31) no longer papers over that mistake.
96935
96936 2002-01-05  Jim Meyering  <meyering@lucent.com>
96937
96938         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96939
96940 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96941
96942         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96943         not silently exit merely because the output buffer happens to
96944         have nothing pending.
96945
96946 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96947
96948         See the big note in ../ChangeLog.
96949         * lib/human.c (suffixes): Prefer K to k for 1024.
96950         (generate_suffix_backwards): New function.
96951         (human_readable_inexact): Use it.
96952         * lib/xstrtol.c (__xstrtol): If there is no number but there
96953         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96954         Accept 'K' as well as 'k'.
96955
96956 2001-12-15  Jim Meyering  <meyering@lucent.com>
96957
96958         * lib/regex.h (__restrict_arr): Update from libc.
96959
96960         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96961         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96962         (STREQ): Define.
96963
96964 2001-12-14  Jim Meyering  <meyering@lucent.com>
96965
96966         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96967         Suggestion from Bruno Haible.
96968
96969 2001-12-10  Jim Meyering  <meyering@lucent.com>
96970
96971         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96972         xrealloc, Instead, include "xalloc.h".
96973         (initbuffer): Don't cast xmalloc return value to char*.
96974         (readline): Reword comment.
96975         Don't cast xrealloc return value to char*
96976         Return NULL, not 0.
96977
96978 2001-12-09  Jim Meyering  <meyering@lucent.com>
96979
96980         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96981         about `signed and unsigned type in conditional expression'.
96982         * lib/posixtm.c (posix_time_parse): Likewise.
96983
96984         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96985
96986         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96987         to avoid a pedantic warning.
96988
96989         * lib/getstr.c: Don't include assert.h.
96990         (getstr): Remove warning-evoking assertions.
96991         Return -1 if offset parameter is out of bounds.
96992         Change the type of a local from int to size_t.
96993
96994         * lib/strftime.c (my_strftime_localtime_r): Include this function
96995         definition in the `#if ! HAVE_TM_GMTOFF' block.
96996
96997         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96998         Include xalloc.h instead.
96999
97000 2001-12-02  Jim Meyering  <meyering@lucent.com>
97001
97002         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97003         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97004         included.
97005
97006         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97007         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97008
97009 2001-11-30  Akim Demaille  <akim@epita.fr>
97010
97011         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97012         before being defined.
97013
97014 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97015
97016         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97017         First arg is int, not unsigned.
97018         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97019         (SIZE_MAX, UINT_MAX): New macros.
97020         (quotearg_n_options): Abort if N is negative.
97021         Avoid overflow check on hosts where size_t is 64 bits and int
97022         is 32 bits, as overflow is impossible there.
97023         Fix off-by-one typo that caused unnecessary reallocation.
97024
97025 2001-11-27  Jim Meyering  <meyering@lucent.com>
97026
97027         * lib/tempname.c: Merge with version from libc.
97028         * lib/regex.c: Likewise.
97029
97030         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97031         systems for which STDC_HEADERS is 0, it was not included, resulting in
97032         a warning about an integer-to-pointer conversion problem with getenv.
97033         Reported by Volker Borchert.
97034
97035 2001-11-26  Jim Meyering  <meyering@lucent.com>
97036
97037         * lib/gtod.h: Remove file.
97038         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97039         * lib/gettimeofday.c: Don't include gtod.h.
97040         (GTOD_init): Remove function.
97041         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97042         Suggestion from Volker Borchert.
97043
97044 2001-11-23  Jim Meyering  <meyering@lucent.com>
97045
97046         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97047         it.
97048         * lib/hash.c (struct hash_table): Define it here instead.
97049
97050 2001-11-22  Jim Meyering  <meyering@lucent.com>
97051
97052         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97053
97054 2001-11-20  Jim Meyering  <meyering@lucent.com>
97055
97056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97057         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97058
97059 2001-11-19  Jim Meyering  <meyering@lucent.com>
97060
97061         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97062         directory.  Use "conftestXXXXXX" as the template.
97063         Suggestion from Paul Eggert.
97064
97065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97066         immediately, so the test doesn't mistakenly hit the max-open-files
97067         limit.
97068
97069 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97070
97071         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97072         (TEMPORARIES): New macro.
97073         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97074         removes an artificial limitation (e.g. HP-UX 10.20, where
97075         TMP_MAX is 17576).
97076
97077 2001-11-18  Jim Meyering  <meyering@lucent.com>
97078
97079         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97080
97081 2001-11-18  Jim Meyering  <meyering@lucent.com>
97082
97083         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97084         on SunOS 4.
97085
97086         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97087         files will be created before anything else.
97088
97089 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97090
97091         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97092         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97093
97094 2001-11-17  Jim Meyering  <meyering@lucent.com>
97095
97096         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97097         Prompted by a report from Bob Proulx.
97098
97099         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97100         Instead, require UTILS_FUNC_MKSTEMP.
97101
97102 2001-11-17  Jim Meyering  <meyering@lucent.com>
97103
97104         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97105         Now, that's done as part of AC_FUNC_STRTOD.
97106
97107 2001-11-17  Jim Meyering  <meyering@lucent.com>
97108
97109         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97110         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97111         rather than group writable.  Patch by Juan F. Codagnone.
97112
97113         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97114         xrealloc, Instead, include "xalloc.h".
97115
97116         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97117         Remove explicit declarations of xmalloc, xrealloc,
97118         and xstrdup.  Instead, include "xalloc.h".
97119
97120         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97121         unlocked-io.h.
97122         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97123         Likewise.
97124         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97125
97126         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97127         Reported by Padraig Brady.
97128
97129         * lib/mkstemp.c: #undef mkstemp.
97130         Include config.h.
97131         (rpl_mkstemp): Rename from mkstemp.
97132         Protoize.
97133
97134 2001-11-16  Jim Meyering  <meyering@lucent.com>
97135
97136         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97137         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97138         determine the amount of total physical memory, use pstat_getstatic.
97139         HPUX-11 doesn't define _SC_PHYS_PAGES.
97140         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97141         If sysconf couldn't be used to determine the amount of available
97142         physical memory, use both pstat_getstatic and pstat_getdynamic.
97143         Based on a patch from Bob Proulx.
97144
97145 2001-11-10  Jim Meyering  <meyering@lucent.com>
97146
97147         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97148         (jm_PREREQ): Use it.
97149
97150 2001-11-09  Jim Meyering  <meyering@lucent.com>
97151
97152         * m4/jm-macros.m4: Require autoconf-2.52f.
97153         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97154         Use these AC_-prefixed names, not the AM_-prefixed ones.
97155
97156         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97157
97158 2001-11-05  Jim Meyering  <meyering@lucent.com>
97159
97160         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97161
97162 2001-11-04  Jim Meyering  <meyering@lucent.com>
97163
97164         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97165         $DEFS.
97166
97167 2001-11-03  Jim Meyering  <meyering@lucent.com>
97168
97169         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97170         of AC_DEFUN.
97171
97172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97173         know the name of the variable in the macro definition.
97174
97175 2001-11-03  Jim Meyering  <meyering@lucent.com>
97176
97177         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97178         in argmatch_to_argument call.
97179
97180         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97181         argument.
97182
97183         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97184         e.g., a fault due to an attempt to free a NULL pointer.
97185
97186 2001-11-01  Jim Meyering  <meyering@lucent.com>
97187
97188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97189         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97190
97191 2001-11-01  Jim Meyering  <meyering@lucent.com>
97192
97193         * lib/dirfd.c, lib/dirfd.h: New files.
97194         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97195
97196         * lib/hash.c (hash_print) [TESTING]: Clean up.
97197
97198 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97199
97200         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97201         to avoid a warning if -Wall.
97202
97203 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97204
97205         * README: New file
97206         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97207         (per RMS's instructions, this is now the canonical source)
97208         * lgpl/, gpl/: New directories.
97209
97210 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97211
97212         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97213
97214 2001-10-21  Jim Meyering  <meyering@lucent.com>
97215
97216         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97217         this code would end up calling gettext even in packages built
97218         with --disable-nls.
97219         * lib/getopt.c (_): Likewise.
97220         * lib/regex.c (_): Likewise.
97221
97222 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97223
97224         * m4/error.m4 (jm_PREREQ_ERROR):
97225         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97226         AC_FUNC_STRERROR_R does that.
97227         Check for strerror declaration.
97228
97229         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97230         are supposed to have them these days.
97231         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97232         Merge changes from latest Autoconf CVS.
97233         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97234         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97235         POSIX decided to standardize on the int flavor of strerror_r.
97236
97237 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97238
97239         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97240         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97241         Use strerror_r that is only a macro, even if it is not a function.
97242         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97243         (private_strerror): Use prototypes, not old-style function definition.
97244         (print_errno_message): New function.
97245         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97246         char*-flavored one.
97247         (error_tail, error, error_at_line): Use it.
97248
97249 2001-10-11  Jim Meyering  <meyering@lucent.com>
97250
97251         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97252         and quote_n (1, ... to avoid clobbering a buffer.
97253
97254 2001-10-05  Jim Meyering  <meyering@lucent.com>
97255
97256         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97257         hash-pjw.h.
97258         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97259         * lib/hash-pjw.h: New file.
97260
97261 2001-09-30  Jim Meyering  <meyering@lucent.com>
97262
97263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97264         `struct fsstat' has the `f_fstypename' member.
97265         Use that to define FS_TYPE, which is now used to make
97266         the getfsstat link test tighter.
97267
97268 2001-09-30  Jim Meyering  <meyering@lucent.com>
97269
97270         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97271         Include <sys/ucred.h>, for Apple Darwin.
97272         Include sys/mount.h and sys/fs_types.h only if available.
97273         (FS_TYPE): Define.
97274         (read_filesystem_list): Use FS_TYPE.
97275
97276 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97277
97278         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97279         a boolean context.
97280
97281 2001-09-29  Jim Meyering  <meyering@lucent.com>
97282
97283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97284         [one-argument getmntent function]): Include stdio.h before mntent.h.
97285         SunOS 4.1.x needs it for the declaration of `FILE'.
97286         Patch by Volker Borchert.
97287
97288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97289         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97290         sys/fs_types.h, and make the link-test for getfsstat guard #include
97291         directives with appropriate #if HAVE_*_H tests so that we can
97292         detect getfsstat on Apple Darwin1.3.7 systems.
97293         Reported by Nelson Beebe.
97294         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97295
97296 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97297
97298         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97299         #defines strtoimax.  Also treat the other strto* functions
97300         like strtoimax.
97301
97302         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97303         Check for strtoul and strtoumax,
97304         as those declarations are made even in the signed case.
97305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97306         Likewise, for strtol and strtoimax.
97307
97308 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97309
97310         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97311         #defines strtoimax.  Also treat the other strto* functions
97312         like strtoimax.
97313
97314         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97315         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97316         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97317
97318 2001-09-26  Jim Meyering  <meyering@lucent.com>
97319
97320         Most macros in unlocked-io.h had the wrong number of arguments.
97321         * lib/gen-uio: New script.
97322         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97323         * lib/unlocked-io.hin: Remove file.
97324         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97325         rather than trying to embed it here.
97326         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97327         Reported by Padraig Brady.
97328
97329 2001-09-25  Volker Borchert  <bt@teknon.de>
97330
97331         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97332         `result'.
97333
97334 2001-09-24  Jim Meyering  <meyering@lucent.com>
97335
97336         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97337
97338 2001-09-23  Jim Meyering  <meyering@lucent.com>
97339
97340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97341         instead of the mere test for existence of mntent.h.  The latter
97342         would get a false-positive on AIX 3.4 systems.
97343         In the outer getmntent if-block, don't die if neither of the getmntent
97344         tests succeeds.  Instead, just fall through and continue with the
97345         remaining tests.
97346
97347 2001-09-23  Jim Meyering  <meyering@lucent.com>
97348
97349         * lib/mountlist.c: Remove useless parentheses in #if directives.
97350         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97351         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97352
97353 2001-09-22  Jim Meyering  <meyering@lucent.com>
97354
97355         * m4/gettext.m4: New file.  From gettext.
97356         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97357         * m4/progtest.m4: Likewise
97358         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97359         * m4/glibc21.m4: Likewise.
97360
97361         * m4/libintl.m4: Remove.  No longer used.
97362
97363 2001-09-22  Jim Meyering  <meyering@lucent.com>
97364
97365         * lib/localcharset.c: Update from latest gettext.
97366         * lib/config.charset: Likewise.
97367
97368 2001-09-20  Jim Meyering  <meyering@lucent.com>
97369
97370         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97371         strtoimax.
97372         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97373         strtoumax.
97374
97375 2001-09-20  Jim Meyering  <meyering@lucent.com>
97376
97377         * lib/xstrtol.c (strtoimax): Guard declaration with
97378         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97379         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97380         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97381         (strtoumax): Likewise, for completeness (it wasn't necessary).
97382
97383 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97384
97385         * lib/strtoimax.c (HAVE_LONG_LONG):
97386         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97387         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97388         to work around bug in IBM C compiler.
97389
97390 2001-09-17  Jim Meyering  <meyering@lucent.com>
97391
97392         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97393         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97394         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97395         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97396         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97397         whenever the right hand side need not be expanded by the shell.
97398
97399 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97400
97401         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97402         library.  It's not correct, as some older glibcs are buggy.
97403         fnmatch wasn't fixed until glibc 2.2.
97404
97405         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97406         special shell magic here.
97407
97408 2001-09-16  Jim Meyering  <meyering@lucent.com>
97409
97410         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97411         * m4/jm-macros.m4: Require it.
97412
97413 2001-09-16  Jim Meyering  <meyering@lucent.com>
97414
97415         * lib/mkdir.c: New file.
97416
97417 2001-09-15  Jim Meyering  <meyering@lucent.com>
97418
97419         * m4/jm-macros.m4: Check for help2man.
97420
97421 2001-09-11  Jim Meyering  <meyering@lucent.com>
97422
97423         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97424         The body, by Paul Eggert, was moved here from configure.in.
97425         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97426
97427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97428
97429         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97430         (jm_PREREQ): Use it.
97431
97432 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97433
97434         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97435         Use ssize_t, not int, to store result of readlink.
97436         Check for ssize_t overflow as well as size_t overflow,
97437         as POSIX says the result of readlink is implementation-defined
97438         when ssize_t overflows.
97439         Remove unnecessary cast to char*.
97440         Use free+malloc instead of realloc, as the storage doesn't need
97441         to be preserved and it's clearer and can be more efficient that way.
97442         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97443         * lib/xreadlink.h (xreadlink): Update prototype.
97444
97445 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97446
97447         * lib/xgetcwd.c: Revert some of the previous change; intead,
97448         fix the HAVE_GETCWD_NULL code to behave more like the
97449         !HAVE_GETCWD_NULL code used to.
97450
97451         Include "xalloc.h".
97452         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97453         invoke xalloc_die.
97454
97455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97456
97457         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97458         sys/param.h, as pathmax.h includes them.
97459
97460 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97461
97462         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97463         (jm_PREREQ_XGETCWD): New macro.
97464
97465         * m4/getcwd.m4: New file.
97466
97467 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97468
97469         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97470         like the HAVE_GETCWD_NULL code.
97471         Include pathmax.h if not HAVE_GETCWD.
97472         Do not include xalloc.h.
97473         (INITIAL_BUFFER_SIZE): New symbol.
97474         Do not use xmalloc / xrealloc, since the caller is responsible for
97475         handling errors.  Preserve errno around `free' during failure.
97476         Do not overrun buffer when using getwd.
97477
97478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97479
97480         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97481         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97482         getcwd (NULL, 0).
97483
97484 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97485
97486         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97487         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97488         spotted by Jim Meyering.
97489
97490 2001-09-03  Jim Meyering  <meyering@lucent.com>
97491
97492         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97493         failure.
97494
97495 2001-09-02  Jim Meyering  <meyering@lucent.com>
97496
97497         * lib/error.c: Update from GNU libc.
97498
97499 2001-09-01  Jim Meyering  <meyering@lucent.com>
97500
97501         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97502         Used by df.
97503
97504 2001-09-01  Jim Meyering  <meyering@lucent.com>
97505
97506         * lib/xreadlink.c: New file.
97507         * lib/xreadlink.h: New file.
97508         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97509         xreadlink.h.
97510
97511         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97512         doesn't conflict with sparc Solaris 7's definition in
97513         /usr/include/sys/int_types.h.
97514
97515         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97516         files.
97517         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97518         and strncasecmp as r-values.  Unixware didn't have declarations.
97519
97520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97521
97522         * lib/xstrtol.h: Add copyright notice.
97523         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97524         LONGINT_INVALID_SUFFIX_CHAR.
97525
97526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97527
97528         * lib/xstrtol.c (strtoimax): New decl.
97529
97530 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97531
97532         * lib/xgetcwd.c: Don't include pathmax.h.
97533         Include stdlib.h and unistd.h if available.
97534         Include xalloc.h.
97535         (xmalloc, xstrdup, free): Remove decls.
97536         (xgetcwd): Don't assume sizes fit in unsigned.
97537         Check for overflow when computing sizes.
97538         Simplify reallocation code.
97539
97540 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97541
97542         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97543         a directory's st_size can have an arbitrary value, so the old
97544         usage could waste an arbitrary amount of memory.  All uses
97545         changed.
97546         * lib/savedir.h: Update prototype.
97547
97548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97549
97550         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97551
97552         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97553         old strtoimax.c.
97554
97555         Also, make the following further changes to make this file's
97556         configuration more similar to that of strtol.c:
97557         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97558         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97559         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97560         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97561         changed to signed values.
97562
97563         And make the following changes as well:
97564         Fix copyright notice, as 1999 was missing.
97565         (verify): New macro.
97566         (strtoimax): Check sizes at compile-time, not run-time.
97567         Prefer strtol to strtoll if both work.
97568         (main): Remove; it was not that useful and was a pain to maintain.
97569
97570         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97571
97572 2001-08-31  Jim Meyering  <meyering@lucent.com>
97573
97574         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97575         Use an initial, malloc'd, buffer of length 128 rather than
97576         a statically allocated one of length 1024.
97577
97578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97579
97580         Simplify code, partly by assuming autoconf 2.52 semantics.
97581
97582         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97583
97584         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97585         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97586         All uses removed.
97587         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97588         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97589         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97590         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97591         jm_AC_HEADER_INTTYPES_H.
97592         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97593
97594         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97595
97596         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97597         Quote first arg of AC_DEFUN.
97598         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97599         since they are needed to parse the include file even if we need
97600         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97601         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97602         but with opposite signedness.
97603
97604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97605
97606         Merge 'exclude' changes from tar 1.13.22.
97607         This fixes one or two unlikely storage allocation overflow bugs,
97608         but doesn't change user-visible behavior otherwise.
97609
97610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97611
97612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97613         (jm_PREREQ_EXCLUDE): New macro.
97614
97615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97616
97617         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97618         tm to be declared.
97619
97620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97621
97622         * lib/hash.c: Remove '2001' from copyright notice.
97623
97624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97625
97626         * lib/full-write.h: New file.
97627         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97628         * lib/full-write.c: Correct credits, as cccp.c no longer
97629         exists and anyway it was so heavily changed from the old cccp
97630         code as to be unrecognizable.  Include full-write.h.
97631         (full_write): Return size_t, with short writes meaning failure.
97632         All callers changed.  This fixes a bug with large buffers
97633         on 64-bit hosts.
97634         * lib/utime.c: Include full-write.h.
97635
97636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97637
97638         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97639         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97640         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97641         Include if available.
97642         (<xalloc.h>): Include
97643         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97644         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97645         collide with FNM macros.
97646         (struct patopts): New struct.
97647         (struct exclude): Use it, as exclude patterns now come with options.
97648         (new_exclude): Support above changes.
97649         (new_exclude, add_exclude_file):
97650         Initial size must now be a power of two to simplify overflow checking.
97651         (free_exclude, fnmatch_no_wildcards): New function.
97652         (excluded_filename): No longer requires options arg, as the options
97653         are determined by add_exclude.  Now returns bool, not int.
97654         (excluded_filename, add_exclude):
97655         Add support for the fancy new exclusion options.
97656         (add_exclude, add_exclude_file): Now takes int options arg.
97657         Check for arithmetic overflow when computing sizes.
97658         (add_exclude_file): xrealloc might modify errno, so don't
97659         realloc until after errno might be used.
97660
97661         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97662         New macros.
97663         (free_exclude): New decl.
97664         (add_exclude, add_exclude_file): Now takes int options arg.
97665         (excluded_filename): No longer requires options arg, as the options
97666         are determined by add_exclude.  Now returns bool, not int.
97667
97668 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97669
97670         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97671
97672 2001-08-27  Jim Meyering  <meyering@lucent.com>
97673
97674         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97675
97676         * lib/version-etc.c (N_): Remove definition.
97677         Revert most of last change.
97678         Instead, simply don't mark the `Copyright...' string for translation.
97679         Based on advice from Paul Eggert.
97680
97681         * lib/strtoxmax.c: Tweak comment.
97682
97683 2001-08-26  Jim Meyering  <meyering@lucent.com>
97684
97685         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97686
97687         * m4/xstrtoimax.m4: New file.
97688         * m4/xstrtoumax.m4: Add comments explaining why we
97689         AC_REPLACE_FUNCS(strtol).
97690
97691 2001-08-26  Jim Meyering  <meyering@lucent.com>
97692
97693         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97694         of copyright with `%s' so translators don't get an untranslated
97695         message in 2002.
97696         (COPYRIGHT_YEAR): Define.
97697         (version_etc): Use fprintf rather than fputs.
97698         Suggestion from Ulrich Drepper.
97699
97700         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97701
97702         * lib/strtoll.c: New file, from GNU libc.
97703         * lib/xstrtoimax.c: New file.
97704
97705         * lib/xstrtol.h: Add xstrtoimax.
97706         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97707         * lib/strtoimax.c: New file.  Likewise, but first define
97708         STRTOUXMAX_SIGNED.
97709
97710         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97711         ...
97712         * lib/strtoxmax.c: ... then renamed to this.
97713
97714 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97715
97716         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97717         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97718         (jm_AC_TYPE_INTMAX_T): New macro.
97719         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97720
97721         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97722
97723         * m4/longlong.m4: Renamed from ulonglong.m4.
97724         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97725         * m4/uintmax_t.m4: Removed.
97726
97727 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97728
97729         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97730         Port to Solaris 8, where 'sed' requires a space after the 'r'
97731         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97732         Redirect output to $tmp just once.
97733
97734 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97735
97736         * lib/addext.c (<errno.h>): Include.
97737         (errno): Declare if not defined.
97738         (addext): Work correctly when pathconf returns -1 and leaves
97739         errno alone because there is no limit.  Also, work even if
97740         pathconf returns a value greater than SIZE_MAX.
97741
97742 2001-08-12  Jim Meyering  <meyering@lucent.com>
97743
97744         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97745         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97746         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97747         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97748         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97749         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97750         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97751         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97752         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97753         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97754         utime.m4, utimes.m4, xstrtoumax.m4:
97755         Quote the first argument in each use of AC_DEFUN.
97756
97757 2001-08-12  Jim Meyering  <meyering@lucent.com>
97758
97759         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97760         Simply `return getcwd (NULL, 0);'.
97761         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97762         Use 1300 as initial value for length, not PATH_MAX.
97763
97764         * lib/pathmax.h: Clean up cpp syntax.
97765
97766 2001-08-12  Jim Meyering  <meyering@lucent.com>
97767
97768         * lib/gettimeofday.c: New file.
97769         * lib/gtod.h: New file.
97770         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97771
97772 2001-08-05  Jim Meyering  <meyering@lucent.com>
97773
97774         * m4/jm-macros.m4: Require autoconf-2.52.
97775
97776 2001-08-04  Jim Meyering  <meyering@lucent.com>
97777
97778         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97779         stmt, to get in sync with glibc.
97780
97781 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97782
97783         The following changes are from gettext 0.10.39 as maintained by
97784         Bruno Haible.
97785
97786         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97787         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97788         with inverted sense.  All uses changed.
97789
97790         * lib/mbswidth.c: Don't include <limits.h>.
97791         Include <stdlib.h> and <string.h> unconditionally.
97792         (iswcntrl, mbsinit, ISCNTRL): New macros.
97793         (mbsnwidth): Use K&R style function declarations.
97794         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97795         can optimize it when MB_CUR_MAX == 1.
97796         The width of control characters is zero, not 1.
97797
97798 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97799
97800         The following changes are from gettext 0.10.39 as maintained by
97801         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97802
97803         * m4/codeset.m4: Upgrade to serial AM1.
97804         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97805         all uses changed.  Quote first arg of AC_DEFUN.
97806         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97807
97808         * m4/iconv.m4: Upgrade to serial AM2.
97809         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97810         Add --with-libconv-prefix.
97811         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97812         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97813         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97814         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97815         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97816
97817         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97818         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97819         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97820         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97821         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97822         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97823         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97824         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97826
97827         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97828         string.h any more.
97829
97830         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97831         not the default value.
97832
97833         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97834         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97835         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97836         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97837         Also check for iswcntrl, used for wcwidth fallback.
97838         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97839         to Autoconf 2.13.
97840
97841 2001-08-03  Jim Meyering  <meyering@lucent.com>
97842
97843         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97844         as it was in the original.  Reported by Paul Eggert.
97845
97846 2001-07-16  Jim Meyering  <meyering@lucent.com>
97847
97848         * m4/gettimeofday.m4: New file.
97849         Prompted by a report from Bernhard Baehr.
97850
97851 2001-07-15  Jim Meyering  <meyering@lucent.com>
97852
97853         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97854         stuff. Now it's in ../Makefile.cfg.
97855
97856 2001-07-15  Jim Meyering  <meyering@lucent.com>
97857
97858         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97859         (BUILT_SOURCES): Add unlocked-io.h.
97860         (io_functions): Define.
97861         (unlocked-io.h): New rule.
97862         (DISTCLEANFILES): Add unlocked-io.h.
97863         (all-local): Depend on unlocked-io.h, to ensure it is created.
97864
97865         * lib/unlocked-io.hin: New file
97866
97867         * lib/regex.c: Update from glibc.
97868
97869 2001-07-05  Jim Meyering  <meyering@lucent.com>
97870
97871         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97872         recommendation.
97873         (libfetish_a_SOURCES): Put all .h files here instead.
97874         Remove a thus-exposed (better checks in automake) duplicate and
97875         two unnecessary .h files.
97876
97877 2001-07-04  Jim Meyering  <meyering@lucent.com>
97878
97879         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97880         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97881         distcheck failure.
97882
97883 2001-07-02  Jim Meyering  <meyering@lucent.com>
97884
97885         The following changes were prompted by suggestions from Bruno Haible.
97886
97887         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97888         is now generated.
97889         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97890         definition of EXTRA_DIST.
97891         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97892         ensure that the generated file is created/updated whenever the list
97893         of $(unlocked_functions) is changed.
97894         (jm-glibc-io.m4): New rule.
97895         (unlocked-io.h): New rule -- currently unused.
97896
97897 2001-06-24  Jim Meyering  <meyering@lucent.com>
97898
97899         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97900         unmatched right bracket, rather than kludging it with an extra,
97901         falsely-matching quote in a comment.  Patch by Akim Demaille.
97902
97903 2001-06-11  Jim Meyering  <meyering@lucent.com>
97904
97905         * lib/regex.c: Update from GNU libc.
97906
97907 2001-05-27  Jim Meyering  <meyering@lucent.com>
97908
97909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97910         Check for ut_type in struct utmp.
97911
97912 2001-05-27  Jim Meyering  <meyering@lucent.com>
97913
97914         * lib/readutmp.h (UT_TYPE): Define.
97915
97916 2001-05-24  Jim Meyering  <meyering@lucent.com>
97917
97918         * lib/argmatch.c: Include "quote.h".
97919         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97920         quote function.  Reported by Göran Uddeborg.
97921
97922 2001-05-22  Jim Meyering  <meyering@lucent.com>
97923
97924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97925         now that we use the package-supplied version unconditionally.
97926         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97927
97928 2001-05-21  Jim Meyering  <meyering@lucent.com>
97929
97930         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97931         shell syntax errors.
97932
97933 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97934
97935         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97936
97937 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97938
97939         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97940         Don't bother to check library strftime, since
97941         we'll be using our own my_strftime function anyway.
97942         Define my_strftime instead of strftime.
97943
97944 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97945
97946         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97947         which is not yet declared.
97948
97949 2001-05-15  Jim Meyering  <meyering@lucent.com>
97950
97951         * m4/regex.m4: Use proper quoting so brackets appear in the test
97952         program.
97953         Reported by, and with help from, Bruno Haible.
97954
97955 2001-05-13  Jim Meyering  <meyering@lucent.com>
97956
97957         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97958         undefined.
97959
97960 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97961
97962         dirname code cleanup.  base_name now behaves more compatibly
97963         with POSIX basename when given file names that have trailing
97964         slashes, and similarly for dir_name.  Add new primitives
97965         base_len and dir_len.  Put the directory-name-related decls
97966         into dirname.h.
97967
97968         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97969         * lib/backupfile.c (base_name): Likewise.
97970         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97971         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97972         * lib/makepath.c (strip_trailing_slashes): Likewise.
97973         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97974         ISSLASH): Likewise.
97975         * lib/rename.c (strip_trailing_slashes): Likewise.
97976         * lib/same.c (base_name): Likewise.
97977         * lib/stripslash.c (ISSLASH): Likewise.
97978
97979         * lib/addext.c: Include <dirname.h> after size_t is defined.
97980         * lib/backupfile.c: Likewise.
97981
97982         * lib/addext.c (addext): Use base_len to trim redundant
97983         trailing slashes instead of doing it ourselves.
97984         But do not trim the last slash if it is not redundant.
97985
97986         * lib/backupfile.c (find_backup_file_name,
97987         max_backup_version): Use base_len instead of rolling it ourselves.
97988         Handle the case of "" and (on DOS) "C:" correctly.
97989
97990         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97991         needed. Include <string.h>, <dirname.h>.
97992         (base_name): Allow file names ending in slashes, other than names
97993         that are all slashes.  In this case, return the basename followed
97994         by the slashes.  This is more general, and can be used in places
97995         where the original base_name purposely had an assertion failure.
97996         (base_len): New function.
97997
97998         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97999         Do not include <assert.h>; no longer needed.
98000         Include xalloc.h.
98001         (memrchr): Remove decl.
98002         (dir_name_r): Remove.
98003         (dir_len): Renamed from dirlen.  All callers changed.
98004         Rewrite in terms of base_name, for simplicity and consistency.
98005         (dir_name): Never return NULL.  All callers changed.
98006         Do not include <stdlib.h> in test program; no longer needed.
98007         return 0; is fine for test program.
98008
98009         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98010         New macros.
98011         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98012
98013         * lib/path-concat.c (path_concat): Use base_len to compute
98014         base length, not strlen; this means we cannot rely on memcpy
98015         to null-terminate.
98016
98017         * lib/same.c (STREQ): Remove.
98018         (same_name): Handle the case where the basename ends in trailing '/'.
98019
98020         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98021         a slash was stripped.  Do not strip the last slash after a
98022         file system prefix.
98023
98024 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98025
98026         * lib/Makefile.am (libfetish_a_SOURCES):
98027         Add strftime.c, since we now compile it on all hosts.
98028
98029         * lib/strftime.c (my_strftime):
98030         Define to nstrftime if emacs, but only if my_strftime is not defined.
98031         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98032         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98033         Add one more extra argument: a nanoseconds value.
98034         All uses changed.
98035         (ns): New macro.
98036         (my_strftime function): Add %N format.
98037         (emacs_strftimeu): Renamed from emacs_strftime,
98038         with extra ut argument.
98039
98040 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98041
98042         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98043
98044 2001-04-21  Jim Meyering  <meyering@lucent.com>
98045
98046         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98047         doesn't interfere.
98048
98049 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98050
98051         * m4/ftruncate.m4: Check for chsize.
98052         Link with ftruncate.o unconditionally if ftruncate is missing.
98053         This was required when cross-compiling to i586-mingw32msvc.
98054
98055 2001-04-08  Jim Meyering  <meyering@lucent.com>
98056
98057         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98058         recomputed; that's necessary when the offset spans a DST transition.
98059         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98060
98061 2001-04-02  Jim Meyering  <meyering@lucent.com>
98062
98063         * lib/regex.h, regex.c: Update from GNU libc.
98064
98065 2001-03-24  Jim Meyering  <meyering@lucent.com>
98066
98067         * m4/jm-macros.m4: Require autoconf-2.49d.
98068
98069 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98070
98071         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98072
98073 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98074
98075         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98076
98077 2001-03-17  Jim Meyering  <meyering@lucent.com>
98078
98079         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98080         now that the version in autoconf is equivalent.
98081         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98082
98083         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98084         Suggestion from Akim Demaille.
98085
98086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98087         (jm_PREREQ_TEMPNAME): New function.
98088
98089 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98090
98091         * lib/tempname.c (uint64_t): Define to uintmax_t if
98092         not defined, and if UINT64_MAX is not defined.
98093         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98094         Reported by John David Anglin.
98095
98096 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98097
98098         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98099         resolve alias if codeset is empty.
98100         * lib/config.charset (BeOS): Use wildcard syntax.
98101
98102 2001-03-13  Jim Meyering  <meyering@lucent.com>
98103
98104         * lib/path-concat.c (path_concat)
98105         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98106         concatenating e.g., `C:' and `foo'.
98107         From Bruno Haible.
98108
98109 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98110
98111         * lib/localcharset.c (locale_charset): Don't use
98112         setlocale(LC_CTYPE,NULL). Don't return NULL.
98113         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98114
98115 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98116
98117         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98118         support for DOS/DJGPP.
98119
98120 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98121
98122         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98123         lacks mkstemp.  Compile our own tempname.c if we compile our own
98124         mkstemp.c, as mkstemp relies on tempname.
98125
98126 2001-03-01  Jim Meyering  <meyering@lucent.com>
98127
98128         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98129         AH_VERBATIM really does output its argument verbatim.
98130
98131 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98132
98133         * lib/Makefile.am (libfetish_a_SOURCES):
98134         Add dup-safer.c, fopen-safer.c.
98135         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98136
98137         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98138         * lib/unistd-safer.h: New files.
98139
98140 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98141
98142         The mkstemp replacement is taken from glibc 2.2.2, with some
98143         portability fixes for use outside glibc, as follows:
98144
98145         * lib/tempname.c (struct_stat64): New macro.
98146         (direxists, __gen_tempname): Use it.
98147         This avoids a portability problem with Solaris 8.
98148
98149         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98150         (<stddef.h>, <stdint.h>, <string.h>):
98151         Include only if STDC_HEADERS || _LIBC.
98152         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98153         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98154         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98155         (__set_errno): Define this macro if <errno.h> doesn't.
98156         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98157         Define these macros if <stdio.h> doesn't.
98158         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98159         Define these macros if <sys/stat.h>
98160         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98161         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98162         __xstat64): Define if not _LIBC.
98163         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98164         (__gen_tempname): Invoke gettimeofday only if
98165         HAVE_GETTIMEOFDAY || _LIBC;
98166         otherwise, fall back on plain "time".
98167         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98168
98169         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98170
98171         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98172
98173 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98174
98175         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98176
98177 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98178
98179         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98181         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98183
98184 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98185
98186         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98187         Remove workaround macros for hosts that have mbrtowc but not
98188         mbstate_t, as we now insist on proper declarations for both
98189         before using mbrtowc.
98190
98191 2001-02-17  Jim Meyering  <meyering@lucent.com>
98192
98193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98194         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98195         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98196         UnixWare 7.1.1.
98197
98198         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98199         rather than AC_CACHE_VAL.
98200
98201 2001-02-17  Jim Meyering  <meyering@lucent.com>
98202
98203         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98204         around included file name.
98205
98206         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98207
98208         * lib/strftime.c: Update from GNU libc (the only changes were to
98209         comments).
98210
98211 2001-02-17  Jim Meyering  <meyering@lucent.com>
98212
98213         * lib/regex.c: Update from libc.
98214
98215 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98216
98217         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98218         clash.
98219
98220 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98221
98222         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98223         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98224         Reported by Mark Hounschell via Paul Eggert.
98225
98226 2001-02-07  Jim Meyering  <meyering@lucent.com>
98227
98228         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98229
98230 2001-02-05  Jim Meyering  <meyering@lucent.com>
98231
98232         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98233         it includes the patch required for `large file' support with at least
98234         HP-UX's 10.20 /bin/cc.
98235
98236 2001-02-03  Jim Meyering  <meyering@lucent.com>
98237
98238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98239         AS_IF, now that it works once again (mysteriously).
98240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98241
98242 2001-01-30  Jim Meyering  <meyering@lucent.com>
98243
98244         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98245         * m4/chown.m4: Rename conftestchown to conftest.chown.
98246         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98247         s/conftestdir2/conftest.d2/.
98248         * m4/utimes.m4: s/conftestdata/conftest.data/
98249         Inspired by Pavel Roskin's change in autoconf.
98250
98251 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98252
98253         * lib/config.charset: Update for FreeBSD 4.2.
98254
98255 2001-01-27  Jim Meyering  <meyering@lucent.com>
98256
98257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98258         a use of AS_IF.
98259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98260
98261 2001-01-26  Jim Meyering  <meyering@lucent.com>
98262
98263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98264         quotearg.c includes it.
98265
98266 2001-01-26  Jim Meyering  <meyering@lucent.com>
98267
98268         * lib/quotearg.c: Include stddef.h.
98269         * lib/quote.c: Include stddef.h.
98270         Reported by Axel Kittenberger.
98271
98272         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98273         line in double quotes so that it evokes a better diagnostic.
98274         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98275         Reported by Axel Kittenberger.
98276
98277 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98278
98279         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98280         as if it was a `charset'.
98281
98282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98283
98284         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98285         has const.
98286
98287 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98288
98289         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98290         to avoid a warning.  Add back 'const' to inptr.
98291
98292 2001-01-20  Jim Meyering  <meyering@lucent.com>
98293
98294         Be sure that headers are checked before used in code compiled
98295         for the type checks.
98296         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98297         In place of that, invoke jm_CHECK_ALL_TYPES.
98298         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98299         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98300         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98301         The check for ssize_t was mistakenly run before the test for unistd.h.
98302
98303         The configure-time check for stdbool.h was missing.
98304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98305         (jm_PREREQ_HASH): New function.
98306
98307 2001-01-17  Jim Meyering  <meyering@lucent.com>
98308
98309         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98310         for autoconf-2.49c.
98311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98312
98313 2001-01-16  Jim Meyering  <meyering@lucent.com>
98314
98315         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98316         From Bruno Haible.
98317
98318 2001-01-14  Jim Meyering  <meyering@lucent.com>
98319
98320         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98321         foo and bar.  Create conftestdir/ in the script, not in the C code.
98322         Remove directories in the script, not in the C code.
98323         Remove conftestdir{,2} before trying to create the directory.
98324         Make the entire configure script fail if the mkdir fails.
98325
98326 2001-01-14  Jim Meyering  <meyering@lucent.com>
98327
98328         * lib/rename.c: New file.  From Volker Borchert.
98329         Include stdlib.h, string.h or strings.h, and xalloc.h.
98330         Use strip_trailing_slashes rather than open-coding it.
98331
98332 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98333
98334         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98335
98336 2001-01-03  Jim Meyering  <meyering@lucent.com>
98337
98338         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98339         of local `inptr' to avoid warning with some system declarations of
98340         iconv.
98341
98342 2001-01-02  Volker Borchert  <bt@teknon.de>
98343
98344         * m4/rename.m4: New file.
98345         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98346
98347 2001-01-01  Jim Meyering  <meyering@lucent.com>
98348
98349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98350         even on systems with utmpx.h.  It's necessary for the declaration of
98351         utmp's ut_user member.  Reported by Andreas Jaeger.
98352
98353         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98354         available. They are required for the declarations of getgrgid and
98355         getpwuid resp.
98356         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98357         Reported by Andreas Jaeger.
98358
98359 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98360
98361         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98362         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98363         so `make install' also works in VPATH builds.
98364
98365 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98366
98367         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98368         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98369         can be used in subdirectories.
98370
98371 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98372
98373         * lib/modechange.c: Do not assume that mode_t uses the
98374         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98375         the other-execute bit of FOO even if S_IXOTH != 1.
98376
98377         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98378         WOTH, XOTH, ALLM): New macros.
98379         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98380          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98381         Use them.
98382         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98383         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98384         (mode_compile):
98385         No need to use uintmax_t; unsigned long is long enough.
98386         Don't bother to get suffix since we don't use it.
98387
98388 2000-12-26  Jim Meyering  <meyering@lucent.com>
98389
98390         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98391         better with autoheader.
98392
98393 2000-12-24  Jim Meyering  <meyering@lucent.com>
98394
98395         * lib/hash.c (is_prime): Return explicit boolean values.
98396         (hash_get_first): Return NULL to appease Irix5.6's 89.
98397         Reported by Nelson Beebe.
98398
98399 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98400
98401         * lib/localcharset.c (locale_charset): Add support for Win32.
98402
98403 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98404
98405         * lib/physmem.h, lib/physmem.c: New files.
98406
98407         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98408         (noinst_HEADERS): Add physmem.h.
98409
98410         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98411         't' for compatibility with Solaris 8 sort.
98412
98413 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98414
98415         * lib/config.charset: Add support for BeOS.
98416
98417 2000-12-17  Jim Meyering  <meyering@lucent.com>
98418
98419         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98420         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98421
98422 2000-12-16  Jim Meyering  <meyering@lucent.com>
98423
98424         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98425         N and M) would have treated it like `chown N:N FILE'.
98426
98427         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98428
98429 2000-12-16  Jim Meyering  <meyering@lucent.com>
98430
98431         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98432         SHELLS_FILE to a file name that's useful on djgpp systems.
98433         Include stdlib.h.
98434         (ADDITIONAL_DEFAULT_SHELLS): Define.
98435         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98436         Based mostly on a patch from Prashant TR.
98437
98438 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98439
98440         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98441         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98442         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98443
98444 2000-12-08  Andreas Schwab  <schwab@suse.de>
98445
98446         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98447         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98448
98449 2000-12-07  Jim Meyering  <meyering@lucent.com>
98450
98451         * lib/stripslash.c (ISSLASH): Define.
98452         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98453         `/'.
98454         From Prashant TR.
98455
98456         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98457         (dir_name_r): Declare this function as static.
98458         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98459         manifest itself on a name containing a mix of slashes and
98460         backslashes.
98461         Make this function work with names starting with a DOS-style
98462         drive letter and colon prefix.
98463         (dir_name): Append `.' if necessary.
98464         Based mostly on patches from Prashant TR and Eli Zaretskii.
98465
98466         * lib/dirname.h (dir_name_r): Remove prototype.
98467
98468 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98469
98470         * m4/off_t-format.m4: Remove this file.
98471         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98472
98473 2000-12-06  Jim Meyering  <meyering@lucent.com>
98474
98475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98476         replacement strtoull, we may well need the replacement strtoul, too.
98477         Check for declarations of strtoul and strtoull.
98478         Check for strtol.  Mainly as a cue to cause automake to include
98479         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98480         Check for limits.h -- strtol.c needs it.
98481
98482 2000-12-05  Jim Meyering  <meyering@lucent.com>
98483
98484         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98485
98486 2000-12-04  Jim Meyering  <meyering@lucent.com>
98487
98488         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98489         Also include memory.h, stdlib.h, unistd.h if appropriate.
98490         Reported by Andreas Jaeger (conflicting declaration of malloc).
98491
98492 2000-12-02  Jim Meyering  <meyering@lucent.com>
98493
98494         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98495         * m4/jm-macros.m4 (jm_MACROS): require it.
98496
98497 2000-12-02  Jim Meyering  <meyering@lucent.com>
98498
98499         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98500
98501 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98502
98503         * lib/memrchr.c: Include <config.h> before any system include file.
98504
98505 2000-11-30  Jim Meyering  <meyering@lucent.com>
98506
98507         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98508
98509 2000-11-30  Jim Meyering  <meyering@lucent.com>
98510
98511         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98512
98513 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98514
98515         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98516
98517 2000-11-26  Jim Meyering  <meyering@lucent.com>
98518
98519         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98520
98521 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98522
98523         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98524         size of (size_t) -1; it's not portable.
98525
98526 2000-11-17  Jim Meyering  <meyering@lucent.com>
98527
98528         * lib/strstr.c: Update from GNU libc.
98529
98530 2000-11-17  Akim Demaille  <akim@epita.fr>
98531
98532         * lib/obstack.h: Formatting changes.
98533         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98534         prevent type checking.
98535         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98536         cast the value to (void *): assigning a `foo *' to a `void *'
98537         variable is valid.
98538         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98539
98540 2000-11-16  Jim Meyering  <meyering@lucent.com>
98541
98542         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98543
98544 2000-11-11  Jim Meyering  <meyering@lucent.com>
98545
98546         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98547
98548 2000-11-10  Jim Meyering  <meyering@lucent.com>
98549
98550         * lib/obstack.h: Update from GNU libc.
98551         * lib/obstack.c: Likewise.
98552
98553 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98554
98555         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98556
98557 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98558
98559         * lib/getusershell.c (setusershell): Use rewind rather than
98560         fseek/fseeko, to avoid configuration hassles with fseeko.
98561         Don't bother opening SHELLS_FILE if shellstream is NULL;
98562         it's not necessary.
98563
98564 2000-11-05  Jim Meyering  <meyering@lucent.com>
98565
98566         * lib/makepath.h (make_dir): Declare.
98567         * lib/makepath.c (make_dir): Remove `static' attribute.
98568         Tweak a comment.
98569
98570 2000-11-04  Jim Meyering  <meyering@lucent.com>
98571
98572         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98573
98574 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98575
98576         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98577         last one in a bucket, advance to the next bucket.
98578
98579 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98580
98581         * lib/fnmatch.c: Do not comment out all the code if we are using
98582         the GNU C library, because in some cases we are replacing buggy
98583         code in the GNU C library itself.
98584
98585 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98586
98587         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98588         (regex_compile): Catch bogus \(\1\).
98589
98590 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98591
98592         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98593         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98594         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98595
98596 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98597
98598         * lib/error.h, getline.h, modechange.h:
98599         Remove "2000" from Copyright line, as the file hasn't been
98600         changed this year other than in the copyright notice.
98601
98602         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98603         was changed this year.
98604
98605 2000-10-29  Jim Meyering  <meyering@lucent.com>
98606
98607         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98608         renaming.
98609         * m4/ls-mntd-fs.m4: Likewise
98610
98611 2000-10-29  Jim Meyering  <meyering@lucent.com>
98612
98613         * lib/xstat.in: Fix grammar in comment.
98614
98615 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98616
98617         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98618         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98619         doesn't define __restrict_arr.
98620
98621 2000-10-28  Jim Meyering  <meyering@lucent.com>
98622
98623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98624         (jm_PREREQ_MEMCHR): New function.
98625
98626 2000-10-28  Jim Meyering  <meyering@lucent.com>
98627
98628         * lib/memchr.c: Update from libc.
98629         Adjust for portability:
98630         [HAVE_STDLIB_H]: Include stdlib.h.
98631         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98632         Undef __memchr, too.
98633         [!weak_alias]: Define __memchr to memchr.
98634
98635         * lib/regex.c: Update from libc.
98636         * lib/regex.h: Likewise.
98637         * lib/getopt1.c: Likewise.
98638         * lib/memcmp.c: Likewise.
98639
98640         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98641         Avoid using fseek, when possible -- it's broken by design.
98642         Patch by Ulrich Drepper.
98643
98644 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98645
98646         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98647         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98648         Giving in to popular pressure to shut up the compiler with casts.
98649
98650 2000-10-26  Jim Meyering  <meyering@lucent.com>
98651
98652         * lib/strftime.c: Update from libc.
98653
98654 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98655
98656         * regex.c: More `unsigned char' -> `re_char' changes.
98657         Also change several `int' into `re_wchar_t'.
98658         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98659         (PUSH_FAILURE_POINTER): Don't cast any more.
98660         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98661         We want GCC to complain, since this piece of code makes
98662         re_match non-reentrant, which *should* be fixed.
98663         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98664         (EXTEND_BUFFER): Use RETALLOC.
98665         (SET_LIST_BIT): Don't cast.
98666         (re_wchar_t): New type.
98667         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98668         that those two functions will always properly return.
98669         (IMMEDIATE_QUIT_CHECK): Cast to void.
98670         (analyse_first): Use recursion rather than an explicit stack.
98671         (re_compile_fastmap): Can't fail anymore.
98672         (re_search_2): Don't check re_compile_fastmap for failure.
98673         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98674         Now also sets the new value (passed in a new argument).
98675         (re_match_2_internal): Use it.
98676         Also, use a new var `reg' of type size_t when looping through regs
98677         rather than reuse the inappropriate `mcnt'.
98678
98679 2000-10-25  Jim Meyering  <meyering@lucent.com>
98680
98681         * lib/obstack.c: Update from libc.
98682
98683 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98684
98685         * regex.c (regex_compile): Change the way of handling a range from
98686         a char less than 256 to a char not less than 256.
98687
98688 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98689
98690         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98691         NT-Emacs only.
98692         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98693         so that re_search functions only quit when callers expect them to.
98694
98695 2000-10-23  Jim Meyering  <meyering@lucent.com>
98696
98697         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98698         wrong.  That set_locale call must not have any side effects.
98699         From Paul Eggert.
98700
98701 2000-10-22  Jim Meyering  <meyering@lucent.com>
98702
98703         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98704         [CYCLIC]: Remove now-unused definition.
98705
98706         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98707         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98708         Suggestion from Ulrich Drepper.
98709
98710 2000-10-21  Jim Meyering  <meyering@lucent.com>
98711
98712         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98713         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98715
98716 2000-10-21  Jim Meyering  <meyering@lucent.com>
98717
98718         * lib/dirname.c (memrchr): Declare if necessary.
98719         (dir_name): Remove the restriction that there be no
98720         trailing slashes.  Now, this code skips past them, effectively
98721         ignoring them.
98722         [TEST_DIRNAME] (main): New unit tests.
98723
98724         * lib/memrchr.c: New file from GNU libc.
98725         Undef __memrchr, too.
98726         [!weak_alias]: Define __memrchr to memrchr.
98727         Guard weak_alias use with `#ifdef weak_alias'.
98728
98729 2000-10-21  Jim Meyering  <meyering@lucent.com>
98730
98731         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98732         (dir_name): Use dir_name_r.
98733         * lib/dirname.h (dir_name_r): Declare it.
98734
98735 2000-10-17  Jim Meyering  <meyering@lucent.com>
98736
98737         * lib/quote.h (PARAMS): Define and use.
98738         Reported by Akim Demaille.
98739
98740         * lib/getopt.c: Update from libc.
98741
98742 2000-10-16  Jim Meyering  <meyering@lucent.com>
98743
98744         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98745         setlocale.
98746         From Jan Fedak.
98747
98748 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98749
98750         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98751
98752 2000-09-25  Jim Meyering  <meyering@lucent.com>
98753
98754         * lib/md5.h (rol): Define (from GnuPG).
98755
98756         * lib/sha.c: Give credit (GnuPG) where due.
98757         (M): Use rol rather than open-coding it.
98758         Add a FIXME comment.
98759
98760 2000-09-21  Jim Meyering  <meyering@lucent.com>
98761
98762         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98763         Reported by Michael Stone.
98764
98765 2000-09-20  Jim Meyering  <meyering@lucent.com>
98766
98767         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98768         (noinst_HEADERS): Add sha.h.
98769         Based on code from Scott G. Miller and from GnuPG.
98770
98771 2000-09-18  Jim Meyering  <meyering@lucent.com>
98772
98773         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98774         LIBS. Otherwise, everyone ends up linking with -lelf for some
98775         configurations.
98776         Reported by Mike Stone.
98777
98778 2000-09-15  Jim Meyering  <meyering@lucent.com>
98779
98780         * lib/regex.c: Update from libc.
98781
98782 2000-09-10  Jim Meyering  <meyering@lucent.com>
98783
98784         * lib/getopt.c (_getopt_internal): Update from glibc.
98785
98786 2000-09-09  Jim Meyering  <meyering@lucent.com>
98787
98788         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98789         think it should be used as a general replacement for isascii.
98790         * lib/fnmatch.c: Likewise.
98791         * lib/mbswidth.c: Likewise
98792         * lib/regex.c: Likewise.
98793
98794         Don't use atoi.
98795         * lib/userspec.c: Include sys/param.h and limits.h.
98796         Include xstrtol.h.
98797         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98798         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98799         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98800         UID, GID.  Check range.
98801
98802 2000-09-06  Jim Meyering  <meyering@lucent.com>
98803
98804         * lib/getopt.c (_getopt_internal): Update from glibc.
98805
98806 2000-08-30  Jim Meyering  <meyering@lucent.com>
98807
98808         * lib/strftime.c: Merge in changes from GNU libc.
98809
98810 2000-08-26  Jim Meyering  <meyering@lucent.com>
98811
98812         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98813         * m4/fpending.m4: New file.
98814
98815 2000-08-26  Jim Meyering  <meyering@lucent.com>
98816
98817         * lib/closeout.c: Include "__fpending.h".
98818         (close_stdout_status): Return right away if there's nothing to flush.
98819
98820         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98821         * lib/__fpending.c: New file.
98822         * lib/__fpending.h: New file.
98823
98824 2000-08-20  Jim Meyering  <meyering@lucent.com>
98825
98826         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98827         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98828         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98829
98830 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98831
98832         Improve fileutils installation on systems where running
98833         programs (like install) can't be unlinked.
98834         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98835         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98836
98837 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98838
98839         Standardize on "memory exhausted" instead of "Memory exhausted"
98840         or "virtual memory exhausted".
98841         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98842         "virtual memory exhausted".
98843         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98844         our own message.
98845         * lib/userspec.c (parse_user_spec): Likewise.
98846         * lib/bumpalloc.h: comment fix
98847         * lib/same.c, userspec.c: Include xalloc.h.
98848
98849         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98850         not char *const and pointing to a constant array.
98851         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98852         (xrealloc): Comment fix.
98853
98854         * lib/userspec.c (parse_user_spec):
98855         Don't translate a message until just before returning,
98856         to avoid unnecessary translation.
98857
98858 2000-08-07  Jim Meyering  <meyering@lucent.com>
98859
98860         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98861         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98862         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98863         getgroups.c, gethostname.c, getopt.h, group-member.c,
98864         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98865         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98866         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98867         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98868         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98869         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98870         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98871         yesno.c: Back out Copyright date changes for each file with no change
98872         this year.  This eases coordination with other programs using the same
98873         source code modules.  From Paul Eggert.
98874
98875 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98876
98877         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98878         not char, for compatibility with glibc 2.1.3 strftime.c.
98879
98880 2000-08-03  Greg McGary  <greg@mcgary.org>
98881
98882         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98883         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98884         (EXTEND_BUFFER): Use them.
98885
98886 2000-08-01  Jim Meyering  <meyering@lucent.com>
98887
98888         * lib/dirname.c (ISSLASH): Define.
98889         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98890         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98891         both `\' and `/' may be use as path separators.
98892         Based on a patch from Prashant TR.
98893
98894 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98895
98896         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98897         slot vector a constant, since it might get modified.
98898
98899 2000-07-31  Jim Meyering  <meyering@lucent.com>
98900
98901         * lib/xmalloc.c: Use `virtual memory exhausted', not
98902         `Memory exhausted'.
98903         * lib/obstack.c (print_and_abort): Likewise.
98904
98905 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98906
98907         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98908         buffer, so that the caller can always quote one small
98909         component of a "memory exhausted" message in slot 0.
98910         From a suggestion by Jim Meyering.
98911
98912 2000-07-30  Jim Meyering  <meyering@lucent.com>
98913
98914         * lib/makepath.c (make_path): Quote the other instance, too.
98915
98916         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98917         (STATIC_BUF_SIZE): Define.
98918         (quotearg_n_options): Use only statically allocated storage when
98919         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98920         than STATIC_BUF_SIZE.
98921
98922 2000-07-29  Jim Meyering  <meyering@lucent.com>
98923
98924         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98925         * lib/dirname.c (dir_name): Likewise.
98926
98927         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98928         `/'.
98929
98930         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98931         (dir_name): Assert that there are no trailing slashes.
98932
98933 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98934
98935         * lib/mbswidth.h (mbswidth): Add a flags argument.
98936         (mbswidth): New declaration.
98937         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98938         * lib/mbswidth.c (mbswidth): Add a flags argument.
98939         (mbsnwidth): New function.
98940
98941 2000-07-24  Jim Meyering  <meyering@lucent.com>
98942
98943         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98944
98945 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98946
98947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98948
98949 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98950
98951         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98952         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98953         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98954         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98955         invoke multibyte primitives.
98956
98957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98958
98959         * lib/quotearg.c:
98960         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98961         so that mbstate_t is always defined.
98962
98963         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98964         be 1 in at least one GCC installation, and this configuration
98965         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98966         performance on hosts that have mbrtowc but have only unibyte
98967         locales, but I assume these hosts are rare.
98968
98969 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98970
98971         * lib/mbswidth.c (_XOPEN_SOURCE):
98972         Don't define; this causes problems on Solaris 7.
98973         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98974
98975 2000-07-23  Jim Meyering  <meyering@lucent.com>
98976
98977         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98978         too: getgrgid, getpwuid, getuid.
98979
98980 2000-07-23  Jim Meyering  <meyering@lucent.com>
98981
98982         * lib/basename.c (base_name): Add an assertion.
98983
98984 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98985
98986         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98987         shadow its mbsinit function.
98988
98989 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98990
98991         * lib/mbswidth.h: New file.
98992         * lib/mbswidth.c: New file.
98993         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98994         (noinst_HEADERS): Add mbswidth.h.
98995
98996 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98997
98998         * lib/config.charset: Add support for FreeBSD. Improve support for
98999         HP-UX and IRIX 6.
99000
99001 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99002
99003         * m4/mbswidth.m4: New file.
99004         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99005
99006 2000-07-15  Jim Meyering  <meyering@lucent.com>
99007
99008         * lib/makepath.c: Include quote.h.
99009         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99010         corresponding argument in a `quote (...)' call.
99011         Give better diagnostics.
99012
99013         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99014         (noinst_HEADERS): Add quote.h.
99015
99016         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99017         from tar's src/misc.c.
99018         * lib/quote.h: New file.  Prototypes for same.
99019
99020 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99021
99022         From a suggestion by Bruno Haible.
99023         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99024         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99025         to decide whether to define the BeOS workaround macro;
99026         this adjusts to the change to AC_MBSTATE_T.
99027
99028 2000-07-14  Jim Meyering  <meyering@lucent.com>
99029
99030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99031         jm_AC_TYPE_UINTMAX_T.
99032
99033 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99034
99035         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99036
99037         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99038         quotearg_buffer_restyled): Add support for
99039         clocale_quoting_style.  Undo previous change to
99040         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99041         and "{RIGHT QUOTATION MARK}" msgids.
99042
99043 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99044
99045         From a suggestion by Bruno Haible.
99046         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99047         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99048         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99049         and mbstate_t, to a single-part test that simply defines mbstate_t.
99050         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99051         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99052
99053 2000-07-10  Jim Meyering  <meyering@lucent.com>
99054
99055         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99056
99057         * m4/gnu-source.m4: Output to confdefs.h directly.
99058         Suggestion from Akim Demaille.
99059
99060 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99061
99062         The old behavior of quoting `like this' doesn't look good with
99063         newer, ISO-style fonts.  See:
99064         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99065
99066         Instead, quote "like this" by default.  Let the translator
99067         tailor the locale-specific quoting behavior by providing
99068         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99069
99070         * lib/quotearg.c (N_): New macro.
99071         (gettext_default): New function.
99072         (quotearg_buffer_restyled): Use
99073         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99074         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99075
99076 2000-07-09  Jim Meyering  <meyering@lucent.com>
99077
99078         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99079         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99080
99081         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99083
99084 2000-07-09  Jim Meyering  <meyering@lucent.com>
99085
99086         * lib/Most files: Update copyright dates to include 2000.
99087
99088 2000-07-08  Jim Meyering  <meyering@lucent.com>
99089
99090         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99091         if not defined.
99092         (xgethostname): Remove now-unnecessary #ifdef.
99093         Move declaration of `err' into loop where it's used.
99094
99095 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99096         and Bruno Haible  <haible@clisp.cons.org>
99097
99098         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99099         only if the test for an object-type mbstate_t fails.  This
99100         prevents us from mistakenly reporting that mbstate_t is a
99101         system object type after we "#define mbstate_t int" to work
99102         around its lack.
99103
99104 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99105         and Bruno Haible  <haible@clisp.cons.org>
99106
99107         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99108
99109 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99110
99111         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99112         to strerror_r.
99113         Include <ctype.h> for use of isalpha.
99114
99115 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99116
99117         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99118         by allocating a larger buffer. Test the gethostname return value for
99119         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99120         returns an error and ENAMETOOLONG isn't defined.
99121
99122 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99123
99124         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99125         dimension.
99126
99127 2000-07-04  Jim Meyering  <meyering@lucent.com>
99128
99129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99130         of the deprecated AC_CHECKING.
99131
99132 2000-07-04  Jim Meyering  <meyering@lucent.com>
99133
99134         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99135         Reported by Bruno Haible.
99136
99137 2000-07-04  Jim Meyering  <meyering@lucent.com>
99138
99139         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99140         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99141         lacks mbrtowc.
99142
99143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99144
99145         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99146         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99147
99148 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99149         and Bruno Haible  <haible@clisp.cons.org>
99150
99151         * lib/quotearg.c (mbrtowc):
99152         Assign to *pwc, and return 1 only if result is nonzero.
99153         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99154
99155 2000-07-03  Jim Meyering  <meyering@lucent.com>
99156
99157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99158
99159 2000-07-03  Jim Meyering  <meyering@lucent.com>
99160
99161         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99162         This is necessary to get a definition of e.g., UTMP_FILE on
99163         HP-UX 10.20.
99164         From Bob Proulx.
99165
99166 2000-07-02  Jim Meyering  <meyering@lucent.com>
99167
99168         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99169
99170         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99171         AC_LIBOBJ(function_name).
99172         * m4/chown.m4: Likewise.
99173         * m4/fnmatch.m4: Likewise.
99174         * m4/ftruncate.m4: Likewise.
99175         * m4/getgroups.m4: Likewise.
99176         * m4/getline.m4: Likewise.
99177         * m4/group-member.m4: Likewise.
99178         * m4/jm-macros.m4: Likewise.
99179         * m4/lstat.m4: Likewise.
99180         * m4/malloc.m4: Likewise.
99181         * m4/memcmp.m4: Likewise.
99182         * m4/nanosleep.m4: Likewise.
99183         * m4/putenv.m4: Likewise.
99184         * m4/realloc.m4: Likewise.
99185         * m4/regex.m4: Likewise.
99186         * m4/stat.m4: Likewise.
99187         * m4/strftime.m4: Likewise.
99188
99189 2000-07-02  Jim Meyering  <meyering@lucent.com>
99190
99191         * lib/quotearg.c (mbstate_t): Don't define here.
99192
99193 2000-07-02  Jim Meyering  <meyering@lucent.com>
99194
99195         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99196
99197 2000-07-01  Jim Meyering  <meyering@lucent.com>
99198
99199         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99200
99201 2000-07-01  Jim Meyering  <meyering@lucent.com>
99202
99203         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99204         problem.
99205
99206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99207
99208         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99209         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99210
99211 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99212
99213         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99214         per change in ../m4/ls-mntd-fs.m4.
99215         (read_filesystem_list): Ignore symbolic links.
99216
99217 2000-06-29  Jim Meyering  <meyering@lucent.com>
99218
99219         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99220         for declaration of strcmp.
99221
99222         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99223
99224         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99225         Avoid warning by casting result to `char *' to remove `const'.
99226
99227 2000-06-28  Jim Meyering  <meyering@lucent.com>
99228
99229         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99230         included by quotearg.c, for which we perform this test.  From
99231         Bruno Haible.
99232
99233 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99234
99235         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99237         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99238
99239 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99240
99241         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99242
99243 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99244
99245         savedir now sets errno on failure and invokes xmalloc to get memory.
99246         Fix a couple of other minor bugs while we're at it.
99247
99248         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99249         (NAMLEN): Remove macro.
99250         (malloc, realloc): Remove decls.
99251         (stpcpy): Likewise.
99252         ("xalloc.h"): Include.
99253         (NAME_SIZE_DEFAULT): New macro.
99254         (savedir): Use xmalloc / xrealloc to allocate memory.
99255         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99256         Skip "" directory entries.
99257         Use strlen to calculate directory entry length, since the old method
99258         is rarely used these days and isn't worth supporting.
99259         Don't use a pointer after freeing it.
99260         Check for integer overflow when calculating allocation size.
99261         Use memcpy to copy entries, instead of stpcpy.
99262         Set errno properly when returning NULL.
99263         Check for readdir error.
99264
99265 2000-06-26  Jim Meyering  <meyering@lucent.com>
99266
99267         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99268
99269 2000-06-25  Jim Meyering  <meyering@lucent.com>
99270
99271         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99272         Linux header bug when _XOPEN_SOURCE is defined to 500.
99273
99274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99275
99276         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99277         deficiency.
99278
99279 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99280
99281         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99282         Include xalloc.h.
99283         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99284
99285 2000-06-24  Jim Meyering  <meyering@lucent.com>
99286
99287         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99288         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99289         for which strerror does return char*, but which lacks a conveniently
99290         accessible declaration of the function.  If the compile-test says
99291         strerror_r doesn't work, then resort to a `run'-test that works on
99292         BeOS and segfaults on DEC Unix.
99293
99294 2000-06-24  Jim Meyering  <meyering@lucent.com>
99295
99296         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99297
99298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99299
99300         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99302
99303 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99304
99305         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99306         (mbrtowc, mbstate_t): Define substitutes if
99307         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99308         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99309         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99310
99311 2000-06-23  Jim Meyering  <meyering@lucent.com>
99312
99313         * m4/afs.m4: Add missing AC_MSG_RESULT.
99314         Reported by Bruno Haible.
99315
99316         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99317         Suggestion from Bruno Haible.
99318
99319 2000-06-23  Jim Meyering  <meyering@lucent.com>
99320
99321         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99322
99323 2000-06-21  Jim Meyering  <meyering@lucent.com>
99324
99325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99326
99327 2000-06-21  Jim Meyering  <meyering@lucent.com>
99328
99329         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99330         (noinst_HEADERS): Add getstr.h.
99331
99332         * lib/getline.c (getstr): Move into a separate file.
99333         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99334         the following changes: new parameter, delim2; both delim[12]
99335         parameters have type `int', not `char'.  The latter would lose
99336         with 8-bit delimiters.
99337         * lib/getstr.h: New file.
99338
99339 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99340
99341         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99342         than 1024, return a memory chunk of least possible size, instead
99343         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99344         Use free/xmalloc instead of xrealloc to avoid copying for very long
99345         paths.
99346
99347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99348
99349         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99350         the empty string.
99351
99352 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99353
99354         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99355         address, not strdup.  Include <stdlib.h> and don't declare free().
99356
99357 2000-06-19  Jim Meyering  <meyering@lucent.com>
99358
99359         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99360
99361 2000-06-18  Jim Meyering  <meyering@lucent.com>
99362
99363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99364
99365         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99366         `checking whether...' message to be consistent with that of the
99367         lstat test.
99368
99369 2000-06-18  Jim Meyering  <meyering@lucent.com>
99370
99371         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99372         Besides, these days every porting target provides a mkdir function.
99373
99374         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99375         needed. (this snippet comes from src/system.h).
99376
99377 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99378
99379         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99380
99381 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99382
99383         * lib/human.c (adjust_value): New function.
99384         (human_readable_inexact): Apply rounding style even when
99385         printing approximate values.
99386
99387 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99388
99389         * lib/human.c (human_readable_inexact): Allow an input block
99390         size that is not a multiple of the output block size, and vice versa.
99391         Reported by Piergiorgio Sartor.
99392
99393 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99394
99395         * lib/getdate.y (get_date): Apply relative times after time
99396         zone indicator, not before.  Reported by Todd A. Jacobs.
99397
99398 2000-06-13  Jim Meyering  <meyering@lucent.com>
99399
99400         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99401
99402         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99403
99404 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99405
99406         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99407
99408 2000-06-12  Jim Meyering  <meyering@lucent.com>
99409
99410         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99411         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99412         optional argument.
99413         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99414         the optional argument, `lib'.
99415
99416 2000-06-08  Jim Meyering  <meyering@lucent.com>
99417
99418         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99419
99420 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99421
99422         Rewrite largefile configuration so that we don't need to run
99423         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99424         AC_CANONICAL_HOST in configure.in -- jmm]
99425
99426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99427         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99428         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99429         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99430         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99431         All uses changed.
99432         Instead of inspecting the output of getconf, try to compile the
99433         test program without and with the macro definition.
99434         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99435         for getconf.  Instead, check for the needed flags by compiling
99436         test programs.
99437
99438 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99439
99440         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99441
99442 2000-06-04  Jim Meyering  <meyering@lucent.com>
99443
99444         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99445         SunOS 4.1.4 for which gid_t is an unsigned type.
99446
99447 2000-06-03  Jim Meyering  <meyering@lucent.com>
99448
99449         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99450         now that autoconf requires that.
99451
99452         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99453         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99454         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99455
99456 2000-06-03  Jim Meyering  <meyering@lucent.com>
99457
99458         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99459
99460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99461
99462         * m4/glibc21.m4: New file.
99463         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99464
99465 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99466
99467         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99468         newer, don't install charset.alias.
99469         * lib/config.charset: Change the Linux/glibc rules so they become empty
99470         on glibc-2.1 or newer.
99471
99472 2000-06-02  Jim Meyering  <meyering@lucent.com>
99473
99474         * lib/mountlist.c: Back out last change.  Instead, do this...
99475         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99476         me_dummy member using the same `ignore'-testing code.
99477         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99478         fs_type strings.
99479         From Mark D. Roth.
99480
99481 2000-05-29  Jim Meyering  <meyering@lucent.com>
99482
99483         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99484         mounts with the `ignore' attribute.  Based on a patch from
99485         Mark D. Roth.
99486
99487 2000-05-28  Jim Meyering  <meyering@lucent.com>
99488
99489         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99490         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99491         * m4/stat.m4: Likewise.
99492         * m4/lstat.m4: Likewise.
99493         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99494
99495         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99496         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99497
99498 2000-05-26  Jim Meyering  <meyering@lucent.com>
99499
99500         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99501
99502 2000-05-24  Jim Meyering  <meyering@lucent.com>
99503
99504         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99505         autoconf requires that.
99506         * m4/lib-check.m4: Likewise.
99507         * m4/jm-macros.m4: Likewise.
99508         * m4/strftime.m4: Likewise.
99509
99510         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99511         AC_CHECK_DECLS, now that autoconf requires that.
99512
99513 2000-05-22  Jim Meyering  <meyering@lucent.com>
99514
99515         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99516         * m4/lstat.m4: Likewise.
99517
99518 2000-05-22  Jim Meyering  <meyering@lucent.com>
99519
99520         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99521
99522 2000-05-20  Jim Meyering  <meyering@lucent.com>
99523
99524         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99525         (jm_PREREQ): Use it.
99526
99527 2000-05-18  Jim Meyering  <meyering@lucent.com>
99528
99529         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99530         back, too, since it may have been modified by allocate_entry.
99531         (hash_delete): Rewrite to use neither the assignment operator
99532         nor the comma operator in an if-expression.
99533
99534 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99535
99536         * lib/closeout.c:
99537         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99538         Remove; no longer needed.
99539         "quotearg.h": Add include.
99540         (file_name): Do not bother to explicitly initialize to NULL; it's less
99541         efficient on some hosts.
99542         (close_stdout_status): Remove test as to whether stdout was already
99543         closed; it breaks for the case "echo x | sort >&-".
99544         Quote file name colons.
99545         Do not assume that _("write error") lacks format strings.
99546
99547 2000-05-15  Jim Meyering  <meyering@lucent.com>
99548
99549         * lib/version-etc.c (version_etc_copyright): Update the copyright
99550         string used in all --version output.
99551
99552 2000-05-14  Jim Meyering  <meyering@lucent.com>
99553
99554         * lib/closeout.c (close_stdout_set_file_name): New function.
99555         (close_stdout_status): Use new file-scoped global.
99556         Return right away if fstat says the stdout file descriptor is invalid.
99557         * lib/closeout.h (close_stdout_set_file_name): Declare.
99558
99559 2000-05-10  Jim Meyering  <meyering@lucent.com>
99560
99561         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99562         (close_stdout_set_status): New function.
99563         * lib/closeout.h (close_stdout_set_status): Declare.
99564
99565 2000-05-09  Jim Meyering  <meyering@lucent.com>
99566
99567         * m4/gettext.m4: Rename this...
99568         * m4/libintl.m4: ...to this.
99569
99570 2000-05-08  Jim Meyering  <meyering@lucent.com>
99571
99572         * lib/long-options.c: Don't include closeout.h.
99573         (parse_long_options): Don't call close_stdout for --version.
99574
99575 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99576
99577         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99578         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99579         2.1.3 bug.  This avoids a clash when files like regex.c define
99580         _GNU_SOURCE.
99581
99582 2000-05-06  Jim Meyering  <meyering@lucent.com>
99583
99584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99585         (AC_REPLACE_FUNCS): Add strnlen.
99586
99587         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99588         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99589
99590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99591         AC_SEARCH_LIBS call for nanosleep.
99592         (LIB_NANOSLEEP): Set and AC_SUBST.
99593
99594 2000-05-06  Jim Meyering  <meyering@lucent.com>
99595
99596         * lib/strnlen.c: Undefine __strnlen and strnlen.
99597         [!weak_alias]: Define __strnlen to strnlen.
99598
99599         * lib/atexit.c: New file, from libiberty.
99600
99601 2000-05-06  Jim Meyering  <meyering@lucent.com>
99602
99603         * lib/closeout.c (close_stdout_status): Also check for errors on the
99604         stderr stream.
99605
99606 2000-05-05  Jim Meyering  <meyering@lucent.com>
99607
99608         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99609         AC_SEARCH_LIBS call for clock_gettime.
99610         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99611
99612         * m4/search-libs.m4: Update from autoconf.
99613
99614         su doesn't work on Solaris 2.6.
99615         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99616         <shadow.h>.  Reported by Dragos Harabor.
99617
99618 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99619
99620         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99621         memcpy instead of xmalloc, xrealloc, path_concat.
99622         (locale_charset): Treat empty environment variables as absent.
99623         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99624
99625 2000-05-04  Jim Meyering  <meyering@lucent.com>
99626
99627         * lib/getopt.c: Update from glibc.
99628         * lib/obstack.c: Likewise.
99629         * lib/obstack.h: Likewise.
99630         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99631         file
99632
99633         * lib/regex.h: Likewise.
99634         * lib/strndup.c: Likewise.
99635         * lib/strnlen.c: New file, from glibc.
99636
99637 2000-05-03  Jim Meyering  <meyering@lucent.com>
99638
99639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99640
99641 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99642
99643         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99644         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99645         compile-time test, rather than inspecting host and OS, to
99646         decide whether to define _LARGEFILE_SOURCE.
99647
99648 2000-05-01  Jim Meyering  <meyering@lucent.com>
99649
99650         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99651
99652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99653         Based on a patch from Bruno Haible.
99654
99655 2000-05-01  Jim Meyering  <meyering@lucent.com>
99656
99657         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99658
99659 2000-04-29  Jim Meyering  <meyering@lucent.com>
99660
99661         * lib/path-concat.c: Declare strdup only if it's not defined.
99662         * lib/canon-host.c: Likewise.
99663
99664 2000-04-28  Jim Meyering  <meyering@lucent.com>
99665
99666         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99667         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99668         is included first, then limits.h is included by locale.h by libintl.h.
99669         From John David Anglin.
99670
99671 2000-04-25  Jim Meyering  <meyering@lucent.com>
99672
99673         * lib/makepath.c (S_IRWXUGO): Define.
99674         (make_path): Always perform explicit chmod if MODE specifies any
99675         of the `special' permission bits.  Prompted by a bug report against
99676         install from Mate Wierdl and Joost van Baal.
99677
99678 2000-04-18  Jim Meyering  <meyering@lucent.com>
99679
99680         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99681         (jm_PREREQ): Use it.
99682
99683 2000-04-18  Jim Meyering  <meyering@lucent.com>
99684
99685         * lib/README: New file.
99686
99687         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99688         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99689
99690 2000-04-17  Jim Meyering  <meyering@lucent.com>
99691
99692         Get it right :-)
99693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99694         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99695         Suggestion from Akim Demaille.
99696
99697 2000-04-17  Jim Meyering  <meyering@lucent.com>
99698
99699         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99700         the definition of it to rpl_strftime also defined-away the system's
99701         declaration.
99702
99703 2000-04-15  Jim Meyering  <meyering@lucent.com>
99704
99705         Use `C' to denote so-called `contiguous' files, the same way
99706         that tar does.
99707         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99708         (ftypelet): Use S_ISCTG.
99709         From Michael Deutschmann.
99710
99711 2000-04-14  Jim Meyering  <meyering@lucent.com>
99712
99713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99714         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99715         clobbered.
99716
99717 2000-04-14  Jim Meyering  <meyering@lucent.com>
99718
99719         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99720
99721 2000-04-13  Jim Meyering  <meyering@lucent.com>
99722
99723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99724         AH_VERBATIM to insert required #ifndef into config.h.in.
99725         Suggestion from Akim Demaille.
99726
99727 2000-04-12  Jim Meyering  <meyering@lucent.com>
99728
99729         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99730         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99731         Christian Krackowizer.
99732
99733         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99734         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99735         (AC_SYS_LARGEFILE): Require.
99736         (AM_C_PROTOTYPES): Require.
99737
99738 2000-04-08  Jim Meyering  <meyering@lucent.com>
99739
99740         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99741         names don't conflict.  Reported by Eli Zaretskii.
99742
99743 2000-04-07  Jim Meyering  <meyering@lucent.com>
99744
99745         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99746         sys/types.h, to work around system header problems on AIX 3.2.5.
99747         From Bruno Haible.
99748
99749 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99750
99751         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99752         bug.  Deal with the different error behavior of Irix iconv.
99753
99754 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99755
99756         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99757         IRIX if the installer said otherwise.
99758
99759 2000-04-05  Jim Meyering  <meyering@lucent.com>
99760
99761         Portability tweaks required for ultrix4.3.
99762         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99763         (jm_CHECK_DECLS): Add getutent to the list of functions.
99764         (_jm_DECL_HEADERS): Add utmpx.h.
99765         From John David Anglin.
99766
99767         * m4/strftime.m4: Back out the 2000-04-02 change.
99768         Instead of that change, simply undefine putenv in the test program.
99769
99770 2000-04-05  Jim Meyering  <meyering@lucent.com>
99771
99772         Portability tweaks required for ultrix4.3.
99773         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99774         getutent.
99775         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99776         * lib/canon-host.c: Declare strdup.
99777         * lib/path-concat.c: Likewise.
99778         From John David Anglin.
99779
99780 2000-04-04  Jim Meyering  <meyering@lucent.com>
99781
99782         Be more DOS 8.3-friendly.
99783         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99784         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99785         * lib/Makefile.am: Reflect renaming.
99786         Reported by Eli Zaretskii.
99787
99788         Use a temporary file name that won't clash with `charset.alias'
99789         in the DOS 8.3 name space.
99790         * lib/Makefile.am (charset_tmp): Define.
99791         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99792         (uninstall-local): Likewise.
99793         Reported by Eli Zaretskii.
99794
99795 2000-04-03  Jim Meyering  <meyering@lucent.com>
99796
99797         * m4/gettext.m4: Fix typo in comment.
99798
99799         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99800         textutils/configure.in).  Suggestion from Paul Eggert.
99801         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99802
99803 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99804
99805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99806         variable in the shell rather than using putenv, which isn't
99807         portable.  This avoids the configure-time inter-test dependency
99808         on the potentially-renamed putenv function.
99809
99810 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99811
99812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99813         before checking struct stat.st_blksize, so that
99814         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99815
99816 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99817
99818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99819         since strftime.c uses HAVE_STRFTIME to decide whether to use
99820         the underlying strftime.
99821
99822 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99823
99824         * lib/time/strftime.c (my_strftime): Make sure we call the system
99825         strftime, not ourselves, when invoking the underlying strftime.
99826
99827 2000-03-24  Jim Meyering  <meyering@lucent.com>
99828
99829         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99830         (charset_alias): Define.
99831         (install-exec-local): Factor out common code.
99832         (uninstall-local): Split lines longer than 80.
99833         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99834         (SUFFIXES): Define.
99835         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99836         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99837
99838 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99839
99840         * lib/config.charset: Output a line containing "Packages using this
99841         file".
99842         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99843         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99844         ref-del.sed): New rules.
99845
99846 2000-03-17  Jim Meyering  <meyering@lucent.com>
99847
99848         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99849         Otherwise, include <strings.h>
99850
99851 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99852
99853         * lib/unicodeio.c (utf8_wctomb): New function.
99854         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99855         format instead of in UCS-4 with platform dependent endianness.
99856
99857 2000-03-10  Jim Meyering  <meyering@lucent.com>
99858
99859         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99860         From Marco Franzen.
99861
99862 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99863
99864         * lib/savedir.c (savedir): Work even if directory size is
99865         negative; this can happen with some screwy NFS configurations.
99866
99867 2000-03-06  Jim Meyering  <meyering@lucent.com>
99868
99869         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99870         if it's NULL (because we ran out of memory).  From Bruno Haible.
99871
99872 2000-03-05  Jim Meyering  <meyering@lucent.com>
99873
99874         * lib/localcharset.c ("path-concat.h"): Include.
99875         (get_charset_aliases): Use path_concat instead of ANSI string
99876         concatenation.
99877
99878         * lib/unicodeio.h (PARAMS): Define.
99879         Use it to guard prototype.
99880
99881 2000-03-04  Jim Meyering  <meyering@lucent.com>
99882
99883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99884         for lib/localcharset.c.
99885
99886 2000-03-04  Jim Meyering  <meyering@lucent.com>
99887
99888         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99889         installing into it.
99890         (uninstall-local): Uncomment this rule so `make distcheck' works
99891         once again.
99892
99893         * lib/unicodeio.c (<errno.h>): Include it.
99894         (errno): Declare if not defined.
99895
99896         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99897
99898         * lib/config.charset: New version, incorporating remarks from a linux
99899         i18n mailing list.  From Bruno Haible.
99900
99901 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99902
99903         * m4/codeset.m4: New file.
99904         * m4/iconv.m4: New file.
99905         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99906
99907 2000-03-03  Jim Meyering  <meyering@lucent.com>
99908
99909         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99910
99911 2000-03-02  Jim Meyering  <meyering@lucent.com>
99912
99913         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99914         the messages come out on separate lines.
99915
99916         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99917         rather than jm_CHECK_DECLARATIONS.
99918         * m4/decl.m4: Remove now-unused file.
99919
99920         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99921         geteuid.
99922
99923 2000-03-02  Jim Meyering  <meyering@lucent.com>
99924
99925         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99926
99927 2000-03-01  Jim Meyering  <meyering@lucent.com>
99928
99929         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99930         * lib/unicodeio.c: Likewise.
99931
99932 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99933
99934         * lib/config.charset: New file.
99935         * lib/localcharset.c: New file.
99936         * lib/unicodeio.h, lib/unicodeio.c: New files.
99937         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99938         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99939         (noinst_HEADERS): Add unicodeio.h.
99940         (all-local, install-exec-local, charset.alias): New targets.
99941
99942 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99943
99944         * lib/quotearg.c (ALERT_CHAR): New macro.
99945         (quotearg_buffer_restyled): Use it.
99946
99947 2000-02-27  Jim Meyering  <meyering@lucent.com>
99948
99949         * m4/check-decl.m4: Add getenv to the list.
99950
99951 2000-02-27  Jim Meyering  <meyering@lucent.com>
99952
99953         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99954         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99955
99956         * lib/backupfile.c: Guard inclusion of stdlib.h with
99957         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99958         Declare malloc if needed.
99959
99960         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99961         `#ifndef HAVE_DECL..'
99962         now that autoconf always defines the HAVE_DECL_ symbols.
99963         * lib/human.c: Likewise.
99964         * lib/same.c: Likewise.
99965         * lib/strtoumax.c: Likewise.
99966
99967         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99968         declaration check was not run.
99969         * lib/hash.c: Likewise.
99970         * lib/human.c: Likewise.
99971         * lib/same.c: Likewise.
99972         * lib/strtoumax.c: Likewise.
99973
99974         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99975         `.', then first look up the entire `.'-containing string as a login
99976         name.
99977
99978 2000-02-23  Jim Meyering  <meyering@lucent.com>
99979
99980         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99981         in place of my hack.
99982
99983 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99984
99985         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99986         (textint): New typedef.
99987         (parser_control): Member year changed from int to textint.
99988         All uses changed.
99989         (YYSTYPE): Removed; replaced by %union with int and textint members.
99990         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99991         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99992         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99993         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99994         (date, number, to_year): Use width of number in digits, not its value,
99995         to determine whether it's a 2-digit year, or a 2-digit time.
99996         (yylex): Store number of digits of numeric tokens.
99997         Reported by John Kendall.
99998
99999         (parser_control): Changed from struct parser_control to typedef (for
100000         consistency).  All uses changed.
100001
100002         (tID): Removed; not used.
100003         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100004
100005 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100006
100007         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100008         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100009
100010 2000-02-12  Jim Meyering  <meyering@lucent.com>
100011
100012         * lib/userspec.c (ISDIGIT): Define it.
100013         (isdigit): Remove definition.
100014         (is_number): Use ISDIGIT, not isdigit.
100015         <libintl.h>: Include.
100016         (_ and N_): Define.
100017         (parse_user_spec): Mark translatable strings.
100018
100019 2000-02-10  Jim Meyering  <meyering@lucent.com>
100020
100021         With these changes, nanosleep.[ch] are finally enough like the other
100022         lib/* replacement files to compile on a few more losing systems.
100023
100024         * lib/nanosleep.h: Don't include config.h.
100025         Remove prototype from declaration of nanosleep.
100026         (PARAMS): Remove now-unneeded definition.
100027         * lib/nanosleep.c: #undef nanosleep.
100028         (rpl_nanosleep): Rename from nanosleep.
100029
100030 2000-02-10  Jim Meyering  <meyering@lucent.com>
100031
100032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100033         gnu_nanosleep to rpl_nanosleep.
100034
100035 2000-02-09  Jim Meyering  <meyering@lucent.com>
100036
100037         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100038         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100039
100040 2000-02-08  Akim Demaille  <akim@epita.fr>
100041
100042         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100043         `[' and `]' and remove uses of `changequote'.
100044         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100045         (AC_SYS_LARGEFILE): Likewise.
100046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100048         of changequote.
100049         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100050         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100051         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100053
100054 2000-02-05  Jim Meyering  <meyering@lucent.com>
100055
100056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100057         Remove explicit use of AC_HEADER_TIME.  It is required by
100058         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100059         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100060         in autoconf whereby the expansion of the latter ended up preceding
100061         the expansion of its prerequisite, AC_HEADER_TIME.
100062         Reported by Volker Borchert.
100063
100064 2000-02-03  Jim Meyering  <meyering@lucent.com>
100065
100066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100067
100068 2000-02-03  Jim Meyering  <meyering@lucent.com>
100069
100070         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100071         rather than with `#if HAVE_UTMPNAME'.
100072
100073 2000-02-02  Jim Meyering  <meyering@lucent.com>
100074
100075         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100076         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100077         Reported by Eli Zaretskii.
100078
100079 2000-02-01  Jim Meyering  <meyering@lucent.com>
100080
100081         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100082
100083 2000-01-31  Jim Meyering  <meyering@lucent.com>
100084
100085         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100086         functions.  Add the time.h and sys/time.h headers along with the
100087         AC_REQUIRE'ment of AC_HEADER_TIME.
100088
100089 2000-01-31  Jim Meyering  <meyering@lucent.com>
100090
100091         * lib/nanosleep.h (nanosleep): Guard declaration with
100092         `#if ! HAVE_DECL_NANOSLEEP'.
100093         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100094         the declaration in that vendor's sys/timers.h.
100095         Reported by Christian Krackowizer.
100096
100097         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100098         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100099         (ISPRINT): Likewise.
100100         Reported by Tom Tromey.
100101
100102 2000-01-30  Jim Meyering  <meyering@lucent.com>
100103
100104         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100105
100106         * m4/prereq.m4 (utmp_includes): Define.
100107         Check for ut_user and ut_name members in both struct utmpx
100108         and struct utmp.
100109
100110 2000-01-30  Jim Meyering  <meyering@lucent.com>
100111
100112         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100113         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100114         header files where only utmpx.ut_user is declared.
100115
100116         * lib/readutmp.h (UT_USER): Define.
100117
100118 2000-01-29  Jim Meyering  <meyering@lucent.com>
100119
100120         * m4/lib-check.m4: New file containing library-related checks from
100121         fileutils and sh-utils (textutils had none).
100122
100123 2000-01-28  Jim Meyering  <meyering@lucent.com>
100124
100125         * m4/perl.m4: Change format of warning message to look more like that
100126         from the missing script.  Suggestion from François Pinard.
100127
100128 2000-01-25  Jim Meyering  <meyering@lucent.com>
100129
100130         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100131         well as time.h in the compile check.
100132         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100133         Fix typo in cross-compiling case: s/yes/no/.
100134
100135 2000-01-23  Jim Meyering  <meyering@lucent.com>
100136
100137         * m4/jm-macros.m4: Move df-related tests here from
100138         fileutils/configure.in
100139
100140         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100141         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100142
100143         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100144         s/space/ac_fsusage_space/.
100145         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100146
100147         * m4/ftruncate.m4: New file (derived from part of
100148         fileutils/configure.in).
100149         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100150         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100151
100152         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100153         AC_SUBST these here, rather than just in sh-util/configure.in, so
100154         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100155         all the same.
100156         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100157         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100158         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100159         (AC_SUBST(POW_LIBM)): Likewise.
100160         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100161
100162 2000-01-23  Jim Meyering  <meyering@lucent.com>
100163
100164         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100165         obstack.c.
100166
100167 2000-01-22  Jim Meyering  <meyering@lucent.com>
100168
100169         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100170
100171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100172
100173         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100174         configure.in
100175         (AC_CHECK_HEADERS): Likewise for sh-utils.
100176         (AC_CHECK_HEADERS): Likewise for textutils.
100177         Merge the three lists of headers.
100178
100179         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100180         from fileutils' configure.in.
100181
100182         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100183         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100184         check-decl.m4.
100185
100186         * m4/check-decl.m4: Use #if rather than #ifdef.
100187         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100188         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100189         (_jm_DECL_HEADERS): Define new function.
100190         (jm_CHECK_DECLARATIONS): Require it.
100191
100192 2000-01-22  Jim Meyering  <meyering@lucent.com>
100193
100194         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100195         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100196         Required for some AIX systems.  Reported by Christian Krackowizer.
100197         [TESTING] (main): New function.
100198
100199         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100200         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100201         letters.
100202
100203         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100204         iswprint.
100205
100206         * lib/strverscmp.c (ISDIGIT): Define.
100207         (strverscmp): Use ISDIGIT, not isdigit.
100208
100209 2000-01-19  Jim Meyering  <meyering@lucent.com>
100210
100211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100212         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100213         defines `struct timespec' in <sys/time.h>
100214
100215         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100216         Thanks to Akim for explaining.
100217
100218 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100219
100220         * lib/nanosleep.c (nanosleep):
100221         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100222         POSIX.1 doesn't require SA_INTERRUPT and some systems
100223         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100224         it's been part of POSIX.1 since day 1 (in 1988).
100225
100226 2000-01-17  Jim Meyering  <meyering@lucent.com>
100227
100228         * lib/interlock: Remove unused file.  Reported by François Pinard.
100229
100230 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100231
100232         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100233         alert, backslash, formfeed, and vertical tab unnecessarily in
100234         shell quoting style.
100235
100236 2000-01-16  Jim Meyering  <meyering@lucent.com>
100237
100238         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100239         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100240         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100241         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100242
100243 2000-01-16  Jim Meyering  <meyering@lucent.com>
100244
100245         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100246         because the latter didn't work.
100247
100248 2000-01-15  Jim Meyering  <meyering@lucent.com>
100249
100250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100251         (AC_REPLACE_FUNCS): Add memcpy and memset.
100252         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100253         Add strpbrk.
100254         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100255
100256 2000-01-12  Jim Meyering  <meyering@lucent.com>
100257
100258         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100259         (jm_PREREQ): Use it.
100260         (jm_PREREQ_READUTMP): New macro.
100261         (jm_PREREQ): Use it.
100262
100263 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100264
100265         Quote multibyte characters correctly.
100266         * m4/c-bs-a.m4: New file.
100267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100268         (jm_PREREQ): Use it.
100269
100270 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100271
100272         * m4/uintmax_t.m4: Port to autoconf 2.13.
100273
100274 2000-01-08  Jim Meyering  <meyering@ascend.com>
100275
100276         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100277         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100278
100279 2000-01-04  Jim Meyering  <meyering@ascend.com>
100280
100281         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100282         jm_STRUCT_DIRENT_D_TYPE.
100283         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100284         jm_STRUCT_DIRENT_D_INO.
100285         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100286         jm_STRUCT_UTIMBUF.
100287         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100288         renamings.
100289         * m4/utime.m4: Likewise.
100290
100291         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100292         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100293
100294 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100295
100296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100297         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100298
100299 2000-01-02  Jim Meyering  <meyering@ascend.com>
100300
100301         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100302         remember if this is necessary.
100303
100304 1999-12-26  Jim Meyering  <meyering@ascend.com>
100305
100306         * m4/jm-macros.m4: Use it here.
100307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100308
100309 1999-12-23  Jim Meyering  <meyering@ascend.com>
100310
100311         * m4/jm-macros.m4: Check for clock_gettime (moved from
100312         fileutils/configure.in)
100313         Check for gettimeofday.
100314
100315 1999-12-20  Jim Meyering  <meyering@ascend.com>
100316
100317         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100318         autoconf-2.14a-1999-12-20.
100319
100320 1999-12-19  Jim Meyering  <meyering@ascend.com>
100321
100322         * m4/lstat-slash.m4: New file.
100323         * m4/jm-macros.m4: Use the new macro:
100324         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100325
100326 1999-12-07  Jim Meyering  <meyering@ascend.com>
100327
100328         * m4/perl.m4: Require that File::Compare be available, too.
100329         Too many systems seem to lack it.
100330
100331         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100332         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100333
100334 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100335
100336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100337         problem with the QNX 4.25 shell, which doesn't propagate exit
100338         status of failed commands inside shell assignments.
100339
100340 1999-11-17  Jim Meyering  <meyering@ascend.com>
100341
100342         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100343
100344 1999-11-07  Jim Meyering  <meyering@ascend.com>
100345
100346         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100347
100348 1999-11-06  Jim Meyering  <meyering@ascend.com>
100349
100350         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100351         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100352
100353 1999-11-05  Jim Meyering  <meyering@ascend.com>
100354
100355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100356         configure.in of textutils, fileutils, and sh-utils into this one
100357         (shared between those packages) file.
100358         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100359         AC_STRUCT_ST_BLKSIZE.
100360
100361 1999-11-03  Jim Meyering  <meyering@ascend.com>
100362
100363         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100364         of AC_CHECK_TYPE checks includes unistd.h.
100365         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100366         Suggestion from Akim Demaille.
100367
100368 1999-10-30  Jim Meyering  <meyering@ascend.com>
100369
100370         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100371         m4-quoted string.
100372         * m4/ls-mntd-fs.m4: Likewise.
100373         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100374         * m4/jm-winsz1.m4: Likewise.
100375
100376         * m4/const.m4: Remove file, since the fix made it into the experimental
100377         version of autoconf.
100378         * m4/mktime.m4: Likewise.
100379
100380         * m4/check-type.m4: Remove file, now that the latest version of
100381         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100382
100383         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100384         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100385         AC_CHECK_TYPE.
100386
100387 1999-10-04  Jim Meyering  <meyering@ascend.com>
100388
100389         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100390
100391 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100392
100393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100394         2.95.1 bug with HP-UX 10.20.
100395
100396 1999-09-17  Jim Meyering  <meyering@ascend.com>
100397
100398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100399         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100400         due to missing strdup (against sh-utils-2.0).
100401
100402 1999-08-29  Jim Meyering  <meyering@ascend.com>
100403
100404         * m4/jm-macros.m4: Require jm_BISON.
100405         * m4/bison.m4: New file.
100406
100407 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100408
100409         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100410         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100411
100412 1999-08-05  Jim Meyering  <meyering@ascend.com>
100413
100414         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100415         to avoid conflicts with `conftest' on 8+3 filesystems.
100416         Suggestion from Eli Zaretskii.
100417
100418 1999-08-04  Jim Meyering  <meyering@ascend.com>
100419
100420         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100421         fileutils and sh-utils (textutils's getline test was inadequate).
100422         (AM_FUNC_GETLINE): Run this test.
100423         (AC_CHECK_FUNCS): Check for getdelim.
100424         Reported by Bob Proulx.
100425
100426 1999-08-02  Jim Meyering  <meyering@ascend.com>
100427
100428         * m4/jm-macros.m4: Add a comment.
100429
100430 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100431
100432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100433         <inttypes.h> defines strtoumax as a macro (and not as a
100434         function).
100435
100436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100437
100438         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100439         that we can shift, multiply and divide unsigned long long
100440         values; Ultrix cc can't do it.
100441
100442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100443
100444         * m4/mktime.m4: New file, which is a preview of what should appear
100445         in the next public autoconf release.
100446
100447 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100448
100449         * m4/lfs.m4: Remove this file.
100450         * m4/largefile.m4: New file.  It contains the old contents of
100451         lfs.m4, except that all names with prefix AC_LFS have been
100452         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100453         compatible with future autoconf versions.  Also, some minor m4
100454         quoting problems have been fixed.
100455
100456 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100457
100458         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100459         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100460         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100461         and simplify the shell code.
100462
100463 1999-08-01  Jim Meyering  <meyering@ascend.com>
100464
100465         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100466         m4.
100467
100468 1999-07-20  Jim Meyering  <meyering@ascend.com>
100469
100470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100471
100472 1999-07-15  Jim Meyering  <meyering@ascend.com>
100473
100474         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100475
100476 1999-05-22  Jim Meyering  <meyering@ascend.com>
100477
100478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100479
100480 1999-05-20  Jim Meyering  <meyering@ascend.com>
100481
100482         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100483         Add a colon after each `then' in case $4 is empty.
100484
100485 1999-05-16  Jim Meyering  <meyering@ascend.com>
100486
100487         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100488
100489 1999-05-10  Jim Meyering  <meyering@ascend.com>
100490
100491         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100492
100493         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100494         AC_FUNC_MKTIME.
100495
100496 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100497
100498         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100499
100500 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100501
100502         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100503         not CPPFLAGS, so that linking works correctly in IRIX.
100504
100505 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100506
100507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100508
100509 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100510
100511         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100512         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100514         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100516
100517         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100518
100519 1999-04-20  Jim Meyering  <meyering@ascend.com>
100520
100521         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100522         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100523         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100524
100525 1999-04-18  Jim Meyering  <meyering@ascend.com>
100526
100527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100528         * m4/jm-macros.m4: Use it.
100529
100530 1999-04-06  Jim Meyering  <meyering@ascend.com>
100531
100532         * m4/strftime.m4: Remove test for %f.
100533
100534 1999-03-29  Jim Meyering  <meyering@ascend.com>
100535
100536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100537         superset of the AC_TYPE_* checks in the textutils, fileutils,
100538         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100539         AC_TYPE_PID_T.
100540
100541 1999-03-28  Jim Meyering  <meyering@ascend.com>
100542
100543         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100544         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100545         replaced e.g., in the *.sh files of the sh-utils.
100546
100547 1999-03-20  Jim Meyering  <meyering@ascend.com>
100548
100549         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100550         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100551         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100552
100553 1999-03-19  Jim Meyering  <meyering@ascend.com>
100554
100555         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100556
100557 1999-03-12  Jim Meyering  <meyering@ascend.com>
100558
100559         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100560
100561 1999-03-07  Jim Meyering  <meyering@ascend.com>
100562
100563         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100564         declared.
100565
100566 1999-02-17  Jim Meyering  <meyering@ascend.com>
100567
100568         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100569         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100570
100571 1999-02-07  Jim Meyering  <meyering@ascend.com>
100572
100573         * m4/group-member.m4: New file -- extracted from sh-utils'
100574         configure.in.
100575
100576         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100577         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100578
100579 1999-02-06  Jim Meyering  <meyering@ascend.com>
100580
100581         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100582         * m4/fnmatch.m4: Likewise.
100583         * m4/getgroups.m4: Likewise.
100584         * m4/lstat.m4: Likewise.
100585         * m4/malloc.m4: Likewise.
100586         * m4/putenv.m4: Likewise.
100587         * m4/realloc.m4: Likewise.
100588         * m4/regex.m4: Likewise.
100589         * m4/stat.m4: Likewise.
100590         * m4/strftime.m4: Likewise.
100591         Suggestion from Alain Magloire.
100592
100593         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100594         * m4/fnmatch.m4: Likewise.
100595         * m4/getgroups.m4: Likewise.
100596         * m4/getline.m4: Likewise.
100597         * m4/lstat.m4: Likewise.
100598         * m4/malloc.m4: Likewise.
100599         * m4/memcmp.m4: Likewise.
100600         * m4/putenv.m4: Likewise.
100601         * m4/realloc.m4: Likewise.
100602         * m4/regex.m4: Likewise.
100603         * m4/stat.m4: Likewise.
100604         * m4/strftime.m4: Likewise.
100605         Suggestion from Alain Magloire.
100606
100607         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100608         an argument.
100609
100610         * m4/regex.m4: Add a run-time Test for proper operation of
100611         re_compile_pattern.
100612
100613 1999-01-31  Jim Meyering  <meyering@ascend.com>
100614
100615         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100616
100617 1999-01-30  Jim Meyering  <meyering@ascend.com>
100618
100619         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100620
100621         * m4/jm-mktime.m4: Make this a wrapper around the official
100622         AM_FUNC_MKTIME rather than my private copy, now that the official one
100623         is up to date.
100624         * m4/mktime.m4: Remove file.
100625
100626         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100627         * m4/uptime.m4: Likewise.
100628         * m4/uintmax_t.m4: Likewise.
100629
100630 1999-01-28  Jim Meyering  <meyering@ascend.com>
100631
100632         * m4/jm-macros.m4: Use jm_AFS.
100633         * m4/afs.m4: New file (from fileutils' configure.in).
100634
100635         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100636         * m4/chown.m4: Likewise.
100637         * m4/d-ino.m4: Likewise.
100638         * m4/d-type.m4: Likewise.
100639         * m4/fnmatch.m4: Likewise.
100640         * m4/getgroups.m4: Likewise.
100641         * m4/gettext.m4: Likewise.
100642         * m4/jm-mktime.m4: Likewise.
100643         * m4/jm-winsz2.m4: Likewise.
100644         * m4/lcmessage.m4: Likewise.
100645         * m4/ls-mntd-fs.m4: Likewise.
100646         * m4/malloc.m4: Likewise.
100647         * m4/memcmp.m4: Likewise.
100648         * m4/putenv.m4: Likewise.
100649         * m4/realloc.m4: Likewise.
100650         * m4/st_mtim.m4: Likewise.
100651         * m4/strftime.m4: Likewise.
100652
100653 1999-01-16  Jim Meyering  <meyering@ascend.com>
100654
100655         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100656         (ARGMATCH_DIE_DECL): Define.
100657
100658 1999-01-12  Jim Meyering  <meyering@ascend.com>
100659
100660         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100661         Reported by Lars Hecking.
100662
100663 1999-01-10  Jim Meyering  <meyering@ascend.com>
100664
100665         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100666         gross kludge.
100667         * m4/inttypes_h.m4: Likewise.
100668         * m4/lstat.m4: Likewise.
100669         * m4/malloc.m4: Likewise.
100670         * m4/readdir.m4: Likewise.
100671         * m4/realloc.m4: Likewise.
100672         * m4/st_dm_mode.m4: Likewise.
100673         * m4/stat.m4: Likewise.
100674         * m4/utimbuf.m4: Likewise.
100675         * m4/utimes.m4: Likewise.
100676
100677         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100678         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100679         comments in config.h.in are meaningful.
100680
100681         * m4/jm-macros.m4: Require autoconf-2.13 here.
100682
100683         * m4/regex.m4: By default, don't use the included regex.c on systems
100684         with glibc 2.  Suggestion from Uli Drepper.
100685
100686 1999-01-02  Jim Meyering  <meyering@ascend.com>
100687
100688         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100689
100690 1998-12-18  Jim Meyering  <meyering@ascend.com>
100691
100692         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100693         Based on a suggestion from Lars Hecking.
100694
100695 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100696
100697         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100698
100699 1998-11-16  Jim Meyering  <meyering@ascend.com>
100700
100701         * m4/lfs.m4: Double-quote the `uname...` expression.
100702
100703 1998-11-14  Jim Meyering  <meyering@ascend.com>
100704
100705         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100706         * m4/stat.m4: Likewise.
100707
100708 1998-11-03  Jim Meyering  <meyering@ascend.com>
100709
100710         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100711         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100712
100713 1998-10-18  Jim Meyering  <meyering@ascend.com>
100714
100715         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100716
100717 1998-10-17  Jim Meyering  <meyering@ascend.com>
100718
100719         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100720         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100721         calls for those previously hard-coded headers.  Instead, take a new
100722         parameter.
100723         (jm_CHECK_DECLARATIONS): Reflect interface change.
100724         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100725         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100726
100727         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100728
100729 1998-10-14  Jim Meyering  <meyering@ascend.com>
100730
100731         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100732         instead of "TZ=America/Vancouver".  From Paul Eggert.
100733
100734 1998-10-11  Jim Meyering  <meyering@ascend.com>
100735
100736         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100737         This adds a test for a recently added compatibility fix for mktime.c.
100738         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100739
100740 1998-09-27  Jim Meyering  <meyering@ascend.com>
100741
100742         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100743
100744         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100745         ../configure.in, including a change from Gordon Matzigkeit to allow
100746         cross-compiling for the Hurd.
100747
100748         * m4/glibc.m4: New file/macro to test for the GNU C Library
100749         versions 1 and 2.  From Gordon Matzigkeit.
100750         Indent.
100751
100752 1998-09-21  Jim Meyering  <meyering@ascend.com>
100753
100754         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100755
100756 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100757
100758         Port nanosecond-resolution times to UnixWare 2.1.2 and
100759         pedantic Solaris 2.6.
100760
100761         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100762         AC_STRUCT_ST_MTIM.
100763         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100764         Generate name of ns member, instead of just 1 or undef.
100765         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100766
100767 1998-08-15  Jim Meyering  <meyering@ascend.com>
100768
100769         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100770         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100771         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100772         instead of jm_TYPE_SSIZE_T.
100773
100774 1998-08-12  Jim Meyering  <meyering@ascend.com>
100775
100776         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100777
100778 1998-08-02  Jim Meyering  <meyering@ascend.com>
100779
100780         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100781         in acconfig.h manually.
100782
100783 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100784
100785         * m4/st_mtim.m4: New file.
100786
100787 1998-07-28  Jim Meyering  <meyering@ascend.com>
100788
100789         * m4/utimes.m4: Undef stat.
100790
100791 1998-07-25  Jim Meyering  <meyering@ascend.com>
100792
100793         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100794         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100795
100796 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100797
100798         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100799         uid and gid actually remain unchanged.
100800
100801 1998-07-07  Jim Meyering  <meyering@ascend.com>
100802
100803         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100804
100805 1998-07-04  Jim Meyering  <meyering@ascend.com>
100806
100807         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100808         to prove that this macro can be used in packages without regex.c.
100809
100810 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100811
100812         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100813         is to be used.
100814
100815 1998-07-03  Jim Meyering  <meyering@ascend.com>
100816
100817         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100818
100819         * m4/gettext.m4: New file -- from gettext-0.10.35.
100820         * m4/lcmessage.m4: Likewise.
100821         * m4/progtest.m4: Likewise.
100822
100823         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100824         * m4/jm-macros.m4: Require the new macro.
100825
100826 1998-06-29  Jim Meyering  <meyering@ascend.com>
100827
100828         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100829         for the definition of NGROUPS (used in a system header included
100830         by sys/mount.h).
100831
100832 1998-06-28  Jim Meyering  <meyering@ascend.com>
100833
100834         * m4/ls-mntd-fs.m4: New file.
100835         * m4/fstypename.m4: New file.
100836
100837         * m4/jm-macros.m4: Require the new macro.
100838         * m4/jm-glibc-io.m4: New file.
100839
100840 1998-05-19  Jim Meyering  <meyering@ascend.com>
100841
100842         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100843         * m4/lchown.m4: New file.
100844
100845         * m4/Makefile.am.in: New file.
100846         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100847
100848 1998-05-14  Jim Meyering  <meyering@ascend.com>
100849
100850         * m4/Makefile.am (EXTRA_DIST): Add them.
100851         * m4/jm-macros.m4: New file.
100852         * m4/utimbuf.m4: New file.
100853
100854 1998-05-12  Jim Meyering  <meyering@ascend.com>
100855
100856         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100857
100858 1998-05-11  Jim Meyering  <meyering@ascend.com>
100859
100860         * m4/isc-posix.m4: New file.
100861
100862 1998-05-10  Jim Meyering  <meyering@ascend.com>
100863
100864         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100865
100866 1998-05-09  Jim Meyering  <meyering@ascend.com>
100867
100868         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100869         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100870         with automake.
100871
100872         * m4/ssize_t.m4: New file.
100873         * m4/mktime.m4: Remove file -- the new automake has this now.
100874
100875 1998-04-26  Jim Meyering  <meyering@ascend.com>
100876
100877         * m4/assert.m4: New file.
100878         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100879
100880 1998-04-05  Jim Meyering  <meyering@ascend.com>
100881
100882         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100883         (jm_PREREQ): Use it here.
100884
100885 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100886
100887         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100888         in acconfig.h.
100889
100890 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100891
100892         * m4/prereq.m4: New file.
100893         * m4/error.m4: New file.
100894         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100895
100896 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100897
100898         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100899         cache-check for the same variable -- that defeated the purpose of
100900         the test; the test program was never run.  This was a problem only
100901         on systems with losing getline functions -- HP-UX 10.20 is one.
100902         Reported by Bjorn Helgaas.
100903
100904 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100905
100906         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100907
100908 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100909
100910         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100911
100912         * m4/const.m4: New file.  Use an initializer in this declaration
100913         typedef int charset[2]; const charset x;
100914         Reported by Bob Glickstein.
100915
100916 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100917
100918         * m4/chown.m4: Fix reversed types on -1 args to chown.
100919         From Kaveh Ghazi.
100920
100921 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100922
100923         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100924         Add lseek and memchr.
100925
100926         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100927         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100928         have a 20-character limit on names.
100929
100930 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100931
100932         * m4/inttypes_h.m4: New file.
100933         * m4/uintmax_t.m4: New file.
100934         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100935
100936
100937         -----
100938
100939         Local Variables:
100940         coding: utf-8
100941         End:
100942
100943         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100944
100945         Copying and distribution of this file, with or without
100946         modification, are permitted provided the copyright notice
100947         and this notice are preserved.